From f842321a7a68489d216c7c526dd595cab67c7123 Mon Sep 17 00:00:00 2001 From: Michael Droettboom Date: Fri, 24 Apr 2026 08:53:32 -0400 Subject: [PATCH 1/6] Move driver and nvrtc cython and internal layers to new generator --- .gitignore | 10 - cuda_bindings/build_hooks.py | 7 - .../cuda/bindings/_bindings/cydriver.pxd.in | 2461 --- .../cuda/bindings/_bindings/cydriver.pyx.in | 16926 ---------------- .../cuda/bindings/_bindings/loader.cpp | 350 - .../cuda/bindings/_bindings/loader.h | 9 - .../cuda/bindings/_bindings/loader.pxd | 5 - .../cuda/bindings/_internal/driver.pxd | 514 + .../cuda/bindings/_internal/driver_linux.pyx | 8653 ++++++++ .../bindings/_internal/driver_windows.pyx | 8664 ++++++++ .../cuda/bindings/_internal/nvrtc.pxd | 80 +- .../cuda/bindings/_internal/nvrtc_linux.pyx | 166 +- .../cuda/bindings/_internal/nvrtc_windows.pyx | 164 +- .../bindings/_lib/cyruntime/cyruntime.pxd | 4 +- .../bindings/_lib/cyruntime/cyruntime.pxi | 8 +- .../bindings/_lib/{utils.pxd.in => utils.pxd} | 45 +- cuda_bindings/cuda/bindings/_lib/utils.pxi | 663 + cuda_bindings/cuda/bindings/_lib/utils.pxi.in | 664 - cuda_bindings/cuda/bindings/cydriver.pxd | 3645 ++++ cuda_bindings/cuda/bindings/cydriver.pxd.in | 5412 ----- cuda_bindings/cuda/bindings/cydriver.pyx | 2010 ++ cuda_bindings/cuda/bindings/cydriver.pyx.in | 2951 --- cuda_bindings/cuda/bindings/cynvrtc.pxd | 133 +- cuda_bindings/cuda/bindings/cynvrtc.pyx | 79 +- .../bindings/{driver.pxd.in => driver.pxd} | 6825 +++---- .../bindings/{driver.pyx.in => driver.pyx} | 15736 ++++++-------- cuda_bindings/cuda/bindings/nvrtc.pxd | 2 +- cuda_bindings/cuda/bindings/nvrtc.pyx | 2 +- cuda_bindings/tests/test_cuda.py | 2 +- 29 files changed, 34328 insertions(+), 41862 deletions(-) delete mode 100644 cuda_bindings/cuda/bindings/_bindings/cydriver.pxd.in delete mode 100644 cuda_bindings/cuda/bindings/_bindings/cydriver.pyx.in delete mode 100644 cuda_bindings/cuda/bindings/_bindings/loader.cpp delete mode 100644 cuda_bindings/cuda/bindings/_bindings/loader.h delete mode 100644 cuda_bindings/cuda/bindings/_bindings/loader.pxd create mode 100644 cuda_bindings/cuda/bindings/_internal/driver.pxd create mode 100644 cuda_bindings/cuda/bindings/_internal/driver_linux.pyx create mode 100644 cuda_bindings/cuda/bindings/_internal/driver_windows.pyx rename cuda_bindings/cuda/bindings/_lib/{utils.pxd.in => utils.pxd} (84%) create mode 100644 cuda_bindings/cuda/bindings/_lib/utils.pxi delete mode 100644 cuda_bindings/cuda/bindings/_lib/utils.pxi.in create mode 100644 cuda_bindings/cuda/bindings/cydriver.pxd delete mode 100644 cuda_bindings/cuda/bindings/cydriver.pxd.in create mode 100644 cuda_bindings/cuda/bindings/cydriver.pyx delete mode 100644 cuda_bindings/cuda/bindings/cydriver.pyx.in rename cuda_bindings/cuda/bindings/{driver.pxd.in => driver.pxd} (60%) rename cuda_bindings/cuda/bindings/{driver.pyx.in => driver.pyx} (86%) diff --git a/.gitignore b/.gitignore index 26f13b1d174..62ba3ef4b7e 100644 --- a/.gitignore +++ b/.gitignore @@ -17,31 +17,21 @@ __pycache__/ cache_driver cache_runtime cache_nvrtc -cuda_bindings/cuda/bindings/_lib/utils.pxi # CUDA Python specific (auto-generated) -cuda_bindings/cuda/bindings/_bindings/cydriver.pxd -cuda_bindings/cuda/bindings/_bindings/cydriver.pyx 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/_nvml.pyx cuda_bindings/cuda/bindings/_internal/cufile.pyx 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/_lib/utils.pxd -cuda_bindings/cuda/bindings/_lib/utils.pyx -cuda_bindings/cuda/bindings/cydriver.pxd -cuda_bindings/cuda/bindings/cydriver.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/driver.pxd -cuda_bindings/cuda/bindings/driver.pyx cuda_bindings/cuda/bindings/runtime.pxd cuda_bindings/cuda/bindings/runtime.pyx cuda_bindings/cuda/bindings/utils/_get_handle.pyx diff --git a/cuda_bindings/build_hooks.py b/cuda_bindings/build_hooks.py index 094d8adfbf1..50125714eb9 100644 --- a/cuda_bindings/build_hooks.py +++ b/cuda_bindings/build_hooks.py @@ -78,10 +78,6 @@ def _get_cuda_path() -> str: # Header parsing helpers (called only from _build_cuda_bindings) _REQUIRED_HEADERS = { - "driver": [ - "cuda.h", - "cudaProfiler.h", - ], "runtime": [ "driver_types.h", "vector_types.h", @@ -420,9 +416,6 @@ def _cleanup_dst_files(): cuda_bindings_files = [f for f in cuda_bindings_files if "cufile" not in f] sources_list = [ # private - (["cuda/bindings/_bindings/cydriver.pyx", "cuda/bindings/_bindings/loader.cpp"], None), - # cynvrtc.pyx is now in cuda/bindings/ (pre-generated by cybind), - # picked up by the cuda_bindings_files glob below. (["cuda/bindings/_bindings/cyruntime.pyx"], static_runtime_libraries), (["cuda/bindings/_bindings/cyruntime_ptds.pyx"], static_runtime_libraries), # utils diff --git a/cuda_bindings/cuda/bindings/_bindings/cydriver.pxd.in b/cuda_bindings/cuda/bindings/_bindings/cydriver.pxd.in deleted file mode 100644 index 0b19de67d0a..00000000000 --- a/cuda_bindings/cuda/bindings/_bindings/cydriver.pxd.in +++ /dev/null @@ -1,2461 +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.2.0, generator version 0.3.1.dev1422+gf4812259e.d20260318. Do not modify it directly. -from cuda.bindings.cydriver cimport * - -{{if 'cuGetErrorString' in found_functions}} - -cdef CUresult _cuGetErrorString(CUresult error, const char** pStr) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGetErrorName' in found_functions}} - -cdef CUresult _cuGetErrorName(CUresult error, const char** pStr) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuInit' in found_functions}} - -cdef CUresult _cuInit(unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuDriverGetVersion' in found_functions}} - -cdef CUresult _cuDriverGetVersion(int* driverVersion) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuDeviceGet' in found_functions}} - -cdef CUresult _cuDeviceGet(CUdevice* device, int ordinal) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuDeviceGetCount' in found_functions}} - -cdef CUresult _cuDeviceGetCount(int* count) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuDeviceGetName' in found_functions}} - -cdef CUresult _cuDeviceGetName(char* name, int length, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuDeviceGetUuid_v2' in found_functions}} - -cdef CUresult _cuDeviceGetUuid_v2(CUuuid* uuid, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuDeviceGetLuid' in found_functions}} - -cdef CUresult _cuDeviceGetLuid(char* luid, unsigned int* deviceNodeMask, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuDeviceTotalMem_v2' in found_functions}} - -cdef CUresult _cuDeviceTotalMem_v2(size_t* numbytes, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuDeviceGetTexture1DLinearMaxWidth' in found_functions}} - -cdef CUresult _cuDeviceGetTexture1DLinearMaxWidth(size_t* maxWidthInElements, CUarray_format pformat, unsigned numChannels, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuDeviceGetAttribute' in found_functions}} - -cdef CUresult _cuDeviceGetAttribute(int* pi, CUdevice_attribute attrib, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuDeviceGetHostAtomicCapabilities' in found_functions}} - -cdef CUresult _cuDeviceGetHostAtomicCapabilities(unsigned int* capabilities, const CUatomicOperation* operations, unsigned int count, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuDeviceGetNvSciSyncAttributes' in found_functions}} - -cdef CUresult _cuDeviceGetNvSciSyncAttributes(void* nvSciSyncAttrList, CUdevice dev, int flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuDeviceSetMemPool' in found_functions}} - -cdef CUresult _cuDeviceSetMemPool(CUdevice dev, CUmemoryPool pool) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuDeviceGetMemPool' in found_functions}} - -cdef CUresult _cuDeviceGetMemPool(CUmemoryPool* pool, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuDeviceGetDefaultMemPool' in found_functions}} - -cdef CUresult _cuDeviceGetDefaultMemPool(CUmemoryPool* pool_out, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuDeviceGetExecAffinitySupport' in found_functions}} - -cdef CUresult _cuDeviceGetExecAffinitySupport(int* pi, CUexecAffinityType typename, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuFlushGPUDirectRDMAWrites' in found_functions}} - -cdef CUresult _cuFlushGPUDirectRDMAWrites(CUflushGPUDirectRDMAWritesTarget target, CUflushGPUDirectRDMAWritesScope scope) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuDeviceGetProperties' in found_functions}} - -cdef CUresult _cuDeviceGetProperties(CUdevprop* prop, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuDeviceComputeCapability' in found_functions}} - -cdef CUresult _cuDeviceComputeCapability(int* major, int* minor, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuDevicePrimaryCtxRetain' in found_functions}} - -cdef CUresult _cuDevicePrimaryCtxRetain(CUcontext* pctx, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuDevicePrimaryCtxRelease_v2' in found_functions}} - -cdef CUresult _cuDevicePrimaryCtxRelease_v2(CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuDevicePrimaryCtxSetFlags_v2' in found_functions}} - -cdef CUresult _cuDevicePrimaryCtxSetFlags_v2(CUdevice dev, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuDevicePrimaryCtxGetState' in found_functions}} - -cdef CUresult _cuDevicePrimaryCtxGetState(CUdevice dev, unsigned int* flags, int* active) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuDevicePrimaryCtxReset_v2' in found_functions}} - -cdef CUresult _cuDevicePrimaryCtxReset_v2(CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuCtxCreate_v4' in found_functions}} - -cdef CUresult _cuCtxCreate_v4(CUcontext* pctx, CUctxCreateParams* ctxCreateParams, unsigned int flags, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuCtxDestroy_v2' in found_functions}} - -cdef CUresult _cuCtxDestroy_v2(CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuCtxPushCurrent_v2' in found_functions}} - -cdef CUresult _cuCtxPushCurrent_v2(CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuCtxPopCurrent_v2' in found_functions}} - -cdef CUresult _cuCtxPopCurrent_v2(CUcontext* pctx) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuCtxSetCurrent' in found_functions}} - -cdef CUresult _cuCtxSetCurrent(CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuCtxGetCurrent' in found_functions}} - -cdef CUresult _cuCtxGetCurrent(CUcontext* pctx) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuCtxGetDevice' in found_functions}} - -cdef CUresult _cuCtxGetDevice(CUdevice* device) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuCtxGetDevice_v2' in found_functions}} - -cdef CUresult _cuCtxGetDevice_v2(CUdevice* device, CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuCtxGetFlags' in found_functions}} - -cdef CUresult _cuCtxGetFlags(unsigned int* flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuCtxSetFlags' in found_functions}} - -cdef CUresult _cuCtxSetFlags(unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuCtxGetId' in found_functions}} - -cdef CUresult _cuCtxGetId(CUcontext ctx, unsigned long long* ctxId) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuCtxSynchronize' in found_functions}} - -cdef CUresult _cuCtxSynchronize() except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuCtxSynchronize_v2' in found_functions}} - -cdef CUresult _cuCtxSynchronize_v2(CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuCtxSetLimit' in found_functions}} - -cdef CUresult _cuCtxSetLimit(CUlimit limit, size_t value) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuCtxGetLimit' in found_functions}} - -cdef CUresult _cuCtxGetLimit(size_t* pvalue, CUlimit limit) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuCtxGetCacheConfig' in found_functions}} - -cdef CUresult _cuCtxGetCacheConfig(CUfunc_cache* pconfig) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuCtxSetCacheConfig' in found_functions}} - -cdef CUresult _cuCtxSetCacheConfig(CUfunc_cache config) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuCtxGetApiVersion' in found_functions}} - -cdef CUresult _cuCtxGetApiVersion(CUcontext ctx, unsigned int* version) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuCtxGetStreamPriorityRange' in found_functions}} - -cdef CUresult _cuCtxGetStreamPriorityRange(int* leastPriority, int* greatestPriority) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuCtxResetPersistingL2Cache' in found_functions}} - -cdef CUresult _cuCtxResetPersistingL2Cache() except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuCtxGetExecAffinity' in found_functions}} - -cdef CUresult _cuCtxGetExecAffinity(CUexecAffinityParam* pExecAffinity, CUexecAffinityType typename) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuCtxRecordEvent' in found_functions}} - -cdef CUresult _cuCtxRecordEvent(CUcontext hCtx, CUevent hEvent) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuCtxWaitEvent' in found_functions}} - -cdef CUresult _cuCtxWaitEvent(CUcontext hCtx, CUevent hEvent) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuCtxAttach' in found_functions}} - -cdef CUresult _cuCtxAttach(CUcontext* pctx, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuCtxDetach' in found_functions}} - -cdef CUresult _cuCtxDetach(CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuCtxGetSharedMemConfig' in found_functions}} - -cdef CUresult _cuCtxGetSharedMemConfig(CUsharedconfig* pConfig) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuCtxSetSharedMemConfig' in found_functions}} - -cdef CUresult _cuCtxSetSharedMemConfig(CUsharedconfig config) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuModuleLoad' in found_functions}} - -cdef CUresult _cuModuleLoad(CUmodule* module, const char* fname) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuModuleLoadData' in found_functions}} - -cdef CUresult _cuModuleLoadData(CUmodule* module, const void* image) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuModuleLoadDataEx' in found_functions}} - -cdef CUresult _cuModuleLoadDataEx(CUmodule* module, const void* image, unsigned int numOptions, CUjit_option* options, void** optionValues) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuModuleLoadFatBinary' in found_functions}} - -cdef CUresult _cuModuleLoadFatBinary(CUmodule* module, const void* fatCubin) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuModuleUnload' in found_functions}} - -cdef CUresult _cuModuleUnload(CUmodule hmod) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuModuleGetLoadingMode' in found_functions}} - -cdef CUresult _cuModuleGetLoadingMode(CUmoduleLoadingMode* mode) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuModuleGetFunction' in found_functions}} - -cdef CUresult _cuModuleGetFunction(CUfunction* hfunc, CUmodule hmod, const char* name) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuModuleGetFunctionCount' in found_functions}} - -cdef CUresult _cuModuleGetFunctionCount(unsigned int* count, CUmodule mod) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuModuleEnumerateFunctions' in found_functions}} - -cdef CUresult _cuModuleEnumerateFunctions(CUfunction* functions, unsigned int numFunctions, CUmodule mod) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuModuleGetGlobal_v2' in found_functions}} - -cdef CUresult _cuModuleGetGlobal_v2(CUdeviceptr* dptr, size_t* numbytes, CUmodule hmod, const char* name) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuLinkCreate_v2' in found_functions}} - -cdef CUresult _cuLinkCreate_v2(unsigned int numOptions, CUjit_option* options, void** optionValues, CUlinkState* stateOut) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuLinkAddData_v2' in found_functions}} - -cdef CUresult _cuLinkAddData_v2(CUlinkState state, CUjitInputType typename, void* data, size_t size, const char* name, unsigned int numOptions, CUjit_option* options, void** optionValues) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuLinkAddFile_v2' in found_functions}} - -cdef CUresult _cuLinkAddFile_v2(CUlinkState state, CUjitInputType typename, const char* path, unsigned int numOptions, CUjit_option* options, void** optionValues) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuLinkComplete' in found_functions}} - -cdef CUresult _cuLinkComplete(CUlinkState state, void** cubinOut, size_t* sizeOut) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuLinkDestroy' in found_functions}} - -cdef CUresult _cuLinkDestroy(CUlinkState state) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuModuleGetTexRef' in found_functions}} - -cdef CUresult _cuModuleGetTexRef(CUtexref* pTexRef, CUmodule hmod, const char* name) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuModuleGetSurfRef' in found_functions}} - -cdef CUresult _cuModuleGetSurfRef(CUsurfref* pSurfRef, CUmodule hmod, const char* name) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuLibraryLoadData' in found_functions}} - -cdef CUresult _cuLibraryLoadData(CUlibrary* library, const void* code, CUjit_option* jitOptions, void** jitOptionsValues, unsigned int numJitOptions, CUlibraryOption* libraryOptions, void** libraryOptionValues, unsigned int numLibraryOptions) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuLibraryLoadFromFile' in found_functions}} - -cdef CUresult _cuLibraryLoadFromFile(CUlibrary* library, const char* fileName, CUjit_option* jitOptions, void** jitOptionsValues, unsigned int numJitOptions, CUlibraryOption* libraryOptions, void** libraryOptionValues, unsigned int numLibraryOptions) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuLibraryUnload' in found_functions}} - -cdef CUresult _cuLibraryUnload(CUlibrary library) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuLibraryGetKernel' in found_functions}} - -cdef CUresult _cuLibraryGetKernel(CUkernel* pKernel, CUlibrary library, const char* name) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuLibraryGetKernelCount' in found_functions}} - -cdef CUresult _cuLibraryGetKernelCount(unsigned int* count, CUlibrary lib) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuLibraryEnumerateKernels' in found_functions}} - -cdef CUresult _cuLibraryEnumerateKernels(CUkernel* kernels, unsigned int numKernels, CUlibrary lib) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuLibraryGetModule' in found_functions}} - -cdef CUresult _cuLibraryGetModule(CUmodule* pMod, CUlibrary library) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuKernelGetFunction' in found_functions}} - -cdef CUresult _cuKernelGetFunction(CUfunction* pFunc, CUkernel kernel) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuKernelGetLibrary' in found_functions}} - -cdef CUresult _cuKernelGetLibrary(CUlibrary* pLib, CUkernel kernel) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuLibraryGetGlobal' in found_functions}} - -cdef CUresult _cuLibraryGetGlobal(CUdeviceptr* dptr, size_t* numbytes, CUlibrary library, const char* name) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuLibraryGetManaged' in found_functions}} - -cdef CUresult _cuLibraryGetManaged(CUdeviceptr* dptr, size_t* numbytes, CUlibrary library, const char* name) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuLibraryGetUnifiedFunction' in found_functions}} - -cdef CUresult _cuLibraryGetUnifiedFunction(void** fptr, CUlibrary library, const char* symbol) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuKernelGetAttribute' in found_functions}} - -cdef CUresult _cuKernelGetAttribute(int* pi, CUfunction_attribute attrib, CUkernel kernel, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuKernelSetAttribute' in found_functions}} - -cdef CUresult _cuKernelSetAttribute(CUfunction_attribute attrib, int val, CUkernel kernel, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuKernelSetCacheConfig' in found_functions}} - -cdef CUresult _cuKernelSetCacheConfig(CUkernel kernel, CUfunc_cache config, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuKernelGetName' in found_functions}} - -cdef CUresult _cuKernelGetName(const char** name, CUkernel hfunc) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuKernelGetParamInfo' in found_functions}} - -cdef CUresult _cuKernelGetParamInfo(CUkernel kernel, size_t paramIndex, size_t* paramOffset, size_t* paramSize) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuKernelGetParamCount' in found_functions}} - -cdef CUresult _cuKernelGetParamCount(CUkernel kernel, size_t* paramCount) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemGetInfo_v2' in found_functions}} - -cdef CUresult _cuMemGetInfo_v2(size_t* free, size_t* total) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemAlloc_v2' in found_functions}} - -cdef CUresult _cuMemAlloc_v2(CUdeviceptr* dptr, size_t bytesize) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemAllocPitch_v2' in found_functions}} - -cdef CUresult _cuMemAllocPitch_v2(CUdeviceptr* dptr, size_t* pPitch, size_t WidthInBytes, size_t Height, unsigned int ElementSizeBytes) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemFree_v2' in found_functions}} - -cdef CUresult _cuMemFree_v2(CUdeviceptr dptr) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemGetAddressRange_v2' in found_functions}} - -cdef CUresult _cuMemGetAddressRange_v2(CUdeviceptr* pbase, size_t* psize, CUdeviceptr dptr) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemAllocHost_v2' in found_functions}} - -cdef CUresult _cuMemAllocHost_v2(void** pp, size_t bytesize) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemFreeHost' in found_functions}} - -cdef CUresult _cuMemFreeHost(void* p) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemHostAlloc' in found_functions}} - -cdef CUresult _cuMemHostAlloc(void** pp, size_t bytesize, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemHostGetDevicePointer_v2' in found_functions}} - -cdef CUresult _cuMemHostGetDevicePointer_v2(CUdeviceptr* pdptr, void* p, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemHostGetFlags' in found_functions}} - -cdef CUresult _cuMemHostGetFlags(unsigned int* pFlags, void* p) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemAllocManaged' in found_functions}} - -cdef CUresult _cuMemAllocManaged(CUdeviceptr* dptr, size_t bytesize, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuDeviceRegisterAsyncNotification' in found_functions}} - -cdef CUresult _cuDeviceRegisterAsyncNotification(CUdevice device, CUasyncCallback callbackFunc, void* userData, CUasyncCallbackHandle* callback) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuDeviceUnregisterAsyncNotification' in found_functions}} - -cdef CUresult _cuDeviceUnregisterAsyncNotification(CUdevice device, CUasyncCallbackHandle callback) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuDeviceGetByPCIBusId' in found_functions}} - -cdef CUresult _cuDeviceGetByPCIBusId(CUdevice* dev, const char* pciBusId) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuDeviceGetPCIBusId' in found_functions}} - -cdef CUresult _cuDeviceGetPCIBusId(char* pciBusId, int length, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuIpcGetEventHandle' in found_functions}} - -cdef CUresult _cuIpcGetEventHandle(CUipcEventHandle* pHandle, CUevent event) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuIpcOpenEventHandle' in found_functions}} - -cdef CUresult _cuIpcOpenEventHandle(CUevent* phEvent, CUipcEventHandle handle) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuIpcGetMemHandle' in found_functions}} - -cdef CUresult _cuIpcGetMemHandle(CUipcMemHandle* pHandle, CUdeviceptr dptr) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuIpcOpenMemHandle_v2' in found_functions}} - -cdef CUresult _cuIpcOpenMemHandle_v2(CUdeviceptr* pdptr, CUipcMemHandle handle, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuIpcCloseMemHandle' in found_functions}} - -cdef CUresult _cuIpcCloseMemHandle(CUdeviceptr dptr) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemHostRegister_v2' in found_functions}} - -cdef CUresult _cuMemHostRegister_v2(void* p, size_t bytesize, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemHostUnregister' in found_functions}} - -cdef CUresult _cuMemHostUnregister(void* p) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemcpy' in found_functions}} - -cdef CUresult _cuMemcpy(CUdeviceptr dst, CUdeviceptr src, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemcpyPeer' in found_functions}} - -cdef CUresult _cuMemcpyPeer(CUdeviceptr dstDevice, CUcontext dstContext, CUdeviceptr srcDevice, CUcontext srcContext, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemcpyHtoD_v2' in found_functions}} - -cdef CUresult _cuMemcpyHtoD_v2(CUdeviceptr dstDevice, const void* srcHost, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemcpyDtoH_v2' in found_functions}} - -cdef CUresult _cuMemcpyDtoH_v2(void* dstHost, CUdeviceptr srcDevice, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemcpyDtoD_v2' in found_functions}} - -cdef CUresult _cuMemcpyDtoD_v2(CUdeviceptr dstDevice, CUdeviceptr srcDevice, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemcpyDtoA_v2' in found_functions}} - -cdef CUresult _cuMemcpyDtoA_v2(CUarray dstArray, size_t dstOffset, CUdeviceptr srcDevice, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemcpyAtoD_v2' in found_functions}} - -cdef CUresult _cuMemcpyAtoD_v2(CUdeviceptr dstDevice, CUarray srcArray, size_t srcOffset, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemcpyHtoA_v2' in found_functions}} - -cdef CUresult _cuMemcpyHtoA_v2(CUarray dstArray, size_t dstOffset, const void* srcHost, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemcpyAtoH_v2' in found_functions}} - -cdef CUresult _cuMemcpyAtoH_v2(void* dstHost, CUarray srcArray, size_t srcOffset, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemcpyAtoA_v2' in found_functions}} - -cdef CUresult _cuMemcpyAtoA_v2(CUarray dstArray, size_t dstOffset, CUarray srcArray, size_t srcOffset, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemcpy2D_v2' in found_functions}} - -cdef CUresult _cuMemcpy2D_v2(const CUDA_MEMCPY2D* pCopy) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemcpy2DUnaligned_v2' in found_functions}} - -cdef CUresult _cuMemcpy2DUnaligned_v2(const CUDA_MEMCPY2D* pCopy) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemcpy3D_v2' in found_functions}} - -cdef CUresult _cuMemcpy3D_v2(const CUDA_MEMCPY3D* pCopy) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemcpy3DPeer' in found_functions}} - -cdef CUresult _cuMemcpy3DPeer(const CUDA_MEMCPY3D_PEER* pCopy) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemcpyAsync' in found_functions}} - -cdef CUresult _cuMemcpyAsync(CUdeviceptr dst, CUdeviceptr src, size_t ByteCount, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemcpyPeerAsync' in found_functions}} - -cdef CUresult _cuMemcpyPeerAsync(CUdeviceptr dstDevice, CUcontext dstContext, CUdeviceptr srcDevice, CUcontext srcContext, size_t ByteCount, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemcpyHtoDAsync_v2' in found_functions}} - -cdef CUresult _cuMemcpyHtoDAsync_v2(CUdeviceptr dstDevice, const void* srcHost, size_t ByteCount, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemcpyDtoHAsync_v2' in found_functions}} - -cdef CUresult _cuMemcpyDtoHAsync_v2(void* dstHost, CUdeviceptr srcDevice, size_t ByteCount, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemcpyDtoDAsync_v2' in found_functions}} - -cdef CUresult _cuMemcpyDtoDAsync_v2(CUdeviceptr dstDevice, CUdeviceptr srcDevice, size_t ByteCount, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemcpyHtoAAsync_v2' in found_functions}} - -cdef CUresult _cuMemcpyHtoAAsync_v2(CUarray dstArray, size_t dstOffset, const void* srcHost, size_t ByteCount, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemcpyAtoHAsync_v2' in found_functions}} - -cdef CUresult _cuMemcpyAtoHAsync_v2(void* dstHost, CUarray srcArray, size_t srcOffset, size_t ByteCount, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemcpy2DAsync_v2' in found_functions}} - -cdef CUresult _cuMemcpy2DAsync_v2(const CUDA_MEMCPY2D* pCopy, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemcpy3DAsync_v2' in found_functions}} - -cdef CUresult _cuMemcpy3DAsync_v2(const CUDA_MEMCPY3D* pCopy, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemcpy3DPeerAsync' in found_functions}} - -cdef CUresult _cuMemcpy3DPeerAsync(const CUDA_MEMCPY3D_PEER* pCopy, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemcpyBatchAsync_v2' in found_functions}} - -cdef CUresult _cuMemcpyBatchAsync_v2(CUdeviceptr* dsts, CUdeviceptr* srcs, size_t* sizes, size_t count, CUmemcpyAttributes* attrs, size_t* attrsIdxs, size_t numAttrs, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemcpy3DBatchAsync_v2' in found_functions}} - -cdef CUresult _cuMemcpy3DBatchAsync_v2(size_t numOps, CUDA_MEMCPY3D_BATCH_OP* opList, unsigned long long flags, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemcpyWithAttributesAsync' in found_functions}} - -cdef CUresult _cuMemcpyWithAttributesAsync(CUdeviceptr dst, CUdeviceptr src, size_t size, CUmemcpyAttributes* attr, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemcpy3DWithAttributesAsync' in found_functions}} - -cdef CUresult _cuMemcpy3DWithAttributesAsync(CUDA_MEMCPY3D_BATCH_OP* op, unsigned long long flags, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemsetD8_v2' in found_functions}} - -cdef CUresult _cuMemsetD8_v2(CUdeviceptr dstDevice, unsigned char uc, size_t N) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemsetD16_v2' in found_functions}} - -cdef CUresult _cuMemsetD16_v2(CUdeviceptr dstDevice, unsigned short us, size_t N) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemsetD32_v2' in found_functions}} - -cdef CUresult _cuMemsetD32_v2(CUdeviceptr dstDevice, unsigned int ui, size_t N) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemsetD2D8_v2' in found_functions}} - -cdef CUresult _cuMemsetD2D8_v2(CUdeviceptr dstDevice, size_t dstPitch, unsigned char uc, size_t Width, size_t Height) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemsetD2D16_v2' in found_functions}} - -cdef CUresult _cuMemsetD2D16_v2(CUdeviceptr dstDevice, size_t dstPitch, unsigned short us, size_t Width, size_t Height) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemsetD2D32_v2' in found_functions}} - -cdef CUresult _cuMemsetD2D32_v2(CUdeviceptr dstDevice, size_t dstPitch, unsigned int ui, size_t Width, size_t Height) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemsetD8Async' in found_functions}} - -cdef CUresult _cuMemsetD8Async(CUdeviceptr dstDevice, unsigned char uc, size_t N, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemsetD16Async' in found_functions}} - -cdef CUresult _cuMemsetD16Async(CUdeviceptr dstDevice, unsigned short us, size_t N, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemsetD32Async' in found_functions}} - -cdef CUresult _cuMemsetD32Async(CUdeviceptr dstDevice, unsigned int ui, size_t N, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemsetD2D8Async' in found_functions}} - -cdef CUresult _cuMemsetD2D8Async(CUdeviceptr dstDevice, size_t dstPitch, unsigned char uc, size_t Width, size_t Height, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemsetD2D16Async' in found_functions}} - -cdef CUresult _cuMemsetD2D16Async(CUdeviceptr dstDevice, size_t dstPitch, unsigned short us, size_t Width, size_t Height, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemsetD2D32Async' in found_functions}} - -cdef CUresult _cuMemsetD2D32Async(CUdeviceptr dstDevice, size_t dstPitch, unsigned int ui, size_t Width, size_t Height, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuArrayCreate_v2' in found_functions}} - -cdef CUresult _cuArrayCreate_v2(CUarray* pHandle, const CUDA_ARRAY_DESCRIPTOR* pAllocateArray) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuArrayGetDescriptor_v2' in found_functions}} - -cdef CUresult _cuArrayGetDescriptor_v2(CUDA_ARRAY_DESCRIPTOR* pArrayDescriptor, CUarray hArray) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuArrayGetSparseProperties' in found_functions}} - -cdef CUresult _cuArrayGetSparseProperties(CUDA_ARRAY_SPARSE_PROPERTIES* sparseProperties, CUarray array) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMipmappedArrayGetSparseProperties' in found_functions}} - -cdef CUresult _cuMipmappedArrayGetSparseProperties(CUDA_ARRAY_SPARSE_PROPERTIES* sparseProperties, CUmipmappedArray mipmap) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuArrayGetMemoryRequirements' in found_functions}} - -cdef CUresult _cuArrayGetMemoryRequirements(CUDA_ARRAY_MEMORY_REQUIREMENTS* memoryRequirements, CUarray array, CUdevice device) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMipmappedArrayGetMemoryRequirements' in found_functions}} - -cdef CUresult _cuMipmappedArrayGetMemoryRequirements(CUDA_ARRAY_MEMORY_REQUIREMENTS* memoryRequirements, CUmipmappedArray mipmap, CUdevice device) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuArrayGetPlane' in found_functions}} - -cdef CUresult _cuArrayGetPlane(CUarray* pPlaneArray, CUarray hArray, unsigned int planeIdx) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuArrayDestroy' in found_functions}} - -cdef CUresult _cuArrayDestroy(CUarray hArray) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuArray3DCreate_v2' in found_functions}} - -cdef CUresult _cuArray3DCreate_v2(CUarray* pHandle, const CUDA_ARRAY3D_DESCRIPTOR* pAllocateArray) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuArray3DGetDescriptor_v2' in found_functions}} - -cdef CUresult _cuArray3DGetDescriptor_v2(CUDA_ARRAY3D_DESCRIPTOR* pArrayDescriptor, CUarray hArray) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMipmappedArrayCreate' in found_functions}} - -cdef CUresult _cuMipmappedArrayCreate(CUmipmappedArray* pHandle, const CUDA_ARRAY3D_DESCRIPTOR* pMipmappedArrayDesc, unsigned int numMipmapLevels) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMipmappedArrayGetLevel' in found_functions}} - -cdef CUresult _cuMipmappedArrayGetLevel(CUarray* pLevelArray, CUmipmappedArray hMipmappedArray, unsigned int level) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMipmappedArrayDestroy' in found_functions}} - -cdef CUresult _cuMipmappedArrayDestroy(CUmipmappedArray hMipmappedArray) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemGetHandleForAddressRange' in found_functions}} - -cdef CUresult _cuMemGetHandleForAddressRange(void* handle, CUdeviceptr dptr, size_t size, CUmemRangeHandleType handleType, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemBatchDecompressAsync' in found_functions}} - -cdef CUresult _cuMemBatchDecompressAsync(CUmemDecompressParams* paramsArray, size_t count, unsigned int flags, size_t* errorIndex, CUstream stream) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemAddressReserve' in found_functions}} - -cdef CUresult _cuMemAddressReserve(CUdeviceptr* ptr, size_t size, size_t alignment, CUdeviceptr addr, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemAddressFree' in found_functions}} - -cdef CUresult _cuMemAddressFree(CUdeviceptr ptr, size_t size) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemCreate' in found_functions}} - -cdef CUresult _cuMemCreate(CUmemGenericAllocationHandle* handle, size_t size, const CUmemAllocationProp* prop, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemRelease' in found_functions}} - -cdef CUresult _cuMemRelease(CUmemGenericAllocationHandle handle) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemMap' in found_functions}} - -cdef CUresult _cuMemMap(CUdeviceptr ptr, size_t size, size_t offset, CUmemGenericAllocationHandle handle, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemMapArrayAsync' in found_functions}} - -cdef CUresult _cuMemMapArrayAsync(CUarrayMapInfo* mapInfoList, unsigned int count, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemUnmap' in found_functions}} - -cdef CUresult _cuMemUnmap(CUdeviceptr ptr, size_t size) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemSetAccess' in found_functions}} - -cdef CUresult _cuMemSetAccess(CUdeviceptr ptr, size_t size, const CUmemAccessDesc* desc, size_t count) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemGetAccess' in found_functions}} - -cdef CUresult _cuMemGetAccess(unsigned long long* flags, const CUmemLocation* location, CUdeviceptr ptr) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemExportToShareableHandle' in found_functions}} - -cdef CUresult _cuMemExportToShareableHandle(void* shareableHandle, CUmemGenericAllocationHandle handle, CUmemAllocationHandleType handleType, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemImportFromShareableHandle' in found_functions}} - -cdef CUresult _cuMemImportFromShareableHandle(CUmemGenericAllocationHandle* handle, void* osHandle, CUmemAllocationHandleType shHandleType) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemGetAllocationGranularity' in found_functions}} - -cdef CUresult _cuMemGetAllocationGranularity(size_t* granularity, const CUmemAllocationProp* prop, CUmemAllocationGranularity_flags option) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemGetAllocationPropertiesFromHandle' in found_functions}} - -cdef CUresult _cuMemGetAllocationPropertiesFromHandle(CUmemAllocationProp* prop, CUmemGenericAllocationHandle handle) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemRetainAllocationHandle' in found_functions}} - -cdef CUresult _cuMemRetainAllocationHandle(CUmemGenericAllocationHandle* handle, void* addr) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemFreeAsync' in found_functions}} - -cdef CUresult _cuMemFreeAsync(CUdeviceptr dptr, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemAllocAsync' in found_functions}} - -cdef CUresult _cuMemAllocAsync(CUdeviceptr* dptr, size_t bytesize, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemPoolTrimTo' in found_functions}} - -cdef CUresult _cuMemPoolTrimTo(CUmemoryPool pool, size_t minBytesToKeep) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemPoolSetAttribute' in found_functions}} - -cdef CUresult _cuMemPoolSetAttribute(CUmemoryPool pool, CUmemPool_attribute attr, void* value) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemPoolGetAttribute' in found_functions}} - -cdef CUresult _cuMemPoolGetAttribute(CUmemoryPool pool, CUmemPool_attribute attr, void* value) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemPoolSetAccess' in found_functions}} - -cdef CUresult _cuMemPoolSetAccess(CUmemoryPool pool, const CUmemAccessDesc* map, size_t count) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemPoolGetAccess' in found_functions}} - -cdef CUresult _cuMemPoolGetAccess(CUmemAccess_flags* flags, CUmemoryPool memPool, CUmemLocation* location) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemPoolCreate' in found_functions}} - -cdef CUresult _cuMemPoolCreate(CUmemoryPool* pool, const CUmemPoolProps* poolProps) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemPoolDestroy' in found_functions}} - -cdef CUresult _cuMemPoolDestroy(CUmemoryPool pool) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemGetDefaultMemPool' in found_functions}} - -cdef CUresult _cuMemGetDefaultMemPool(CUmemoryPool* pool_out, CUmemLocation* location, CUmemAllocationType typename) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemGetMemPool' in found_functions}} - -cdef CUresult _cuMemGetMemPool(CUmemoryPool* pool, CUmemLocation* location, CUmemAllocationType typename) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemSetMemPool' in found_functions}} - -cdef CUresult _cuMemSetMemPool(CUmemLocation* location, CUmemAllocationType typename, CUmemoryPool pool) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemAllocFromPoolAsync' in found_functions}} - -cdef CUresult _cuMemAllocFromPoolAsync(CUdeviceptr* dptr, size_t bytesize, CUmemoryPool pool, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemPoolExportToShareableHandle' in found_functions}} - -cdef CUresult _cuMemPoolExportToShareableHandle(void* handle_out, CUmemoryPool pool, CUmemAllocationHandleType handleType, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemPoolImportFromShareableHandle' in found_functions}} - -cdef CUresult _cuMemPoolImportFromShareableHandle(CUmemoryPool* pool_out, void* handle, CUmemAllocationHandleType handleType, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemPoolExportPointer' in found_functions}} - -cdef CUresult _cuMemPoolExportPointer(CUmemPoolPtrExportData* shareData_out, CUdeviceptr ptr) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemPoolImportPointer' in found_functions}} - -cdef CUresult _cuMemPoolImportPointer(CUdeviceptr* ptr_out, CUmemoryPool pool, CUmemPoolPtrExportData* shareData) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMulticastCreate' in found_functions}} - -cdef CUresult _cuMulticastCreate(CUmemGenericAllocationHandle* mcHandle, const CUmulticastObjectProp* prop) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMulticastAddDevice' in found_functions}} - -cdef CUresult _cuMulticastAddDevice(CUmemGenericAllocationHandle mcHandle, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMulticastBindMem' in found_functions}} - -cdef CUresult _cuMulticastBindMem(CUmemGenericAllocationHandle mcHandle, size_t mcOffset, CUmemGenericAllocationHandle memHandle, size_t memOffset, size_t size, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMulticastBindMem_v2' in found_functions}} - -cdef CUresult _cuMulticastBindMem_v2(CUmemGenericAllocationHandle mcHandle, CUdevice dev, size_t mcOffset, CUmemGenericAllocationHandle memHandle, size_t memOffset, size_t size, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMulticastBindAddr' in found_functions}} - -cdef CUresult _cuMulticastBindAddr(CUmemGenericAllocationHandle mcHandle, size_t mcOffset, CUdeviceptr memptr, size_t size, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMulticastBindAddr_v2' in found_functions}} - -cdef CUresult _cuMulticastBindAddr_v2(CUmemGenericAllocationHandle mcHandle, CUdevice dev, size_t mcOffset, CUdeviceptr memptr, size_t size, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMulticastUnbind' in found_functions}} - -cdef CUresult _cuMulticastUnbind(CUmemGenericAllocationHandle mcHandle, CUdevice dev, size_t mcOffset, size_t size) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMulticastGetGranularity' in found_functions}} - -cdef CUresult _cuMulticastGetGranularity(size_t* granularity, const CUmulticastObjectProp* prop, CUmulticastGranularity_flags option) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuPointerGetAttribute' in found_functions}} - -cdef CUresult _cuPointerGetAttribute(void* data, CUpointer_attribute attribute, CUdeviceptr ptr) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemPrefetchAsync_v2' in found_functions}} - -cdef CUresult _cuMemPrefetchAsync_v2(CUdeviceptr devPtr, size_t count, CUmemLocation location, unsigned int flags, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemAdvise_v2' in found_functions}} - -cdef CUresult _cuMemAdvise_v2(CUdeviceptr devPtr, size_t count, CUmem_advise advice, CUmemLocation location) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemPrefetchBatchAsync' in found_functions}} - -cdef CUresult _cuMemPrefetchBatchAsync(CUdeviceptr* dptrs, size_t* sizes, size_t count, CUmemLocation* prefetchLocs, size_t* prefetchLocIdxs, size_t numPrefetchLocs, unsigned long long flags, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemDiscardBatchAsync' in found_functions}} - -cdef CUresult _cuMemDiscardBatchAsync(CUdeviceptr* dptrs, size_t* sizes, size_t count, unsigned long long flags, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemDiscardAndPrefetchBatchAsync' in found_functions}} - -cdef CUresult _cuMemDiscardAndPrefetchBatchAsync(CUdeviceptr* dptrs, size_t* sizes, size_t count, CUmemLocation* prefetchLocs, size_t* prefetchLocIdxs, size_t numPrefetchLocs, unsigned long long flags, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemRangeGetAttribute' in found_functions}} - -cdef CUresult _cuMemRangeGetAttribute(void* data, size_t dataSize, CUmem_range_attribute attribute, CUdeviceptr devPtr, size_t count) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemRangeGetAttributes' in found_functions}} - -cdef CUresult _cuMemRangeGetAttributes(void** data, size_t* dataSizes, CUmem_range_attribute* attributes, size_t numAttributes, CUdeviceptr devPtr, size_t count) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuPointerSetAttribute' in found_functions}} - -cdef CUresult _cuPointerSetAttribute(const void* value, CUpointer_attribute attribute, CUdeviceptr ptr) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuPointerGetAttributes' in found_functions}} - -cdef CUresult _cuPointerGetAttributes(unsigned int numAttributes, CUpointer_attribute* attributes, void** data, CUdeviceptr ptr) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuStreamCreate' in found_functions}} - -cdef CUresult _cuStreamCreate(CUstream* phStream, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuStreamCreateWithPriority' in found_functions}} - -cdef CUresult _cuStreamCreateWithPriority(CUstream* phStream, unsigned int flags, int priority) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuStreamBeginCaptureToCig' in found_functions}} - -cdef CUresult _cuStreamBeginCaptureToCig(CUstream hStream, CUstreamCigCaptureParams* streamCigCaptureParams) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuStreamEndCaptureToCig' in found_functions}} - -cdef CUresult _cuStreamEndCaptureToCig(CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuStreamGetPriority' in found_functions}} - -cdef CUresult _cuStreamGetPriority(CUstream hStream, int* priority) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuStreamGetDevice' in found_functions}} - -cdef CUresult _cuStreamGetDevice(CUstream hStream, CUdevice* device) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuStreamGetFlags' in found_functions}} - -cdef CUresult _cuStreamGetFlags(CUstream hStream, unsigned int* flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuStreamGetId' in found_functions}} - -cdef CUresult _cuStreamGetId(CUstream hStream, unsigned long long* streamId) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuStreamGetCtx' in found_functions}} - -cdef CUresult _cuStreamGetCtx(CUstream hStream, CUcontext* pctx) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuStreamGetCtx_v2' in found_functions}} - -cdef CUresult _cuStreamGetCtx_v2(CUstream hStream, CUcontext* pCtx, CUgreenCtx* pGreenCtx) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuStreamWaitEvent' in found_functions}} - -cdef CUresult _cuStreamWaitEvent(CUstream hStream, CUevent hEvent, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuStreamAddCallback' in found_functions}} - -cdef CUresult _cuStreamAddCallback(CUstream hStream, CUstreamCallback callback, void* userData, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuStreamBeginCapture_v2' in found_functions}} - -cdef CUresult _cuStreamBeginCapture_v2(CUstream hStream, CUstreamCaptureMode mode) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuStreamBeginCaptureToGraph' in found_functions}} - -cdef CUresult _cuStreamBeginCaptureToGraph(CUstream hStream, CUgraph hGraph, const CUgraphNode* dependencies, const CUgraphEdgeData* dependencyData, size_t numDependencies, CUstreamCaptureMode mode) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuThreadExchangeStreamCaptureMode' in found_functions}} - -cdef CUresult _cuThreadExchangeStreamCaptureMode(CUstreamCaptureMode* mode) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuStreamEndCapture' in found_functions}} - -cdef CUresult _cuStreamEndCapture(CUstream hStream, CUgraph* phGraph) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuStreamIsCapturing' in found_functions}} - -cdef CUresult _cuStreamIsCapturing(CUstream hStream, CUstreamCaptureStatus* captureStatus) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuStreamGetCaptureInfo_v3' in found_functions}} - -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 -{{endif}} - -{{if 'cuStreamUpdateCaptureDependencies_v2' in found_functions}} - -cdef CUresult _cuStreamUpdateCaptureDependencies_v2(CUstream hStream, CUgraphNode* dependencies, const CUgraphEdgeData* dependencyData, size_t numDependencies, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuStreamAttachMemAsync' in found_functions}} - -cdef CUresult _cuStreamAttachMemAsync(CUstream hStream, CUdeviceptr dptr, size_t length, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuStreamQuery' in found_functions}} - -cdef CUresult _cuStreamQuery(CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuStreamSynchronize' in found_functions}} - -cdef CUresult _cuStreamSynchronize(CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuStreamDestroy_v2' in found_functions}} - -cdef CUresult _cuStreamDestroy_v2(CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuStreamCopyAttributes' in found_functions}} - -cdef CUresult _cuStreamCopyAttributes(CUstream dst, CUstream src) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuStreamGetAttribute' in found_functions}} - -cdef CUresult _cuStreamGetAttribute(CUstream hStream, CUstreamAttrID attr, CUstreamAttrValue* value_out) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuStreamSetAttribute' in found_functions}} - -cdef CUresult _cuStreamSetAttribute(CUstream hStream, CUstreamAttrID attr, const CUstreamAttrValue* value) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuEventCreate' in found_functions}} - -cdef CUresult _cuEventCreate(CUevent* phEvent, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuEventRecord' in found_functions}} - -cdef CUresult _cuEventRecord(CUevent hEvent, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuEventRecordWithFlags' in found_functions}} - -cdef CUresult _cuEventRecordWithFlags(CUevent hEvent, CUstream hStream, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuEventQuery' in found_functions}} - -cdef CUresult _cuEventQuery(CUevent hEvent) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuEventSynchronize' in found_functions}} - -cdef CUresult _cuEventSynchronize(CUevent hEvent) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuEventDestroy_v2' in found_functions}} - -cdef CUresult _cuEventDestroy_v2(CUevent hEvent) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuEventElapsedTime_v2' in found_functions}} - -cdef CUresult _cuEventElapsedTime_v2(float* pMilliseconds, CUevent hStart, CUevent hEnd) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuImportExternalMemory' in found_functions}} - -cdef CUresult _cuImportExternalMemory(CUexternalMemory* extMem_out, const CUDA_EXTERNAL_MEMORY_HANDLE_DESC* memHandleDesc) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuExternalMemoryGetMappedBuffer' in found_functions}} - -cdef CUresult _cuExternalMemoryGetMappedBuffer(CUdeviceptr* devPtr, CUexternalMemory extMem, const CUDA_EXTERNAL_MEMORY_BUFFER_DESC* bufferDesc) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuExternalMemoryGetMappedMipmappedArray' in found_functions}} - -cdef CUresult _cuExternalMemoryGetMappedMipmappedArray(CUmipmappedArray* mipmap, CUexternalMemory extMem, const CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC* mipmapDesc) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuDestroyExternalMemory' in found_functions}} - -cdef CUresult _cuDestroyExternalMemory(CUexternalMemory extMem) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuImportExternalSemaphore' in found_functions}} - -cdef CUresult _cuImportExternalSemaphore(CUexternalSemaphore* extSem_out, const CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC* semHandleDesc) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuSignalExternalSemaphoresAsync' in found_functions}} - -cdef CUresult _cuSignalExternalSemaphoresAsync(const CUexternalSemaphore* extSemArray, const CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS* paramsArray, unsigned int numExtSems, CUstream stream) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuWaitExternalSemaphoresAsync' in found_functions}} - -cdef CUresult _cuWaitExternalSemaphoresAsync(const CUexternalSemaphore* extSemArray, const CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS* paramsArray, unsigned int numExtSems, CUstream stream) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuDestroyExternalSemaphore' in found_functions}} - -cdef CUresult _cuDestroyExternalSemaphore(CUexternalSemaphore extSem) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuStreamWaitValue32_v2' in found_functions}} - -cdef CUresult _cuStreamWaitValue32_v2(CUstream stream, CUdeviceptr addr, cuuint32_t value, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuStreamWaitValue64_v2' in found_functions}} - -cdef CUresult _cuStreamWaitValue64_v2(CUstream stream, CUdeviceptr addr, cuuint64_t value, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuStreamWriteValue32_v2' in found_functions}} - -cdef CUresult _cuStreamWriteValue32_v2(CUstream stream, CUdeviceptr addr, cuuint32_t value, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuStreamWriteValue64_v2' in found_functions}} - -cdef CUresult _cuStreamWriteValue64_v2(CUstream stream, CUdeviceptr addr, cuuint64_t value, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuStreamBatchMemOp_v2' in found_functions}} - -cdef CUresult _cuStreamBatchMemOp_v2(CUstream stream, unsigned int count, CUstreamBatchMemOpParams* paramArray, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuFuncGetAttribute' in found_functions}} - -cdef CUresult _cuFuncGetAttribute(int* pi, CUfunction_attribute attrib, CUfunction hfunc) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuFuncSetAttribute' in found_functions}} - -cdef CUresult _cuFuncSetAttribute(CUfunction hfunc, CUfunction_attribute attrib, int value) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuFuncSetCacheConfig' in found_functions}} - -cdef CUresult _cuFuncSetCacheConfig(CUfunction hfunc, CUfunc_cache config) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuFuncGetModule' in found_functions}} - -cdef CUresult _cuFuncGetModule(CUmodule* hmod, CUfunction hfunc) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuFuncGetName' in found_functions}} - -cdef CUresult _cuFuncGetName(const char** name, CUfunction hfunc) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuFuncGetParamInfo' in found_functions}} - -cdef CUresult _cuFuncGetParamInfo(CUfunction func, size_t paramIndex, size_t* paramOffset, size_t* paramSize) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuFuncGetParamCount' in found_functions}} - -cdef CUresult _cuFuncGetParamCount(CUfunction func, size_t* paramCount) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuFuncIsLoaded' in found_functions}} - -cdef CUresult _cuFuncIsLoaded(CUfunctionLoadingState* state, CUfunction function) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuFuncLoad' in found_functions}} - -cdef CUresult _cuFuncLoad(CUfunction function) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuLaunchKernel' in found_functions}} - -cdef CUresult _cuLaunchKernel(CUfunction f, unsigned int gridDimX, unsigned int gridDimY, unsigned int gridDimZ, unsigned int blockDimX, unsigned int blockDimY, unsigned int blockDimZ, unsigned int sharedMemBytes, CUstream hStream, void** kernelParams, void** extra) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuLaunchKernelEx' in found_functions}} - -cdef CUresult _cuLaunchKernelEx(const CUlaunchConfig* config, CUfunction f, void** kernelParams, void** extra) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuLaunchCooperativeKernel' in found_functions}} - -cdef CUresult _cuLaunchCooperativeKernel(CUfunction f, unsigned int gridDimX, unsigned int gridDimY, unsigned int gridDimZ, unsigned int blockDimX, unsigned int blockDimY, unsigned int blockDimZ, unsigned int sharedMemBytes, CUstream hStream, void** kernelParams) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuLaunchCooperativeKernelMultiDevice' in found_functions}} - -cdef CUresult _cuLaunchCooperativeKernelMultiDevice(CUDA_LAUNCH_PARAMS* launchParamsList, unsigned int numDevices, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuLaunchHostFunc' in found_functions}} - -cdef CUresult _cuLaunchHostFunc(CUstream hStream, CUhostFn fn, void* userData) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuLaunchHostFunc_v2' in found_functions}} - -cdef CUresult _cuLaunchHostFunc_v2(CUstream hStream, CUhostFn fn, void* userData, unsigned int syncMode) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuFuncSetBlockShape' in found_functions}} - -cdef CUresult _cuFuncSetBlockShape(CUfunction hfunc, int x, int y, int z) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuFuncSetSharedSize' in found_functions}} - -cdef CUresult _cuFuncSetSharedSize(CUfunction hfunc, unsigned int numbytes) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuParamSetSize' in found_functions}} - -cdef CUresult _cuParamSetSize(CUfunction hfunc, unsigned int numbytes) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuParamSeti' in found_functions}} - -cdef CUresult _cuParamSeti(CUfunction hfunc, int offset, unsigned int value) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuParamSetf' in found_functions}} - -cdef CUresult _cuParamSetf(CUfunction hfunc, int offset, float value) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuParamSetv' in found_functions}} - -cdef CUresult _cuParamSetv(CUfunction hfunc, int offset, void* ptr, unsigned int numbytes) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuLaunch' in found_functions}} - -cdef CUresult _cuLaunch(CUfunction f) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuLaunchGrid' in found_functions}} - -cdef CUresult _cuLaunchGrid(CUfunction f, int grid_width, int grid_height) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuLaunchGridAsync' in found_functions}} - -cdef CUresult _cuLaunchGridAsync(CUfunction f, int grid_width, int grid_height, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuParamSetTexRef' in found_functions}} - -cdef CUresult _cuParamSetTexRef(CUfunction hfunc, int texunit, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuFuncSetSharedMemConfig' in found_functions}} - -cdef CUresult _cuFuncSetSharedMemConfig(CUfunction hfunc, CUsharedconfig config) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphCreate' in found_functions}} - -cdef CUresult _cuGraphCreate(CUgraph* phGraph, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphAddKernelNode_v2' in found_functions}} - -cdef CUresult _cuGraphAddKernelNode_v2(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, const CUDA_KERNEL_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphKernelNodeGetParams_v2' in found_functions}} - -cdef CUresult _cuGraphKernelNodeGetParams_v2(CUgraphNode hNode, CUDA_KERNEL_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphKernelNodeSetParams_v2' in found_functions}} - -cdef CUresult _cuGraphKernelNodeSetParams_v2(CUgraphNode hNode, const CUDA_KERNEL_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphAddMemcpyNode' in found_functions}} - -cdef CUresult _cuGraphAddMemcpyNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, const CUDA_MEMCPY3D* copyParams, CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphMemcpyNodeGetParams' in found_functions}} - -cdef CUresult _cuGraphMemcpyNodeGetParams(CUgraphNode hNode, CUDA_MEMCPY3D* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphMemcpyNodeSetParams' in found_functions}} - -cdef CUresult _cuGraphMemcpyNodeSetParams(CUgraphNode hNode, const CUDA_MEMCPY3D* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphAddMemsetNode' in found_functions}} - -cdef CUresult _cuGraphAddMemsetNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, const CUDA_MEMSET_NODE_PARAMS* memsetParams, CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphMemsetNodeGetParams' in found_functions}} - -cdef CUresult _cuGraphMemsetNodeGetParams(CUgraphNode hNode, CUDA_MEMSET_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphMemsetNodeSetParams' in found_functions}} - -cdef CUresult _cuGraphMemsetNodeSetParams(CUgraphNode hNode, const CUDA_MEMSET_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphAddHostNode' in found_functions}} - -cdef CUresult _cuGraphAddHostNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, const CUDA_HOST_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphHostNodeGetParams' in found_functions}} - -cdef CUresult _cuGraphHostNodeGetParams(CUgraphNode hNode, CUDA_HOST_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphHostNodeSetParams' in found_functions}} - -cdef CUresult _cuGraphHostNodeSetParams(CUgraphNode hNode, const CUDA_HOST_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphAddChildGraphNode' in found_functions}} - -cdef CUresult _cuGraphAddChildGraphNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, CUgraph childGraph) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphChildGraphNodeGetGraph' in found_functions}} - -cdef CUresult _cuGraphChildGraphNodeGetGraph(CUgraphNode hNode, CUgraph* phGraph) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphAddEmptyNode' in found_functions}} - -cdef CUresult _cuGraphAddEmptyNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphAddEventRecordNode' in found_functions}} - -cdef CUresult _cuGraphAddEventRecordNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, CUevent event) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphEventRecordNodeGetEvent' in found_functions}} - -cdef CUresult _cuGraphEventRecordNodeGetEvent(CUgraphNode hNode, CUevent* event_out) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphEventRecordNodeSetEvent' in found_functions}} - -cdef CUresult _cuGraphEventRecordNodeSetEvent(CUgraphNode hNode, CUevent event) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphAddEventWaitNode' in found_functions}} - -cdef CUresult _cuGraphAddEventWaitNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, CUevent event) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphEventWaitNodeGetEvent' in found_functions}} - -cdef CUresult _cuGraphEventWaitNodeGetEvent(CUgraphNode hNode, CUevent* event_out) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphEventWaitNodeSetEvent' in found_functions}} - -cdef CUresult _cuGraphEventWaitNodeSetEvent(CUgraphNode hNode, CUevent event) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphAddExternalSemaphoresSignalNode' in found_functions}} - -cdef CUresult _cuGraphAddExternalSemaphoresSignalNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, const CUDA_EXT_SEM_SIGNAL_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphExternalSemaphoresSignalNodeGetParams' in found_functions}} - -cdef CUresult _cuGraphExternalSemaphoresSignalNodeGetParams(CUgraphNode hNode, CUDA_EXT_SEM_SIGNAL_NODE_PARAMS* params_out) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphExternalSemaphoresSignalNodeSetParams' in found_functions}} - -cdef CUresult _cuGraphExternalSemaphoresSignalNodeSetParams(CUgraphNode hNode, const CUDA_EXT_SEM_SIGNAL_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphAddExternalSemaphoresWaitNode' in found_functions}} - -cdef CUresult _cuGraphAddExternalSemaphoresWaitNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, const CUDA_EXT_SEM_WAIT_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphExternalSemaphoresWaitNodeGetParams' in found_functions}} - -cdef CUresult _cuGraphExternalSemaphoresWaitNodeGetParams(CUgraphNode hNode, CUDA_EXT_SEM_WAIT_NODE_PARAMS* params_out) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphExternalSemaphoresWaitNodeSetParams' in found_functions}} - -cdef CUresult _cuGraphExternalSemaphoresWaitNodeSetParams(CUgraphNode hNode, const CUDA_EXT_SEM_WAIT_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphAddBatchMemOpNode' in found_functions}} - -cdef CUresult _cuGraphAddBatchMemOpNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, const CUDA_BATCH_MEM_OP_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphBatchMemOpNodeGetParams' in found_functions}} - -cdef CUresult _cuGraphBatchMemOpNodeGetParams(CUgraphNode hNode, CUDA_BATCH_MEM_OP_NODE_PARAMS* nodeParams_out) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphBatchMemOpNodeSetParams' in found_functions}} - -cdef CUresult _cuGraphBatchMemOpNodeSetParams(CUgraphNode hNode, const CUDA_BATCH_MEM_OP_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphExecBatchMemOpNodeSetParams' in found_functions}} - -cdef CUresult _cuGraphExecBatchMemOpNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_BATCH_MEM_OP_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphAddMemAllocNode' in found_functions}} - -cdef CUresult _cuGraphAddMemAllocNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, CUDA_MEM_ALLOC_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphMemAllocNodeGetParams' in found_functions}} - -cdef CUresult _cuGraphMemAllocNodeGetParams(CUgraphNode hNode, CUDA_MEM_ALLOC_NODE_PARAMS* params_out) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphAddMemFreeNode' in found_functions}} - -cdef CUresult _cuGraphAddMemFreeNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, CUdeviceptr dptr) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphMemFreeNodeGetParams' in found_functions}} - -cdef CUresult _cuGraphMemFreeNodeGetParams(CUgraphNode hNode, CUdeviceptr* dptr_out) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuDeviceGraphMemTrim' in found_functions}} - -cdef CUresult _cuDeviceGraphMemTrim(CUdevice device) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuDeviceGetGraphMemAttribute' in found_functions}} - -cdef CUresult _cuDeviceGetGraphMemAttribute(CUdevice device, CUgraphMem_attribute attr, void* value) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuDeviceSetGraphMemAttribute' in found_functions}} - -cdef CUresult _cuDeviceSetGraphMemAttribute(CUdevice device, CUgraphMem_attribute attr, void* value) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphClone' in found_functions}} - -cdef CUresult _cuGraphClone(CUgraph* phGraphClone, CUgraph originalGraph) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphNodeFindInClone' in found_functions}} - -cdef CUresult _cuGraphNodeFindInClone(CUgraphNode* phNode, CUgraphNode hOriginalNode, CUgraph hClonedGraph) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphNodeGetType' in found_functions}} - -cdef CUresult _cuGraphNodeGetType(CUgraphNode hNode, CUgraphNodeType* typename) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphNodeGetContainingGraph' in found_functions}} - -cdef CUresult _cuGraphNodeGetContainingGraph(CUgraphNode hNode, CUgraph* phGraph) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphNodeGetLocalId' in found_functions}} - -cdef CUresult _cuGraphNodeGetLocalId(CUgraphNode hNode, unsigned int* nodeId) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphNodeGetToolsId' in found_functions}} - -cdef CUresult _cuGraphNodeGetToolsId(CUgraphNode hNode, unsigned long long* toolsNodeId) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphGetId' in found_functions}} - -cdef CUresult _cuGraphGetId(CUgraph hGraph, unsigned int* graphId) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphExecGetId' in found_functions}} - -cdef CUresult _cuGraphExecGetId(CUgraphExec hGraphExec, unsigned int* graphId) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphGetNodes' in found_functions}} - -cdef CUresult _cuGraphGetNodes(CUgraph hGraph, CUgraphNode* nodes, size_t* numNodes) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphGetRootNodes' in found_functions}} - -cdef CUresult _cuGraphGetRootNodes(CUgraph hGraph, CUgraphNode* rootNodes, size_t* numRootNodes) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphGetEdges_v2' in found_functions}} - -cdef CUresult _cuGraphGetEdges_v2(CUgraph hGraph, CUgraphNode* from_, CUgraphNode* to, CUgraphEdgeData* edgeData, size_t* numEdges) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphNodeGetDependencies_v2' in found_functions}} - -cdef CUresult _cuGraphNodeGetDependencies_v2(CUgraphNode hNode, CUgraphNode* dependencies, CUgraphEdgeData* edgeData, size_t* numDependencies) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphNodeGetDependentNodes_v2' in found_functions}} - -cdef CUresult _cuGraphNodeGetDependentNodes_v2(CUgraphNode hNode, CUgraphNode* dependentNodes, CUgraphEdgeData* edgeData, size_t* numDependentNodes) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphAddDependencies_v2' in found_functions}} - -cdef CUresult _cuGraphAddDependencies_v2(CUgraph hGraph, const CUgraphNode* from_, const CUgraphNode* to, const CUgraphEdgeData* edgeData, size_t numDependencies) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphRemoveDependencies_v2' in found_functions}} - -cdef CUresult _cuGraphRemoveDependencies_v2(CUgraph hGraph, const CUgraphNode* from_, const CUgraphNode* to, const CUgraphEdgeData* edgeData, size_t numDependencies) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphDestroyNode' in found_functions}} - -cdef CUresult _cuGraphDestroyNode(CUgraphNode hNode) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphInstantiateWithFlags' in found_functions}} - -cdef CUresult _cuGraphInstantiateWithFlags(CUgraphExec* phGraphExec, CUgraph hGraph, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphInstantiateWithParams' in found_functions}} - -cdef CUresult _cuGraphInstantiateWithParams(CUgraphExec* phGraphExec, CUgraph hGraph, CUDA_GRAPH_INSTANTIATE_PARAMS* instantiateParams) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphExecGetFlags' in found_functions}} - -cdef CUresult _cuGraphExecGetFlags(CUgraphExec hGraphExec, cuuint64_t* flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphExecKernelNodeSetParams_v2' in found_functions}} - -cdef CUresult _cuGraphExecKernelNodeSetParams_v2(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_KERNEL_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphExecMemcpyNodeSetParams' in found_functions}} - -cdef CUresult _cuGraphExecMemcpyNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_MEMCPY3D* copyParams, CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphExecMemsetNodeSetParams' in found_functions}} - -cdef CUresult _cuGraphExecMemsetNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_MEMSET_NODE_PARAMS* memsetParams, CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphExecHostNodeSetParams' in found_functions}} - -cdef CUresult _cuGraphExecHostNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_HOST_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphExecChildGraphNodeSetParams' in found_functions}} - -cdef CUresult _cuGraphExecChildGraphNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, CUgraph childGraph) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphExecEventRecordNodeSetEvent' in found_functions}} - -cdef CUresult _cuGraphExecEventRecordNodeSetEvent(CUgraphExec hGraphExec, CUgraphNode hNode, CUevent event) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphExecEventWaitNodeSetEvent' in found_functions}} - -cdef CUresult _cuGraphExecEventWaitNodeSetEvent(CUgraphExec hGraphExec, CUgraphNode hNode, CUevent event) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphExecExternalSemaphoresSignalNodeSetParams' in found_functions}} - -cdef CUresult _cuGraphExecExternalSemaphoresSignalNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_EXT_SEM_SIGNAL_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphExecExternalSemaphoresWaitNodeSetParams' in found_functions}} - -cdef CUresult _cuGraphExecExternalSemaphoresWaitNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_EXT_SEM_WAIT_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphNodeSetEnabled' in found_functions}} - -cdef CUresult _cuGraphNodeSetEnabled(CUgraphExec hGraphExec, CUgraphNode hNode, unsigned int isEnabled) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphNodeGetEnabled' in found_functions}} - -cdef CUresult _cuGraphNodeGetEnabled(CUgraphExec hGraphExec, CUgraphNode hNode, unsigned int* isEnabled) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphUpload' in found_functions}} - -cdef CUresult _cuGraphUpload(CUgraphExec hGraphExec, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphLaunch' in found_functions}} - -cdef CUresult _cuGraphLaunch(CUgraphExec hGraphExec, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphExecDestroy' in found_functions}} - -cdef CUresult _cuGraphExecDestroy(CUgraphExec hGraphExec) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphDestroy' in found_functions}} - -cdef CUresult _cuGraphDestroy(CUgraph hGraph) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphExecUpdate_v2' in found_functions}} - -cdef CUresult _cuGraphExecUpdate_v2(CUgraphExec hGraphExec, CUgraph hGraph, CUgraphExecUpdateResultInfo* resultInfo) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphKernelNodeCopyAttributes' in found_functions}} - -cdef CUresult _cuGraphKernelNodeCopyAttributes(CUgraphNode dst, CUgraphNode src) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphKernelNodeGetAttribute' in found_functions}} - -cdef CUresult _cuGraphKernelNodeGetAttribute(CUgraphNode hNode, CUkernelNodeAttrID attr, CUkernelNodeAttrValue* value_out) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphKernelNodeSetAttribute' in found_functions}} - -cdef CUresult _cuGraphKernelNodeSetAttribute(CUgraphNode hNode, CUkernelNodeAttrID attr, const CUkernelNodeAttrValue* value) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphDebugDotPrint' in found_functions}} - -cdef CUresult _cuGraphDebugDotPrint(CUgraph hGraph, const char* path, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuUserObjectCreate' in found_functions}} - -cdef CUresult _cuUserObjectCreate(CUuserObject* object_out, void* ptr, CUhostFn destroy, unsigned int initialRefcount, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuUserObjectRetain' in found_functions}} - -cdef CUresult _cuUserObjectRetain(CUuserObject object, unsigned int count) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuUserObjectRelease' in found_functions}} - -cdef CUresult _cuUserObjectRelease(CUuserObject object, unsigned int count) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphRetainUserObject' in found_functions}} - -cdef CUresult _cuGraphRetainUserObject(CUgraph graph, CUuserObject object, unsigned int count, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphReleaseUserObject' in found_functions}} - -cdef CUresult _cuGraphReleaseUserObject(CUgraph graph, CUuserObject object, unsigned int count) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphAddNode_v2' in found_functions}} - -cdef CUresult _cuGraphAddNode_v2(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, const CUgraphEdgeData* dependencyData, size_t numDependencies, CUgraphNodeParams* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphNodeSetParams' in found_functions}} - -cdef CUresult _cuGraphNodeSetParams(CUgraphNode hNode, CUgraphNodeParams* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphNodeGetParams' in found_functions}} - -cdef CUresult _cuGraphNodeGetParams(CUgraphNode hNode, CUgraphNodeParams* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphExecNodeSetParams' in found_functions}} - -cdef CUresult _cuGraphExecNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, CUgraphNodeParams* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphConditionalHandleCreate' in found_functions}} - -cdef CUresult _cuGraphConditionalHandleCreate(CUgraphConditionalHandle* pHandle_out, CUgraph hGraph, CUcontext ctx, unsigned int defaultLaunchValue, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuOccupancyMaxActiveBlocksPerMultiprocessor' in found_functions}} - -cdef CUresult _cuOccupancyMaxActiveBlocksPerMultiprocessor(int* numBlocks, CUfunction func, int blockSize, size_t dynamicSMemSize) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags' in found_functions}} - -cdef CUresult _cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(int* numBlocks, CUfunction func, int blockSize, size_t dynamicSMemSize, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuOccupancyMaxPotentialBlockSize' in found_functions}} - -cdef CUresult _cuOccupancyMaxPotentialBlockSize(int* minGridSize, int* blockSize, CUfunction func, CUoccupancyB2DSize blockSizeToDynamicSMemSize, size_t dynamicSMemSize, int blockSizeLimit) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuOccupancyMaxPotentialBlockSizeWithFlags' in found_functions}} - -cdef CUresult _cuOccupancyMaxPotentialBlockSizeWithFlags(int* minGridSize, int* blockSize, CUfunction func, CUoccupancyB2DSize blockSizeToDynamicSMemSize, size_t dynamicSMemSize, int blockSizeLimit, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuOccupancyAvailableDynamicSMemPerBlock' in found_functions}} - -cdef CUresult _cuOccupancyAvailableDynamicSMemPerBlock(size_t* dynamicSmemSize, CUfunction func, int numBlocks, int blockSize) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuOccupancyMaxPotentialClusterSize' in found_functions}} - -cdef CUresult _cuOccupancyMaxPotentialClusterSize(int* clusterSize, CUfunction func, const CUlaunchConfig* config) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuOccupancyMaxActiveClusters' in found_functions}} - -cdef CUresult _cuOccupancyMaxActiveClusters(int* numClusters, CUfunction func, const CUlaunchConfig* config) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuTexRefSetArray' in found_functions}} - -cdef CUresult _cuTexRefSetArray(CUtexref hTexRef, CUarray hArray, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuTexRefSetMipmappedArray' in found_functions}} - -cdef CUresult _cuTexRefSetMipmappedArray(CUtexref hTexRef, CUmipmappedArray hMipmappedArray, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuTexRefSetAddress_v2' in found_functions}} - -cdef CUresult _cuTexRefSetAddress_v2(size_t* ByteOffset, CUtexref hTexRef, CUdeviceptr dptr, size_t numbytes) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuTexRefSetAddress2D_v3' in found_functions}} - -cdef CUresult _cuTexRefSetAddress2D_v3(CUtexref hTexRef, const CUDA_ARRAY_DESCRIPTOR* desc, CUdeviceptr dptr, size_t Pitch) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuTexRefSetFormat' in found_functions}} - -cdef CUresult _cuTexRefSetFormat(CUtexref hTexRef, CUarray_format fmt, int NumPackedComponents) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuTexRefSetAddressMode' in found_functions}} - -cdef CUresult _cuTexRefSetAddressMode(CUtexref hTexRef, int dim, CUaddress_mode am) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuTexRefSetFilterMode' in found_functions}} - -cdef CUresult _cuTexRefSetFilterMode(CUtexref hTexRef, CUfilter_mode fm) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuTexRefSetMipmapFilterMode' in found_functions}} - -cdef CUresult _cuTexRefSetMipmapFilterMode(CUtexref hTexRef, CUfilter_mode fm) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuTexRefSetMipmapLevelBias' in found_functions}} - -cdef CUresult _cuTexRefSetMipmapLevelBias(CUtexref hTexRef, float bias) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuTexRefSetMipmapLevelClamp' in found_functions}} - -cdef CUresult _cuTexRefSetMipmapLevelClamp(CUtexref hTexRef, float minMipmapLevelClamp, float maxMipmapLevelClamp) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuTexRefSetMaxAnisotropy' in found_functions}} - -cdef CUresult _cuTexRefSetMaxAnisotropy(CUtexref hTexRef, unsigned int maxAniso) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuTexRefSetBorderColor' in found_functions}} - -cdef CUresult _cuTexRefSetBorderColor(CUtexref hTexRef, float* pBorderColor) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuTexRefSetFlags' in found_functions}} - -cdef CUresult _cuTexRefSetFlags(CUtexref hTexRef, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuTexRefGetAddress_v2' in found_functions}} - -cdef CUresult _cuTexRefGetAddress_v2(CUdeviceptr* pdptr, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuTexRefGetArray' in found_functions}} - -cdef CUresult _cuTexRefGetArray(CUarray* phArray, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuTexRefGetMipmappedArray' in found_functions}} - -cdef CUresult _cuTexRefGetMipmappedArray(CUmipmappedArray* phMipmappedArray, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuTexRefGetAddressMode' in found_functions}} - -cdef CUresult _cuTexRefGetAddressMode(CUaddress_mode* pam, CUtexref hTexRef, int dim) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuTexRefGetFilterMode' in found_functions}} - -cdef CUresult _cuTexRefGetFilterMode(CUfilter_mode* pfm, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuTexRefGetFormat' in found_functions}} - -cdef CUresult _cuTexRefGetFormat(CUarray_format* pFormat, int* pNumChannels, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuTexRefGetMipmapFilterMode' in found_functions}} - -cdef CUresult _cuTexRefGetMipmapFilterMode(CUfilter_mode* pfm, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuTexRefGetMipmapLevelBias' in found_functions}} - -cdef CUresult _cuTexRefGetMipmapLevelBias(float* pbias, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuTexRefGetMipmapLevelClamp' in found_functions}} - -cdef CUresult _cuTexRefGetMipmapLevelClamp(float* pminMipmapLevelClamp, float* pmaxMipmapLevelClamp, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuTexRefGetMaxAnisotropy' in found_functions}} - -cdef CUresult _cuTexRefGetMaxAnisotropy(int* pmaxAniso, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuTexRefGetBorderColor' in found_functions}} - -cdef CUresult _cuTexRefGetBorderColor(float* pBorderColor, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuTexRefGetFlags' in found_functions}} - -cdef CUresult _cuTexRefGetFlags(unsigned int* pFlags, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuTexRefCreate' in found_functions}} - -cdef CUresult _cuTexRefCreate(CUtexref* pTexRef) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuTexRefDestroy' in found_functions}} - -cdef CUresult _cuTexRefDestroy(CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuSurfRefSetArray' in found_functions}} - -cdef CUresult _cuSurfRefSetArray(CUsurfref hSurfRef, CUarray hArray, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuSurfRefGetArray' in found_functions}} - -cdef CUresult _cuSurfRefGetArray(CUarray* phArray, CUsurfref hSurfRef) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuTexObjectCreate' in found_functions}} - -cdef CUresult _cuTexObjectCreate(CUtexObject* pTexObject, const CUDA_RESOURCE_DESC* pResDesc, const CUDA_TEXTURE_DESC* pTexDesc, const CUDA_RESOURCE_VIEW_DESC* pResViewDesc) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuTexObjectDestroy' in found_functions}} - -cdef CUresult _cuTexObjectDestroy(CUtexObject texObject) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuTexObjectGetResourceDesc' in found_functions}} - -cdef CUresult _cuTexObjectGetResourceDesc(CUDA_RESOURCE_DESC* pResDesc, CUtexObject texObject) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuTexObjectGetTextureDesc' in found_functions}} - -cdef CUresult _cuTexObjectGetTextureDesc(CUDA_TEXTURE_DESC* pTexDesc, CUtexObject texObject) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuTexObjectGetResourceViewDesc' in found_functions}} - -cdef CUresult _cuTexObjectGetResourceViewDesc(CUDA_RESOURCE_VIEW_DESC* pResViewDesc, CUtexObject texObject) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuSurfObjectCreate' in found_functions}} - -cdef CUresult _cuSurfObjectCreate(CUsurfObject* pSurfObject, const CUDA_RESOURCE_DESC* pResDesc) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuSurfObjectDestroy' in found_functions}} - -cdef CUresult _cuSurfObjectDestroy(CUsurfObject surfObject) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuSurfObjectGetResourceDesc' in found_functions}} - -cdef CUresult _cuSurfObjectGetResourceDesc(CUDA_RESOURCE_DESC* pResDesc, CUsurfObject surfObject) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuTensorMapEncodeTiled' in found_functions}} - -cdef CUresult _cuTensorMapEncodeTiled(CUtensorMap* tensorMap, CUtensorMapDataType tensorDataType, cuuint32_t tensorRank, void* globalAddress, const cuuint64_t* globalDim, const cuuint64_t* globalStrides, const cuuint32_t* boxDim, const cuuint32_t* elementStrides, CUtensorMapInterleave interleave, CUtensorMapSwizzle swizzle, CUtensorMapL2promotion l2Promotion, CUtensorMapFloatOOBfill oobFill) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuTensorMapEncodeIm2col' in found_functions}} - -cdef CUresult _cuTensorMapEncodeIm2col(CUtensorMap* tensorMap, CUtensorMapDataType tensorDataType, cuuint32_t tensorRank, void* globalAddress, const cuuint64_t* globalDim, const cuuint64_t* globalStrides, const int* pixelBoxLowerCorner, const int* pixelBoxUpperCorner, cuuint32_t channelsPerPixel, cuuint32_t pixelsPerColumn, const cuuint32_t* elementStrides, CUtensorMapInterleave interleave, CUtensorMapSwizzle swizzle, CUtensorMapL2promotion l2Promotion, CUtensorMapFloatOOBfill oobFill) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuTensorMapEncodeIm2colWide' in found_functions}} - -cdef CUresult _cuTensorMapEncodeIm2colWide(CUtensorMap* tensorMap, CUtensorMapDataType tensorDataType, cuuint32_t tensorRank, void* globalAddress, const cuuint64_t* globalDim, const cuuint64_t* globalStrides, int pixelBoxLowerCornerWidth, int pixelBoxUpperCornerWidth, cuuint32_t channelsPerPixel, cuuint32_t pixelsPerColumn, const cuuint32_t* elementStrides, CUtensorMapInterleave interleave, CUtensorMapIm2ColWideMode mode, CUtensorMapSwizzle swizzle, CUtensorMapL2promotion l2Promotion, CUtensorMapFloatOOBfill oobFill) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuTensorMapReplaceAddress' in found_functions}} - -cdef CUresult _cuTensorMapReplaceAddress(CUtensorMap* tensorMap, void* globalAddress) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuDeviceCanAccessPeer' in found_functions}} - -cdef CUresult _cuDeviceCanAccessPeer(int* canAccessPeer, CUdevice dev, CUdevice peerDev) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuCtxEnablePeerAccess' in found_functions}} - -cdef CUresult _cuCtxEnablePeerAccess(CUcontext peerContext, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuCtxDisablePeerAccess' in found_functions}} - -cdef CUresult _cuCtxDisablePeerAccess(CUcontext peerContext) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuDeviceGetP2PAttribute' in found_functions}} - -cdef CUresult _cuDeviceGetP2PAttribute(int* value, CUdevice_P2PAttribute attrib, CUdevice srcDevice, CUdevice dstDevice) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuDeviceGetP2PAtomicCapabilities' in found_functions}} - -cdef CUresult _cuDeviceGetP2PAtomicCapabilities(unsigned int* capabilities, const CUatomicOperation* operations, unsigned int count, CUdevice srcDevice, CUdevice dstDevice) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphicsUnregisterResource' in found_functions}} - -cdef CUresult _cuGraphicsUnregisterResource(CUgraphicsResource resource) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphicsSubResourceGetMappedArray' in found_functions}} - -cdef CUresult _cuGraphicsSubResourceGetMappedArray(CUarray* pArray, CUgraphicsResource resource, unsigned int arrayIndex, unsigned int mipLevel) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphicsResourceGetMappedMipmappedArray' in found_functions}} - -cdef CUresult _cuGraphicsResourceGetMappedMipmappedArray(CUmipmappedArray* pMipmappedArray, CUgraphicsResource resource) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphicsResourceGetMappedPointer_v2' in found_functions}} - -cdef CUresult _cuGraphicsResourceGetMappedPointer_v2(CUdeviceptr* pDevPtr, size_t* pSize, CUgraphicsResource resource) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphicsResourceSetMapFlags_v2' in found_functions}} - -cdef CUresult _cuGraphicsResourceSetMapFlags_v2(CUgraphicsResource resource, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphicsMapResources' in found_functions}} - -cdef CUresult _cuGraphicsMapResources(unsigned int count, CUgraphicsResource* resources, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphicsUnmapResources' in found_functions}} - -cdef CUresult _cuGraphicsUnmapResources(unsigned int count, CUgraphicsResource* resources, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGetProcAddress_v2' in found_functions}} - -cdef CUresult _cuGetProcAddress_v2(const char* symbol, void** pfn, int cudaVersion, cuuint64_t flags, CUdriverProcAddressQueryResult* symbolStatus) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuCoredumpGetAttribute' in found_functions}} - -cdef CUresult _cuCoredumpGetAttribute(CUcoredumpSettings attrib, void* value, size_t* size) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuCoredumpGetAttributeGlobal' in found_functions}} - -cdef CUresult _cuCoredumpGetAttributeGlobal(CUcoredumpSettings attrib, void* value, size_t* size) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuCoredumpSetAttribute' in found_functions}} - -cdef CUresult _cuCoredumpSetAttribute(CUcoredumpSettings attrib, void* value, size_t* size) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuCoredumpSetAttributeGlobal' in found_functions}} - -cdef CUresult _cuCoredumpSetAttributeGlobal(CUcoredumpSettings attrib, void* value, size_t* size) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuCoredumpRegisterStartCallback' in found_functions}} - -cdef CUresult _cuCoredumpRegisterStartCallback(CUcoredumpStatusCallback callback, void* userData, CUcoredumpCallbackHandle* callbackOut) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuCoredumpRegisterCompleteCallback' in found_functions}} - -cdef CUresult _cuCoredumpRegisterCompleteCallback(CUcoredumpStatusCallback callback, void* userData, CUcoredumpCallbackHandle* callbackOut) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuCoredumpDeregisterStartCallback' in found_functions}} - -cdef CUresult _cuCoredumpDeregisterStartCallback(CUcoredumpCallbackHandle callback) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuCoredumpDeregisterCompleteCallback' in found_functions}} - -cdef CUresult _cuCoredumpDeregisterCompleteCallback(CUcoredumpCallbackHandle callback) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGetExportTable' in found_functions}} - -cdef CUresult _cuGetExportTable(const void** ppExportTable, const CUuuid* pExportTableId) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGreenCtxCreate' in found_functions}} - -cdef CUresult _cuGreenCtxCreate(CUgreenCtx* phCtx, CUdevResourceDesc desc, CUdevice dev, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGreenCtxDestroy' in found_functions}} - -cdef CUresult _cuGreenCtxDestroy(CUgreenCtx hCtx) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuCtxFromGreenCtx' in found_functions}} - -cdef CUresult _cuCtxFromGreenCtx(CUcontext* pContext, CUgreenCtx hCtx) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuDeviceGetDevResource' in found_functions}} - -cdef CUresult _cuDeviceGetDevResource(CUdevice device, CUdevResource* resource, CUdevResourceType typename) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuCtxGetDevResource' in found_functions}} - -cdef CUresult _cuCtxGetDevResource(CUcontext hCtx, CUdevResource* resource, CUdevResourceType typename) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGreenCtxGetDevResource' in found_functions}} - -cdef CUresult _cuGreenCtxGetDevResource(CUgreenCtx hCtx, CUdevResource* resource, CUdevResourceType typename) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuDevSmResourceSplitByCount' in found_functions}} - -cdef CUresult _cuDevSmResourceSplitByCount(CUdevResource* result, unsigned int* nbGroups, const CUdevResource* input, CUdevResource* remainder, unsigned int flags, unsigned int minCount) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuDevSmResourceSplit' in found_functions}} - -cdef CUresult _cuDevSmResourceSplit(CUdevResource* result, unsigned int nbGroups, const CUdevResource* input, CUdevResource* remainder, unsigned int flags, CU_DEV_SM_RESOURCE_GROUP_PARAMS* groupParams) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuDevResourceGenerateDesc' in found_functions}} - -cdef CUresult _cuDevResourceGenerateDesc(CUdevResourceDesc* phDesc, CUdevResource* resources, unsigned int nbResources) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGreenCtxRecordEvent' in found_functions}} - -cdef CUresult _cuGreenCtxRecordEvent(CUgreenCtx hCtx, CUevent hEvent) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGreenCtxWaitEvent' in found_functions}} - -cdef CUresult _cuGreenCtxWaitEvent(CUgreenCtx hCtx, CUevent hEvent) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuStreamGetGreenCtx' in found_functions}} - -cdef CUresult _cuStreamGetGreenCtx(CUstream hStream, CUgreenCtx* phCtx) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGreenCtxStreamCreate' in found_functions}} - -cdef CUresult _cuGreenCtxStreamCreate(CUstream* phStream, CUgreenCtx greenCtx, unsigned int flags, int priority) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGreenCtxGetId' in found_functions}} - -cdef CUresult _cuGreenCtxGetId(CUgreenCtx greenCtx, unsigned long long* greenCtxId) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuStreamGetDevResource' in found_functions}} - -cdef CUresult _cuStreamGetDevResource(CUstream hStream, CUdevResource* resource, CUdevResourceType typename) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuLogsRegisterCallback' in found_functions}} - -cdef CUresult _cuLogsRegisterCallback(CUlogsCallback callbackFunc, void* userData, CUlogsCallbackHandle* callback_out) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuLogsUnregisterCallback' in found_functions}} - -cdef CUresult _cuLogsUnregisterCallback(CUlogsCallbackHandle callback) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuLogsCurrent' in found_functions}} - -cdef CUresult _cuLogsCurrent(CUlogIterator* iterator_out, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuLogsDumpToFile' in found_functions}} - -cdef CUresult _cuLogsDumpToFile(CUlogIterator* iterator, const char* pathToFile, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuLogsDumpToMemory' in found_functions}} - -cdef CUresult _cuLogsDumpToMemory(CUlogIterator* iterator, char* buffer, size_t* size, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuCheckpointProcessGetRestoreThreadId' in found_functions}} - -cdef CUresult _cuCheckpointProcessGetRestoreThreadId(int pid, int* tid) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuCheckpointProcessGetState' in found_functions}} - -cdef CUresult _cuCheckpointProcessGetState(int pid, CUprocessState* state) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuCheckpointProcessLock' in found_functions}} - -cdef CUresult _cuCheckpointProcessLock(int pid, CUcheckpointLockArgs* args) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuCheckpointProcessCheckpoint' in found_functions}} - -cdef CUresult _cuCheckpointProcessCheckpoint(int pid, CUcheckpointCheckpointArgs* args) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuCheckpointProcessRestore' in found_functions}} - -cdef CUresult _cuCheckpointProcessRestore(int pid, CUcheckpointRestoreArgs* args) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuCheckpointProcessUnlock' in found_functions}} - -cdef CUresult _cuCheckpointProcessUnlock(int pid, CUcheckpointUnlockArgs* args) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuProfilerStart' in found_functions}} - -cdef CUresult _cuProfilerStart() except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuProfilerStop' in found_functions}} - -cdef CUresult _cuProfilerStop() except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if True}} - -cdef CUresult _cuGraphicsEGLRegisterImage(CUgraphicsResource* pCudaResource, EGLImageKHR image, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if True}} - -cdef CUresult _cuEGLStreamConsumerConnect(CUeglStreamConnection* conn, EGLStreamKHR stream) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if True}} - -cdef CUresult _cuEGLStreamConsumerConnectWithFlags(CUeglStreamConnection* conn, EGLStreamKHR stream, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if True}} - -cdef CUresult _cuEGLStreamConsumerDisconnect(CUeglStreamConnection* conn) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if True}} - -cdef CUresult _cuEGLStreamConsumerAcquireFrame(CUeglStreamConnection* conn, CUgraphicsResource* pCudaResource, CUstream* pStream, unsigned int timeout) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if True}} - -cdef CUresult _cuEGLStreamConsumerReleaseFrame(CUeglStreamConnection* conn, CUgraphicsResource pCudaResource, CUstream* pStream) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if True}} - -cdef CUresult _cuEGLStreamProducerConnect(CUeglStreamConnection* conn, EGLStreamKHR stream, EGLint width, EGLint height) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if True}} - -cdef CUresult _cuEGLStreamProducerDisconnect(CUeglStreamConnection* conn) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if True}} - -cdef CUresult _cuEGLStreamProducerPresentFrame(CUeglStreamConnection* conn, CUeglFrame eglframe, CUstream* pStream) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if True}} - -cdef CUresult _cuEGLStreamProducerReturnFrame(CUeglStreamConnection* conn, CUeglFrame* eglframe, CUstream* pStream) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if True}} - -cdef CUresult _cuGraphicsResourceGetMappedEglFrame(CUeglFrame* eglFrame, CUgraphicsResource resource, unsigned int index, unsigned int mipLevel) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if True}} - -cdef CUresult _cuEventCreateFromEGLSync(CUevent* phEvent, EGLSyncKHR eglSync, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if True}} - -cdef CUresult _cuGraphicsGLRegisterBuffer(CUgraphicsResource* pCudaResource, GLuint buffer, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if True}} - -cdef CUresult _cuGraphicsGLRegisterImage(CUgraphicsResource* pCudaResource, GLuint image, GLenum target, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if True}} - -cdef CUresult _cuGLGetDevices_v2(unsigned int* pCudaDeviceCount, CUdevice* pCudaDevices, unsigned int cudaDeviceCount, CUGLDeviceList deviceList) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if True}} - -cdef CUresult _cuVDPAUGetDevice(CUdevice* pDevice, VdpDevice vdpDevice, VdpGetProcAddress* vdpGetProcAddress) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if True}} - -cdef CUresult _cuVDPAUCtxCreate_v2(CUcontext* pCtx, unsigned int flags, CUdevice device, VdpDevice vdpDevice, VdpGetProcAddress* vdpGetProcAddress) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if True}} - -cdef CUresult _cuGraphicsVDPAURegisterVideoSurface(CUgraphicsResource* pCudaResource, VdpVideoSurface vdpSurface, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if True}} - -cdef CUresult _cuGraphicsVDPAURegisterOutputSurface(CUgraphicsResource* pCudaResource, VdpOutputSurface vdpSurface, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - diff --git a/cuda_bindings/cuda/bindings/_bindings/cydriver.pyx.in b/cuda_bindings/cuda/bindings/_bindings/cydriver.pyx.in deleted file mode 100644 index e2e966daa2f..00000000000 --- a/cuda_bindings/cuda/bindings/_bindings/cydriver.pyx.in +++ /dev/null @@ -1,16926 +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.2.0, generator version 0.3.1.dev1422+gf4812259e.d20260318. Do not modify it directly. -{{if 'Windows' == platform.system()}} -import os -cimport cuda.bindings._lib.windll as windll -{{else}} -cimport cuda.bindings._lib.dlfcn as dlfcn -{{endif}} -from libc.stdint cimport intptr_t, uintptr_t -import os -import sys -cimport cuda.bindings._bindings.loader as loader -import threading - -cdef object __symbol_lock = threading.Lock() -cdef bint __cuPythonInit = False -{{if 'cuGetErrorString' in found_functions}}cdef void *__cuGetErrorString = NULL{{endif}} -{{if 'cuGetErrorName' in found_functions}}cdef void *__cuGetErrorName = NULL{{endif}} -{{if 'cuInit' in found_functions}}cdef void *__cuInit = NULL{{endif}} -{{if 'cuDriverGetVersion' in found_functions}}cdef void *__cuDriverGetVersion = NULL{{endif}} -{{if 'cuDeviceGet' in found_functions}}cdef void *__cuDeviceGet = NULL{{endif}} -{{if 'cuDeviceGetCount' in found_functions}}cdef void *__cuDeviceGetCount = NULL{{endif}} -{{if 'cuDeviceGetName' in found_functions}}cdef void *__cuDeviceGetName = NULL{{endif}} -{{if 'cuDeviceGetUuid_v2' in found_functions}}cdef void *__cuDeviceGetUuid_v2 = NULL{{endif}} -{{if 'cuDeviceGetLuid' in found_functions}}cdef void *__cuDeviceGetLuid = NULL{{endif}} -{{if 'cuDeviceTotalMem_v2' in found_functions}}cdef void *__cuDeviceTotalMem_v2 = NULL{{endif}} -{{if 'cuDeviceGetTexture1DLinearMaxWidth' in found_functions}}cdef void *__cuDeviceGetTexture1DLinearMaxWidth = NULL{{endif}} -{{if 'cuDeviceGetAttribute' in found_functions}}cdef void *__cuDeviceGetAttribute = NULL{{endif}} -{{if 'cuDeviceGetHostAtomicCapabilities' in found_functions}}cdef void *__cuDeviceGetHostAtomicCapabilities = NULL{{endif}} -{{if 'cuDeviceGetNvSciSyncAttributes' in found_functions}}cdef void *__cuDeviceGetNvSciSyncAttributes = NULL{{endif}} -{{if 'cuDeviceSetMemPool' in found_functions}}cdef void *__cuDeviceSetMemPool = NULL{{endif}} -{{if 'cuDeviceGetMemPool' in found_functions}}cdef void *__cuDeviceGetMemPool = NULL{{endif}} -{{if 'cuDeviceGetDefaultMemPool' in found_functions}}cdef void *__cuDeviceGetDefaultMemPool = NULL{{endif}} -{{if 'cuDeviceGetExecAffinitySupport' in found_functions}}cdef void *__cuDeviceGetExecAffinitySupport = NULL{{endif}} -{{if 'cuFlushGPUDirectRDMAWrites' in found_functions}}cdef void *__cuFlushGPUDirectRDMAWrites = NULL{{endif}} -{{if 'cuDeviceGetProperties' in found_functions}}cdef void *__cuDeviceGetProperties = NULL{{endif}} -{{if 'cuDeviceComputeCapability' in found_functions}}cdef void *__cuDeviceComputeCapability = NULL{{endif}} -{{if 'cuDevicePrimaryCtxRetain' in found_functions}}cdef void *__cuDevicePrimaryCtxRetain = NULL{{endif}} -{{if 'cuDevicePrimaryCtxRelease_v2' in found_functions}}cdef void *__cuDevicePrimaryCtxRelease_v2 = NULL{{endif}} -{{if 'cuDevicePrimaryCtxSetFlags_v2' in found_functions}}cdef void *__cuDevicePrimaryCtxSetFlags_v2 = NULL{{endif}} -{{if 'cuDevicePrimaryCtxGetState' in found_functions}}cdef void *__cuDevicePrimaryCtxGetState = NULL{{endif}} -{{if 'cuDevicePrimaryCtxReset_v2' in found_functions}}cdef void *__cuDevicePrimaryCtxReset_v2 = NULL{{endif}} -{{if 'cuCtxCreate_v4' in found_functions}}cdef void *__cuCtxCreate_v4 = NULL{{endif}} -{{if 'cuCtxDestroy_v2' in found_functions}}cdef void *__cuCtxDestroy_v2 = NULL{{endif}} -{{if 'cuCtxPushCurrent_v2' in found_functions}}cdef void *__cuCtxPushCurrent_v2 = NULL{{endif}} -{{if 'cuCtxPopCurrent_v2' in found_functions}}cdef void *__cuCtxPopCurrent_v2 = NULL{{endif}} -{{if 'cuCtxSetCurrent' in found_functions}}cdef void *__cuCtxSetCurrent = NULL{{endif}} -{{if 'cuCtxGetCurrent' in found_functions}}cdef void *__cuCtxGetCurrent = NULL{{endif}} -{{if 'cuCtxGetDevice' in found_functions}}cdef void *__cuCtxGetDevice = NULL{{endif}} -{{if 'cuCtxGetDevice_v2' in found_functions}}cdef void *__cuCtxGetDevice_v2 = NULL{{endif}} -{{if 'cuCtxGetFlags' in found_functions}}cdef void *__cuCtxGetFlags = NULL{{endif}} -{{if 'cuCtxSetFlags' in found_functions}}cdef void *__cuCtxSetFlags = NULL{{endif}} -{{if 'cuCtxGetId' in found_functions}}cdef void *__cuCtxGetId = NULL{{endif}} -{{if 'cuCtxSynchronize' in found_functions}}cdef void *__cuCtxSynchronize = NULL{{endif}} -{{if 'cuCtxSynchronize_v2' in found_functions}}cdef void *__cuCtxSynchronize_v2 = NULL{{endif}} -{{if 'cuCtxSetLimit' in found_functions}}cdef void *__cuCtxSetLimit = NULL{{endif}} -{{if 'cuCtxGetLimit' in found_functions}}cdef void *__cuCtxGetLimit = NULL{{endif}} -{{if 'cuCtxGetCacheConfig' in found_functions}}cdef void *__cuCtxGetCacheConfig = NULL{{endif}} -{{if 'cuCtxSetCacheConfig' in found_functions}}cdef void *__cuCtxSetCacheConfig = NULL{{endif}} -{{if 'cuCtxGetApiVersion' in found_functions}}cdef void *__cuCtxGetApiVersion = NULL{{endif}} -{{if 'cuCtxGetStreamPriorityRange' in found_functions}}cdef void *__cuCtxGetStreamPriorityRange = NULL{{endif}} -{{if 'cuCtxResetPersistingL2Cache' in found_functions}}cdef void *__cuCtxResetPersistingL2Cache = NULL{{endif}} -{{if 'cuCtxGetExecAffinity' in found_functions}}cdef void *__cuCtxGetExecAffinity = NULL{{endif}} -{{if 'cuCtxRecordEvent' in found_functions}}cdef void *__cuCtxRecordEvent = NULL{{endif}} -{{if 'cuCtxWaitEvent' in found_functions}}cdef void *__cuCtxWaitEvent = NULL{{endif}} -{{if 'cuCtxAttach' in found_functions}}cdef void *__cuCtxAttach = NULL{{endif}} -{{if 'cuCtxDetach' in found_functions}}cdef void *__cuCtxDetach = NULL{{endif}} -{{if 'cuCtxGetSharedMemConfig' in found_functions}}cdef void *__cuCtxGetSharedMemConfig = NULL{{endif}} -{{if 'cuCtxSetSharedMemConfig' in found_functions}}cdef void *__cuCtxSetSharedMemConfig = NULL{{endif}} -{{if 'cuModuleLoad' in found_functions}}cdef void *__cuModuleLoad = NULL{{endif}} -{{if 'cuModuleLoadData' in found_functions}}cdef void *__cuModuleLoadData = NULL{{endif}} -{{if 'cuModuleLoadDataEx' in found_functions}}cdef void *__cuModuleLoadDataEx = NULL{{endif}} -{{if 'cuModuleLoadFatBinary' in found_functions}}cdef void *__cuModuleLoadFatBinary = NULL{{endif}} -{{if 'cuModuleUnload' in found_functions}}cdef void *__cuModuleUnload = NULL{{endif}} -{{if 'cuModuleGetLoadingMode' in found_functions}}cdef void *__cuModuleGetLoadingMode = NULL{{endif}} -{{if 'cuModuleGetFunction' in found_functions}}cdef void *__cuModuleGetFunction = NULL{{endif}} -{{if 'cuModuleGetFunctionCount' in found_functions}}cdef void *__cuModuleGetFunctionCount = NULL{{endif}} -{{if 'cuModuleEnumerateFunctions' in found_functions}}cdef void *__cuModuleEnumerateFunctions = NULL{{endif}} -{{if 'cuModuleGetGlobal_v2' in found_functions}}cdef void *__cuModuleGetGlobal_v2 = NULL{{endif}} -{{if 'cuLinkCreate_v2' in found_functions}}cdef void *__cuLinkCreate_v2 = NULL{{endif}} -{{if 'cuLinkAddData_v2' in found_functions}}cdef void *__cuLinkAddData_v2 = NULL{{endif}} -{{if 'cuLinkAddFile_v2' in found_functions}}cdef void *__cuLinkAddFile_v2 = NULL{{endif}} -{{if 'cuLinkComplete' in found_functions}}cdef void *__cuLinkComplete = NULL{{endif}} -{{if 'cuLinkDestroy' in found_functions}}cdef void *__cuLinkDestroy = NULL{{endif}} -{{if 'cuModuleGetTexRef' in found_functions}}cdef void *__cuModuleGetTexRef = NULL{{endif}} -{{if 'cuModuleGetSurfRef' in found_functions}}cdef void *__cuModuleGetSurfRef = NULL{{endif}} -{{if 'cuLibraryLoadData' in found_functions}}cdef void *__cuLibraryLoadData = NULL{{endif}} -{{if 'cuLibraryLoadFromFile' in found_functions}}cdef void *__cuLibraryLoadFromFile = NULL{{endif}} -{{if 'cuLibraryUnload' in found_functions}}cdef void *__cuLibraryUnload = NULL{{endif}} -{{if 'cuLibraryGetKernel' in found_functions}}cdef void *__cuLibraryGetKernel = NULL{{endif}} -{{if 'cuLibraryGetKernelCount' in found_functions}}cdef void *__cuLibraryGetKernelCount = NULL{{endif}} -{{if 'cuLibraryEnumerateKernels' in found_functions}}cdef void *__cuLibraryEnumerateKernels = NULL{{endif}} -{{if 'cuLibraryGetModule' in found_functions}}cdef void *__cuLibraryGetModule = NULL{{endif}} -{{if 'cuKernelGetFunction' in found_functions}}cdef void *__cuKernelGetFunction = NULL{{endif}} -{{if 'cuKernelGetLibrary' in found_functions}}cdef void *__cuKernelGetLibrary = NULL{{endif}} -{{if 'cuLibraryGetGlobal' in found_functions}}cdef void *__cuLibraryGetGlobal = NULL{{endif}} -{{if 'cuLibraryGetManaged' in found_functions}}cdef void *__cuLibraryGetManaged = NULL{{endif}} -{{if 'cuLibraryGetUnifiedFunction' in found_functions}}cdef void *__cuLibraryGetUnifiedFunction = NULL{{endif}} -{{if 'cuKernelGetAttribute' in found_functions}}cdef void *__cuKernelGetAttribute = NULL{{endif}} -{{if 'cuKernelSetAttribute' in found_functions}}cdef void *__cuKernelSetAttribute = NULL{{endif}} -{{if 'cuKernelSetCacheConfig' in found_functions}}cdef void *__cuKernelSetCacheConfig = NULL{{endif}} -{{if 'cuKernelGetName' in found_functions}}cdef void *__cuKernelGetName = NULL{{endif}} -{{if 'cuKernelGetParamInfo' in found_functions}}cdef void *__cuKernelGetParamInfo = NULL{{endif}} -{{if 'cuKernelGetParamCount' in found_functions}}cdef void *__cuKernelGetParamCount = NULL{{endif}} -{{if 'cuMemGetInfo_v2' in found_functions}}cdef void *__cuMemGetInfo_v2 = NULL{{endif}} -{{if 'cuMemAlloc_v2' in found_functions}}cdef void *__cuMemAlloc_v2 = NULL{{endif}} -{{if 'cuMemAllocPitch_v2' in found_functions}}cdef void *__cuMemAllocPitch_v2 = NULL{{endif}} -{{if 'cuMemFree_v2' in found_functions}}cdef void *__cuMemFree_v2 = NULL{{endif}} -{{if 'cuMemGetAddressRange_v2' in found_functions}}cdef void *__cuMemGetAddressRange_v2 = NULL{{endif}} -{{if 'cuMemAllocHost_v2' in found_functions}}cdef void *__cuMemAllocHost_v2 = NULL{{endif}} -{{if 'cuMemFreeHost' in found_functions}}cdef void *__cuMemFreeHost = NULL{{endif}} -{{if 'cuMemHostAlloc' in found_functions}}cdef void *__cuMemHostAlloc = NULL{{endif}} -{{if 'cuMemHostGetDevicePointer_v2' in found_functions}}cdef void *__cuMemHostGetDevicePointer_v2 = NULL{{endif}} -{{if 'cuMemHostGetFlags' in found_functions}}cdef void *__cuMemHostGetFlags = NULL{{endif}} -{{if 'cuMemAllocManaged' in found_functions}}cdef void *__cuMemAllocManaged = NULL{{endif}} -{{if 'cuDeviceRegisterAsyncNotification' in found_functions}}cdef void *__cuDeviceRegisterAsyncNotification = NULL{{endif}} -{{if 'cuDeviceUnregisterAsyncNotification' in found_functions}}cdef void *__cuDeviceUnregisterAsyncNotification = NULL{{endif}} -{{if 'cuDeviceGetByPCIBusId' in found_functions}}cdef void *__cuDeviceGetByPCIBusId = NULL{{endif}} -{{if 'cuDeviceGetPCIBusId' in found_functions}}cdef void *__cuDeviceGetPCIBusId = NULL{{endif}} -{{if 'cuIpcGetEventHandle' in found_functions}}cdef void *__cuIpcGetEventHandle = NULL{{endif}} -{{if 'cuIpcOpenEventHandle' in found_functions}}cdef void *__cuIpcOpenEventHandle = NULL{{endif}} -{{if 'cuIpcGetMemHandle' in found_functions}}cdef void *__cuIpcGetMemHandle = NULL{{endif}} -{{if 'cuIpcOpenMemHandle_v2' in found_functions}}cdef void *__cuIpcOpenMemHandle_v2 = NULL{{endif}} -{{if 'cuIpcCloseMemHandle' in found_functions}}cdef void *__cuIpcCloseMemHandle = NULL{{endif}} -{{if 'cuMemHostRegister_v2' in found_functions}}cdef void *__cuMemHostRegister_v2 = NULL{{endif}} -{{if 'cuMemHostUnregister' in found_functions}}cdef void *__cuMemHostUnregister = NULL{{endif}} -{{if 'cuMemcpy' in found_functions}}cdef void *__cuMemcpy = NULL{{endif}} -{{if 'cuMemcpyPeer' in found_functions}}cdef void *__cuMemcpyPeer = NULL{{endif}} -{{if 'cuMemcpyHtoD_v2' in found_functions}}cdef void *__cuMemcpyHtoD_v2 = NULL{{endif}} -{{if 'cuMemcpyDtoH_v2' in found_functions}}cdef void *__cuMemcpyDtoH_v2 = NULL{{endif}} -{{if 'cuMemcpyDtoD_v2' in found_functions}}cdef void *__cuMemcpyDtoD_v2 = NULL{{endif}} -{{if 'cuMemcpyDtoA_v2' in found_functions}}cdef void *__cuMemcpyDtoA_v2 = NULL{{endif}} -{{if 'cuMemcpyAtoD_v2' in found_functions}}cdef void *__cuMemcpyAtoD_v2 = NULL{{endif}} -{{if 'cuMemcpyHtoA_v2' in found_functions}}cdef void *__cuMemcpyHtoA_v2 = NULL{{endif}} -{{if 'cuMemcpyAtoH_v2' in found_functions}}cdef void *__cuMemcpyAtoH_v2 = NULL{{endif}} -{{if 'cuMemcpyAtoA_v2' in found_functions}}cdef void *__cuMemcpyAtoA_v2 = NULL{{endif}} -{{if 'cuMemcpy2D_v2' in found_functions}}cdef void *__cuMemcpy2D_v2 = NULL{{endif}} -{{if 'cuMemcpy2DUnaligned_v2' in found_functions}}cdef void *__cuMemcpy2DUnaligned_v2 = NULL{{endif}} -{{if 'cuMemcpy3D_v2' in found_functions}}cdef void *__cuMemcpy3D_v2 = NULL{{endif}} -{{if 'cuMemcpy3DPeer' in found_functions}}cdef void *__cuMemcpy3DPeer = NULL{{endif}} -{{if 'cuMemcpyAsync' in found_functions}}cdef void *__cuMemcpyAsync = NULL{{endif}} -{{if 'cuMemcpyPeerAsync' in found_functions}}cdef void *__cuMemcpyPeerAsync = NULL{{endif}} -{{if 'cuMemcpyHtoDAsync_v2' in found_functions}}cdef void *__cuMemcpyHtoDAsync_v2 = NULL{{endif}} -{{if 'cuMemcpyDtoHAsync_v2' in found_functions}}cdef void *__cuMemcpyDtoHAsync_v2 = NULL{{endif}} -{{if 'cuMemcpyDtoDAsync_v2' in found_functions}}cdef void *__cuMemcpyDtoDAsync_v2 = NULL{{endif}} -{{if 'cuMemcpyHtoAAsync_v2' in found_functions}}cdef void *__cuMemcpyHtoAAsync_v2 = NULL{{endif}} -{{if 'cuMemcpyAtoHAsync_v2' in found_functions}}cdef void *__cuMemcpyAtoHAsync_v2 = NULL{{endif}} -{{if 'cuMemcpy2DAsync_v2' in found_functions}}cdef void *__cuMemcpy2DAsync_v2 = NULL{{endif}} -{{if 'cuMemcpy3DAsync_v2' in found_functions}}cdef void *__cuMemcpy3DAsync_v2 = NULL{{endif}} -{{if 'cuMemcpy3DPeerAsync' in found_functions}}cdef void *__cuMemcpy3DPeerAsync = NULL{{endif}} -{{if 'cuMemcpyBatchAsync_v2' in found_functions}}cdef void *__cuMemcpyBatchAsync_v2 = NULL{{endif}} -{{if 'cuMemcpy3DBatchAsync_v2' in found_functions}}cdef void *__cuMemcpy3DBatchAsync_v2 = NULL{{endif}} -{{if 'cuMemcpyWithAttributesAsync' in found_functions}}cdef void *__cuMemcpyWithAttributesAsync = NULL{{endif}} -{{if 'cuMemcpy3DWithAttributesAsync' in found_functions}}cdef void *__cuMemcpy3DWithAttributesAsync = NULL{{endif}} -{{if 'cuMemsetD8_v2' in found_functions}}cdef void *__cuMemsetD8_v2 = NULL{{endif}} -{{if 'cuMemsetD16_v2' in found_functions}}cdef void *__cuMemsetD16_v2 = NULL{{endif}} -{{if 'cuMemsetD32_v2' in found_functions}}cdef void *__cuMemsetD32_v2 = NULL{{endif}} -{{if 'cuMemsetD2D8_v2' in found_functions}}cdef void *__cuMemsetD2D8_v2 = NULL{{endif}} -{{if 'cuMemsetD2D16_v2' in found_functions}}cdef void *__cuMemsetD2D16_v2 = NULL{{endif}} -{{if 'cuMemsetD2D32_v2' in found_functions}}cdef void *__cuMemsetD2D32_v2 = NULL{{endif}} -{{if 'cuMemsetD8Async' in found_functions}}cdef void *__cuMemsetD8Async = NULL{{endif}} -{{if 'cuMemsetD16Async' in found_functions}}cdef void *__cuMemsetD16Async = NULL{{endif}} -{{if 'cuMemsetD32Async' in found_functions}}cdef void *__cuMemsetD32Async = NULL{{endif}} -{{if 'cuMemsetD2D8Async' in found_functions}}cdef void *__cuMemsetD2D8Async = NULL{{endif}} -{{if 'cuMemsetD2D16Async' in found_functions}}cdef void *__cuMemsetD2D16Async = NULL{{endif}} -{{if 'cuMemsetD2D32Async' in found_functions}}cdef void *__cuMemsetD2D32Async = NULL{{endif}} -{{if 'cuArrayCreate_v2' in found_functions}}cdef void *__cuArrayCreate_v2 = NULL{{endif}} -{{if 'cuArrayGetDescriptor_v2' in found_functions}}cdef void *__cuArrayGetDescriptor_v2 = NULL{{endif}} -{{if 'cuArrayGetSparseProperties' in found_functions}}cdef void *__cuArrayGetSparseProperties = NULL{{endif}} -{{if 'cuMipmappedArrayGetSparseProperties' in found_functions}}cdef void *__cuMipmappedArrayGetSparseProperties = NULL{{endif}} -{{if 'cuArrayGetMemoryRequirements' in found_functions}}cdef void *__cuArrayGetMemoryRequirements = NULL{{endif}} -{{if 'cuMipmappedArrayGetMemoryRequirements' in found_functions}}cdef void *__cuMipmappedArrayGetMemoryRequirements = NULL{{endif}} -{{if 'cuArrayGetPlane' in found_functions}}cdef void *__cuArrayGetPlane = NULL{{endif}} -{{if 'cuArrayDestroy' in found_functions}}cdef void *__cuArrayDestroy = NULL{{endif}} -{{if 'cuArray3DCreate_v2' in found_functions}}cdef void *__cuArray3DCreate_v2 = NULL{{endif}} -{{if 'cuArray3DGetDescriptor_v2' in found_functions}}cdef void *__cuArray3DGetDescriptor_v2 = NULL{{endif}} -{{if 'cuMipmappedArrayCreate' in found_functions}}cdef void *__cuMipmappedArrayCreate = NULL{{endif}} -{{if 'cuMipmappedArrayGetLevel' in found_functions}}cdef void *__cuMipmappedArrayGetLevel = NULL{{endif}} -{{if 'cuMipmappedArrayDestroy' in found_functions}}cdef void *__cuMipmappedArrayDestroy = NULL{{endif}} -{{if 'cuMemGetHandleForAddressRange' in found_functions}}cdef void *__cuMemGetHandleForAddressRange = NULL{{endif}} -{{if 'cuMemBatchDecompressAsync' in found_functions}}cdef void *__cuMemBatchDecompressAsync = NULL{{endif}} -{{if 'cuMemAddressReserve' in found_functions}}cdef void *__cuMemAddressReserve = NULL{{endif}} -{{if 'cuMemAddressFree' in found_functions}}cdef void *__cuMemAddressFree = NULL{{endif}} -{{if 'cuMemCreate' in found_functions}}cdef void *__cuMemCreate = NULL{{endif}} -{{if 'cuMemRelease' in found_functions}}cdef void *__cuMemRelease = NULL{{endif}} -{{if 'cuMemMap' in found_functions}}cdef void *__cuMemMap = NULL{{endif}} -{{if 'cuMemMapArrayAsync' in found_functions}}cdef void *__cuMemMapArrayAsync = NULL{{endif}} -{{if 'cuMemUnmap' in found_functions}}cdef void *__cuMemUnmap = NULL{{endif}} -{{if 'cuMemSetAccess' in found_functions}}cdef void *__cuMemSetAccess = NULL{{endif}} -{{if 'cuMemGetAccess' in found_functions}}cdef void *__cuMemGetAccess = NULL{{endif}} -{{if 'cuMemExportToShareableHandle' in found_functions}}cdef void *__cuMemExportToShareableHandle = NULL{{endif}} -{{if 'cuMemImportFromShareableHandle' in found_functions}}cdef void *__cuMemImportFromShareableHandle = NULL{{endif}} -{{if 'cuMemGetAllocationGranularity' in found_functions}}cdef void *__cuMemGetAllocationGranularity = NULL{{endif}} -{{if 'cuMemGetAllocationPropertiesFromHandle' in found_functions}}cdef void *__cuMemGetAllocationPropertiesFromHandle = NULL{{endif}} -{{if 'cuMemRetainAllocationHandle' in found_functions}}cdef void *__cuMemRetainAllocationHandle = NULL{{endif}} -{{if 'cuMemFreeAsync' in found_functions}}cdef void *__cuMemFreeAsync = NULL{{endif}} -{{if 'cuMemAllocAsync' in found_functions}}cdef void *__cuMemAllocAsync = NULL{{endif}} -{{if 'cuMemPoolTrimTo' in found_functions}}cdef void *__cuMemPoolTrimTo = NULL{{endif}} -{{if 'cuMemPoolSetAttribute' in found_functions}}cdef void *__cuMemPoolSetAttribute = NULL{{endif}} -{{if 'cuMemPoolGetAttribute' in found_functions}}cdef void *__cuMemPoolGetAttribute = NULL{{endif}} -{{if 'cuMemPoolSetAccess' in found_functions}}cdef void *__cuMemPoolSetAccess = NULL{{endif}} -{{if 'cuMemPoolGetAccess' in found_functions}}cdef void *__cuMemPoolGetAccess = NULL{{endif}} -{{if 'cuMemPoolCreate' in found_functions}}cdef void *__cuMemPoolCreate = NULL{{endif}} -{{if 'cuMemPoolDestroy' in found_functions}}cdef void *__cuMemPoolDestroy = NULL{{endif}} -{{if 'cuMemGetDefaultMemPool' in found_functions}}cdef void *__cuMemGetDefaultMemPool = NULL{{endif}} -{{if 'cuMemGetMemPool' in found_functions}}cdef void *__cuMemGetMemPool = NULL{{endif}} -{{if 'cuMemSetMemPool' in found_functions}}cdef void *__cuMemSetMemPool = NULL{{endif}} -{{if 'cuMemAllocFromPoolAsync' in found_functions}}cdef void *__cuMemAllocFromPoolAsync = NULL{{endif}} -{{if 'cuMemPoolExportToShareableHandle' in found_functions}}cdef void *__cuMemPoolExportToShareableHandle = NULL{{endif}} -{{if 'cuMemPoolImportFromShareableHandle' in found_functions}}cdef void *__cuMemPoolImportFromShareableHandle = NULL{{endif}} -{{if 'cuMemPoolExportPointer' in found_functions}}cdef void *__cuMemPoolExportPointer = NULL{{endif}} -{{if 'cuMemPoolImportPointer' in found_functions}}cdef void *__cuMemPoolImportPointer = NULL{{endif}} -{{if 'cuMulticastCreate' in found_functions}}cdef void *__cuMulticastCreate = NULL{{endif}} -{{if 'cuMulticastAddDevice' in found_functions}}cdef void *__cuMulticastAddDevice = NULL{{endif}} -{{if 'cuMulticastBindMem' in found_functions}}cdef void *__cuMulticastBindMem = NULL{{endif}} -{{if 'cuMulticastBindMem_v2' in found_functions}}cdef void *__cuMulticastBindMem_v2 = NULL{{endif}} -{{if 'cuMulticastBindAddr' in found_functions}}cdef void *__cuMulticastBindAddr = NULL{{endif}} -{{if 'cuMulticastBindAddr_v2' in found_functions}}cdef void *__cuMulticastBindAddr_v2 = NULL{{endif}} -{{if 'cuMulticastUnbind' in found_functions}}cdef void *__cuMulticastUnbind = NULL{{endif}} -{{if 'cuMulticastGetGranularity' in found_functions}}cdef void *__cuMulticastGetGranularity = NULL{{endif}} -{{if 'cuPointerGetAttribute' in found_functions}}cdef void *__cuPointerGetAttribute = NULL{{endif}} -{{if 'cuMemPrefetchAsync_v2' in found_functions}}cdef void *__cuMemPrefetchAsync_v2 = NULL{{endif}} -{{if 'cuMemAdvise_v2' in found_functions}}cdef void *__cuMemAdvise_v2 = NULL{{endif}} -{{if 'cuMemPrefetchBatchAsync' in found_functions}}cdef void *__cuMemPrefetchBatchAsync = NULL{{endif}} -{{if 'cuMemDiscardBatchAsync' in found_functions}}cdef void *__cuMemDiscardBatchAsync = NULL{{endif}} -{{if 'cuMemDiscardAndPrefetchBatchAsync' in found_functions}}cdef void *__cuMemDiscardAndPrefetchBatchAsync = NULL{{endif}} -{{if 'cuMemRangeGetAttribute' in found_functions}}cdef void *__cuMemRangeGetAttribute = NULL{{endif}} -{{if 'cuMemRangeGetAttributes' in found_functions}}cdef void *__cuMemRangeGetAttributes = NULL{{endif}} -{{if 'cuPointerSetAttribute' in found_functions}}cdef void *__cuPointerSetAttribute = NULL{{endif}} -{{if 'cuPointerGetAttributes' in found_functions}}cdef void *__cuPointerGetAttributes = NULL{{endif}} -{{if 'cuStreamCreate' in found_functions}}cdef void *__cuStreamCreate = NULL{{endif}} -{{if 'cuStreamCreateWithPriority' in found_functions}}cdef void *__cuStreamCreateWithPriority = NULL{{endif}} -{{if 'cuStreamBeginCaptureToCig' in found_functions}}cdef void *__cuStreamBeginCaptureToCig = NULL{{endif}} -{{if 'cuStreamEndCaptureToCig' in found_functions}}cdef void *__cuStreamEndCaptureToCig = NULL{{endif}} -{{if 'cuStreamGetPriority' in found_functions}}cdef void *__cuStreamGetPriority = NULL{{endif}} -{{if 'cuStreamGetDevice' in found_functions}}cdef void *__cuStreamGetDevice = NULL{{endif}} -{{if 'cuStreamGetFlags' in found_functions}}cdef void *__cuStreamGetFlags = NULL{{endif}} -{{if 'cuStreamGetId' in found_functions}}cdef void *__cuStreamGetId = NULL{{endif}} -{{if 'cuStreamGetCtx' in found_functions}}cdef void *__cuStreamGetCtx = NULL{{endif}} -{{if 'cuStreamGetCtx_v2' in found_functions}}cdef void *__cuStreamGetCtx_v2 = NULL{{endif}} -{{if 'cuStreamWaitEvent' in found_functions}}cdef void *__cuStreamWaitEvent = NULL{{endif}} -{{if 'cuStreamAddCallback' in found_functions}}cdef void *__cuStreamAddCallback = NULL{{endif}} -{{if 'cuStreamBeginCapture_v2' in found_functions}}cdef void *__cuStreamBeginCapture_v2 = NULL{{endif}} -{{if 'cuStreamBeginCaptureToGraph' in found_functions}}cdef void *__cuStreamBeginCaptureToGraph = NULL{{endif}} -{{if 'cuThreadExchangeStreamCaptureMode' in found_functions}}cdef void *__cuThreadExchangeStreamCaptureMode = NULL{{endif}} -{{if 'cuStreamEndCapture' in found_functions}}cdef void *__cuStreamEndCapture = NULL{{endif}} -{{if 'cuStreamIsCapturing' in found_functions}}cdef void *__cuStreamIsCapturing = NULL{{endif}} -{{if 'cuStreamGetCaptureInfo_v3' in found_functions}}cdef void *__cuStreamGetCaptureInfo_v3 = NULL{{endif}} -{{if 'cuStreamUpdateCaptureDependencies_v2' in found_functions}}cdef void *__cuStreamUpdateCaptureDependencies_v2 = NULL{{endif}} -{{if 'cuStreamAttachMemAsync' in found_functions}}cdef void *__cuStreamAttachMemAsync = NULL{{endif}} -{{if 'cuStreamQuery' in found_functions}}cdef void *__cuStreamQuery = NULL{{endif}} -{{if 'cuStreamSynchronize' in found_functions}}cdef void *__cuStreamSynchronize = NULL{{endif}} -{{if 'cuStreamDestroy_v2' in found_functions}}cdef void *__cuStreamDestroy_v2 = NULL{{endif}} -{{if 'cuStreamCopyAttributes' in found_functions}}cdef void *__cuStreamCopyAttributes = NULL{{endif}} -{{if 'cuStreamGetAttribute' in found_functions}}cdef void *__cuStreamGetAttribute = NULL{{endif}} -{{if 'cuStreamSetAttribute' in found_functions}}cdef void *__cuStreamSetAttribute = NULL{{endif}} -{{if 'cuEventCreate' in found_functions}}cdef void *__cuEventCreate = NULL{{endif}} -{{if 'cuEventRecord' in found_functions}}cdef void *__cuEventRecord = NULL{{endif}} -{{if 'cuEventRecordWithFlags' in found_functions}}cdef void *__cuEventRecordWithFlags = NULL{{endif}} -{{if 'cuEventQuery' in found_functions}}cdef void *__cuEventQuery = NULL{{endif}} -{{if 'cuEventSynchronize' in found_functions}}cdef void *__cuEventSynchronize = NULL{{endif}} -{{if 'cuEventDestroy_v2' in found_functions}}cdef void *__cuEventDestroy_v2 = NULL{{endif}} -{{if 'cuEventElapsedTime_v2' in found_functions}}cdef void *__cuEventElapsedTime_v2 = NULL{{endif}} -{{if 'cuImportExternalMemory' in found_functions}}cdef void *__cuImportExternalMemory = NULL{{endif}} -{{if 'cuExternalMemoryGetMappedBuffer' in found_functions}}cdef void *__cuExternalMemoryGetMappedBuffer = NULL{{endif}} -{{if 'cuExternalMemoryGetMappedMipmappedArray' in found_functions}}cdef void *__cuExternalMemoryGetMappedMipmappedArray = NULL{{endif}} -{{if 'cuDestroyExternalMemory' in found_functions}}cdef void *__cuDestroyExternalMemory = NULL{{endif}} -{{if 'cuImportExternalSemaphore' in found_functions}}cdef void *__cuImportExternalSemaphore = NULL{{endif}} -{{if 'cuSignalExternalSemaphoresAsync' in found_functions}}cdef void *__cuSignalExternalSemaphoresAsync = NULL{{endif}} -{{if 'cuWaitExternalSemaphoresAsync' in found_functions}}cdef void *__cuWaitExternalSemaphoresAsync = NULL{{endif}} -{{if 'cuDestroyExternalSemaphore' in found_functions}}cdef void *__cuDestroyExternalSemaphore = NULL{{endif}} -{{if 'cuStreamWaitValue32_v2' in found_functions}}cdef void *__cuStreamWaitValue32_v2 = NULL{{endif}} -{{if 'cuStreamWaitValue64_v2' in found_functions}}cdef void *__cuStreamWaitValue64_v2 = NULL{{endif}} -{{if 'cuStreamWriteValue32_v2' in found_functions}}cdef void *__cuStreamWriteValue32_v2 = NULL{{endif}} -{{if 'cuStreamWriteValue64_v2' in found_functions}}cdef void *__cuStreamWriteValue64_v2 = NULL{{endif}} -{{if 'cuStreamBatchMemOp_v2' in found_functions}}cdef void *__cuStreamBatchMemOp_v2 = NULL{{endif}} -{{if 'cuFuncGetAttribute' in found_functions}}cdef void *__cuFuncGetAttribute = NULL{{endif}} -{{if 'cuFuncSetAttribute' in found_functions}}cdef void *__cuFuncSetAttribute = NULL{{endif}} -{{if 'cuFuncSetCacheConfig' in found_functions}}cdef void *__cuFuncSetCacheConfig = NULL{{endif}} -{{if 'cuFuncGetModule' in found_functions}}cdef void *__cuFuncGetModule = NULL{{endif}} -{{if 'cuFuncGetName' in found_functions}}cdef void *__cuFuncGetName = NULL{{endif}} -{{if 'cuFuncGetParamInfo' in found_functions}}cdef void *__cuFuncGetParamInfo = NULL{{endif}} -{{if 'cuFuncGetParamCount' in found_functions}}cdef void *__cuFuncGetParamCount = NULL{{endif}} -{{if 'cuFuncIsLoaded' in found_functions}}cdef void *__cuFuncIsLoaded = NULL{{endif}} -{{if 'cuFuncLoad' in found_functions}}cdef void *__cuFuncLoad = NULL{{endif}} -{{if 'cuLaunchKernel' in found_functions}}cdef void *__cuLaunchKernel = NULL{{endif}} -{{if 'cuLaunchKernelEx' in found_functions}}cdef void *__cuLaunchKernelEx = NULL{{endif}} -{{if 'cuLaunchCooperativeKernel' in found_functions}}cdef void *__cuLaunchCooperativeKernel = NULL{{endif}} -{{if 'cuLaunchCooperativeKernelMultiDevice' in found_functions}}cdef void *__cuLaunchCooperativeKernelMultiDevice = NULL{{endif}} -{{if 'cuLaunchHostFunc' in found_functions}}cdef void *__cuLaunchHostFunc = NULL{{endif}} -{{if 'cuLaunchHostFunc_v2' in found_functions}}cdef void *__cuLaunchHostFunc_v2 = NULL{{endif}} -{{if 'cuFuncSetBlockShape' in found_functions}}cdef void *__cuFuncSetBlockShape = NULL{{endif}} -{{if 'cuFuncSetSharedSize' in found_functions}}cdef void *__cuFuncSetSharedSize = NULL{{endif}} -{{if 'cuParamSetSize' in found_functions}}cdef void *__cuParamSetSize = NULL{{endif}} -{{if 'cuParamSeti' in found_functions}}cdef void *__cuParamSeti = NULL{{endif}} -{{if 'cuParamSetf' in found_functions}}cdef void *__cuParamSetf = NULL{{endif}} -{{if 'cuParamSetv' in found_functions}}cdef void *__cuParamSetv = NULL{{endif}} -{{if 'cuLaunch' in found_functions}}cdef void *__cuLaunch = NULL{{endif}} -{{if 'cuLaunchGrid' in found_functions}}cdef void *__cuLaunchGrid = NULL{{endif}} -{{if 'cuLaunchGridAsync' in found_functions}}cdef void *__cuLaunchGridAsync = NULL{{endif}} -{{if 'cuParamSetTexRef' in found_functions}}cdef void *__cuParamSetTexRef = NULL{{endif}} -{{if 'cuFuncSetSharedMemConfig' in found_functions}}cdef void *__cuFuncSetSharedMemConfig = NULL{{endif}} -{{if 'cuGraphCreate' in found_functions}}cdef void *__cuGraphCreate = NULL{{endif}} -{{if 'cuGraphAddKernelNode_v2' in found_functions}}cdef void *__cuGraphAddKernelNode_v2 = NULL{{endif}} -{{if 'cuGraphKernelNodeGetParams_v2' in found_functions}}cdef void *__cuGraphKernelNodeGetParams_v2 = NULL{{endif}} -{{if 'cuGraphKernelNodeSetParams_v2' in found_functions}}cdef void *__cuGraphKernelNodeSetParams_v2 = NULL{{endif}} -{{if 'cuGraphAddMemcpyNode' in found_functions}}cdef void *__cuGraphAddMemcpyNode = NULL{{endif}} -{{if 'cuGraphMemcpyNodeGetParams' in found_functions}}cdef void *__cuGraphMemcpyNodeGetParams = NULL{{endif}} -{{if 'cuGraphMemcpyNodeSetParams' in found_functions}}cdef void *__cuGraphMemcpyNodeSetParams = NULL{{endif}} -{{if 'cuGraphAddMemsetNode' in found_functions}}cdef void *__cuGraphAddMemsetNode = NULL{{endif}} -{{if 'cuGraphMemsetNodeGetParams' in found_functions}}cdef void *__cuGraphMemsetNodeGetParams = NULL{{endif}} -{{if 'cuGraphMemsetNodeSetParams' in found_functions}}cdef void *__cuGraphMemsetNodeSetParams = NULL{{endif}} -{{if 'cuGraphAddHostNode' in found_functions}}cdef void *__cuGraphAddHostNode = NULL{{endif}} -{{if 'cuGraphHostNodeGetParams' in found_functions}}cdef void *__cuGraphHostNodeGetParams = NULL{{endif}} -{{if 'cuGraphHostNodeSetParams' in found_functions}}cdef void *__cuGraphHostNodeSetParams = NULL{{endif}} -{{if 'cuGraphAddChildGraphNode' in found_functions}}cdef void *__cuGraphAddChildGraphNode = NULL{{endif}} -{{if 'cuGraphChildGraphNodeGetGraph' in found_functions}}cdef void *__cuGraphChildGraphNodeGetGraph = NULL{{endif}} -{{if 'cuGraphAddEmptyNode' in found_functions}}cdef void *__cuGraphAddEmptyNode = NULL{{endif}} -{{if 'cuGraphAddEventRecordNode' in found_functions}}cdef void *__cuGraphAddEventRecordNode = NULL{{endif}} -{{if 'cuGraphEventRecordNodeGetEvent' in found_functions}}cdef void *__cuGraphEventRecordNodeGetEvent = NULL{{endif}} -{{if 'cuGraphEventRecordNodeSetEvent' in found_functions}}cdef void *__cuGraphEventRecordNodeSetEvent = NULL{{endif}} -{{if 'cuGraphAddEventWaitNode' in found_functions}}cdef void *__cuGraphAddEventWaitNode = NULL{{endif}} -{{if 'cuGraphEventWaitNodeGetEvent' in found_functions}}cdef void *__cuGraphEventWaitNodeGetEvent = NULL{{endif}} -{{if 'cuGraphEventWaitNodeSetEvent' in found_functions}}cdef void *__cuGraphEventWaitNodeSetEvent = NULL{{endif}} -{{if 'cuGraphAddExternalSemaphoresSignalNode' in found_functions}}cdef void *__cuGraphAddExternalSemaphoresSignalNode = NULL{{endif}} -{{if 'cuGraphExternalSemaphoresSignalNodeGetParams' in found_functions}}cdef void *__cuGraphExternalSemaphoresSignalNodeGetParams = NULL{{endif}} -{{if 'cuGraphExternalSemaphoresSignalNodeSetParams' in found_functions}}cdef void *__cuGraphExternalSemaphoresSignalNodeSetParams = NULL{{endif}} -{{if 'cuGraphAddExternalSemaphoresWaitNode' in found_functions}}cdef void *__cuGraphAddExternalSemaphoresWaitNode = NULL{{endif}} -{{if 'cuGraphExternalSemaphoresWaitNodeGetParams' in found_functions}}cdef void *__cuGraphExternalSemaphoresWaitNodeGetParams = NULL{{endif}} -{{if 'cuGraphExternalSemaphoresWaitNodeSetParams' in found_functions}}cdef void *__cuGraphExternalSemaphoresWaitNodeSetParams = NULL{{endif}} -{{if 'cuGraphAddBatchMemOpNode' in found_functions}}cdef void *__cuGraphAddBatchMemOpNode = NULL{{endif}} -{{if 'cuGraphBatchMemOpNodeGetParams' in found_functions}}cdef void *__cuGraphBatchMemOpNodeGetParams = NULL{{endif}} -{{if 'cuGraphBatchMemOpNodeSetParams' in found_functions}}cdef void *__cuGraphBatchMemOpNodeSetParams = NULL{{endif}} -{{if 'cuGraphExecBatchMemOpNodeSetParams' in found_functions}}cdef void *__cuGraphExecBatchMemOpNodeSetParams = NULL{{endif}} -{{if 'cuGraphAddMemAllocNode' in found_functions}}cdef void *__cuGraphAddMemAllocNode = NULL{{endif}} -{{if 'cuGraphMemAllocNodeGetParams' in found_functions}}cdef void *__cuGraphMemAllocNodeGetParams = NULL{{endif}} -{{if 'cuGraphAddMemFreeNode' in found_functions}}cdef void *__cuGraphAddMemFreeNode = NULL{{endif}} -{{if 'cuGraphMemFreeNodeGetParams' in found_functions}}cdef void *__cuGraphMemFreeNodeGetParams = NULL{{endif}} -{{if 'cuDeviceGraphMemTrim' in found_functions}}cdef void *__cuDeviceGraphMemTrim = NULL{{endif}} -{{if 'cuDeviceGetGraphMemAttribute' in found_functions}}cdef void *__cuDeviceGetGraphMemAttribute = NULL{{endif}} -{{if 'cuDeviceSetGraphMemAttribute' in found_functions}}cdef void *__cuDeviceSetGraphMemAttribute = NULL{{endif}} -{{if 'cuGraphClone' in found_functions}}cdef void *__cuGraphClone = NULL{{endif}} -{{if 'cuGraphNodeFindInClone' in found_functions}}cdef void *__cuGraphNodeFindInClone = NULL{{endif}} -{{if 'cuGraphNodeGetType' in found_functions}}cdef void *__cuGraphNodeGetType = NULL{{endif}} -{{if 'cuGraphNodeGetContainingGraph' in found_functions}}cdef void *__cuGraphNodeGetContainingGraph = NULL{{endif}} -{{if 'cuGraphNodeGetLocalId' in found_functions}}cdef void *__cuGraphNodeGetLocalId = NULL{{endif}} -{{if 'cuGraphNodeGetToolsId' in found_functions}}cdef void *__cuGraphNodeGetToolsId = NULL{{endif}} -{{if 'cuGraphGetId' in found_functions}}cdef void *__cuGraphGetId = NULL{{endif}} -{{if 'cuGraphExecGetId' in found_functions}}cdef void *__cuGraphExecGetId = NULL{{endif}} -{{if 'cuGraphGetNodes' in found_functions}}cdef void *__cuGraphGetNodes = NULL{{endif}} -{{if 'cuGraphGetRootNodes' in found_functions}}cdef void *__cuGraphGetRootNodes = NULL{{endif}} -{{if 'cuGraphGetEdges_v2' in found_functions}}cdef void *__cuGraphGetEdges_v2 = NULL{{endif}} -{{if 'cuGraphNodeGetDependencies_v2' in found_functions}}cdef void *__cuGraphNodeGetDependencies_v2 = NULL{{endif}} -{{if 'cuGraphNodeGetDependentNodes_v2' in found_functions}}cdef void *__cuGraphNodeGetDependentNodes_v2 = NULL{{endif}} -{{if 'cuGraphAddDependencies_v2' in found_functions}}cdef void *__cuGraphAddDependencies_v2 = NULL{{endif}} -{{if 'cuGraphRemoveDependencies_v2' in found_functions}}cdef void *__cuGraphRemoveDependencies_v2 = NULL{{endif}} -{{if 'cuGraphDestroyNode' in found_functions}}cdef void *__cuGraphDestroyNode = NULL{{endif}} -{{if 'cuGraphInstantiateWithFlags' in found_functions}}cdef void *__cuGraphInstantiateWithFlags = NULL{{endif}} -{{if 'cuGraphInstantiateWithParams' in found_functions}}cdef void *__cuGraphInstantiateWithParams = NULL{{endif}} -{{if 'cuGraphExecGetFlags' in found_functions}}cdef void *__cuGraphExecGetFlags = NULL{{endif}} -{{if 'cuGraphExecKernelNodeSetParams_v2' in found_functions}}cdef void *__cuGraphExecKernelNodeSetParams_v2 = NULL{{endif}} -{{if 'cuGraphExecMemcpyNodeSetParams' in found_functions}}cdef void *__cuGraphExecMemcpyNodeSetParams = NULL{{endif}} -{{if 'cuGraphExecMemsetNodeSetParams' in found_functions}}cdef void *__cuGraphExecMemsetNodeSetParams = NULL{{endif}} -{{if 'cuGraphExecHostNodeSetParams' in found_functions}}cdef void *__cuGraphExecHostNodeSetParams = NULL{{endif}} -{{if 'cuGraphExecChildGraphNodeSetParams' in found_functions}}cdef void *__cuGraphExecChildGraphNodeSetParams = NULL{{endif}} -{{if 'cuGraphExecEventRecordNodeSetEvent' in found_functions}}cdef void *__cuGraphExecEventRecordNodeSetEvent = NULL{{endif}} -{{if 'cuGraphExecEventWaitNodeSetEvent' in found_functions}}cdef void *__cuGraphExecEventWaitNodeSetEvent = NULL{{endif}} -{{if 'cuGraphExecExternalSemaphoresSignalNodeSetParams' in found_functions}}cdef void *__cuGraphExecExternalSemaphoresSignalNodeSetParams = NULL{{endif}} -{{if 'cuGraphExecExternalSemaphoresWaitNodeSetParams' in found_functions}}cdef void *__cuGraphExecExternalSemaphoresWaitNodeSetParams = NULL{{endif}} -{{if 'cuGraphNodeSetEnabled' in found_functions}}cdef void *__cuGraphNodeSetEnabled = NULL{{endif}} -{{if 'cuGraphNodeGetEnabled' in found_functions}}cdef void *__cuGraphNodeGetEnabled = NULL{{endif}} -{{if 'cuGraphUpload' in found_functions}}cdef void *__cuGraphUpload = NULL{{endif}} -{{if 'cuGraphLaunch' in found_functions}}cdef void *__cuGraphLaunch = NULL{{endif}} -{{if 'cuGraphExecDestroy' in found_functions}}cdef void *__cuGraphExecDestroy = NULL{{endif}} -{{if 'cuGraphDestroy' in found_functions}}cdef void *__cuGraphDestroy = NULL{{endif}} -{{if 'cuGraphExecUpdate_v2' in found_functions}}cdef void *__cuGraphExecUpdate_v2 = NULL{{endif}} -{{if 'cuGraphKernelNodeCopyAttributes' in found_functions}}cdef void *__cuGraphKernelNodeCopyAttributes = NULL{{endif}} -{{if 'cuGraphKernelNodeGetAttribute' in found_functions}}cdef void *__cuGraphKernelNodeGetAttribute = NULL{{endif}} -{{if 'cuGraphKernelNodeSetAttribute' in found_functions}}cdef void *__cuGraphKernelNodeSetAttribute = NULL{{endif}} -{{if 'cuGraphDebugDotPrint' in found_functions}}cdef void *__cuGraphDebugDotPrint = NULL{{endif}} -{{if 'cuUserObjectCreate' in found_functions}}cdef void *__cuUserObjectCreate = NULL{{endif}} -{{if 'cuUserObjectRetain' in found_functions}}cdef void *__cuUserObjectRetain = NULL{{endif}} -{{if 'cuUserObjectRelease' in found_functions}}cdef void *__cuUserObjectRelease = NULL{{endif}} -{{if 'cuGraphRetainUserObject' in found_functions}}cdef void *__cuGraphRetainUserObject = NULL{{endif}} -{{if 'cuGraphReleaseUserObject' in found_functions}}cdef void *__cuGraphReleaseUserObject = NULL{{endif}} -{{if 'cuGraphAddNode_v2' in found_functions}}cdef void *__cuGraphAddNode_v2 = NULL{{endif}} -{{if 'cuGraphNodeSetParams' in found_functions}}cdef void *__cuGraphNodeSetParams = NULL{{endif}} -{{if 'cuGraphNodeGetParams' in found_functions}}cdef void *__cuGraphNodeGetParams = NULL{{endif}} -{{if 'cuGraphExecNodeSetParams' in found_functions}}cdef void *__cuGraphExecNodeSetParams = NULL{{endif}} -{{if 'cuGraphConditionalHandleCreate' in found_functions}}cdef void *__cuGraphConditionalHandleCreate = NULL{{endif}} -{{if 'cuOccupancyMaxActiveBlocksPerMultiprocessor' in found_functions}}cdef void *__cuOccupancyMaxActiveBlocksPerMultiprocessor = NULL{{endif}} -{{if 'cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags' in found_functions}}cdef void *__cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags = NULL{{endif}} -{{if 'cuOccupancyMaxPotentialBlockSize' in found_functions}}cdef void *__cuOccupancyMaxPotentialBlockSize = NULL{{endif}} -{{if 'cuOccupancyMaxPotentialBlockSizeWithFlags' in found_functions}}cdef void *__cuOccupancyMaxPotentialBlockSizeWithFlags = NULL{{endif}} -{{if 'cuOccupancyAvailableDynamicSMemPerBlock' in found_functions}}cdef void *__cuOccupancyAvailableDynamicSMemPerBlock = NULL{{endif}} -{{if 'cuOccupancyMaxPotentialClusterSize' in found_functions}}cdef void *__cuOccupancyMaxPotentialClusterSize = NULL{{endif}} -{{if 'cuOccupancyMaxActiveClusters' in found_functions}}cdef void *__cuOccupancyMaxActiveClusters = NULL{{endif}} -{{if 'cuTexRefSetArray' in found_functions}}cdef void *__cuTexRefSetArray = NULL{{endif}} -{{if 'cuTexRefSetMipmappedArray' in found_functions}}cdef void *__cuTexRefSetMipmappedArray = NULL{{endif}} -{{if 'cuTexRefSetAddress_v2' in found_functions}}cdef void *__cuTexRefSetAddress_v2 = NULL{{endif}} -{{if 'cuTexRefSetAddress2D_v3' in found_functions}}cdef void *__cuTexRefSetAddress2D_v3 = NULL{{endif}} -{{if 'cuTexRefSetFormat' in found_functions}}cdef void *__cuTexRefSetFormat = NULL{{endif}} -{{if 'cuTexRefSetAddressMode' in found_functions}}cdef void *__cuTexRefSetAddressMode = NULL{{endif}} -{{if 'cuTexRefSetFilterMode' in found_functions}}cdef void *__cuTexRefSetFilterMode = NULL{{endif}} -{{if 'cuTexRefSetMipmapFilterMode' in found_functions}}cdef void *__cuTexRefSetMipmapFilterMode = NULL{{endif}} -{{if 'cuTexRefSetMipmapLevelBias' in found_functions}}cdef void *__cuTexRefSetMipmapLevelBias = NULL{{endif}} -{{if 'cuTexRefSetMipmapLevelClamp' in found_functions}}cdef void *__cuTexRefSetMipmapLevelClamp = NULL{{endif}} -{{if 'cuTexRefSetMaxAnisotropy' in found_functions}}cdef void *__cuTexRefSetMaxAnisotropy = NULL{{endif}} -{{if 'cuTexRefSetBorderColor' in found_functions}}cdef void *__cuTexRefSetBorderColor = NULL{{endif}} -{{if 'cuTexRefSetFlags' in found_functions}}cdef void *__cuTexRefSetFlags = NULL{{endif}} -{{if 'cuTexRefGetAddress_v2' in found_functions}}cdef void *__cuTexRefGetAddress_v2 = NULL{{endif}} -{{if 'cuTexRefGetArray' in found_functions}}cdef void *__cuTexRefGetArray = NULL{{endif}} -{{if 'cuTexRefGetMipmappedArray' in found_functions}}cdef void *__cuTexRefGetMipmappedArray = NULL{{endif}} -{{if 'cuTexRefGetAddressMode' in found_functions}}cdef void *__cuTexRefGetAddressMode = NULL{{endif}} -{{if 'cuTexRefGetFilterMode' in found_functions}}cdef void *__cuTexRefGetFilterMode = NULL{{endif}} -{{if 'cuTexRefGetFormat' in found_functions}}cdef void *__cuTexRefGetFormat = NULL{{endif}} -{{if 'cuTexRefGetMipmapFilterMode' in found_functions}}cdef void *__cuTexRefGetMipmapFilterMode = NULL{{endif}} -{{if 'cuTexRefGetMipmapLevelBias' in found_functions}}cdef void *__cuTexRefGetMipmapLevelBias = NULL{{endif}} -{{if 'cuTexRefGetMipmapLevelClamp' in found_functions}}cdef void *__cuTexRefGetMipmapLevelClamp = NULL{{endif}} -{{if 'cuTexRefGetMaxAnisotropy' in found_functions}}cdef void *__cuTexRefGetMaxAnisotropy = NULL{{endif}} -{{if 'cuTexRefGetBorderColor' in found_functions}}cdef void *__cuTexRefGetBorderColor = NULL{{endif}} -{{if 'cuTexRefGetFlags' in found_functions}}cdef void *__cuTexRefGetFlags = NULL{{endif}} -{{if 'cuTexRefCreate' in found_functions}}cdef void *__cuTexRefCreate = NULL{{endif}} -{{if 'cuTexRefDestroy' in found_functions}}cdef void *__cuTexRefDestroy = NULL{{endif}} -{{if 'cuSurfRefSetArray' in found_functions}}cdef void *__cuSurfRefSetArray = NULL{{endif}} -{{if 'cuSurfRefGetArray' in found_functions}}cdef void *__cuSurfRefGetArray = NULL{{endif}} -{{if 'cuTexObjectCreate' in found_functions}}cdef void *__cuTexObjectCreate = NULL{{endif}} -{{if 'cuTexObjectDestroy' in found_functions}}cdef void *__cuTexObjectDestroy = NULL{{endif}} -{{if 'cuTexObjectGetResourceDesc' in found_functions}}cdef void *__cuTexObjectGetResourceDesc = NULL{{endif}} -{{if 'cuTexObjectGetTextureDesc' in found_functions}}cdef void *__cuTexObjectGetTextureDesc = NULL{{endif}} -{{if 'cuTexObjectGetResourceViewDesc' in found_functions}}cdef void *__cuTexObjectGetResourceViewDesc = NULL{{endif}} -{{if 'cuSurfObjectCreate' in found_functions}}cdef void *__cuSurfObjectCreate = NULL{{endif}} -{{if 'cuSurfObjectDestroy' in found_functions}}cdef void *__cuSurfObjectDestroy = NULL{{endif}} -{{if 'cuSurfObjectGetResourceDesc' in found_functions}}cdef void *__cuSurfObjectGetResourceDesc = NULL{{endif}} -{{if 'cuTensorMapEncodeTiled' in found_functions}}cdef void *__cuTensorMapEncodeTiled = NULL{{endif}} -{{if 'cuTensorMapEncodeIm2col' in found_functions}}cdef void *__cuTensorMapEncodeIm2col = NULL{{endif}} -{{if 'cuTensorMapEncodeIm2colWide' in found_functions}}cdef void *__cuTensorMapEncodeIm2colWide = NULL{{endif}} -{{if 'cuTensorMapReplaceAddress' in found_functions}}cdef void *__cuTensorMapReplaceAddress = NULL{{endif}} -{{if 'cuDeviceCanAccessPeer' in found_functions}}cdef void *__cuDeviceCanAccessPeer = NULL{{endif}} -{{if 'cuCtxEnablePeerAccess' in found_functions}}cdef void *__cuCtxEnablePeerAccess = NULL{{endif}} -{{if 'cuCtxDisablePeerAccess' in found_functions}}cdef void *__cuCtxDisablePeerAccess = NULL{{endif}} -{{if 'cuDeviceGetP2PAttribute' in found_functions}}cdef void *__cuDeviceGetP2PAttribute = NULL{{endif}} -{{if 'cuDeviceGetP2PAtomicCapabilities' in found_functions}}cdef void *__cuDeviceGetP2PAtomicCapabilities = NULL{{endif}} -{{if 'cuGraphicsUnregisterResource' in found_functions}}cdef void *__cuGraphicsUnregisterResource = NULL{{endif}} -{{if 'cuGraphicsSubResourceGetMappedArray' in found_functions}}cdef void *__cuGraphicsSubResourceGetMappedArray = NULL{{endif}} -{{if 'cuGraphicsResourceGetMappedMipmappedArray' in found_functions}}cdef void *__cuGraphicsResourceGetMappedMipmappedArray = NULL{{endif}} -{{if 'cuGraphicsResourceGetMappedPointer_v2' in found_functions}}cdef void *__cuGraphicsResourceGetMappedPointer_v2 = NULL{{endif}} -{{if 'cuGraphicsResourceSetMapFlags_v2' in found_functions}}cdef void *__cuGraphicsResourceSetMapFlags_v2 = NULL{{endif}} -{{if 'cuGraphicsMapResources' in found_functions}}cdef void *__cuGraphicsMapResources = NULL{{endif}} -{{if 'cuGraphicsUnmapResources' in found_functions}}cdef void *__cuGraphicsUnmapResources = NULL{{endif}} -{{if 'cuGetProcAddress_v2' in found_functions}}cdef void *__cuGetProcAddress_v2 = NULL{{endif}} -{{if 'cuCoredumpGetAttribute' in found_functions}}cdef void *__cuCoredumpGetAttribute = NULL{{endif}} -{{if 'cuCoredumpGetAttributeGlobal' in found_functions}}cdef void *__cuCoredumpGetAttributeGlobal = NULL{{endif}} -{{if 'cuCoredumpSetAttribute' in found_functions}}cdef void *__cuCoredumpSetAttribute = NULL{{endif}} -{{if 'cuCoredumpSetAttributeGlobal' in found_functions}}cdef void *__cuCoredumpSetAttributeGlobal = NULL{{endif}} -{{if 'cuCoredumpRegisterStartCallback' in found_functions}}cdef void *__cuCoredumpRegisterStartCallback = NULL{{endif}} -{{if 'cuCoredumpRegisterCompleteCallback' in found_functions}}cdef void *__cuCoredumpRegisterCompleteCallback = NULL{{endif}} -{{if 'cuCoredumpDeregisterStartCallback' in found_functions}}cdef void *__cuCoredumpDeregisterStartCallback = NULL{{endif}} -{{if 'cuCoredumpDeregisterCompleteCallback' in found_functions}}cdef void *__cuCoredumpDeregisterCompleteCallback = NULL{{endif}} -{{if 'cuGetExportTable' in found_functions}}cdef void *__cuGetExportTable = NULL{{endif}} -{{if 'cuGreenCtxCreate' in found_functions}}cdef void *__cuGreenCtxCreate = NULL{{endif}} -{{if 'cuGreenCtxDestroy' in found_functions}}cdef void *__cuGreenCtxDestroy = NULL{{endif}} -{{if 'cuCtxFromGreenCtx' in found_functions}}cdef void *__cuCtxFromGreenCtx = NULL{{endif}} -{{if 'cuDeviceGetDevResource' in found_functions}}cdef void *__cuDeviceGetDevResource = NULL{{endif}} -{{if 'cuCtxGetDevResource' in found_functions}}cdef void *__cuCtxGetDevResource = NULL{{endif}} -{{if 'cuGreenCtxGetDevResource' in found_functions}}cdef void *__cuGreenCtxGetDevResource = NULL{{endif}} -{{if 'cuDevSmResourceSplitByCount' in found_functions}}cdef void *__cuDevSmResourceSplitByCount = NULL{{endif}} -{{if 'cuDevSmResourceSplit' in found_functions}}cdef void *__cuDevSmResourceSplit = NULL{{endif}} -{{if 'cuDevResourceGenerateDesc' in found_functions}}cdef void *__cuDevResourceGenerateDesc = NULL{{endif}} -{{if 'cuGreenCtxRecordEvent' in found_functions}}cdef void *__cuGreenCtxRecordEvent = NULL{{endif}} -{{if 'cuGreenCtxWaitEvent' in found_functions}}cdef void *__cuGreenCtxWaitEvent = NULL{{endif}} -{{if 'cuStreamGetGreenCtx' in found_functions}}cdef void *__cuStreamGetGreenCtx = NULL{{endif}} -{{if 'cuGreenCtxStreamCreate' in found_functions}}cdef void *__cuGreenCtxStreamCreate = NULL{{endif}} -{{if 'cuGreenCtxGetId' in found_functions}}cdef void *__cuGreenCtxGetId = NULL{{endif}} -{{if 'cuStreamGetDevResource' in found_functions}}cdef void *__cuStreamGetDevResource = NULL{{endif}} -{{if 'cuLogsRegisterCallback' in found_functions}}cdef void *__cuLogsRegisterCallback = NULL{{endif}} -{{if 'cuLogsUnregisterCallback' in found_functions}}cdef void *__cuLogsUnregisterCallback = NULL{{endif}} -{{if 'cuLogsCurrent' in found_functions}}cdef void *__cuLogsCurrent = NULL{{endif}} -{{if 'cuLogsDumpToFile' in found_functions}}cdef void *__cuLogsDumpToFile = NULL{{endif}} -{{if 'cuLogsDumpToMemory' in found_functions}}cdef void *__cuLogsDumpToMemory = NULL{{endif}} -{{if 'cuCheckpointProcessGetRestoreThreadId' in found_functions}}cdef void *__cuCheckpointProcessGetRestoreThreadId = NULL{{endif}} -{{if 'cuCheckpointProcessGetState' in found_functions}}cdef void *__cuCheckpointProcessGetState = NULL{{endif}} -{{if 'cuCheckpointProcessLock' in found_functions}}cdef void *__cuCheckpointProcessLock = NULL{{endif}} -{{if 'cuCheckpointProcessCheckpoint' in found_functions}}cdef void *__cuCheckpointProcessCheckpoint = NULL{{endif}} -{{if 'cuCheckpointProcessRestore' in found_functions}}cdef void *__cuCheckpointProcessRestore = NULL{{endif}} -{{if 'cuCheckpointProcessUnlock' in found_functions}}cdef void *__cuCheckpointProcessUnlock = NULL{{endif}} -{{if 'cuProfilerStart' in found_functions}}cdef void *__cuProfilerStart = NULL{{endif}} -{{if 'cuProfilerStop' in found_functions}}cdef void *__cuProfilerStop = NULL{{endif}} -{{if True}}cdef void *__cuGraphicsEGLRegisterImage = NULL{{endif}} -{{if True}}cdef void *__cuEGLStreamConsumerConnect = NULL{{endif}} -{{if True}}cdef void *__cuEGLStreamConsumerConnectWithFlags = NULL{{endif}} -{{if True}}cdef void *__cuEGLStreamConsumerDisconnect = NULL{{endif}} -{{if True}}cdef void *__cuEGLStreamConsumerAcquireFrame = NULL{{endif}} -{{if True}}cdef void *__cuEGLStreamConsumerReleaseFrame = NULL{{endif}} -{{if True}}cdef void *__cuEGLStreamProducerConnect = NULL{{endif}} -{{if True}}cdef void *__cuEGLStreamProducerDisconnect = NULL{{endif}} -{{if True}}cdef void *__cuEGLStreamProducerPresentFrame = NULL{{endif}} -{{if True}}cdef void *__cuEGLStreamProducerReturnFrame = NULL{{endif}} -{{if True}}cdef void *__cuGraphicsResourceGetMappedEglFrame = NULL{{endif}} -{{if True}}cdef void *__cuEventCreateFromEGLSync = NULL{{endif}} -{{if True}}cdef void *__cuGraphicsGLRegisterBuffer = NULL{{endif}} -{{if True}}cdef void *__cuGraphicsGLRegisterImage = NULL{{endif}} -{{if True}}cdef void *__cuGLGetDevices_v2 = NULL{{endif}} -{{if True}}cdef void *__cuVDPAUGetDevice = NULL{{endif}} -{{if True}}cdef void *__cuVDPAUCtxCreate_v2 = NULL{{endif}} -{{if True}}cdef void *__cuGraphicsVDPAURegisterVideoSurface = NULL{{endif}} -{{if True}}cdef void *__cuGraphicsVDPAURegisterOutputSurface = NULL{{endif}} - -# To make cuPythonInit reentrant -ctypedef CUresult (*__cuGetProcAddress_v2_T)(const char*, void**, int, cuuint64_t, CUdriverProcAddressQueryResult*) except?CUDA_ERROR_NOT_FOUND nogil -cdef __cuGetProcAddress_v2_T _F_cuGetProcAddress_v2 = NULL - -cdef int _cuPythonInit() except -1 nogil: - global __cuPythonInit - - cdef bint usePTDS - cdef char libPath[260] - - with gil, __symbol_lock: - usePTDS = os.getenv('CUDA_PYTHON_CUDA_PER_THREAD_DEFAULT_STREAM', default=0) - - # Load library - libPath[0] = 0 - status = loader.getCUDALibraryPath(libPath, sys.maxsize > 2**32) - if status == 0 and len(libPath) != 0: - path = libPath.decode('utf-8') - else: - {{if 'Windows' == platform.system()}} - path = 'nvcuda.dll' - {{else}} - path = 'libcuda.so.1' - {{endif}} - - {{if 'Windows' == platform.system()}} - handle = windll.LoadLibraryExW(path, NULL, windll.LOAD_LIBRARY_SEARCH_SYSTEM32) - if handle == 0: - raise RuntimeError('Failed to LoadLibraryEx ' + path) - {{else}} - handle = dlfcn.dlopen(bytes(path, encoding='utf-8'), dlfcn.RTLD_NOW) - if handle == NULL: - raise RuntimeError('Failed to dlopen ' + path) - {{endif}} - - # Get latest __cuGetProcAddress_v2 - global __cuGetProcAddress_v2 - {{if 'Windows' == platform.system()}} - __cuGetProcAddress_v2 = windll.GetProcAddress(handle, 'cuGetProcAddress_v2') - {{else}} - __cuGetProcAddress_v2 = dlfcn.dlsym(handle, 'cuGetProcAddress_v2') - {{endif}} - - # Load using cuGetProcAddress if available - if __cuGetProcAddress_v2 != NULL: - _F_cuGetProcAddress_v2 = <__cuGetProcAddress_v2_T>__cuGetProcAddress_v2 - if usePTDS: - # Get all PTDS version of functions - pass - {{if 'cuMemcpy' in found_functions}} - global __cuMemcpy - _F_cuGetProcAddress_v2('cuMemcpy', &__cuMemcpy, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL) - {{endif}} - {{if 'cuMemcpyPeer' in found_functions}} - global __cuMemcpyPeer - _F_cuGetProcAddress_v2('cuMemcpyPeer', &__cuMemcpyPeer, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL) - {{endif}} - {{if 'cuMemcpyHtoD_v2' in found_functions}} - global __cuMemcpyHtoD_v2 - _F_cuGetProcAddress_v2('cuMemcpyHtoD', &__cuMemcpyHtoD_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL) - {{endif}} - {{if 'cuMemcpyDtoH_v2' in found_functions}} - global __cuMemcpyDtoH_v2 - _F_cuGetProcAddress_v2('cuMemcpyDtoH', &__cuMemcpyDtoH_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL) - {{endif}} - {{if 'cuMemcpyDtoD_v2' in found_functions}} - global __cuMemcpyDtoD_v2 - _F_cuGetProcAddress_v2('cuMemcpyDtoD', &__cuMemcpyDtoD_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL) - {{endif}} - {{if 'cuMemcpyDtoA_v2' in found_functions}} - global __cuMemcpyDtoA_v2 - _F_cuGetProcAddress_v2('cuMemcpyDtoA', &__cuMemcpyDtoA_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL) - {{endif}} - {{if 'cuMemcpyAtoD_v2' in found_functions}} - global __cuMemcpyAtoD_v2 - _F_cuGetProcAddress_v2('cuMemcpyAtoD', &__cuMemcpyAtoD_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL) - {{endif}} - {{if 'cuMemcpyHtoA_v2' in found_functions}} - global __cuMemcpyHtoA_v2 - _F_cuGetProcAddress_v2('cuMemcpyHtoA', &__cuMemcpyHtoA_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL) - {{endif}} - {{if 'cuMemcpyAtoH_v2' in found_functions}} - global __cuMemcpyAtoH_v2 - _F_cuGetProcAddress_v2('cuMemcpyAtoH', &__cuMemcpyAtoH_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL) - {{endif}} - {{if 'cuMemcpyAtoA_v2' in found_functions}} - global __cuMemcpyAtoA_v2 - _F_cuGetProcAddress_v2('cuMemcpyAtoA', &__cuMemcpyAtoA_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL) - {{endif}} - {{if 'cuMemcpy2D_v2' in found_functions}} - global __cuMemcpy2D_v2 - _F_cuGetProcAddress_v2('cuMemcpy2D', &__cuMemcpy2D_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL) - {{endif}} - {{if 'cuMemcpy2DUnaligned_v2' in found_functions}} - global __cuMemcpy2DUnaligned_v2 - _F_cuGetProcAddress_v2('cuMemcpy2DUnaligned', &__cuMemcpy2DUnaligned_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL) - {{endif}} - {{if 'cuMemcpy3D_v2' in found_functions}} - global __cuMemcpy3D_v2 - _F_cuGetProcAddress_v2('cuMemcpy3D', &__cuMemcpy3D_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL) - {{endif}} - {{if 'cuMemcpy3DPeer' in found_functions}} - global __cuMemcpy3DPeer - _F_cuGetProcAddress_v2('cuMemcpy3DPeer', &__cuMemcpy3DPeer, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL) - {{endif}} - {{if 'cuMemcpyAsync' in found_functions}} - global __cuMemcpyAsync - _F_cuGetProcAddress_v2('cuMemcpyAsync', &__cuMemcpyAsync, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL) - {{endif}} - {{if 'cuMemcpyPeerAsync' in found_functions}} - global __cuMemcpyPeerAsync - _F_cuGetProcAddress_v2('cuMemcpyPeerAsync', &__cuMemcpyPeerAsync, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL) - {{endif}} - {{if 'cuMemcpyHtoDAsync_v2' in found_functions}} - global __cuMemcpyHtoDAsync_v2 - _F_cuGetProcAddress_v2('cuMemcpyHtoDAsync', &__cuMemcpyHtoDAsync_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL) - {{endif}} - {{if 'cuMemcpyDtoHAsync_v2' in found_functions}} - global __cuMemcpyDtoHAsync_v2 - _F_cuGetProcAddress_v2('cuMemcpyDtoHAsync', &__cuMemcpyDtoHAsync_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL) - {{endif}} - {{if 'cuMemcpyDtoDAsync_v2' in found_functions}} - global __cuMemcpyDtoDAsync_v2 - _F_cuGetProcAddress_v2('cuMemcpyDtoDAsync', &__cuMemcpyDtoDAsync_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL) - {{endif}} - {{if 'cuMemcpyHtoAAsync_v2' in found_functions}} - global __cuMemcpyHtoAAsync_v2 - _F_cuGetProcAddress_v2('cuMemcpyHtoAAsync', &__cuMemcpyHtoAAsync_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL) - {{endif}} - {{if 'cuMemcpyAtoHAsync_v2' in found_functions}} - global __cuMemcpyAtoHAsync_v2 - _F_cuGetProcAddress_v2('cuMemcpyAtoHAsync', &__cuMemcpyAtoHAsync_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL) - {{endif}} - {{if 'cuMemcpy2DAsync_v2' in found_functions}} - global __cuMemcpy2DAsync_v2 - _F_cuGetProcAddress_v2('cuMemcpy2DAsync', &__cuMemcpy2DAsync_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL) - {{endif}} - {{if 'cuMemcpy3DAsync_v2' in found_functions}} - global __cuMemcpy3DAsync_v2 - _F_cuGetProcAddress_v2('cuMemcpy3DAsync', &__cuMemcpy3DAsync_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL) - {{endif}} - {{if 'cuMemcpy3DPeerAsync' in found_functions}} - global __cuMemcpy3DPeerAsync - _F_cuGetProcAddress_v2('cuMemcpy3DPeerAsync', &__cuMemcpy3DPeerAsync, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL) - {{endif}} - {{if 'cuMemcpyBatchAsync_v2' in found_functions}} - global __cuMemcpyBatchAsync_v2 - _F_cuGetProcAddress_v2('cuMemcpyBatchAsync', &__cuMemcpyBatchAsync_v2, 13000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL) - {{endif}} - {{if 'cuMemcpy3DBatchAsync_v2' in found_functions}} - global __cuMemcpy3DBatchAsync_v2 - _F_cuGetProcAddress_v2('cuMemcpy3DBatchAsync', &__cuMemcpy3DBatchAsync_v2, 13000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL) - {{endif}} - {{if 'cuMemcpyWithAttributesAsync' in found_functions}} - global __cuMemcpyWithAttributesAsync - _F_cuGetProcAddress_v2('cuMemcpyWithAttributesAsync', &__cuMemcpyWithAttributesAsync, 13020, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL) - {{endif}} - {{if 'cuMemcpy3DWithAttributesAsync' in found_functions}} - global __cuMemcpy3DWithAttributesAsync - _F_cuGetProcAddress_v2('cuMemcpy3DWithAttributesAsync', &__cuMemcpy3DWithAttributesAsync, 13020, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL) - {{endif}} - {{if 'cuMemsetD8_v2' in found_functions}} - global __cuMemsetD8_v2 - _F_cuGetProcAddress_v2('cuMemsetD8', &__cuMemsetD8_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL) - {{endif}} - {{if 'cuMemsetD16_v2' in found_functions}} - global __cuMemsetD16_v2 - _F_cuGetProcAddress_v2('cuMemsetD16', &__cuMemsetD16_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL) - {{endif}} - {{if 'cuMemsetD32_v2' in found_functions}} - global __cuMemsetD32_v2 - _F_cuGetProcAddress_v2('cuMemsetD32', &__cuMemsetD32_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL) - {{endif}} - {{if 'cuMemsetD2D8_v2' in found_functions}} - global __cuMemsetD2D8_v2 - _F_cuGetProcAddress_v2('cuMemsetD2D8', &__cuMemsetD2D8_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL) - {{endif}} - {{if 'cuMemsetD2D16_v2' in found_functions}} - global __cuMemsetD2D16_v2 - _F_cuGetProcAddress_v2('cuMemsetD2D16', &__cuMemsetD2D16_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL) - {{endif}} - {{if 'cuMemsetD2D32_v2' in found_functions}} - global __cuMemsetD2D32_v2 - _F_cuGetProcAddress_v2('cuMemsetD2D32', &__cuMemsetD2D32_v2, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL) - {{endif}} - {{if 'cuMemsetD8Async' in found_functions}} - global __cuMemsetD8Async - _F_cuGetProcAddress_v2('cuMemsetD8Async', &__cuMemsetD8Async, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL) - {{endif}} - {{if 'cuMemsetD16Async' in found_functions}} - global __cuMemsetD16Async - _F_cuGetProcAddress_v2('cuMemsetD16Async', &__cuMemsetD16Async, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL) - {{endif}} - {{if 'cuMemsetD32Async' in found_functions}} - global __cuMemsetD32Async - _F_cuGetProcAddress_v2('cuMemsetD32Async', &__cuMemsetD32Async, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL) - {{endif}} - {{if 'cuMemsetD2D8Async' in found_functions}} - global __cuMemsetD2D8Async - _F_cuGetProcAddress_v2('cuMemsetD2D8Async', &__cuMemsetD2D8Async, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL) - {{endif}} - {{if 'cuMemsetD2D16Async' in found_functions}} - global __cuMemsetD2D16Async - _F_cuGetProcAddress_v2('cuMemsetD2D16Async', &__cuMemsetD2D16Async, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL) - {{endif}} - {{if 'cuMemsetD2D32Async' in found_functions}} - global __cuMemsetD2D32Async - _F_cuGetProcAddress_v2('cuMemsetD2D32Async', &__cuMemsetD2D32Async, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL) - {{endif}} - {{if 'cuMemBatchDecompressAsync' in found_functions}} - global __cuMemBatchDecompressAsync - _F_cuGetProcAddress_v2('cuMemBatchDecompressAsync', &__cuMemBatchDecompressAsync, 12060, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL) - {{endif}} - {{if 'cuMemMapArrayAsync' in found_functions}} - global __cuMemMapArrayAsync - _F_cuGetProcAddress_v2('cuMemMapArrayAsync', &__cuMemMapArrayAsync, 11010, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL) - {{endif}} - {{if 'cuMemFreeAsync' in found_functions}} - global __cuMemFreeAsync - _F_cuGetProcAddress_v2('cuMemFreeAsync', &__cuMemFreeAsync, 11020, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL) - {{endif}} - {{if 'cuMemAllocAsync' in found_functions}} - global __cuMemAllocAsync - _F_cuGetProcAddress_v2('cuMemAllocAsync', &__cuMemAllocAsync, 11020, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL) - {{endif}} - {{if 'cuMemAllocFromPoolAsync' in found_functions}} - global __cuMemAllocFromPoolAsync - _F_cuGetProcAddress_v2('cuMemAllocFromPoolAsync', &__cuMemAllocFromPoolAsync, 11020, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL) - {{endif}} - {{if 'cuMemPrefetchAsync_v2' in found_functions}} - global __cuMemPrefetchAsync_v2 - _F_cuGetProcAddress_v2('cuMemPrefetchAsync', &__cuMemPrefetchAsync_v2, 12020, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL) - {{endif}} - {{if 'cuMemPrefetchBatchAsync' in found_functions}} - global __cuMemPrefetchBatchAsync - _F_cuGetProcAddress_v2('cuMemPrefetchBatchAsync', &__cuMemPrefetchBatchAsync, 13000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL) - {{endif}} - {{if 'cuMemDiscardBatchAsync' in found_functions}} - global __cuMemDiscardBatchAsync - _F_cuGetProcAddress_v2('cuMemDiscardBatchAsync', &__cuMemDiscardBatchAsync, 13000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL) - {{endif}} - {{if 'cuMemDiscardAndPrefetchBatchAsync' in found_functions}} - global __cuMemDiscardAndPrefetchBatchAsync - _F_cuGetProcAddress_v2('cuMemDiscardAndPrefetchBatchAsync', &__cuMemDiscardAndPrefetchBatchAsync, 13000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL) - {{endif}} - {{if 'cuStreamBeginCaptureToCig' in found_functions}} - global __cuStreamBeginCaptureToCig - _F_cuGetProcAddress_v2('cuStreamBeginCaptureToCig', &__cuStreamBeginCaptureToCig, 13020, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL) - {{endif}} - {{if 'cuStreamEndCaptureToCig' in found_functions}} - global __cuStreamEndCaptureToCig - _F_cuGetProcAddress_v2('cuStreamEndCaptureToCig', &__cuStreamEndCaptureToCig, 13020, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL) - {{endif}} - {{if 'cuStreamGetPriority' in found_functions}} - global __cuStreamGetPriority - _F_cuGetProcAddress_v2('cuStreamGetPriority', &__cuStreamGetPriority, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL) - {{endif}} - {{if 'cuStreamGetDevice' in found_functions}} - global __cuStreamGetDevice - _F_cuGetProcAddress_v2('cuStreamGetDevice', &__cuStreamGetDevice, 12080, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL) - {{endif}} - {{if 'cuStreamGetFlags' in found_functions}} - global __cuStreamGetFlags - _F_cuGetProcAddress_v2('cuStreamGetFlags', &__cuStreamGetFlags, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL) - {{endif}} - {{if 'cuStreamGetId' in found_functions}} - global __cuStreamGetId - _F_cuGetProcAddress_v2('cuStreamGetId', &__cuStreamGetId, 12000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL) - {{endif}} - {{if 'cuStreamGetCtx' in found_functions}} - global __cuStreamGetCtx - _F_cuGetProcAddress_v2('cuStreamGetCtx', &__cuStreamGetCtx, 9020, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL) - {{endif}} - {{if 'cuStreamGetCtx_v2' in found_functions}} - global __cuStreamGetCtx_v2 - _F_cuGetProcAddress_v2('cuStreamGetCtx', &__cuStreamGetCtx_v2, 12050, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL) - {{endif}} - {{if 'cuStreamWaitEvent' in found_functions}} - global __cuStreamWaitEvent - _F_cuGetProcAddress_v2('cuStreamWaitEvent', &__cuStreamWaitEvent, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL) - {{endif}} - {{if 'cuStreamAddCallback' in found_functions}} - global __cuStreamAddCallback - _F_cuGetProcAddress_v2('cuStreamAddCallback', &__cuStreamAddCallback, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL) - {{endif}} - {{if 'cuStreamBeginCapture_v2' in found_functions}} - global __cuStreamBeginCapture_v2 - _F_cuGetProcAddress_v2('cuStreamBeginCapture', &__cuStreamBeginCapture_v2, 10010, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL) - {{endif}} - {{if 'cuStreamBeginCaptureToGraph' in found_functions}} - global __cuStreamBeginCaptureToGraph - _F_cuGetProcAddress_v2('cuStreamBeginCaptureToGraph', &__cuStreamBeginCaptureToGraph, 12030, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL) - {{endif}} - {{if 'cuStreamEndCapture' in found_functions}} - global __cuStreamEndCapture - _F_cuGetProcAddress_v2('cuStreamEndCapture', &__cuStreamEndCapture, 10000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL) - {{endif}} - {{if 'cuStreamIsCapturing' in found_functions}} - global __cuStreamIsCapturing - _F_cuGetProcAddress_v2('cuStreamIsCapturing', &__cuStreamIsCapturing, 10000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL) - {{endif}} - {{if 'cuStreamGetCaptureInfo_v3' in found_functions}} - global __cuStreamGetCaptureInfo_v3 - _F_cuGetProcAddress_v2('cuStreamGetCaptureInfo', &__cuStreamGetCaptureInfo_v3, 12030, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL) - {{endif}} - {{if 'cuStreamUpdateCaptureDependencies_v2' in found_functions}} - global __cuStreamUpdateCaptureDependencies_v2 - _F_cuGetProcAddress_v2('cuStreamUpdateCaptureDependencies', &__cuStreamUpdateCaptureDependencies_v2, 12030, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL) - {{endif}} - {{if 'cuStreamAttachMemAsync' in found_functions}} - global __cuStreamAttachMemAsync - _F_cuGetProcAddress_v2('cuStreamAttachMemAsync', &__cuStreamAttachMemAsync, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL) - {{endif}} - {{if 'cuStreamQuery' in found_functions}} - global __cuStreamQuery - _F_cuGetProcAddress_v2('cuStreamQuery', &__cuStreamQuery, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL) - {{endif}} - {{if 'cuStreamSynchronize' in found_functions}} - global __cuStreamSynchronize - _F_cuGetProcAddress_v2('cuStreamSynchronize', &__cuStreamSynchronize, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL) - {{endif}} - {{if 'cuStreamCopyAttributes' in found_functions}} - global __cuStreamCopyAttributes - _F_cuGetProcAddress_v2('cuStreamCopyAttributes', &__cuStreamCopyAttributes, 11000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL) - {{endif}} - {{if 'cuStreamGetAttribute' in found_functions}} - global __cuStreamGetAttribute - _F_cuGetProcAddress_v2('cuStreamGetAttribute', &__cuStreamGetAttribute, 11000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL) - {{endif}} - {{if 'cuStreamSetAttribute' in found_functions}} - global __cuStreamSetAttribute - _F_cuGetProcAddress_v2('cuStreamSetAttribute', &__cuStreamSetAttribute, 11000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL) - {{endif}} - {{if 'cuEventRecord' in found_functions}} - global __cuEventRecord - _F_cuGetProcAddress_v2('cuEventRecord', &__cuEventRecord, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL) - {{endif}} - {{if 'cuEventRecordWithFlags' in found_functions}} - global __cuEventRecordWithFlags - _F_cuGetProcAddress_v2('cuEventRecordWithFlags', &__cuEventRecordWithFlags, 11010, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL) - {{endif}} - {{if 'cuSignalExternalSemaphoresAsync' in found_functions}} - global __cuSignalExternalSemaphoresAsync - _F_cuGetProcAddress_v2('cuSignalExternalSemaphoresAsync', &__cuSignalExternalSemaphoresAsync, 10000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL) - {{endif}} - {{if 'cuWaitExternalSemaphoresAsync' in found_functions}} - global __cuWaitExternalSemaphoresAsync - _F_cuGetProcAddress_v2('cuWaitExternalSemaphoresAsync', &__cuWaitExternalSemaphoresAsync, 10000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL) - {{endif}} - {{if 'cuStreamWaitValue32_v2' in found_functions}} - global __cuStreamWaitValue32_v2 - _F_cuGetProcAddress_v2('cuStreamWaitValue32', &__cuStreamWaitValue32_v2, 11070, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL) - {{endif}} - {{if 'cuStreamWaitValue64_v2' in found_functions}} - global __cuStreamWaitValue64_v2 - _F_cuGetProcAddress_v2('cuStreamWaitValue64', &__cuStreamWaitValue64_v2, 11070, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL) - {{endif}} - {{if 'cuStreamWriteValue32_v2' in found_functions}} - global __cuStreamWriteValue32_v2 - _F_cuGetProcAddress_v2('cuStreamWriteValue32', &__cuStreamWriteValue32_v2, 11070, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL) - {{endif}} - {{if 'cuStreamWriteValue64_v2' in found_functions}} - global __cuStreamWriteValue64_v2 - _F_cuGetProcAddress_v2('cuStreamWriteValue64', &__cuStreamWriteValue64_v2, 11070, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL) - {{endif}} - {{if 'cuStreamBatchMemOp_v2' in found_functions}} - global __cuStreamBatchMemOp_v2 - _F_cuGetProcAddress_v2('cuStreamBatchMemOp', &__cuStreamBatchMemOp_v2, 11070, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL) - {{endif}} - {{if 'cuLaunchKernel' in found_functions}} - global __cuLaunchKernel - _F_cuGetProcAddress_v2('cuLaunchKernel', &__cuLaunchKernel, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL) - {{endif}} - {{if 'cuLaunchKernelEx' in found_functions}} - global __cuLaunchKernelEx - _F_cuGetProcAddress_v2('cuLaunchKernelEx', &__cuLaunchKernelEx, 11060, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL) - {{endif}} - {{if 'cuLaunchCooperativeKernel' in found_functions}} - global __cuLaunchCooperativeKernel - _F_cuGetProcAddress_v2('cuLaunchCooperativeKernel', &__cuLaunchCooperativeKernel, 9000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL) - {{endif}} - {{if 'cuLaunchHostFunc' in found_functions}} - global __cuLaunchHostFunc - _F_cuGetProcAddress_v2('cuLaunchHostFunc', &__cuLaunchHostFunc, 10000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL) - {{endif}} - {{if 'cuLaunchHostFunc_v2' in found_functions}} - global __cuLaunchHostFunc_v2 - _F_cuGetProcAddress_v2('cuLaunchHostFunc', &__cuLaunchHostFunc_v2, 13020, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL) - {{endif}} - {{if 'cuGraphInstantiateWithParams' in found_functions}} - global __cuGraphInstantiateWithParams - _F_cuGetProcAddress_v2('cuGraphInstantiateWithParams', &__cuGraphInstantiateWithParams, 12000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL) - {{endif}} - {{if 'cuGraphUpload' in found_functions}} - global __cuGraphUpload - _F_cuGetProcAddress_v2('cuGraphUpload', &__cuGraphUpload, 11010, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL) - {{endif}} - {{if 'cuGraphLaunch' in found_functions}} - global __cuGraphLaunch - _F_cuGetProcAddress_v2('cuGraphLaunch', &__cuGraphLaunch, 10000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL) - {{endif}} - {{if 'cuGraphicsMapResources' in found_functions}} - global __cuGraphicsMapResources - _F_cuGetProcAddress_v2('cuGraphicsMapResources', &__cuGraphicsMapResources, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL) - {{endif}} - {{if 'cuGraphicsUnmapResources' in found_functions}} - global __cuGraphicsUnmapResources - _F_cuGetProcAddress_v2('cuGraphicsUnmapResources', &__cuGraphicsUnmapResources, 7000, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL) - {{endif}} - {{if 'cuStreamGetDevResource' in found_functions}} - global __cuStreamGetDevResource - _F_cuGetProcAddress_v2('cuStreamGetDevResource', &__cuStreamGetDevResource, 13010, CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, NULL) - {{endif}} - else: - # Else get the regular version - pass - {{if 'cuMemcpy' in found_functions}} - global __cuMemcpy - _F_cuGetProcAddress_v2('cuMemcpy', &__cuMemcpy, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMemcpyPeer' in found_functions}} - global __cuMemcpyPeer - _F_cuGetProcAddress_v2('cuMemcpyPeer', &__cuMemcpyPeer, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMemcpyHtoD_v2' in found_functions}} - global __cuMemcpyHtoD_v2 - _F_cuGetProcAddress_v2('cuMemcpyHtoD', &__cuMemcpyHtoD_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMemcpyDtoH_v2' in found_functions}} - global __cuMemcpyDtoH_v2 - _F_cuGetProcAddress_v2('cuMemcpyDtoH', &__cuMemcpyDtoH_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMemcpyDtoD_v2' in found_functions}} - global __cuMemcpyDtoD_v2 - _F_cuGetProcAddress_v2('cuMemcpyDtoD', &__cuMemcpyDtoD_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMemcpyDtoA_v2' in found_functions}} - global __cuMemcpyDtoA_v2 - _F_cuGetProcAddress_v2('cuMemcpyDtoA', &__cuMemcpyDtoA_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMemcpyAtoD_v2' in found_functions}} - global __cuMemcpyAtoD_v2 - _F_cuGetProcAddress_v2('cuMemcpyAtoD', &__cuMemcpyAtoD_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMemcpyHtoA_v2' in found_functions}} - global __cuMemcpyHtoA_v2 - _F_cuGetProcAddress_v2('cuMemcpyHtoA', &__cuMemcpyHtoA_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMemcpyAtoH_v2' in found_functions}} - global __cuMemcpyAtoH_v2 - _F_cuGetProcAddress_v2('cuMemcpyAtoH', &__cuMemcpyAtoH_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMemcpyAtoA_v2' in found_functions}} - global __cuMemcpyAtoA_v2 - _F_cuGetProcAddress_v2('cuMemcpyAtoA', &__cuMemcpyAtoA_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMemcpy2D_v2' in found_functions}} - global __cuMemcpy2D_v2 - _F_cuGetProcAddress_v2('cuMemcpy2D', &__cuMemcpy2D_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMemcpy2DUnaligned_v2' in found_functions}} - global __cuMemcpy2DUnaligned_v2 - _F_cuGetProcAddress_v2('cuMemcpy2DUnaligned', &__cuMemcpy2DUnaligned_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMemcpy3D_v2' in found_functions}} - global __cuMemcpy3D_v2 - _F_cuGetProcAddress_v2('cuMemcpy3D', &__cuMemcpy3D_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMemcpy3DPeer' in found_functions}} - global __cuMemcpy3DPeer - _F_cuGetProcAddress_v2('cuMemcpy3DPeer', &__cuMemcpy3DPeer, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMemcpyAsync' in found_functions}} - global __cuMemcpyAsync - _F_cuGetProcAddress_v2('cuMemcpyAsync', &__cuMemcpyAsync, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMemcpyPeerAsync' in found_functions}} - global __cuMemcpyPeerAsync - _F_cuGetProcAddress_v2('cuMemcpyPeerAsync', &__cuMemcpyPeerAsync, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMemcpyHtoDAsync_v2' in found_functions}} - global __cuMemcpyHtoDAsync_v2 - _F_cuGetProcAddress_v2('cuMemcpyHtoDAsync', &__cuMemcpyHtoDAsync_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMemcpyDtoHAsync_v2' in found_functions}} - global __cuMemcpyDtoHAsync_v2 - _F_cuGetProcAddress_v2('cuMemcpyDtoHAsync', &__cuMemcpyDtoHAsync_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMemcpyDtoDAsync_v2' in found_functions}} - global __cuMemcpyDtoDAsync_v2 - _F_cuGetProcAddress_v2('cuMemcpyDtoDAsync', &__cuMemcpyDtoDAsync_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMemcpyHtoAAsync_v2' in found_functions}} - global __cuMemcpyHtoAAsync_v2 - _F_cuGetProcAddress_v2('cuMemcpyHtoAAsync', &__cuMemcpyHtoAAsync_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMemcpyAtoHAsync_v2' in found_functions}} - global __cuMemcpyAtoHAsync_v2 - _F_cuGetProcAddress_v2('cuMemcpyAtoHAsync', &__cuMemcpyAtoHAsync_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMemcpy2DAsync_v2' in found_functions}} - global __cuMemcpy2DAsync_v2 - _F_cuGetProcAddress_v2('cuMemcpy2DAsync', &__cuMemcpy2DAsync_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMemcpy3DAsync_v2' in found_functions}} - global __cuMemcpy3DAsync_v2 - _F_cuGetProcAddress_v2('cuMemcpy3DAsync', &__cuMemcpy3DAsync_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMemcpy3DPeerAsync' in found_functions}} - global __cuMemcpy3DPeerAsync - _F_cuGetProcAddress_v2('cuMemcpy3DPeerAsync', &__cuMemcpy3DPeerAsync, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMemcpyBatchAsync_v2' in found_functions}} - global __cuMemcpyBatchAsync_v2 - _F_cuGetProcAddress_v2('cuMemcpyBatchAsync', &__cuMemcpyBatchAsync_v2, 13000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMemcpy3DBatchAsync_v2' in found_functions}} - global __cuMemcpy3DBatchAsync_v2 - _F_cuGetProcAddress_v2('cuMemcpy3DBatchAsync', &__cuMemcpy3DBatchAsync_v2, 13000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMemcpyWithAttributesAsync' in found_functions}} - global __cuMemcpyWithAttributesAsync - _F_cuGetProcAddress_v2('cuMemcpyWithAttributesAsync', &__cuMemcpyWithAttributesAsync, 13020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMemcpy3DWithAttributesAsync' in found_functions}} - global __cuMemcpy3DWithAttributesAsync - _F_cuGetProcAddress_v2('cuMemcpy3DWithAttributesAsync', &__cuMemcpy3DWithAttributesAsync, 13020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMemsetD8_v2' in found_functions}} - global __cuMemsetD8_v2 - _F_cuGetProcAddress_v2('cuMemsetD8', &__cuMemsetD8_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMemsetD16_v2' in found_functions}} - global __cuMemsetD16_v2 - _F_cuGetProcAddress_v2('cuMemsetD16', &__cuMemsetD16_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMemsetD32_v2' in found_functions}} - global __cuMemsetD32_v2 - _F_cuGetProcAddress_v2('cuMemsetD32', &__cuMemsetD32_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMemsetD2D8_v2' in found_functions}} - global __cuMemsetD2D8_v2 - _F_cuGetProcAddress_v2('cuMemsetD2D8', &__cuMemsetD2D8_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMemsetD2D16_v2' in found_functions}} - global __cuMemsetD2D16_v2 - _F_cuGetProcAddress_v2('cuMemsetD2D16', &__cuMemsetD2D16_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMemsetD2D32_v2' in found_functions}} - global __cuMemsetD2D32_v2 - _F_cuGetProcAddress_v2('cuMemsetD2D32', &__cuMemsetD2D32_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMemsetD8Async' in found_functions}} - global __cuMemsetD8Async - _F_cuGetProcAddress_v2('cuMemsetD8Async', &__cuMemsetD8Async, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMemsetD16Async' in found_functions}} - global __cuMemsetD16Async - _F_cuGetProcAddress_v2('cuMemsetD16Async', &__cuMemsetD16Async, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMemsetD32Async' in found_functions}} - global __cuMemsetD32Async - _F_cuGetProcAddress_v2('cuMemsetD32Async', &__cuMemsetD32Async, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMemsetD2D8Async' in found_functions}} - global __cuMemsetD2D8Async - _F_cuGetProcAddress_v2('cuMemsetD2D8Async', &__cuMemsetD2D8Async, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMemsetD2D16Async' in found_functions}} - global __cuMemsetD2D16Async - _F_cuGetProcAddress_v2('cuMemsetD2D16Async', &__cuMemsetD2D16Async, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMemsetD2D32Async' in found_functions}} - global __cuMemsetD2D32Async - _F_cuGetProcAddress_v2('cuMemsetD2D32Async', &__cuMemsetD2D32Async, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMemBatchDecompressAsync' in found_functions}} - global __cuMemBatchDecompressAsync - _F_cuGetProcAddress_v2('cuMemBatchDecompressAsync', &__cuMemBatchDecompressAsync, 12060, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMemMapArrayAsync' in found_functions}} - global __cuMemMapArrayAsync - _F_cuGetProcAddress_v2('cuMemMapArrayAsync', &__cuMemMapArrayAsync, 11010, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMemFreeAsync' in found_functions}} - global __cuMemFreeAsync - _F_cuGetProcAddress_v2('cuMemFreeAsync', &__cuMemFreeAsync, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMemAllocAsync' in found_functions}} - global __cuMemAllocAsync - _F_cuGetProcAddress_v2('cuMemAllocAsync', &__cuMemAllocAsync, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMemAllocFromPoolAsync' in found_functions}} - global __cuMemAllocFromPoolAsync - _F_cuGetProcAddress_v2('cuMemAllocFromPoolAsync', &__cuMemAllocFromPoolAsync, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMemPrefetchAsync_v2' in found_functions}} - global __cuMemPrefetchAsync_v2 - _F_cuGetProcAddress_v2('cuMemPrefetchAsync', &__cuMemPrefetchAsync_v2, 12020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMemPrefetchBatchAsync' in found_functions}} - global __cuMemPrefetchBatchAsync - _F_cuGetProcAddress_v2('cuMemPrefetchBatchAsync', &__cuMemPrefetchBatchAsync, 13000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMemDiscardBatchAsync' in found_functions}} - global __cuMemDiscardBatchAsync - _F_cuGetProcAddress_v2('cuMemDiscardBatchAsync', &__cuMemDiscardBatchAsync, 13000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMemDiscardAndPrefetchBatchAsync' in found_functions}} - global __cuMemDiscardAndPrefetchBatchAsync - _F_cuGetProcAddress_v2('cuMemDiscardAndPrefetchBatchAsync', &__cuMemDiscardAndPrefetchBatchAsync, 13000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuStreamBeginCaptureToCig' in found_functions}} - global __cuStreamBeginCaptureToCig - _F_cuGetProcAddress_v2('cuStreamBeginCaptureToCig', &__cuStreamBeginCaptureToCig, 13020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuStreamEndCaptureToCig' in found_functions}} - global __cuStreamEndCaptureToCig - _F_cuGetProcAddress_v2('cuStreamEndCaptureToCig', &__cuStreamEndCaptureToCig, 13020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuStreamGetPriority' in found_functions}} - global __cuStreamGetPriority - _F_cuGetProcAddress_v2('cuStreamGetPriority', &__cuStreamGetPriority, 5050, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuStreamGetDevice' in found_functions}} - global __cuStreamGetDevice - _F_cuGetProcAddress_v2('cuStreamGetDevice', &__cuStreamGetDevice, 12080, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuStreamGetFlags' in found_functions}} - global __cuStreamGetFlags - _F_cuGetProcAddress_v2('cuStreamGetFlags', &__cuStreamGetFlags, 5050, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuStreamGetId' in found_functions}} - global __cuStreamGetId - _F_cuGetProcAddress_v2('cuStreamGetId', &__cuStreamGetId, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuStreamGetCtx' in found_functions}} - global __cuStreamGetCtx - _F_cuGetProcAddress_v2('cuStreamGetCtx', &__cuStreamGetCtx, 9020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuStreamGetCtx_v2' in found_functions}} - global __cuStreamGetCtx_v2 - _F_cuGetProcAddress_v2('cuStreamGetCtx', &__cuStreamGetCtx_v2, 12050, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuStreamWaitEvent' in found_functions}} - global __cuStreamWaitEvent - _F_cuGetProcAddress_v2('cuStreamWaitEvent', &__cuStreamWaitEvent, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuStreamAddCallback' in found_functions}} - global __cuStreamAddCallback - _F_cuGetProcAddress_v2('cuStreamAddCallback', &__cuStreamAddCallback, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuStreamBeginCapture_v2' in found_functions}} - global __cuStreamBeginCapture_v2 - _F_cuGetProcAddress_v2('cuStreamBeginCapture', &__cuStreamBeginCapture_v2, 10010, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuStreamBeginCaptureToGraph' in found_functions}} - global __cuStreamBeginCaptureToGraph - _F_cuGetProcAddress_v2('cuStreamBeginCaptureToGraph', &__cuStreamBeginCaptureToGraph, 12030, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuStreamEndCapture' in found_functions}} - global __cuStreamEndCapture - _F_cuGetProcAddress_v2('cuStreamEndCapture', &__cuStreamEndCapture, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuStreamIsCapturing' in found_functions}} - global __cuStreamIsCapturing - _F_cuGetProcAddress_v2('cuStreamIsCapturing', &__cuStreamIsCapturing, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuStreamGetCaptureInfo_v3' in found_functions}} - global __cuStreamGetCaptureInfo_v3 - _F_cuGetProcAddress_v2('cuStreamGetCaptureInfo', &__cuStreamGetCaptureInfo_v3, 12030, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuStreamUpdateCaptureDependencies_v2' in found_functions}} - global __cuStreamUpdateCaptureDependencies_v2 - _F_cuGetProcAddress_v2('cuStreamUpdateCaptureDependencies', &__cuStreamUpdateCaptureDependencies_v2, 12030, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuStreamAttachMemAsync' in found_functions}} - global __cuStreamAttachMemAsync - _F_cuGetProcAddress_v2('cuStreamAttachMemAsync', &__cuStreamAttachMemAsync, 6000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuStreamQuery' in found_functions}} - global __cuStreamQuery - _F_cuGetProcAddress_v2('cuStreamQuery', &__cuStreamQuery, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuStreamSynchronize' in found_functions}} - global __cuStreamSynchronize - _F_cuGetProcAddress_v2('cuStreamSynchronize', &__cuStreamSynchronize, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuStreamCopyAttributes' in found_functions}} - global __cuStreamCopyAttributes - _F_cuGetProcAddress_v2('cuStreamCopyAttributes', &__cuStreamCopyAttributes, 11000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuStreamGetAttribute' in found_functions}} - global __cuStreamGetAttribute - _F_cuGetProcAddress_v2('cuStreamGetAttribute', &__cuStreamGetAttribute, 11000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuStreamSetAttribute' in found_functions}} - global __cuStreamSetAttribute - _F_cuGetProcAddress_v2('cuStreamSetAttribute', &__cuStreamSetAttribute, 11000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuEventRecord' in found_functions}} - global __cuEventRecord - _F_cuGetProcAddress_v2('cuEventRecord', &__cuEventRecord, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuEventRecordWithFlags' in found_functions}} - global __cuEventRecordWithFlags - _F_cuGetProcAddress_v2('cuEventRecordWithFlags', &__cuEventRecordWithFlags, 11010, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuSignalExternalSemaphoresAsync' in found_functions}} - global __cuSignalExternalSemaphoresAsync - _F_cuGetProcAddress_v2('cuSignalExternalSemaphoresAsync', &__cuSignalExternalSemaphoresAsync, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuWaitExternalSemaphoresAsync' in found_functions}} - global __cuWaitExternalSemaphoresAsync - _F_cuGetProcAddress_v2('cuWaitExternalSemaphoresAsync', &__cuWaitExternalSemaphoresAsync, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuStreamWaitValue32_v2' in found_functions}} - global __cuStreamWaitValue32_v2 - _F_cuGetProcAddress_v2('cuStreamWaitValue32', &__cuStreamWaitValue32_v2, 11070, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuStreamWaitValue64_v2' in found_functions}} - global __cuStreamWaitValue64_v2 - _F_cuGetProcAddress_v2('cuStreamWaitValue64', &__cuStreamWaitValue64_v2, 11070, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuStreamWriteValue32_v2' in found_functions}} - global __cuStreamWriteValue32_v2 - _F_cuGetProcAddress_v2('cuStreamWriteValue32', &__cuStreamWriteValue32_v2, 11070, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuStreamWriteValue64_v2' in found_functions}} - global __cuStreamWriteValue64_v2 - _F_cuGetProcAddress_v2('cuStreamWriteValue64', &__cuStreamWriteValue64_v2, 11070, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuStreamBatchMemOp_v2' in found_functions}} - global __cuStreamBatchMemOp_v2 - _F_cuGetProcAddress_v2('cuStreamBatchMemOp', &__cuStreamBatchMemOp_v2, 11070, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuLaunchKernel' in found_functions}} - global __cuLaunchKernel - _F_cuGetProcAddress_v2('cuLaunchKernel', &__cuLaunchKernel, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuLaunchKernelEx' in found_functions}} - global __cuLaunchKernelEx - _F_cuGetProcAddress_v2('cuLaunchKernelEx', &__cuLaunchKernelEx, 11060, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuLaunchCooperativeKernel' in found_functions}} - global __cuLaunchCooperativeKernel - _F_cuGetProcAddress_v2('cuLaunchCooperativeKernel', &__cuLaunchCooperativeKernel, 9000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuLaunchHostFunc' in found_functions}} - global __cuLaunchHostFunc - _F_cuGetProcAddress_v2('cuLaunchHostFunc', &__cuLaunchHostFunc, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuLaunchHostFunc_v2' in found_functions}} - global __cuLaunchHostFunc_v2 - _F_cuGetProcAddress_v2('cuLaunchHostFunc', &__cuLaunchHostFunc_v2, 13020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGraphInstantiateWithParams' in found_functions}} - global __cuGraphInstantiateWithParams - _F_cuGetProcAddress_v2('cuGraphInstantiateWithParams', &__cuGraphInstantiateWithParams, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGraphUpload' in found_functions}} - global __cuGraphUpload - _F_cuGetProcAddress_v2('cuGraphUpload', &__cuGraphUpload, 11010, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGraphLaunch' in found_functions}} - global __cuGraphLaunch - _F_cuGetProcAddress_v2('cuGraphLaunch', &__cuGraphLaunch, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGraphicsMapResources' in found_functions}} - global __cuGraphicsMapResources - _F_cuGetProcAddress_v2('cuGraphicsMapResources', &__cuGraphicsMapResources, 3000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGraphicsUnmapResources' in found_functions}} - global __cuGraphicsUnmapResources - _F_cuGetProcAddress_v2('cuGraphicsUnmapResources', &__cuGraphicsUnmapResources, 3000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuStreamGetDevResource' in found_functions}} - global __cuStreamGetDevResource - _F_cuGetProcAddress_v2('cuStreamGetDevResource', &__cuStreamGetDevResource, 13010, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - # Get remaining functions - {{if 'cuGetErrorString' in found_functions}} - global __cuGetErrorString - _F_cuGetProcAddress_v2('cuGetErrorString', &__cuGetErrorString, 6000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGetErrorName' in found_functions}} - global __cuGetErrorName - _F_cuGetProcAddress_v2('cuGetErrorName', &__cuGetErrorName, 6000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuInit' in found_functions}} - global __cuInit - _F_cuGetProcAddress_v2('cuInit', &__cuInit, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuDriverGetVersion' in found_functions}} - global __cuDriverGetVersion - _F_cuGetProcAddress_v2('cuDriverGetVersion', &__cuDriverGetVersion, 2020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuDeviceGet' in found_functions}} - global __cuDeviceGet - _F_cuGetProcAddress_v2('cuDeviceGet', &__cuDeviceGet, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuDeviceGetCount' in found_functions}} - global __cuDeviceGetCount - _F_cuGetProcAddress_v2('cuDeviceGetCount', &__cuDeviceGetCount, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuDeviceGetName' in found_functions}} - global __cuDeviceGetName - _F_cuGetProcAddress_v2('cuDeviceGetName', &__cuDeviceGetName, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuDeviceGetUuid_v2' in found_functions}} - global __cuDeviceGetUuid_v2 - _F_cuGetProcAddress_v2('cuDeviceGetUuid', &__cuDeviceGetUuid_v2, 11040, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuDeviceGetLuid' in found_functions}} - global __cuDeviceGetLuid - _F_cuGetProcAddress_v2('cuDeviceGetLuid', &__cuDeviceGetLuid, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuDeviceTotalMem_v2' in found_functions}} - global __cuDeviceTotalMem_v2 - _F_cuGetProcAddress_v2('cuDeviceTotalMem', &__cuDeviceTotalMem_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuDeviceGetTexture1DLinearMaxWidth' in found_functions}} - global __cuDeviceGetTexture1DLinearMaxWidth - _F_cuGetProcAddress_v2('cuDeviceGetTexture1DLinearMaxWidth', &__cuDeviceGetTexture1DLinearMaxWidth, 11010, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuDeviceGetAttribute' in found_functions}} - global __cuDeviceGetAttribute - _F_cuGetProcAddress_v2('cuDeviceGetAttribute', &__cuDeviceGetAttribute, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuDeviceGetHostAtomicCapabilities' in found_functions}} - global __cuDeviceGetHostAtomicCapabilities - _F_cuGetProcAddress_v2('cuDeviceGetHostAtomicCapabilities', &__cuDeviceGetHostAtomicCapabilities, 13000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuDeviceGetNvSciSyncAttributes' in found_functions}} - global __cuDeviceGetNvSciSyncAttributes - _F_cuGetProcAddress_v2('cuDeviceGetNvSciSyncAttributes', &__cuDeviceGetNvSciSyncAttributes, 10020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuDeviceSetMemPool' in found_functions}} - global __cuDeviceSetMemPool - _F_cuGetProcAddress_v2('cuDeviceSetMemPool', &__cuDeviceSetMemPool, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuDeviceGetMemPool' in found_functions}} - global __cuDeviceGetMemPool - _F_cuGetProcAddress_v2('cuDeviceGetMemPool', &__cuDeviceGetMemPool, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuDeviceGetDefaultMemPool' in found_functions}} - global __cuDeviceGetDefaultMemPool - _F_cuGetProcAddress_v2('cuDeviceGetDefaultMemPool', &__cuDeviceGetDefaultMemPool, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuDeviceGetExecAffinitySupport' in found_functions}} - global __cuDeviceGetExecAffinitySupport - _F_cuGetProcAddress_v2('cuDeviceGetExecAffinitySupport', &__cuDeviceGetExecAffinitySupport, 11040, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuFlushGPUDirectRDMAWrites' in found_functions}} - global __cuFlushGPUDirectRDMAWrites - _F_cuGetProcAddress_v2('cuFlushGPUDirectRDMAWrites', &__cuFlushGPUDirectRDMAWrites, 11030, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuDeviceGetProperties' in found_functions}} - global __cuDeviceGetProperties - _F_cuGetProcAddress_v2('cuDeviceGetProperties', &__cuDeviceGetProperties, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuDeviceComputeCapability' in found_functions}} - global __cuDeviceComputeCapability - _F_cuGetProcAddress_v2('cuDeviceComputeCapability', &__cuDeviceComputeCapability, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuDevicePrimaryCtxRetain' in found_functions}} - global __cuDevicePrimaryCtxRetain - _F_cuGetProcAddress_v2('cuDevicePrimaryCtxRetain', &__cuDevicePrimaryCtxRetain, 7000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuDevicePrimaryCtxRelease_v2' in found_functions}} - global __cuDevicePrimaryCtxRelease_v2 - _F_cuGetProcAddress_v2('cuDevicePrimaryCtxRelease', &__cuDevicePrimaryCtxRelease_v2, 11000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuDevicePrimaryCtxSetFlags_v2' in found_functions}} - global __cuDevicePrimaryCtxSetFlags_v2 - _F_cuGetProcAddress_v2('cuDevicePrimaryCtxSetFlags', &__cuDevicePrimaryCtxSetFlags_v2, 11000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuDevicePrimaryCtxGetState' in found_functions}} - global __cuDevicePrimaryCtxGetState - _F_cuGetProcAddress_v2('cuDevicePrimaryCtxGetState', &__cuDevicePrimaryCtxGetState, 7000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuDevicePrimaryCtxReset_v2' in found_functions}} - global __cuDevicePrimaryCtxReset_v2 - _F_cuGetProcAddress_v2('cuDevicePrimaryCtxReset', &__cuDevicePrimaryCtxReset_v2, 11000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuCtxCreate_v4' in found_functions}} - global __cuCtxCreate_v4 - _F_cuGetProcAddress_v2('cuCtxCreate', &__cuCtxCreate_v4, 12050, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuCtxDestroy_v2' in found_functions}} - global __cuCtxDestroy_v2 - _F_cuGetProcAddress_v2('cuCtxDestroy', &__cuCtxDestroy_v2, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuCtxPushCurrent_v2' in found_functions}} - global __cuCtxPushCurrent_v2 - _F_cuGetProcAddress_v2('cuCtxPushCurrent', &__cuCtxPushCurrent_v2, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuCtxPopCurrent_v2' in found_functions}} - global __cuCtxPopCurrent_v2 - _F_cuGetProcAddress_v2('cuCtxPopCurrent', &__cuCtxPopCurrent_v2, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuCtxSetCurrent' in found_functions}} - global __cuCtxSetCurrent - _F_cuGetProcAddress_v2('cuCtxSetCurrent', &__cuCtxSetCurrent, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuCtxGetCurrent' in found_functions}} - global __cuCtxGetCurrent - _F_cuGetProcAddress_v2('cuCtxGetCurrent', &__cuCtxGetCurrent, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuCtxGetDevice' in found_functions}} - global __cuCtxGetDevice - _F_cuGetProcAddress_v2('cuCtxGetDevice', &__cuCtxGetDevice, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuCtxGetDevice_v2' in found_functions}} - global __cuCtxGetDevice_v2 - _F_cuGetProcAddress_v2('cuCtxGetDevice', &__cuCtxGetDevice_v2, 13000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuCtxGetFlags' in found_functions}} - global __cuCtxGetFlags - _F_cuGetProcAddress_v2('cuCtxGetFlags', &__cuCtxGetFlags, 7000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuCtxSetFlags' in found_functions}} - global __cuCtxSetFlags - _F_cuGetProcAddress_v2('cuCtxSetFlags', &__cuCtxSetFlags, 12010, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuCtxGetId' in found_functions}} - global __cuCtxGetId - _F_cuGetProcAddress_v2('cuCtxGetId', &__cuCtxGetId, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuCtxSynchronize' in found_functions}} - global __cuCtxSynchronize - _F_cuGetProcAddress_v2('cuCtxSynchronize', &__cuCtxSynchronize, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuCtxSynchronize_v2' in found_functions}} - global __cuCtxSynchronize_v2 - _F_cuGetProcAddress_v2('cuCtxSynchronize', &__cuCtxSynchronize_v2, 13000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuCtxSetLimit' in found_functions}} - global __cuCtxSetLimit - _F_cuGetProcAddress_v2('cuCtxSetLimit', &__cuCtxSetLimit, 3010, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuCtxGetLimit' in found_functions}} - global __cuCtxGetLimit - _F_cuGetProcAddress_v2('cuCtxGetLimit', &__cuCtxGetLimit, 3010, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuCtxGetCacheConfig' in found_functions}} - global __cuCtxGetCacheConfig - _F_cuGetProcAddress_v2('cuCtxGetCacheConfig', &__cuCtxGetCacheConfig, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuCtxSetCacheConfig' in found_functions}} - global __cuCtxSetCacheConfig - _F_cuGetProcAddress_v2('cuCtxSetCacheConfig', &__cuCtxSetCacheConfig, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuCtxGetApiVersion' in found_functions}} - global __cuCtxGetApiVersion - _F_cuGetProcAddress_v2('cuCtxGetApiVersion', &__cuCtxGetApiVersion, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuCtxGetStreamPriorityRange' in found_functions}} - global __cuCtxGetStreamPriorityRange - _F_cuGetProcAddress_v2('cuCtxGetStreamPriorityRange', &__cuCtxGetStreamPriorityRange, 5050, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuCtxResetPersistingL2Cache' in found_functions}} - global __cuCtxResetPersistingL2Cache - _F_cuGetProcAddress_v2('cuCtxResetPersistingL2Cache', &__cuCtxResetPersistingL2Cache, 11000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuCtxGetExecAffinity' in found_functions}} - global __cuCtxGetExecAffinity - _F_cuGetProcAddress_v2('cuCtxGetExecAffinity', &__cuCtxGetExecAffinity, 11040, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuCtxRecordEvent' in found_functions}} - global __cuCtxRecordEvent - _F_cuGetProcAddress_v2('cuCtxRecordEvent', &__cuCtxRecordEvent, 12050, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuCtxWaitEvent' in found_functions}} - global __cuCtxWaitEvent - _F_cuGetProcAddress_v2('cuCtxWaitEvent', &__cuCtxWaitEvent, 12050, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuCtxAttach' in found_functions}} - global __cuCtxAttach - _F_cuGetProcAddress_v2('cuCtxAttach', &__cuCtxAttach, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuCtxDetach' in found_functions}} - global __cuCtxDetach - _F_cuGetProcAddress_v2('cuCtxDetach', &__cuCtxDetach, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuCtxGetSharedMemConfig' in found_functions}} - global __cuCtxGetSharedMemConfig - _F_cuGetProcAddress_v2('cuCtxGetSharedMemConfig', &__cuCtxGetSharedMemConfig, 4020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuCtxSetSharedMemConfig' in found_functions}} - global __cuCtxSetSharedMemConfig - _F_cuGetProcAddress_v2('cuCtxSetSharedMemConfig', &__cuCtxSetSharedMemConfig, 4020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuModuleLoad' in found_functions}} - global __cuModuleLoad - _F_cuGetProcAddress_v2('cuModuleLoad', &__cuModuleLoad, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuModuleLoadData' in found_functions}} - global __cuModuleLoadData - _F_cuGetProcAddress_v2('cuModuleLoadData', &__cuModuleLoadData, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuModuleLoadDataEx' in found_functions}} - global __cuModuleLoadDataEx - _F_cuGetProcAddress_v2('cuModuleLoadDataEx', &__cuModuleLoadDataEx, 2010, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuModuleLoadFatBinary' in found_functions}} - global __cuModuleLoadFatBinary - _F_cuGetProcAddress_v2('cuModuleLoadFatBinary', &__cuModuleLoadFatBinary, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuModuleUnload' in found_functions}} - global __cuModuleUnload - _F_cuGetProcAddress_v2('cuModuleUnload', &__cuModuleUnload, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuModuleGetLoadingMode' in found_functions}} - global __cuModuleGetLoadingMode - _F_cuGetProcAddress_v2('cuModuleGetLoadingMode', &__cuModuleGetLoadingMode, 11070, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuModuleGetFunction' in found_functions}} - global __cuModuleGetFunction - _F_cuGetProcAddress_v2('cuModuleGetFunction', &__cuModuleGetFunction, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuModuleGetFunctionCount' in found_functions}} - global __cuModuleGetFunctionCount - _F_cuGetProcAddress_v2('cuModuleGetFunctionCount', &__cuModuleGetFunctionCount, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuModuleEnumerateFunctions' in found_functions}} - global __cuModuleEnumerateFunctions - _F_cuGetProcAddress_v2('cuModuleEnumerateFunctions', &__cuModuleEnumerateFunctions, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuModuleGetGlobal_v2' in found_functions}} - global __cuModuleGetGlobal_v2 - _F_cuGetProcAddress_v2('cuModuleGetGlobal', &__cuModuleGetGlobal_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuLinkCreate_v2' in found_functions}} - global __cuLinkCreate_v2 - _F_cuGetProcAddress_v2('cuLinkCreate', &__cuLinkCreate_v2, 6050, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuLinkAddData_v2' in found_functions}} - global __cuLinkAddData_v2 - _F_cuGetProcAddress_v2('cuLinkAddData', &__cuLinkAddData_v2, 6050, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuLinkAddFile_v2' in found_functions}} - global __cuLinkAddFile_v2 - _F_cuGetProcAddress_v2('cuLinkAddFile', &__cuLinkAddFile_v2, 6050, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuLinkComplete' in found_functions}} - global __cuLinkComplete - _F_cuGetProcAddress_v2('cuLinkComplete', &__cuLinkComplete, 5050, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuLinkDestroy' in found_functions}} - global __cuLinkDestroy - _F_cuGetProcAddress_v2('cuLinkDestroy', &__cuLinkDestroy, 5050, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuModuleGetTexRef' in found_functions}} - global __cuModuleGetTexRef - _F_cuGetProcAddress_v2('cuModuleGetTexRef', &__cuModuleGetTexRef, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuModuleGetSurfRef' in found_functions}} - global __cuModuleGetSurfRef - _F_cuGetProcAddress_v2('cuModuleGetSurfRef', &__cuModuleGetSurfRef, 3000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuLibraryLoadData' in found_functions}} - global __cuLibraryLoadData - _F_cuGetProcAddress_v2('cuLibraryLoadData', &__cuLibraryLoadData, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuLibraryLoadFromFile' in found_functions}} - global __cuLibraryLoadFromFile - _F_cuGetProcAddress_v2('cuLibraryLoadFromFile', &__cuLibraryLoadFromFile, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuLibraryUnload' in found_functions}} - global __cuLibraryUnload - _F_cuGetProcAddress_v2('cuLibraryUnload', &__cuLibraryUnload, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuLibraryGetKernel' in found_functions}} - global __cuLibraryGetKernel - _F_cuGetProcAddress_v2('cuLibraryGetKernel', &__cuLibraryGetKernel, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuLibraryGetKernelCount' in found_functions}} - global __cuLibraryGetKernelCount - _F_cuGetProcAddress_v2('cuLibraryGetKernelCount', &__cuLibraryGetKernelCount, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuLibraryEnumerateKernels' in found_functions}} - global __cuLibraryEnumerateKernels - _F_cuGetProcAddress_v2('cuLibraryEnumerateKernels', &__cuLibraryEnumerateKernels, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuLibraryGetModule' in found_functions}} - global __cuLibraryGetModule - _F_cuGetProcAddress_v2('cuLibraryGetModule', &__cuLibraryGetModule, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuKernelGetFunction' in found_functions}} - global __cuKernelGetFunction - _F_cuGetProcAddress_v2('cuKernelGetFunction', &__cuKernelGetFunction, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuKernelGetLibrary' in found_functions}} - global __cuKernelGetLibrary - _F_cuGetProcAddress_v2('cuKernelGetLibrary', &__cuKernelGetLibrary, 12050, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuLibraryGetGlobal' in found_functions}} - global __cuLibraryGetGlobal - _F_cuGetProcAddress_v2('cuLibraryGetGlobal', &__cuLibraryGetGlobal, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuLibraryGetManaged' in found_functions}} - global __cuLibraryGetManaged - _F_cuGetProcAddress_v2('cuLibraryGetManaged', &__cuLibraryGetManaged, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuLibraryGetUnifiedFunction' in found_functions}} - global __cuLibraryGetUnifiedFunction - _F_cuGetProcAddress_v2('cuLibraryGetUnifiedFunction', &__cuLibraryGetUnifiedFunction, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuKernelGetAttribute' in found_functions}} - global __cuKernelGetAttribute - _F_cuGetProcAddress_v2('cuKernelGetAttribute', &__cuKernelGetAttribute, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuKernelSetAttribute' in found_functions}} - global __cuKernelSetAttribute - _F_cuGetProcAddress_v2('cuKernelSetAttribute', &__cuKernelSetAttribute, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuKernelSetCacheConfig' in found_functions}} - global __cuKernelSetCacheConfig - _F_cuGetProcAddress_v2('cuKernelSetCacheConfig', &__cuKernelSetCacheConfig, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuKernelGetName' in found_functions}} - global __cuKernelGetName - _F_cuGetProcAddress_v2('cuKernelGetName', &__cuKernelGetName, 12030, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuKernelGetParamInfo' in found_functions}} - global __cuKernelGetParamInfo - _F_cuGetProcAddress_v2('cuKernelGetParamInfo', &__cuKernelGetParamInfo, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuKernelGetParamCount' in found_functions}} - global __cuKernelGetParamCount - _F_cuGetProcAddress_v2('cuKernelGetParamCount', &__cuKernelGetParamCount, 13020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMemGetInfo_v2' in found_functions}} - global __cuMemGetInfo_v2 - _F_cuGetProcAddress_v2('cuMemGetInfo', &__cuMemGetInfo_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMemAlloc_v2' in found_functions}} - global __cuMemAlloc_v2 - _F_cuGetProcAddress_v2('cuMemAlloc', &__cuMemAlloc_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMemAllocPitch_v2' in found_functions}} - global __cuMemAllocPitch_v2 - _F_cuGetProcAddress_v2('cuMemAllocPitch', &__cuMemAllocPitch_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMemFree_v2' in found_functions}} - global __cuMemFree_v2 - _F_cuGetProcAddress_v2('cuMemFree', &__cuMemFree_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMemGetAddressRange_v2' in found_functions}} - global __cuMemGetAddressRange_v2 - _F_cuGetProcAddress_v2('cuMemGetAddressRange', &__cuMemGetAddressRange_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMemAllocHost_v2' in found_functions}} - global __cuMemAllocHost_v2 - _F_cuGetProcAddress_v2('cuMemAllocHost', &__cuMemAllocHost_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMemFreeHost' in found_functions}} - global __cuMemFreeHost - _F_cuGetProcAddress_v2('cuMemFreeHost', &__cuMemFreeHost, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMemHostAlloc' in found_functions}} - global __cuMemHostAlloc - _F_cuGetProcAddress_v2('cuMemHostAlloc', &__cuMemHostAlloc, 2020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMemHostGetDevicePointer_v2' in found_functions}} - global __cuMemHostGetDevicePointer_v2 - _F_cuGetProcAddress_v2('cuMemHostGetDevicePointer', &__cuMemHostGetDevicePointer_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMemHostGetFlags' in found_functions}} - global __cuMemHostGetFlags - _F_cuGetProcAddress_v2('cuMemHostGetFlags', &__cuMemHostGetFlags, 2030, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMemAllocManaged' in found_functions}} - global __cuMemAllocManaged - _F_cuGetProcAddress_v2('cuMemAllocManaged', &__cuMemAllocManaged, 6000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuDeviceRegisterAsyncNotification' in found_functions}} - global __cuDeviceRegisterAsyncNotification - _F_cuGetProcAddress_v2('cuDeviceRegisterAsyncNotification', &__cuDeviceRegisterAsyncNotification, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuDeviceUnregisterAsyncNotification' in found_functions}} - global __cuDeviceUnregisterAsyncNotification - _F_cuGetProcAddress_v2('cuDeviceUnregisterAsyncNotification', &__cuDeviceUnregisterAsyncNotification, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuDeviceGetByPCIBusId' in found_functions}} - global __cuDeviceGetByPCIBusId - _F_cuGetProcAddress_v2('cuDeviceGetByPCIBusId', &__cuDeviceGetByPCIBusId, 4010, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuDeviceGetPCIBusId' in found_functions}} - global __cuDeviceGetPCIBusId - _F_cuGetProcAddress_v2('cuDeviceGetPCIBusId', &__cuDeviceGetPCIBusId, 4010, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuIpcGetEventHandle' in found_functions}} - global __cuIpcGetEventHandle - _F_cuGetProcAddress_v2('cuIpcGetEventHandle', &__cuIpcGetEventHandle, 4010, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuIpcOpenEventHandle' in found_functions}} - global __cuIpcOpenEventHandle - _F_cuGetProcAddress_v2('cuIpcOpenEventHandle', &__cuIpcOpenEventHandle, 4010, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuIpcGetMemHandle' in found_functions}} - global __cuIpcGetMemHandle - _F_cuGetProcAddress_v2('cuIpcGetMemHandle', &__cuIpcGetMemHandle, 4010, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuIpcOpenMemHandle_v2' in found_functions}} - global __cuIpcOpenMemHandle_v2 - _F_cuGetProcAddress_v2('cuIpcOpenMemHandle', &__cuIpcOpenMemHandle_v2, 11000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuIpcCloseMemHandle' in found_functions}} - global __cuIpcCloseMemHandle - _F_cuGetProcAddress_v2('cuIpcCloseMemHandle', &__cuIpcCloseMemHandle, 4010, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMemHostRegister_v2' in found_functions}} - global __cuMemHostRegister_v2 - _F_cuGetProcAddress_v2('cuMemHostRegister', &__cuMemHostRegister_v2, 6050, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMemHostUnregister' in found_functions}} - global __cuMemHostUnregister - _F_cuGetProcAddress_v2('cuMemHostUnregister', &__cuMemHostUnregister, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuArrayCreate_v2' in found_functions}} - global __cuArrayCreate_v2 - _F_cuGetProcAddress_v2('cuArrayCreate', &__cuArrayCreate_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuArrayGetDescriptor_v2' in found_functions}} - global __cuArrayGetDescriptor_v2 - _F_cuGetProcAddress_v2('cuArrayGetDescriptor', &__cuArrayGetDescriptor_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuArrayGetSparseProperties' in found_functions}} - global __cuArrayGetSparseProperties - _F_cuGetProcAddress_v2('cuArrayGetSparseProperties', &__cuArrayGetSparseProperties, 11010, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMipmappedArrayGetSparseProperties' in found_functions}} - global __cuMipmappedArrayGetSparseProperties - _F_cuGetProcAddress_v2('cuMipmappedArrayGetSparseProperties', &__cuMipmappedArrayGetSparseProperties, 11010, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuArrayGetMemoryRequirements' in found_functions}} - global __cuArrayGetMemoryRequirements - _F_cuGetProcAddress_v2('cuArrayGetMemoryRequirements', &__cuArrayGetMemoryRequirements, 11060, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMipmappedArrayGetMemoryRequirements' in found_functions}} - global __cuMipmappedArrayGetMemoryRequirements - _F_cuGetProcAddress_v2('cuMipmappedArrayGetMemoryRequirements', &__cuMipmappedArrayGetMemoryRequirements, 11060, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuArrayGetPlane' in found_functions}} - global __cuArrayGetPlane - _F_cuGetProcAddress_v2('cuArrayGetPlane', &__cuArrayGetPlane, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuArrayDestroy' in found_functions}} - global __cuArrayDestroy - _F_cuGetProcAddress_v2('cuArrayDestroy', &__cuArrayDestroy, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuArray3DCreate_v2' in found_functions}} - global __cuArray3DCreate_v2 - _F_cuGetProcAddress_v2('cuArray3DCreate', &__cuArray3DCreate_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuArray3DGetDescriptor_v2' in found_functions}} - global __cuArray3DGetDescriptor_v2 - _F_cuGetProcAddress_v2('cuArray3DGetDescriptor', &__cuArray3DGetDescriptor_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMipmappedArrayCreate' in found_functions}} - global __cuMipmappedArrayCreate - _F_cuGetProcAddress_v2('cuMipmappedArrayCreate', &__cuMipmappedArrayCreate, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMipmappedArrayGetLevel' in found_functions}} - global __cuMipmappedArrayGetLevel - _F_cuGetProcAddress_v2('cuMipmappedArrayGetLevel', &__cuMipmappedArrayGetLevel, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMipmappedArrayDestroy' in found_functions}} - global __cuMipmappedArrayDestroy - _F_cuGetProcAddress_v2('cuMipmappedArrayDestroy', &__cuMipmappedArrayDestroy, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMemGetHandleForAddressRange' in found_functions}} - global __cuMemGetHandleForAddressRange - _F_cuGetProcAddress_v2('cuMemGetHandleForAddressRange', &__cuMemGetHandleForAddressRange, 11070, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMemAddressReserve' in found_functions}} - global __cuMemAddressReserve - _F_cuGetProcAddress_v2('cuMemAddressReserve', &__cuMemAddressReserve, 10020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMemAddressFree' in found_functions}} - global __cuMemAddressFree - _F_cuGetProcAddress_v2('cuMemAddressFree', &__cuMemAddressFree, 10020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMemCreate' in found_functions}} - global __cuMemCreate - _F_cuGetProcAddress_v2('cuMemCreate', &__cuMemCreate, 10020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMemRelease' in found_functions}} - global __cuMemRelease - _F_cuGetProcAddress_v2('cuMemRelease', &__cuMemRelease, 10020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMemMap' in found_functions}} - global __cuMemMap - _F_cuGetProcAddress_v2('cuMemMap', &__cuMemMap, 10020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMemUnmap' in found_functions}} - global __cuMemUnmap - _F_cuGetProcAddress_v2('cuMemUnmap', &__cuMemUnmap, 10020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMemSetAccess' in found_functions}} - global __cuMemSetAccess - _F_cuGetProcAddress_v2('cuMemSetAccess', &__cuMemSetAccess, 10020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMemGetAccess' in found_functions}} - global __cuMemGetAccess - _F_cuGetProcAddress_v2('cuMemGetAccess', &__cuMemGetAccess, 10020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMemExportToShareableHandle' in found_functions}} - global __cuMemExportToShareableHandle - _F_cuGetProcAddress_v2('cuMemExportToShareableHandle', &__cuMemExportToShareableHandle, 10020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMemImportFromShareableHandle' in found_functions}} - global __cuMemImportFromShareableHandle - _F_cuGetProcAddress_v2('cuMemImportFromShareableHandle', &__cuMemImportFromShareableHandle, 10020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMemGetAllocationGranularity' in found_functions}} - global __cuMemGetAllocationGranularity - _F_cuGetProcAddress_v2('cuMemGetAllocationGranularity', &__cuMemGetAllocationGranularity, 10020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMemGetAllocationPropertiesFromHandle' in found_functions}} - global __cuMemGetAllocationPropertiesFromHandle - _F_cuGetProcAddress_v2('cuMemGetAllocationPropertiesFromHandle', &__cuMemGetAllocationPropertiesFromHandle, 10020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMemRetainAllocationHandle' in found_functions}} - global __cuMemRetainAllocationHandle - _F_cuGetProcAddress_v2('cuMemRetainAllocationHandle', &__cuMemRetainAllocationHandle, 11000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMemPoolTrimTo' in found_functions}} - global __cuMemPoolTrimTo - _F_cuGetProcAddress_v2('cuMemPoolTrimTo', &__cuMemPoolTrimTo, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMemPoolSetAttribute' in found_functions}} - global __cuMemPoolSetAttribute - _F_cuGetProcAddress_v2('cuMemPoolSetAttribute', &__cuMemPoolSetAttribute, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMemPoolGetAttribute' in found_functions}} - global __cuMemPoolGetAttribute - _F_cuGetProcAddress_v2('cuMemPoolGetAttribute', &__cuMemPoolGetAttribute, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMemPoolSetAccess' in found_functions}} - global __cuMemPoolSetAccess - _F_cuGetProcAddress_v2('cuMemPoolSetAccess', &__cuMemPoolSetAccess, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMemPoolGetAccess' in found_functions}} - global __cuMemPoolGetAccess - _F_cuGetProcAddress_v2('cuMemPoolGetAccess', &__cuMemPoolGetAccess, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMemPoolCreate' in found_functions}} - global __cuMemPoolCreate - _F_cuGetProcAddress_v2('cuMemPoolCreate', &__cuMemPoolCreate, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMemPoolDestroy' in found_functions}} - global __cuMemPoolDestroy - _F_cuGetProcAddress_v2('cuMemPoolDestroy', &__cuMemPoolDestroy, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMemGetDefaultMemPool' in found_functions}} - global __cuMemGetDefaultMemPool - _F_cuGetProcAddress_v2('cuMemGetDefaultMemPool', &__cuMemGetDefaultMemPool, 13000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMemGetMemPool' in found_functions}} - global __cuMemGetMemPool - _F_cuGetProcAddress_v2('cuMemGetMemPool', &__cuMemGetMemPool, 13000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMemSetMemPool' in found_functions}} - global __cuMemSetMemPool - _F_cuGetProcAddress_v2('cuMemSetMemPool', &__cuMemSetMemPool, 13000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMemPoolExportToShareableHandle' in found_functions}} - global __cuMemPoolExportToShareableHandle - _F_cuGetProcAddress_v2('cuMemPoolExportToShareableHandle', &__cuMemPoolExportToShareableHandle, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMemPoolImportFromShareableHandle' in found_functions}} - global __cuMemPoolImportFromShareableHandle - _F_cuGetProcAddress_v2('cuMemPoolImportFromShareableHandle', &__cuMemPoolImportFromShareableHandle, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMemPoolExportPointer' in found_functions}} - global __cuMemPoolExportPointer - _F_cuGetProcAddress_v2('cuMemPoolExportPointer', &__cuMemPoolExportPointer, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMemPoolImportPointer' in found_functions}} - global __cuMemPoolImportPointer - _F_cuGetProcAddress_v2('cuMemPoolImportPointer', &__cuMemPoolImportPointer, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMulticastCreate' in found_functions}} - global __cuMulticastCreate - _F_cuGetProcAddress_v2('cuMulticastCreate', &__cuMulticastCreate, 12010, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMulticastAddDevice' in found_functions}} - global __cuMulticastAddDevice - _F_cuGetProcAddress_v2('cuMulticastAddDevice', &__cuMulticastAddDevice, 12010, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMulticastBindMem' in found_functions}} - global __cuMulticastBindMem - _F_cuGetProcAddress_v2('cuMulticastBindMem', &__cuMulticastBindMem, 12010, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMulticastBindMem_v2' in found_functions}} - global __cuMulticastBindMem_v2 - _F_cuGetProcAddress_v2('cuMulticastBindMem', &__cuMulticastBindMem_v2, 13010, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMulticastBindAddr' in found_functions}} - global __cuMulticastBindAddr - _F_cuGetProcAddress_v2('cuMulticastBindAddr', &__cuMulticastBindAddr, 12010, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMulticastBindAddr_v2' in found_functions}} - global __cuMulticastBindAddr_v2 - _F_cuGetProcAddress_v2('cuMulticastBindAddr', &__cuMulticastBindAddr_v2, 13010, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMulticastUnbind' in found_functions}} - global __cuMulticastUnbind - _F_cuGetProcAddress_v2('cuMulticastUnbind', &__cuMulticastUnbind, 12010, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMulticastGetGranularity' in found_functions}} - global __cuMulticastGetGranularity - _F_cuGetProcAddress_v2('cuMulticastGetGranularity', &__cuMulticastGetGranularity, 12010, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuPointerGetAttribute' in found_functions}} - global __cuPointerGetAttribute - _F_cuGetProcAddress_v2('cuPointerGetAttribute', &__cuPointerGetAttribute, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMemAdvise_v2' in found_functions}} - global __cuMemAdvise_v2 - _F_cuGetProcAddress_v2('cuMemAdvise', &__cuMemAdvise_v2, 12020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMemRangeGetAttribute' in found_functions}} - global __cuMemRangeGetAttribute - _F_cuGetProcAddress_v2('cuMemRangeGetAttribute', &__cuMemRangeGetAttribute, 8000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuMemRangeGetAttributes' in found_functions}} - global __cuMemRangeGetAttributes - _F_cuGetProcAddress_v2('cuMemRangeGetAttributes', &__cuMemRangeGetAttributes, 8000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuPointerSetAttribute' in found_functions}} - global __cuPointerSetAttribute - _F_cuGetProcAddress_v2('cuPointerSetAttribute', &__cuPointerSetAttribute, 6000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuPointerGetAttributes' in found_functions}} - global __cuPointerGetAttributes - _F_cuGetProcAddress_v2('cuPointerGetAttributes', &__cuPointerGetAttributes, 7000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuStreamCreate' in found_functions}} - global __cuStreamCreate - _F_cuGetProcAddress_v2('cuStreamCreate', &__cuStreamCreate, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuStreamCreateWithPriority' in found_functions}} - global __cuStreamCreateWithPriority - _F_cuGetProcAddress_v2('cuStreamCreateWithPriority', &__cuStreamCreateWithPriority, 5050, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuThreadExchangeStreamCaptureMode' in found_functions}} - global __cuThreadExchangeStreamCaptureMode - _F_cuGetProcAddress_v2('cuThreadExchangeStreamCaptureMode', &__cuThreadExchangeStreamCaptureMode, 10010, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuStreamDestroy_v2' in found_functions}} - global __cuStreamDestroy_v2 - _F_cuGetProcAddress_v2('cuStreamDestroy', &__cuStreamDestroy_v2, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuEventCreate' in found_functions}} - global __cuEventCreate - _F_cuGetProcAddress_v2('cuEventCreate', &__cuEventCreate, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuEventQuery' in found_functions}} - global __cuEventQuery - _F_cuGetProcAddress_v2('cuEventQuery', &__cuEventQuery, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuEventSynchronize' in found_functions}} - global __cuEventSynchronize - _F_cuGetProcAddress_v2('cuEventSynchronize', &__cuEventSynchronize, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuEventDestroy_v2' in found_functions}} - global __cuEventDestroy_v2 - _F_cuGetProcAddress_v2('cuEventDestroy', &__cuEventDestroy_v2, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuEventElapsedTime_v2' in found_functions}} - global __cuEventElapsedTime_v2 - _F_cuGetProcAddress_v2('cuEventElapsedTime', &__cuEventElapsedTime_v2, 12080, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuImportExternalMemory' in found_functions}} - global __cuImportExternalMemory - _F_cuGetProcAddress_v2('cuImportExternalMemory', &__cuImportExternalMemory, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuExternalMemoryGetMappedBuffer' in found_functions}} - global __cuExternalMemoryGetMappedBuffer - _F_cuGetProcAddress_v2('cuExternalMemoryGetMappedBuffer', &__cuExternalMemoryGetMappedBuffer, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuExternalMemoryGetMappedMipmappedArray' in found_functions}} - global __cuExternalMemoryGetMappedMipmappedArray - _F_cuGetProcAddress_v2('cuExternalMemoryGetMappedMipmappedArray', &__cuExternalMemoryGetMappedMipmappedArray, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuDestroyExternalMemory' in found_functions}} - global __cuDestroyExternalMemory - _F_cuGetProcAddress_v2('cuDestroyExternalMemory', &__cuDestroyExternalMemory, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuImportExternalSemaphore' in found_functions}} - global __cuImportExternalSemaphore - _F_cuGetProcAddress_v2('cuImportExternalSemaphore', &__cuImportExternalSemaphore, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuDestroyExternalSemaphore' in found_functions}} - global __cuDestroyExternalSemaphore - _F_cuGetProcAddress_v2('cuDestroyExternalSemaphore', &__cuDestroyExternalSemaphore, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuFuncGetAttribute' in found_functions}} - global __cuFuncGetAttribute - _F_cuGetProcAddress_v2('cuFuncGetAttribute', &__cuFuncGetAttribute, 2020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuFuncSetAttribute' in found_functions}} - global __cuFuncSetAttribute - _F_cuGetProcAddress_v2('cuFuncSetAttribute', &__cuFuncSetAttribute, 9000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuFuncSetCacheConfig' in found_functions}} - global __cuFuncSetCacheConfig - _F_cuGetProcAddress_v2('cuFuncSetCacheConfig', &__cuFuncSetCacheConfig, 3000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuFuncGetModule' in found_functions}} - global __cuFuncGetModule - _F_cuGetProcAddress_v2('cuFuncGetModule', &__cuFuncGetModule, 11000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuFuncGetName' in found_functions}} - global __cuFuncGetName - _F_cuGetProcAddress_v2('cuFuncGetName', &__cuFuncGetName, 12030, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuFuncGetParamInfo' in found_functions}} - global __cuFuncGetParamInfo - _F_cuGetProcAddress_v2('cuFuncGetParamInfo', &__cuFuncGetParamInfo, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuFuncGetParamCount' in found_functions}} - global __cuFuncGetParamCount - _F_cuGetProcAddress_v2('cuFuncGetParamCount', &__cuFuncGetParamCount, 13020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuFuncIsLoaded' in found_functions}} - global __cuFuncIsLoaded - _F_cuGetProcAddress_v2('cuFuncIsLoaded', &__cuFuncIsLoaded, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuFuncLoad' in found_functions}} - global __cuFuncLoad - _F_cuGetProcAddress_v2('cuFuncLoad', &__cuFuncLoad, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuLaunchCooperativeKernelMultiDevice' in found_functions}} - global __cuLaunchCooperativeKernelMultiDevice - _F_cuGetProcAddress_v2('cuLaunchCooperativeKernelMultiDevice', &__cuLaunchCooperativeKernelMultiDevice, 9000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuFuncSetBlockShape' in found_functions}} - global __cuFuncSetBlockShape - _F_cuGetProcAddress_v2('cuFuncSetBlockShape', &__cuFuncSetBlockShape, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuFuncSetSharedSize' in found_functions}} - global __cuFuncSetSharedSize - _F_cuGetProcAddress_v2('cuFuncSetSharedSize', &__cuFuncSetSharedSize, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuParamSetSize' in found_functions}} - global __cuParamSetSize - _F_cuGetProcAddress_v2('cuParamSetSize', &__cuParamSetSize, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuParamSeti' in found_functions}} - global __cuParamSeti - _F_cuGetProcAddress_v2('cuParamSeti', &__cuParamSeti, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuParamSetf' in found_functions}} - global __cuParamSetf - _F_cuGetProcAddress_v2('cuParamSetf', &__cuParamSetf, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuParamSetv' in found_functions}} - global __cuParamSetv - _F_cuGetProcAddress_v2('cuParamSetv', &__cuParamSetv, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuLaunch' in found_functions}} - global __cuLaunch - _F_cuGetProcAddress_v2('cuLaunch', &__cuLaunch, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuLaunchGrid' in found_functions}} - global __cuLaunchGrid - _F_cuGetProcAddress_v2('cuLaunchGrid', &__cuLaunchGrid, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuLaunchGridAsync' in found_functions}} - global __cuLaunchGridAsync - _F_cuGetProcAddress_v2('cuLaunchGridAsync', &__cuLaunchGridAsync, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuParamSetTexRef' in found_functions}} - global __cuParamSetTexRef - _F_cuGetProcAddress_v2('cuParamSetTexRef', &__cuParamSetTexRef, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuFuncSetSharedMemConfig' in found_functions}} - global __cuFuncSetSharedMemConfig - _F_cuGetProcAddress_v2('cuFuncSetSharedMemConfig', &__cuFuncSetSharedMemConfig, 4020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGraphCreate' in found_functions}} - global __cuGraphCreate - _F_cuGetProcAddress_v2('cuGraphCreate', &__cuGraphCreate, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGraphAddKernelNode_v2' in found_functions}} - global __cuGraphAddKernelNode_v2 - _F_cuGetProcAddress_v2('cuGraphAddKernelNode', &__cuGraphAddKernelNode_v2, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGraphKernelNodeGetParams_v2' in found_functions}} - global __cuGraphKernelNodeGetParams_v2 - _F_cuGetProcAddress_v2('cuGraphKernelNodeGetParams', &__cuGraphKernelNodeGetParams_v2, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGraphKernelNodeSetParams_v2' in found_functions}} - global __cuGraphKernelNodeSetParams_v2 - _F_cuGetProcAddress_v2('cuGraphKernelNodeSetParams', &__cuGraphKernelNodeSetParams_v2, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGraphAddMemcpyNode' in found_functions}} - global __cuGraphAddMemcpyNode - _F_cuGetProcAddress_v2('cuGraphAddMemcpyNode', &__cuGraphAddMemcpyNode, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGraphMemcpyNodeGetParams' in found_functions}} - global __cuGraphMemcpyNodeGetParams - _F_cuGetProcAddress_v2('cuGraphMemcpyNodeGetParams', &__cuGraphMemcpyNodeGetParams, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGraphMemcpyNodeSetParams' in found_functions}} - global __cuGraphMemcpyNodeSetParams - _F_cuGetProcAddress_v2('cuGraphMemcpyNodeSetParams', &__cuGraphMemcpyNodeSetParams, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGraphAddMemsetNode' in found_functions}} - global __cuGraphAddMemsetNode - _F_cuGetProcAddress_v2('cuGraphAddMemsetNode', &__cuGraphAddMemsetNode, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGraphMemsetNodeGetParams' in found_functions}} - global __cuGraphMemsetNodeGetParams - _F_cuGetProcAddress_v2('cuGraphMemsetNodeGetParams', &__cuGraphMemsetNodeGetParams, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGraphMemsetNodeSetParams' in found_functions}} - global __cuGraphMemsetNodeSetParams - _F_cuGetProcAddress_v2('cuGraphMemsetNodeSetParams', &__cuGraphMemsetNodeSetParams, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGraphAddHostNode' in found_functions}} - global __cuGraphAddHostNode - _F_cuGetProcAddress_v2('cuGraphAddHostNode', &__cuGraphAddHostNode, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGraphHostNodeGetParams' in found_functions}} - global __cuGraphHostNodeGetParams - _F_cuGetProcAddress_v2('cuGraphHostNodeGetParams', &__cuGraphHostNodeGetParams, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGraphHostNodeSetParams' in found_functions}} - global __cuGraphHostNodeSetParams - _F_cuGetProcAddress_v2('cuGraphHostNodeSetParams', &__cuGraphHostNodeSetParams, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGraphAddChildGraphNode' in found_functions}} - global __cuGraphAddChildGraphNode - _F_cuGetProcAddress_v2('cuGraphAddChildGraphNode', &__cuGraphAddChildGraphNode, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGraphChildGraphNodeGetGraph' in found_functions}} - global __cuGraphChildGraphNodeGetGraph - _F_cuGetProcAddress_v2('cuGraphChildGraphNodeGetGraph', &__cuGraphChildGraphNodeGetGraph, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGraphAddEmptyNode' in found_functions}} - global __cuGraphAddEmptyNode - _F_cuGetProcAddress_v2('cuGraphAddEmptyNode', &__cuGraphAddEmptyNode, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGraphAddEventRecordNode' in found_functions}} - global __cuGraphAddEventRecordNode - _F_cuGetProcAddress_v2('cuGraphAddEventRecordNode', &__cuGraphAddEventRecordNode, 11010, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGraphEventRecordNodeGetEvent' in found_functions}} - global __cuGraphEventRecordNodeGetEvent - _F_cuGetProcAddress_v2('cuGraphEventRecordNodeGetEvent', &__cuGraphEventRecordNodeGetEvent, 11010, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGraphEventRecordNodeSetEvent' in found_functions}} - global __cuGraphEventRecordNodeSetEvent - _F_cuGetProcAddress_v2('cuGraphEventRecordNodeSetEvent', &__cuGraphEventRecordNodeSetEvent, 11010, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGraphAddEventWaitNode' in found_functions}} - global __cuGraphAddEventWaitNode - _F_cuGetProcAddress_v2('cuGraphAddEventWaitNode', &__cuGraphAddEventWaitNode, 11010, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGraphEventWaitNodeGetEvent' in found_functions}} - global __cuGraphEventWaitNodeGetEvent - _F_cuGetProcAddress_v2('cuGraphEventWaitNodeGetEvent', &__cuGraphEventWaitNodeGetEvent, 11010, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGraphEventWaitNodeSetEvent' in found_functions}} - global __cuGraphEventWaitNodeSetEvent - _F_cuGetProcAddress_v2('cuGraphEventWaitNodeSetEvent', &__cuGraphEventWaitNodeSetEvent, 11010, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGraphAddExternalSemaphoresSignalNode' in found_functions}} - global __cuGraphAddExternalSemaphoresSignalNode - _F_cuGetProcAddress_v2('cuGraphAddExternalSemaphoresSignalNode', &__cuGraphAddExternalSemaphoresSignalNode, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGraphExternalSemaphoresSignalNodeGetParams' in found_functions}} - global __cuGraphExternalSemaphoresSignalNodeGetParams - _F_cuGetProcAddress_v2('cuGraphExternalSemaphoresSignalNodeGetParams', &__cuGraphExternalSemaphoresSignalNodeGetParams, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGraphExternalSemaphoresSignalNodeSetParams' in found_functions}} - global __cuGraphExternalSemaphoresSignalNodeSetParams - _F_cuGetProcAddress_v2('cuGraphExternalSemaphoresSignalNodeSetParams', &__cuGraphExternalSemaphoresSignalNodeSetParams, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGraphAddExternalSemaphoresWaitNode' in found_functions}} - global __cuGraphAddExternalSemaphoresWaitNode - _F_cuGetProcAddress_v2('cuGraphAddExternalSemaphoresWaitNode', &__cuGraphAddExternalSemaphoresWaitNode, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGraphExternalSemaphoresWaitNodeGetParams' in found_functions}} - global __cuGraphExternalSemaphoresWaitNodeGetParams - _F_cuGetProcAddress_v2('cuGraphExternalSemaphoresWaitNodeGetParams', &__cuGraphExternalSemaphoresWaitNodeGetParams, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGraphExternalSemaphoresWaitNodeSetParams' in found_functions}} - global __cuGraphExternalSemaphoresWaitNodeSetParams - _F_cuGetProcAddress_v2('cuGraphExternalSemaphoresWaitNodeSetParams', &__cuGraphExternalSemaphoresWaitNodeSetParams, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGraphAddBatchMemOpNode' in found_functions}} - global __cuGraphAddBatchMemOpNode - _F_cuGetProcAddress_v2('cuGraphAddBatchMemOpNode', &__cuGraphAddBatchMemOpNode, 11070, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGraphBatchMemOpNodeGetParams' in found_functions}} - global __cuGraphBatchMemOpNodeGetParams - _F_cuGetProcAddress_v2('cuGraphBatchMemOpNodeGetParams', &__cuGraphBatchMemOpNodeGetParams, 11070, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGraphBatchMemOpNodeSetParams' in found_functions}} - global __cuGraphBatchMemOpNodeSetParams - _F_cuGetProcAddress_v2('cuGraphBatchMemOpNodeSetParams', &__cuGraphBatchMemOpNodeSetParams, 11070, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGraphExecBatchMemOpNodeSetParams' in found_functions}} - global __cuGraphExecBatchMemOpNodeSetParams - _F_cuGetProcAddress_v2('cuGraphExecBatchMemOpNodeSetParams', &__cuGraphExecBatchMemOpNodeSetParams, 11070, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGraphAddMemAllocNode' in found_functions}} - global __cuGraphAddMemAllocNode - _F_cuGetProcAddress_v2('cuGraphAddMemAllocNode', &__cuGraphAddMemAllocNode, 11040, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGraphMemAllocNodeGetParams' in found_functions}} - global __cuGraphMemAllocNodeGetParams - _F_cuGetProcAddress_v2('cuGraphMemAllocNodeGetParams', &__cuGraphMemAllocNodeGetParams, 11040, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGraphAddMemFreeNode' in found_functions}} - global __cuGraphAddMemFreeNode - _F_cuGetProcAddress_v2('cuGraphAddMemFreeNode', &__cuGraphAddMemFreeNode, 11040, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGraphMemFreeNodeGetParams' in found_functions}} - global __cuGraphMemFreeNodeGetParams - _F_cuGetProcAddress_v2('cuGraphMemFreeNodeGetParams', &__cuGraphMemFreeNodeGetParams, 11040, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuDeviceGraphMemTrim' in found_functions}} - global __cuDeviceGraphMemTrim - _F_cuGetProcAddress_v2('cuDeviceGraphMemTrim', &__cuDeviceGraphMemTrim, 11040, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuDeviceGetGraphMemAttribute' in found_functions}} - global __cuDeviceGetGraphMemAttribute - _F_cuGetProcAddress_v2('cuDeviceGetGraphMemAttribute', &__cuDeviceGetGraphMemAttribute, 11040, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuDeviceSetGraphMemAttribute' in found_functions}} - global __cuDeviceSetGraphMemAttribute - _F_cuGetProcAddress_v2('cuDeviceSetGraphMemAttribute', &__cuDeviceSetGraphMemAttribute, 11040, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGraphClone' in found_functions}} - global __cuGraphClone - _F_cuGetProcAddress_v2('cuGraphClone', &__cuGraphClone, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGraphNodeFindInClone' in found_functions}} - global __cuGraphNodeFindInClone - _F_cuGetProcAddress_v2('cuGraphNodeFindInClone', &__cuGraphNodeFindInClone, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGraphNodeGetType' in found_functions}} - global __cuGraphNodeGetType - _F_cuGetProcAddress_v2('cuGraphNodeGetType', &__cuGraphNodeGetType, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGraphNodeGetContainingGraph' in found_functions}} - global __cuGraphNodeGetContainingGraph - _F_cuGetProcAddress_v2('cuGraphNodeGetContainingGraph', &__cuGraphNodeGetContainingGraph, 13010, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGraphNodeGetLocalId' in found_functions}} - global __cuGraphNodeGetLocalId - _F_cuGetProcAddress_v2('cuGraphNodeGetLocalId', &__cuGraphNodeGetLocalId, 13010, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGraphNodeGetToolsId' in found_functions}} - global __cuGraphNodeGetToolsId - _F_cuGetProcAddress_v2('cuGraphNodeGetToolsId', &__cuGraphNodeGetToolsId, 13010, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGraphGetId' in found_functions}} - global __cuGraphGetId - _F_cuGetProcAddress_v2('cuGraphGetId', &__cuGraphGetId, 13010, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGraphExecGetId' in found_functions}} - global __cuGraphExecGetId - _F_cuGetProcAddress_v2('cuGraphExecGetId', &__cuGraphExecGetId, 13010, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGraphGetNodes' in found_functions}} - global __cuGraphGetNodes - _F_cuGetProcAddress_v2('cuGraphGetNodes', &__cuGraphGetNodes, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGraphGetRootNodes' in found_functions}} - global __cuGraphGetRootNodes - _F_cuGetProcAddress_v2('cuGraphGetRootNodes', &__cuGraphGetRootNodes, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGraphGetEdges_v2' in found_functions}} - global __cuGraphGetEdges_v2 - _F_cuGetProcAddress_v2('cuGraphGetEdges', &__cuGraphGetEdges_v2, 12030, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGraphNodeGetDependencies_v2' in found_functions}} - global __cuGraphNodeGetDependencies_v2 - _F_cuGetProcAddress_v2('cuGraphNodeGetDependencies', &__cuGraphNodeGetDependencies_v2, 12030, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGraphNodeGetDependentNodes_v2' in found_functions}} - global __cuGraphNodeGetDependentNodes_v2 - _F_cuGetProcAddress_v2('cuGraphNodeGetDependentNodes', &__cuGraphNodeGetDependentNodes_v2, 12030, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGraphAddDependencies_v2' in found_functions}} - global __cuGraphAddDependencies_v2 - _F_cuGetProcAddress_v2('cuGraphAddDependencies', &__cuGraphAddDependencies_v2, 12030, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGraphRemoveDependencies_v2' in found_functions}} - global __cuGraphRemoveDependencies_v2 - _F_cuGetProcAddress_v2('cuGraphRemoveDependencies', &__cuGraphRemoveDependencies_v2, 12030, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGraphDestroyNode' in found_functions}} - global __cuGraphDestroyNode - _F_cuGetProcAddress_v2('cuGraphDestroyNode', &__cuGraphDestroyNode, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGraphInstantiateWithFlags' in found_functions}} - global __cuGraphInstantiateWithFlags - _F_cuGetProcAddress_v2('cuGraphInstantiateWithFlags', &__cuGraphInstantiateWithFlags, 11040, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGraphExecGetFlags' in found_functions}} - global __cuGraphExecGetFlags - _F_cuGetProcAddress_v2('cuGraphExecGetFlags', &__cuGraphExecGetFlags, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGraphExecKernelNodeSetParams_v2' in found_functions}} - global __cuGraphExecKernelNodeSetParams_v2 - _F_cuGetProcAddress_v2('cuGraphExecKernelNodeSetParams', &__cuGraphExecKernelNodeSetParams_v2, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGraphExecMemcpyNodeSetParams' in found_functions}} - global __cuGraphExecMemcpyNodeSetParams - _F_cuGetProcAddress_v2('cuGraphExecMemcpyNodeSetParams', &__cuGraphExecMemcpyNodeSetParams, 10020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGraphExecMemsetNodeSetParams' in found_functions}} - global __cuGraphExecMemsetNodeSetParams - _F_cuGetProcAddress_v2('cuGraphExecMemsetNodeSetParams', &__cuGraphExecMemsetNodeSetParams, 10020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGraphExecHostNodeSetParams' in found_functions}} - global __cuGraphExecHostNodeSetParams - _F_cuGetProcAddress_v2('cuGraphExecHostNodeSetParams', &__cuGraphExecHostNodeSetParams, 10020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGraphExecChildGraphNodeSetParams' in found_functions}} - global __cuGraphExecChildGraphNodeSetParams - _F_cuGetProcAddress_v2('cuGraphExecChildGraphNodeSetParams', &__cuGraphExecChildGraphNodeSetParams, 11010, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGraphExecEventRecordNodeSetEvent' in found_functions}} - global __cuGraphExecEventRecordNodeSetEvent - _F_cuGetProcAddress_v2('cuGraphExecEventRecordNodeSetEvent', &__cuGraphExecEventRecordNodeSetEvent, 11010, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGraphExecEventWaitNodeSetEvent' in found_functions}} - global __cuGraphExecEventWaitNodeSetEvent - _F_cuGetProcAddress_v2('cuGraphExecEventWaitNodeSetEvent', &__cuGraphExecEventWaitNodeSetEvent, 11010, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGraphExecExternalSemaphoresSignalNodeSetParams' in found_functions}} - global __cuGraphExecExternalSemaphoresSignalNodeSetParams - _F_cuGetProcAddress_v2('cuGraphExecExternalSemaphoresSignalNodeSetParams', &__cuGraphExecExternalSemaphoresSignalNodeSetParams, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGraphExecExternalSemaphoresWaitNodeSetParams' in found_functions}} - global __cuGraphExecExternalSemaphoresWaitNodeSetParams - _F_cuGetProcAddress_v2('cuGraphExecExternalSemaphoresWaitNodeSetParams', &__cuGraphExecExternalSemaphoresWaitNodeSetParams, 11020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGraphNodeSetEnabled' in found_functions}} - global __cuGraphNodeSetEnabled - _F_cuGetProcAddress_v2('cuGraphNodeSetEnabled', &__cuGraphNodeSetEnabled, 11060, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGraphNodeGetEnabled' in found_functions}} - global __cuGraphNodeGetEnabled - _F_cuGetProcAddress_v2('cuGraphNodeGetEnabled', &__cuGraphNodeGetEnabled, 11060, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGraphExecDestroy' in found_functions}} - global __cuGraphExecDestroy - _F_cuGetProcAddress_v2('cuGraphExecDestroy', &__cuGraphExecDestroy, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGraphDestroy' in found_functions}} - global __cuGraphDestroy - _F_cuGetProcAddress_v2('cuGraphDestroy', &__cuGraphDestroy, 10000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGraphExecUpdate_v2' in found_functions}} - global __cuGraphExecUpdate_v2 - _F_cuGetProcAddress_v2('cuGraphExecUpdate', &__cuGraphExecUpdate_v2, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGraphKernelNodeCopyAttributes' in found_functions}} - global __cuGraphKernelNodeCopyAttributes - _F_cuGetProcAddress_v2('cuGraphKernelNodeCopyAttributes', &__cuGraphKernelNodeCopyAttributes, 11000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGraphKernelNodeGetAttribute' in found_functions}} - global __cuGraphKernelNodeGetAttribute - _F_cuGetProcAddress_v2('cuGraphKernelNodeGetAttribute', &__cuGraphKernelNodeGetAttribute, 11000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGraphKernelNodeSetAttribute' in found_functions}} - global __cuGraphKernelNodeSetAttribute - _F_cuGetProcAddress_v2('cuGraphKernelNodeSetAttribute', &__cuGraphKernelNodeSetAttribute, 11000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGraphDebugDotPrint' in found_functions}} - global __cuGraphDebugDotPrint - _F_cuGetProcAddress_v2('cuGraphDebugDotPrint', &__cuGraphDebugDotPrint, 11030, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuUserObjectCreate' in found_functions}} - global __cuUserObjectCreate - _F_cuGetProcAddress_v2('cuUserObjectCreate', &__cuUserObjectCreate, 11030, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuUserObjectRetain' in found_functions}} - global __cuUserObjectRetain - _F_cuGetProcAddress_v2('cuUserObjectRetain', &__cuUserObjectRetain, 11030, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuUserObjectRelease' in found_functions}} - global __cuUserObjectRelease - _F_cuGetProcAddress_v2('cuUserObjectRelease', &__cuUserObjectRelease, 11030, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGraphRetainUserObject' in found_functions}} - global __cuGraphRetainUserObject - _F_cuGetProcAddress_v2('cuGraphRetainUserObject', &__cuGraphRetainUserObject, 11030, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGraphReleaseUserObject' in found_functions}} - global __cuGraphReleaseUserObject - _F_cuGetProcAddress_v2('cuGraphReleaseUserObject', &__cuGraphReleaseUserObject, 11030, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGraphAddNode_v2' in found_functions}} - global __cuGraphAddNode_v2 - _F_cuGetProcAddress_v2('cuGraphAddNode', &__cuGraphAddNode_v2, 12030, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGraphNodeSetParams' in found_functions}} - global __cuGraphNodeSetParams - _F_cuGetProcAddress_v2('cuGraphNodeSetParams', &__cuGraphNodeSetParams, 12020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGraphNodeGetParams' in found_functions}} - global __cuGraphNodeGetParams - _F_cuGetProcAddress_v2('cuGraphNodeGetParams', &__cuGraphNodeGetParams, 13020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGraphExecNodeSetParams' in found_functions}} - global __cuGraphExecNodeSetParams - _F_cuGetProcAddress_v2('cuGraphExecNodeSetParams', &__cuGraphExecNodeSetParams, 12020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGraphConditionalHandleCreate' in found_functions}} - global __cuGraphConditionalHandleCreate - _F_cuGetProcAddress_v2('cuGraphConditionalHandleCreate', &__cuGraphConditionalHandleCreate, 12030, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuOccupancyMaxActiveBlocksPerMultiprocessor' in found_functions}} - global __cuOccupancyMaxActiveBlocksPerMultiprocessor - _F_cuGetProcAddress_v2('cuOccupancyMaxActiveBlocksPerMultiprocessor', &__cuOccupancyMaxActiveBlocksPerMultiprocessor, 6050, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags' in found_functions}} - global __cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags - _F_cuGetProcAddress_v2('cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags', &__cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags, 7000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuOccupancyMaxPotentialBlockSize' in found_functions}} - global __cuOccupancyMaxPotentialBlockSize - _F_cuGetProcAddress_v2('cuOccupancyMaxPotentialBlockSize', &__cuOccupancyMaxPotentialBlockSize, 6050, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuOccupancyMaxPotentialBlockSizeWithFlags' in found_functions}} - global __cuOccupancyMaxPotentialBlockSizeWithFlags - _F_cuGetProcAddress_v2('cuOccupancyMaxPotentialBlockSizeWithFlags', &__cuOccupancyMaxPotentialBlockSizeWithFlags, 7000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuOccupancyAvailableDynamicSMemPerBlock' in found_functions}} - global __cuOccupancyAvailableDynamicSMemPerBlock - _F_cuGetProcAddress_v2('cuOccupancyAvailableDynamicSMemPerBlock', &__cuOccupancyAvailableDynamicSMemPerBlock, 10020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuOccupancyMaxPotentialClusterSize' in found_functions}} - global __cuOccupancyMaxPotentialClusterSize - _F_cuGetProcAddress_v2('cuOccupancyMaxPotentialClusterSize', &__cuOccupancyMaxPotentialClusterSize, 11070, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuOccupancyMaxActiveClusters' in found_functions}} - global __cuOccupancyMaxActiveClusters - _F_cuGetProcAddress_v2('cuOccupancyMaxActiveClusters', &__cuOccupancyMaxActiveClusters, 11070, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuTexRefSetArray' in found_functions}} - global __cuTexRefSetArray - _F_cuGetProcAddress_v2('cuTexRefSetArray', &__cuTexRefSetArray, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuTexRefSetMipmappedArray' in found_functions}} - global __cuTexRefSetMipmappedArray - _F_cuGetProcAddress_v2('cuTexRefSetMipmappedArray', &__cuTexRefSetMipmappedArray, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuTexRefSetAddress_v2' in found_functions}} - global __cuTexRefSetAddress_v2 - _F_cuGetProcAddress_v2('cuTexRefSetAddress', &__cuTexRefSetAddress_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuTexRefSetAddress2D_v3' in found_functions}} - global __cuTexRefSetAddress2D_v3 - _F_cuGetProcAddress_v2('cuTexRefSetAddress2D', &__cuTexRefSetAddress2D_v3, 4010, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuTexRefSetFormat' in found_functions}} - global __cuTexRefSetFormat - _F_cuGetProcAddress_v2('cuTexRefSetFormat', &__cuTexRefSetFormat, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuTexRefSetAddressMode' in found_functions}} - global __cuTexRefSetAddressMode - _F_cuGetProcAddress_v2('cuTexRefSetAddressMode', &__cuTexRefSetAddressMode, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuTexRefSetFilterMode' in found_functions}} - global __cuTexRefSetFilterMode - _F_cuGetProcAddress_v2('cuTexRefSetFilterMode', &__cuTexRefSetFilterMode, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuTexRefSetMipmapFilterMode' in found_functions}} - global __cuTexRefSetMipmapFilterMode - _F_cuGetProcAddress_v2('cuTexRefSetMipmapFilterMode', &__cuTexRefSetMipmapFilterMode, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuTexRefSetMipmapLevelBias' in found_functions}} - global __cuTexRefSetMipmapLevelBias - _F_cuGetProcAddress_v2('cuTexRefSetMipmapLevelBias', &__cuTexRefSetMipmapLevelBias, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuTexRefSetMipmapLevelClamp' in found_functions}} - global __cuTexRefSetMipmapLevelClamp - _F_cuGetProcAddress_v2('cuTexRefSetMipmapLevelClamp', &__cuTexRefSetMipmapLevelClamp, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuTexRefSetMaxAnisotropy' in found_functions}} - global __cuTexRefSetMaxAnisotropy - _F_cuGetProcAddress_v2('cuTexRefSetMaxAnisotropy', &__cuTexRefSetMaxAnisotropy, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuTexRefSetBorderColor' in found_functions}} - global __cuTexRefSetBorderColor - _F_cuGetProcAddress_v2('cuTexRefSetBorderColor', &__cuTexRefSetBorderColor, 8000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuTexRefSetFlags' in found_functions}} - global __cuTexRefSetFlags - _F_cuGetProcAddress_v2('cuTexRefSetFlags', &__cuTexRefSetFlags, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuTexRefGetAddress_v2' in found_functions}} - global __cuTexRefGetAddress_v2 - _F_cuGetProcAddress_v2('cuTexRefGetAddress', &__cuTexRefGetAddress_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuTexRefGetArray' in found_functions}} - global __cuTexRefGetArray - _F_cuGetProcAddress_v2('cuTexRefGetArray', &__cuTexRefGetArray, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuTexRefGetMipmappedArray' in found_functions}} - global __cuTexRefGetMipmappedArray - _F_cuGetProcAddress_v2('cuTexRefGetMipmappedArray', &__cuTexRefGetMipmappedArray, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuTexRefGetAddressMode' in found_functions}} - global __cuTexRefGetAddressMode - _F_cuGetProcAddress_v2('cuTexRefGetAddressMode', &__cuTexRefGetAddressMode, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuTexRefGetFilterMode' in found_functions}} - global __cuTexRefGetFilterMode - _F_cuGetProcAddress_v2('cuTexRefGetFilterMode', &__cuTexRefGetFilterMode, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuTexRefGetFormat' in found_functions}} - global __cuTexRefGetFormat - _F_cuGetProcAddress_v2('cuTexRefGetFormat', &__cuTexRefGetFormat, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuTexRefGetMipmapFilterMode' in found_functions}} - global __cuTexRefGetMipmapFilterMode - _F_cuGetProcAddress_v2('cuTexRefGetMipmapFilterMode', &__cuTexRefGetMipmapFilterMode, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuTexRefGetMipmapLevelBias' in found_functions}} - global __cuTexRefGetMipmapLevelBias - _F_cuGetProcAddress_v2('cuTexRefGetMipmapLevelBias', &__cuTexRefGetMipmapLevelBias, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuTexRefGetMipmapLevelClamp' in found_functions}} - global __cuTexRefGetMipmapLevelClamp - _F_cuGetProcAddress_v2('cuTexRefGetMipmapLevelClamp', &__cuTexRefGetMipmapLevelClamp, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuTexRefGetMaxAnisotropy' in found_functions}} - global __cuTexRefGetMaxAnisotropy - _F_cuGetProcAddress_v2('cuTexRefGetMaxAnisotropy', &__cuTexRefGetMaxAnisotropy, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuTexRefGetBorderColor' in found_functions}} - global __cuTexRefGetBorderColor - _F_cuGetProcAddress_v2('cuTexRefGetBorderColor', &__cuTexRefGetBorderColor, 8000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuTexRefGetFlags' in found_functions}} - global __cuTexRefGetFlags - _F_cuGetProcAddress_v2('cuTexRefGetFlags', &__cuTexRefGetFlags, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuTexRefCreate' in found_functions}} - global __cuTexRefCreate - _F_cuGetProcAddress_v2('cuTexRefCreate', &__cuTexRefCreate, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuTexRefDestroy' in found_functions}} - global __cuTexRefDestroy - _F_cuGetProcAddress_v2('cuTexRefDestroy', &__cuTexRefDestroy, 2000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuSurfRefSetArray' in found_functions}} - global __cuSurfRefSetArray - _F_cuGetProcAddress_v2('cuSurfRefSetArray', &__cuSurfRefSetArray, 3000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuSurfRefGetArray' in found_functions}} - global __cuSurfRefGetArray - _F_cuGetProcAddress_v2('cuSurfRefGetArray', &__cuSurfRefGetArray, 3000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuTexObjectCreate' in found_functions}} - global __cuTexObjectCreate - _F_cuGetProcAddress_v2('cuTexObjectCreate', &__cuTexObjectCreate, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuTexObjectDestroy' in found_functions}} - global __cuTexObjectDestroy - _F_cuGetProcAddress_v2('cuTexObjectDestroy', &__cuTexObjectDestroy, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuTexObjectGetResourceDesc' in found_functions}} - global __cuTexObjectGetResourceDesc - _F_cuGetProcAddress_v2('cuTexObjectGetResourceDesc', &__cuTexObjectGetResourceDesc, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuTexObjectGetTextureDesc' in found_functions}} - global __cuTexObjectGetTextureDesc - _F_cuGetProcAddress_v2('cuTexObjectGetTextureDesc', &__cuTexObjectGetTextureDesc, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuTexObjectGetResourceViewDesc' in found_functions}} - global __cuTexObjectGetResourceViewDesc - _F_cuGetProcAddress_v2('cuTexObjectGetResourceViewDesc', &__cuTexObjectGetResourceViewDesc, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuSurfObjectCreate' in found_functions}} - global __cuSurfObjectCreate - _F_cuGetProcAddress_v2('cuSurfObjectCreate', &__cuSurfObjectCreate, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuSurfObjectDestroy' in found_functions}} - global __cuSurfObjectDestroy - _F_cuGetProcAddress_v2('cuSurfObjectDestroy', &__cuSurfObjectDestroy, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuSurfObjectGetResourceDesc' in found_functions}} - global __cuSurfObjectGetResourceDesc - _F_cuGetProcAddress_v2('cuSurfObjectGetResourceDesc', &__cuSurfObjectGetResourceDesc, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuTensorMapEncodeTiled' in found_functions}} - global __cuTensorMapEncodeTiled - _F_cuGetProcAddress_v2('cuTensorMapEncodeTiled', &__cuTensorMapEncodeTiled, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuTensorMapEncodeIm2col' in found_functions}} - global __cuTensorMapEncodeIm2col - _F_cuGetProcAddress_v2('cuTensorMapEncodeIm2col', &__cuTensorMapEncodeIm2col, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuTensorMapEncodeIm2colWide' in found_functions}} - global __cuTensorMapEncodeIm2colWide - _F_cuGetProcAddress_v2('cuTensorMapEncodeIm2colWide', &__cuTensorMapEncodeIm2colWide, 12080, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuTensorMapReplaceAddress' in found_functions}} - global __cuTensorMapReplaceAddress - _F_cuGetProcAddress_v2('cuTensorMapReplaceAddress', &__cuTensorMapReplaceAddress, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuDeviceCanAccessPeer' in found_functions}} - global __cuDeviceCanAccessPeer - _F_cuGetProcAddress_v2('cuDeviceCanAccessPeer', &__cuDeviceCanAccessPeer, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuCtxEnablePeerAccess' in found_functions}} - global __cuCtxEnablePeerAccess - _F_cuGetProcAddress_v2('cuCtxEnablePeerAccess', &__cuCtxEnablePeerAccess, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuCtxDisablePeerAccess' in found_functions}} - global __cuCtxDisablePeerAccess - _F_cuGetProcAddress_v2('cuCtxDisablePeerAccess', &__cuCtxDisablePeerAccess, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuDeviceGetP2PAttribute' in found_functions}} - global __cuDeviceGetP2PAttribute - _F_cuGetProcAddress_v2('cuDeviceGetP2PAttribute', &__cuDeviceGetP2PAttribute, 8000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuDeviceGetP2PAtomicCapabilities' in found_functions}} - global __cuDeviceGetP2PAtomicCapabilities - _F_cuGetProcAddress_v2('cuDeviceGetP2PAtomicCapabilities', &__cuDeviceGetP2PAtomicCapabilities, 13000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGraphicsUnregisterResource' in found_functions}} - global __cuGraphicsUnregisterResource - _F_cuGetProcAddress_v2('cuGraphicsUnregisterResource', &__cuGraphicsUnregisterResource, 3000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGraphicsSubResourceGetMappedArray' in found_functions}} - global __cuGraphicsSubResourceGetMappedArray - _F_cuGetProcAddress_v2('cuGraphicsSubResourceGetMappedArray', &__cuGraphicsSubResourceGetMappedArray, 3000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGraphicsResourceGetMappedMipmappedArray' in found_functions}} - global __cuGraphicsResourceGetMappedMipmappedArray - _F_cuGetProcAddress_v2('cuGraphicsResourceGetMappedMipmappedArray', &__cuGraphicsResourceGetMappedMipmappedArray, 5000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGraphicsResourceGetMappedPointer_v2' in found_functions}} - global __cuGraphicsResourceGetMappedPointer_v2 - _F_cuGetProcAddress_v2('cuGraphicsResourceGetMappedPointer', &__cuGraphicsResourceGetMappedPointer_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGraphicsResourceSetMapFlags_v2' in found_functions}} - global __cuGraphicsResourceSetMapFlags_v2 - _F_cuGetProcAddress_v2('cuGraphicsResourceSetMapFlags', &__cuGraphicsResourceSetMapFlags_v2, 6050, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGetProcAddress_v2' in found_functions}} - global __cuGetProcAddress_v2 - _F_cuGetProcAddress_v2('cuGetProcAddress', &__cuGetProcAddress_v2, 12000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuCoredumpGetAttribute' in found_functions}} - global __cuCoredumpGetAttribute - _F_cuGetProcAddress_v2('cuCoredumpGetAttribute', &__cuCoredumpGetAttribute, 12010, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuCoredumpGetAttributeGlobal' in found_functions}} - global __cuCoredumpGetAttributeGlobal - _F_cuGetProcAddress_v2('cuCoredumpGetAttributeGlobal', &__cuCoredumpGetAttributeGlobal, 12010, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuCoredumpSetAttribute' in found_functions}} - global __cuCoredumpSetAttribute - _F_cuGetProcAddress_v2('cuCoredumpSetAttribute', &__cuCoredumpSetAttribute, 12010, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuCoredumpSetAttributeGlobal' in found_functions}} - global __cuCoredumpSetAttributeGlobal - _F_cuGetProcAddress_v2('cuCoredumpSetAttributeGlobal', &__cuCoredumpSetAttributeGlobal, 12010, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuCoredumpRegisterStartCallback' in found_functions}} - global __cuCoredumpRegisterStartCallback - _F_cuGetProcAddress_v2('cuCoredumpRegisterStartCallback', &__cuCoredumpRegisterStartCallback, 13020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuCoredumpRegisterCompleteCallback' in found_functions}} - global __cuCoredumpRegisterCompleteCallback - _F_cuGetProcAddress_v2('cuCoredumpRegisterCompleteCallback', &__cuCoredumpRegisterCompleteCallback, 13020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuCoredumpDeregisterStartCallback' in found_functions}} - global __cuCoredumpDeregisterStartCallback - _F_cuGetProcAddress_v2('cuCoredumpDeregisterStartCallback', &__cuCoredumpDeregisterStartCallback, 13020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuCoredumpDeregisterCompleteCallback' in found_functions}} - global __cuCoredumpDeregisterCompleteCallback - _F_cuGetProcAddress_v2('cuCoredumpDeregisterCompleteCallback', &__cuCoredumpDeregisterCompleteCallback, 13020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGetExportTable' in found_functions}} - global __cuGetExportTable - _F_cuGetProcAddress_v2('cuGetExportTable', &__cuGetExportTable, 3000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGreenCtxCreate' in found_functions}} - global __cuGreenCtxCreate - _F_cuGetProcAddress_v2('cuGreenCtxCreate', &__cuGreenCtxCreate, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGreenCtxDestroy' in found_functions}} - global __cuGreenCtxDestroy - _F_cuGetProcAddress_v2('cuGreenCtxDestroy', &__cuGreenCtxDestroy, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuCtxFromGreenCtx' in found_functions}} - global __cuCtxFromGreenCtx - _F_cuGetProcAddress_v2('cuCtxFromGreenCtx', &__cuCtxFromGreenCtx, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuDeviceGetDevResource' in found_functions}} - global __cuDeviceGetDevResource - _F_cuGetProcAddress_v2('cuDeviceGetDevResource', &__cuDeviceGetDevResource, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuCtxGetDevResource' in found_functions}} - global __cuCtxGetDevResource - _F_cuGetProcAddress_v2('cuCtxGetDevResource', &__cuCtxGetDevResource, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGreenCtxGetDevResource' in found_functions}} - global __cuGreenCtxGetDevResource - _F_cuGetProcAddress_v2('cuGreenCtxGetDevResource', &__cuGreenCtxGetDevResource, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuDevSmResourceSplitByCount' in found_functions}} - global __cuDevSmResourceSplitByCount - _F_cuGetProcAddress_v2('cuDevSmResourceSplitByCount', &__cuDevSmResourceSplitByCount, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuDevSmResourceSplit' in found_functions}} - global __cuDevSmResourceSplit - _F_cuGetProcAddress_v2('cuDevSmResourceSplit', &__cuDevSmResourceSplit, 13010, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuDevResourceGenerateDesc' in found_functions}} - global __cuDevResourceGenerateDesc - _F_cuGetProcAddress_v2('cuDevResourceGenerateDesc', &__cuDevResourceGenerateDesc, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGreenCtxRecordEvent' in found_functions}} - global __cuGreenCtxRecordEvent - _F_cuGetProcAddress_v2('cuGreenCtxRecordEvent', &__cuGreenCtxRecordEvent, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGreenCtxWaitEvent' in found_functions}} - global __cuGreenCtxWaitEvent - _F_cuGetProcAddress_v2('cuGreenCtxWaitEvent', &__cuGreenCtxWaitEvent, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuStreamGetGreenCtx' in found_functions}} - global __cuStreamGetGreenCtx - _F_cuGetProcAddress_v2('cuStreamGetGreenCtx', &__cuStreamGetGreenCtx, 12040, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGreenCtxStreamCreate' in found_functions}} - global __cuGreenCtxStreamCreate - _F_cuGetProcAddress_v2('cuGreenCtxStreamCreate', &__cuGreenCtxStreamCreate, 12050, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuGreenCtxGetId' in found_functions}} - global __cuGreenCtxGetId - _F_cuGetProcAddress_v2('cuGreenCtxGetId', &__cuGreenCtxGetId, 12090, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuLogsRegisterCallback' in found_functions}} - global __cuLogsRegisterCallback - _F_cuGetProcAddress_v2('cuLogsRegisterCallback', &__cuLogsRegisterCallback, 12080, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuLogsUnregisterCallback' in found_functions}} - global __cuLogsUnregisterCallback - _F_cuGetProcAddress_v2('cuLogsUnregisterCallback', &__cuLogsUnregisterCallback, 12080, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuLogsCurrent' in found_functions}} - global __cuLogsCurrent - _F_cuGetProcAddress_v2('cuLogsCurrent', &__cuLogsCurrent, 12080, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuLogsDumpToFile' in found_functions}} - global __cuLogsDumpToFile - _F_cuGetProcAddress_v2('cuLogsDumpToFile', &__cuLogsDumpToFile, 12080, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuLogsDumpToMemory' in found_functions}} - global __cuLogsDumpToMemory - _F_cuGetProcAddress_v2('cuLogsDumpToMemory', &__cuLogsDumpToMemory, 12080, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuCheckpointProcessGetRestoreThreadId' in found_functions}} - global __cuCheckpointProcessGetRestoreThreadId - _F_cuGetProcAddress_v2('cuCheckpointProcessGetRestoreThreadId', &__cuCheckpointProcessGetRestoreThreadId, 12080, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuCheckpointProcessGetState' in found_functions}} - global __cuCheckpointProcessGetState - _F_cuGetProcAddress_v2('cuCheckpointProcessGetState', &__cuCheckpointProcessGetState, 12080, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuCheckpointProcessLock' in found_functions}} - global __cuCheckpointProcessLock - _F_cuGetProcAddress_v2('cuCheckpointProcessLock', &__cuCheckpointProcessLock, 12080, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuCheckpointProcessCheckpoint' in found_functions}} - global __cuCheckpointProcessCheckpoint - _F_cuGetProcAddress_v2('cuCheckpointProcessCheckpoint', &__cuCheckpointProcessCheckpoint, 12080, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuCheckpointProcessRestore' in found_functions}} - global __cuCheckpointProcessRestore - _F_cuGetProcAddress_v2('cuCheckpointProcessRestore', &__cuCheckpointProcessRestore, 12080, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuCheckpointProcessUnlock' in found_functions}} - global __cuCheckpointProcessUnlock - _F_cuGetProcAddress_v2('cuCheckpointProcessUnlock', &__cuCheckpointProcessUnlock, 12080, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuProfilerStart' in found_functions}} - global __cuProfilerStart - _F_cuGetProcAddress_v2('cuProfilerStart', &__cuProfilerStart, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if 'cuProfilerStop' in found_functions}} - global __cuProfilerStop - _F_cuGetProcAddress_v2('cuProfilerStop', &__cuProfilerStop, 4000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if True}} - global __cuGraphicsEGLRegisterImage - _F_cuGetProcAddress_v2('cuGraphicsEGLRegisterImage', &__cuGraphicsEGLRegisterImage, 7000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if True}} - global __cuEGLStreamConsumerConnect - _F_cuGetProcAddress_v2('cuEGLStreamConsumerConnect', &__cuEGLStreamConsumerConnect, 7000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if True}} - global __cuEGLStreamConsumerConnectWithFlags - _F_cuGetProcAddress_v2('cuEGLStreamConsumerConnectWithFlags', &__cuEGLStreamConsumerConnectWithFlags, 8000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if True}} - global __cuEGLStreamConsumerDisconnect - _F_cuGetProcAddress_v2('cuEGLStreamConsumerDisconnect', &__cuEGLStreamConsumerDisconnect, 7000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if True}} - global __cuEGLStreamConsumerAcquireFrame - _F_cuGetProcAddress_v2('cuEGLStreamConsumerAcquireFrame', &__cuEGLStreamConsumerAcquireFrame, 7000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if True}} - global __cuEGLStreamConsumerReleaseFrame - _F_cuGetProcAddress_v2('cuEGLStreamConsumerReleaseFrame', &__cuEGLStreamConsumerReleaseFrame, 7000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if True}} - global __cuEGLStreamProducerConnect - _F_cuGetProcAddress_v2('cuEGLStreamProducerConnect', &__cuEGLStreamProducerConnect, 7000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if True}} - global __cuEGLStreamProducerDisconnect - _F_cuGetProcAddress_v2('cuEGLStreamProducerDisconnect', &__cuEGLStreamProducerDisconnect, 7000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if True}} - global __cuEGLStreamProducerPresentFrame - _F_cuGetProcAddress_v2('cuEGLStreamProducerPresentFrame', &__cuEGLStreamProducerPresentFrame, 7000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if True}} - global __cuEGLStreamProducerReturnFrame - _F_cuGetProcAddress_v2('cuEGLStreamProducerReturnFrame', &__cuEGLStreamProducerReturnFrame, 7000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if True}} - global __cuGraphicsResourceGetMappedEglFrame - _F_cuGetProcAddress_v2('cuGraphicsResourceGetMappedEglFrame', &__cuGraphicsResourceGetMappedEglFrame, 7000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if True}} - global __cuEventCreateFromEGLSync - _F_cuGetProcAddress_v2('cuEventCreateFromEGLSync', &__cuEventCreateFromEGLSync, 9000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if True}} - global __cuGraphicsGLRegisterBuffer - _F_cuGetProcAddress_v2('cuGraphicsGLRegisterBuffer', &__cuGraphicsGLRegisterBuffer, 3000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if True}} - global __cuGraphicsGLRegisterImage - _F_cuGetProcAddress_v2('cuGraphicsGLRegisterImage', &__cuGraphicsGLRegisterImage, 3000, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if True}} - global __cuGLGetDevices_v2 - _F_cuGetProcAddress_v2('cuGLGetDevices', &__cuGLGetDevices_v2, 6050, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if True}} - global __cuVDPAUGetDevice - _F_cuGetProcAddress_v2('cuVDPAUGetDevice', &__cuVDPAUGetDevice, 3010, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if True}} - global __cuVDPAUCtxCreate_v2 - _F_cuGetProcAddress_v2('cuVDPAUCtxCreate', &__cuVDPAUCtxCreate_v2, 3020, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if True}} - global __cuGraphicsVDPAURegisterVideoSurface - _F_cuGetProcAddress_v2('cuGraphicsVDPAURegisterVideoSurface', &__cuGraphicsVDPAURegisterVideoSurface, 3010, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - {{if True}} - global __cuGraphicsVDPAURegisterOutputSurface - _F_cuGetProcAddress_v2('cuGraphicsVDPAURegisterOutputSurface', &__cuGraphicsVDPAURegisterOutputSurface, 3010, CU_GET_PROC_ADDRESS_DEFAULT, NULL) - {{endif}} - __cuPythonInit = True - return 0 - - {{if 'Windows' == platform.system()}} - # Load using win32GetAddr - if usePTDS: - # Get all PTDS version of functions - pass - {{if 'cuMemcpy' in found_functions}} - global __cuMemcpy - __cuMemcpy = windll.GetProcAddress(handle, 'cuMemcpy_ptds') - {{endif}} - {{if 'cuMemcpyPeer' in found_functions}} - global __cuMemcpyPeer - __cuMemcpyPeer = windll.GetProcAddress(handle, 'cuMemcpyPeer_ptds') - {{endif}} - {{if 'cuMemcpyHtoD_v2' in found_functions}} - global __cuMemcpyHtoD_v2 - __cuMemcpyHtoD_v2 = windll.GetProcAddress(handle, 'cuMemcpyHtoD_v2_ptds') - {{endif}} - {{if 'cuMemcpyDtoH_v2' in found_functions}} - global __cuMemcpyDtoH_v2 - __cuMemcpyDtoH_v2 = windll.GetProcAddress(handle, 'cuMemcpyDtoH_v2_ptds') - {{endif}} - {{if 'cuMemcpyDtoD_v2' in found_functions}} - global __cuMemcpyDtoD_v2 - __cuMemcpyDtoD_v2 = windll.GetProcAddress(handle, 'cuMemcpyDtoD_v2_ptds') - {{endif}} - {{if 'cuMemcpyDtoA_v2' in found_functions}} - global __cuMemcpyDtoA_v2 - __cuMemcpyDtoA_v2 = windll.GetProcAddress(handle, 'cuMemcpyDtoA_v2_ptds') - {{endif}} - {{if 'cuMemcpyAtoD_v2' in found_functions}} - global __cuMemcpyAtoD_v2 - __cuMemcpyAtoD_v2 = windll.GetProcAddress(handle, 'cuMemcpyAtoD_v2_ptds') - {{endif}} - {{if 'cuMemcpyHtoA_v2' in found_functions}} - global __cuMemcpyHtoA_v2 - __cuMemcpyHtoA_v2 = windll.GetProcAddress(handle, 'cuMemcpyHtoA_v2_ptds') - {{endif}} - {{if 'cuMemcpyAtoH_v2' in found_functions}} - global __cuMemcpyAtoH_v2 - __cuMemcpyAtoH_v2 = windll.GetProcAddress(handle, 'cuMemcpyAtoH_v2_ptds') - {{endif}} - {{if 'cuMemcpyAtoA_v2' in found_functions}} - global __cuMemcpyAtoA_v2 - __cuMemcpyAtoA_v2 = windll.GetProcAddress(handle, 'cuMemcpyAtoA_v2_ptds') - {{endif}} - {{if 'cuMemcpy2D_v2' in found_functions}} - global __cuMemcpy2D_v2 - __cuMemcpy2D_v2 = windll.GetProcAddress(handle, 'cuMemcpy2D_v2_ptds') - {{endif}} - {{if 'cuMemcpy2DUnaligned_v2' in found_functions}} - global __cuMemcpy2DUnaligned_v2 - __cuMemcpy2DUnaligned_v2 = windll.GetProcAddress(handle, 'cuMemcpy2DUnaligned_v2_ptds') - {{endif}} - {{if 'cuMemcpy3D_v2' in found_functions}} - global __cuMemcpy3D_v2 - __cuMemcpy3D_v2 = windll.GetProcAddress(handle, 'cuMemcpy3D_v2_ptds') - {{endif}} - {{if 'cuMemcpy3DPeer' in found_functions}} - global __cuMemcpy3DPeer - __cuMemcpy3DPeer = windll.GetProcAddress(handle, 'cuMemcpy3DPeer_ptds') - {{endif}} - {{if 'cuMemcpyAsync' in found_functions}} - global __cuMemcpyAsync - __cuMemcpyAsync = windll.GetProcAddress(handle, 'cuMemcpyAsync_ptsz') - {{endif}} - {{if 'cuMemcpyPeerAsync' in found_functions}} - global __cuMemcpyPeerAsync - __cuMemcpyPeerAsync = windll.GetProcAddress(handle, 'cuMemcpyPeerAsync_ptsz') - {{endif}} - {{if 'cuMemcpyHtoDAsync_v2' in found_functions}} - global __cuMemcpyHtoDAsync_v2 - __cuMemcpyHtoDAsync_v2 = windll.GetProcAddress(handle, 'cuMemcpyHtoDAsync_v2_ptsz') - {{endif}} - {{if 'cuMemcpyDtoHAsync_v2' in found_functions}} - global __cuMemcpyDtoHAsync_v2 - __cuMemcpyDtoHAsync_v2 = windll.GetProcAddress(handle, 'cuMemcpyDtoHAsync_v2_ptsz') - {{endif}} - {{if 'cuMemcpyDtoDAsync_v2' in found_functions}} - global __cuMemcpyDtoDAsync_v2 - __cuMemcpyDtoDAsync_v2 = windll.GetProcAddress(handle, 'cuMemcpyDtoDAsync_v2_ptsz') - {{endif}} - {{if 'cuMemcpyHtoAAsync_v2' in found_functions}} - global __cuMemcpyHtoAAsync_v2 - __cuMemcpyHtoAAsync_v2 = windll.GetProcAddress(handle, 'cuMemcpyHtoAAsync_v2_ptsz') - {{endif}} - {{if 'cuMemcpyAtoHAsync_v2' in found_functions}} - global __cuMemcpyAtoHAsync_v2 - __cuMemcpyAtoHAsync_v2 = windll.GetProcAddress(handle, 'cuMemcpyAtoHAsync_v2_ptsz') - {{endif}} - {{if 'cuMemcpy2DAsync_v2' in found_functions}} - global __cuMemcpy2DAsync_v2 - __cuMemcpy2DAsync_v2 = windll.GetProcAddress(handle, 'cuMemcpy2DAsync_v2_ptsz') - {{endif}} - {{if 'cuMemcpy3DAsync_v2' in found_functions}} - global __cuMemcpy3DAsync_v2 - __cuMemcpy3DAsync_v2 = windll.GetProcAddress(handle, 'cuMemcpy3DAsync_v2_ptsz') - {{endif}} - {{if 'cuMemcpy3DPeerAsync' in found_functions}} - global __cuMemcpy3DPeerAsync - __cuMemcpy3DPeerAsync = windll.GetProcAddress(handle, 'cuMemcpy3DPeerAsync_ptsz') - {{endif}} - {{if 'cuMemcpyBatchAsync_v2' in found_functions}} - global __cuMemcpyBatchAsync_v2 - __cuMemcpyBatchAsync_v2 = windll.GetProcAddress(handle, 'cuMemcpyBatchAsync_v2_ptsz') - {{endif}} - {{if 'cuMemcpy3DBatchAsync_v2' in found_functions}} - global __cuMemcpy3DBatchAsync_v2 - __cuMemcpy3DBatchAsync_v2 = windll.GetProcAddress(handle, 'cuMemcpy3DBatchAsync_v2_ptsz') - {{endif}} - {{if 'cuMemcpyWithAttributesAsync' in found_functions}} - global __cuMemcpyWithAttributesAsync - __cuMemcpyWithAttributesAsync = windll.GetProcAddress(handle, 'cuMemcpyWithAttributesAsync_ptsz') - {{endif}} - {{if 'cuMemcpy3DWithAttributesAsync' in found_functions}} - global __cuMemcpy3DWithAttributesAsync - __cuMemcpy3DWithAttributesAsync = windll.GetProcAddress(handle, 'cuMemcpy3DWithAttributesAsync_ptsz') - {{endif}} - {{if 'cuMemsetD8_v2' in found_functions}} - global __cuMemsetD8_v2 - __cuMemsetD8_v2 = windll.GetProcAddress(handle, 'cuMemsetD8_v2_ptds') - {{endif}} - {{if 'cuMemsetD16_v2' in found_functions}} - global __cuMemsetD16_v2 - __cuMemsetD16_v2 = windll.GetProcAddress(handle, 'cuMemsetD16_v2_ptds') - {{endif}} - {{if 'cuMemsetD32_v2' in found_functions}} - global __cuMemsetD32_v2 - __cuMemsetD32_v2 = windll.GetProcAddress(handle, 'cuMemsetD32_v2_ptds') - {{endif}} - {{if 'cuMemsetD2D8_v2' in found_functions}} - global __cuMemsetD2D8_v2 - __cuMemsetD2D8_v2 = windll.GetProcAddress(handle, 'cuMemsetD2D8_v2_ptds') - {{endif}} - {{if 'cuMemsetD2D16_v2' in found_functions}} - global __cuMemsetD2D16_v2 - __cuMemsetD2D16_v2 = windll.GetProcAddress(handle, 'cuMemsetD2D16_v2_ptds') - {{endif}} - {{if 'cuMemsetD2D32_v2' in found_functions}} - global __cuMemsetD2D32_v2 - __cuMemsetD2D32_v2 = windll.GetProcAddress(handle, 'cuMemsetD2D32_v2_ptds') - {{endif}} - {{if 'cuMemsetD8Async' in found_functions}} - global __cuMemsetD8Async - __cuMemsetD8Async = windll.GetProcAddress(handle, 'cuMemsetD8Async_ptsz') - {{endif}} - {{if 'cuMemsetD16Async' in found_functions}} - global __cuMemsetD16Async - __cuMemsetD16Async = windll.GetProcAddress(handle, 'cuMemsetD16Async_ptsz') - {{endif}} - {{if 'cuMemsetD32Async' in found_functions}} - global __cuMemsetD32Async - __cuMemsetD32Async = windll.GetProcAddress(handle, 'cuMemsetD32Async_ptsz') - {{endif}} - {{if 'cuMemsetD2D8Async' in found_functions}} - global __cuMemsetD2D8Async - __cuMemsetD2D8Async = windll.GetProcAddress(handle, 'cuMemsetD2D8Async_ptsz') - {{endif}} - {{if 'cuMemsetD2D16Async' in found_functions}} - global __cuMemsetD2D16Async - __cuMemsetD2D16Async = windll.GetProcAddress(handle, 'cuMemsetD2D16Async_ptsz') - {{endif}} - {{if 'cuMemsetD2D32Async' in found_functions}} - global __cuMemsetD2D32Async - __cuMemsetD2D32Async = windll.GetProcAddress(handle, 'cuMemsetD2D32Async_ptsz') - {{endif}} - {{if 'cuMemBatchDecompressAsync' in found_functions}} - global __cuMemBatchDecompressAsync - __cuMemBatchDecompressAsync = windll.GetProcAddress(handle, 'cuMemBatchDecompressAsync_ptsz') - {{endif}} - {{if 'cuMemMapArrayAsync' in found_functions}} - global __cuMemMapArrayAsync - __cuMemMapArrayAsync = windll.GetProcAddress(handle, 'cuMemMapArrayAsync_ptsz') - {{endif}} - {{if 'cuMemFreeAsync' in found_functions}} - global __cuMemFreeAsync - __cuMemFreeAsync = windll.GetProcAddress(handle, 'cuMemFreeAsync_ptsz') - {{endif}} - {{if 'cuMemAllocAsync' in found_functions}} - global __cuMemAllocAsync - __cuMemAllocAsync = windll.GetProcAddress(handle, 'cuMemAllocAsync_ptsz') - {{endif}} - {{if 'cuMemAllocFromPoolAsync' in found_functions}} - global __cuMemAllocFromPoolAsync - __cuMemAllocFromPoolAsync = windll.GetProcAddress(handle, 'cuMemAllocFromPoolAsync_ptsz') - {{endif}} - {{if 'cuMemPrefetchAsync_v2' in found_functions}} - global __cuMemPrefetchAsync_v2 - __cuMemPrefetchAsync_v2 = windll.GetProcAddress(handle, 'cuMemPrefetchAsync_v2_ptsz') - {{endif}} - {{if 'cuMemPrefetchBatchAsync' in found_functions}} - global __cuMemPrefetchBatchAsync - __cuMemPrefetchBatchAsync = windll.GetProcAddress(handle, 'cuMemPrefetchBatchAsync_ptsz') - {{endif}} - {{if 'cuMemDiscardBatchAsync' in found_functions}} - global __cuMemDiscardBatchAsync - __cuMemDiscardBatchAsync = windll.GetProcAddress(handle, 'cuMemDiscardBatchAsync_ptsz') - {{endif}} - {{if 'cuMemDiscardAndPrefetchBatchAsync' in found_functions}} - global __cuMemDiscardAndPrefetchBatchAsync - __cuMemDiscardAndPrefetchBatchAsync = windll.GetProcAddress(handle, 'cuMemDiscardAndPrefetchBatchAsync_ptsz') - {{endif}} - {{if 'cuStreamBeginCaptureToCig' in found_functions}} - global __cuStreamBeginCaptureToCig - __cuStreamBeginCaptureToCig = windll.GetProcAddress(handle, 'cuStreamBeginCaptureToCig_ptsz') - {{endif}} - {{if 'cuStreamEndCaptureToCig' in found_functions}} - global __cuStreamEndCaptureToCig - __cuStreamEndCaptureToCig = windll.GetProcAddress(handle, 'cuStreamEndCaptureToCig_ptsz') - {{endif}} - {{if 'cuStreamGetPriority' in found_functions}} - global __cuStreamGetPriority - __cuStreamGetPriority = windll.GetProcAddress(handle, 'cuStreamGetPriority_ptsz') - {{endif}} - {{if 'cuStreamGetDevice' in found_functions}} - global __cuStreamGetDevice - __cuStreamGetDevice = windll.GetProcAddress(handle, 'cuStreamGetDevice_ptsz') - {{endif}} - {{if 'cuStreamGetFlags' in found_functions}} - global __cuStreamGetFlags - __cuStreamGetFlags = windll.GetProcAddress(handle, 'cuStreamGetFlags_ptsz') - {{endif}} - {{if 'cuStreamGetId' in found_functions}} - global __cuStreamGetId - __cuStreamGetId = windll.GetProcAddress(handle, 'cuStreamGetId_ptsz') - {{endif}} - {{if 'cuStreamGetCtx' in found_functions}} - global __cuStreamGetCtx - __cuStreamGetCtx = windll.GetProcAddress(handle, 'cuStreamGetCtx_ptsz') - {{endif}} - {{if 'cuStreamGetCtx_v2' in found_functions}} - global __cuStreamGetCtx_v2 - __cuStreamGetCtx_v2 = windll.GetProcAddress(handle, 'cuStreamGetCtx_v2_ptsz') - {{endif}} - {{if 'cuStreamWaitEvent' in found_functions}} - global __cuStreamWaitEvent - __cuStreamWaitEvent = windll.GetProcAddress(handle, 'cuStreamWaitEvent_ptsz') - {{endif}} - {{if 'cuStreamAddCallback' in found_functions}} - global __cuStreamAddCallback - __cuStreamAddCallback = windll.GetProcAddress(handle, 'cuStreamAddCallback_ptsz') - {{endif}} - {{if 'cuStreamBeginCapture_v2' in found_functions}} - global __cuStreamBeginCapture_v2 - __cuStreamBeginCapture_v2 = windll.GetProcAddress(handle, 'cuStreamBeginCapture_v2_ptsz') - {{endif}} - {{if 'cuStreamBeginCaptureToGraph' in found_functions}} - global __cuStreamBeginCaptureToGraph - __cuStreamBeginCaptureToGraph = windll.GetProcAddress(handle, 'cuStreamBeginCaptureToGraph_ptsz') - {{endif}} - {{if 'cuStreamEndCapture' in found_functions}} - global __cuStreamEndCapture - __cuStreamEndCapture = windll.GetProcAddress(handle, 'cuStreamEndCapture_ptsz') - {{endif}} - {{if 'cuStreamIsCapturing' in found_functions}} - global __cuStreamIsCapturing - __cuStreamIsCapturing = windll.GetProcAddress(handle, 'cuStreamIsCapturing_ptsz') - {{endif}} - {{if 'cuStreamGetCaptureInfo_v3' in found_functions}} - global __cuStreamGetCaptureInfo_v3 - __cuStreamGetCaptureInfo_v3 = windll.GetProcAddress(handle, 'cuStreamGetCaptureInfo_v3_ptsz') - {{endif}} - {{if 'cuStreamUpdateCaptureDependencies_v2' in found_functions}} - global __cuStreamUpdateCaptureDependencies_v2 - __cuStreamUpdateCaptureDependencies_v2 = windll.GetProcAddress(handle, 'cuStreamUpdateCaptureDependencies_v2_ptsz') - {{endif}} - {{if 'cuStreamAttachMemAsync' in found_functions}} - global __cuStreamAttachMemAsync - __cuStreamAttachMemAsync = windll.GetProcAddress(handle, 'cuStreamAttachMemAsync_ptsz') - {{endif}} - {{if 'cuStreamQuery' in found_functions}} - global __cuStreamQuery - __cuStreamQuery = windll.GetProcAddress(handle, 'cuStreamQuery_ptsz') - {{endif}} - {{if 'cuStreamSynchronize' in found_functions}} - global __cuStreamSynchronize - __cuStreamSynchronize = windll.GetProcAddress(handle, 'cuStreamSynchronize_ptsz') - {{endif}} - {{if 'cuStreamCopyAttributes' in found_functions}} - global __cuStreamCopyAttributes - __cuStreamCopyAttributes = windll.GetProcAddress(handle, 'cuStreamCopyAttributes_ptsz') - {{endif}} - {{if 'cuStreamGetAttribute' in found_functions}} - global __cuStreamGetAttribute - __cuStreamGetAttribute = windll.GetProcAddress(handle, 'cuStreamGetAttribute_ptsz') - {{endif}} - {{if 'cuStreamSetAttribute' in found_functions}} - global __cuStreamSetAttribute - __cuStreamSetAttribute = windll.GetProcAddress(handle, 'cuStreamSetAttribute_ptsz') - {{endif}} - {{if 'cuEventRecord' in found_functions}} - global __cuEventRecord - __cuEventRecord = windll.GetProcAddress(handle, 'cuEventRecord_ptsz') - {{endif}} - {{if 'cuEventRecordWithFlags' in found_functions}} - global __cuEventRecordWithFlags - __cuEventRecordWithFlags = windll.GetProcAddress(handle, 'cuEventRecordWithFlags_ptsz') - {{endif}} - {{if 'cuSignalExternalSemaphoresAsync' in found_functions}} - global __cuSignalExternalSemaphoresAsync - __cuSignalExternalSemaphoresAsync = windll.GetProcAddress(handle, 'cuSignalExternalSemaphoresAsync_ptsz') - {{endif}} - {{if 'cuWaitExternalSemaphoresAsync' in found_functions}} - global __cuWaitExternalSemaphoresAsync - __cuWaitExternalSemaphoresAsync = windll.GetProcAddress(handle, 'cuWaitExternalSemaphoresAsync_ptsz') - {{endif}} - {{if 'cuStreamWaitValue32_v2' in found_functions}} - global __cuStreamWaitValue32_v2 - __cuStreamWaitValue32_v2 = windll.GetProcAddress(handle, 'cuStreamWaitValue32_v2_ptsz') - {{endif}} - {{if 'cuStreamWaitValue64_v2' in found_functions}} - global __cuStreamWaitValue64_v2 - __cuStreamWaitValue64_v2 = windll.GetProcAddress(handle, 'cuStreamWaitValue64_v2_ptsz') - {{endif}} - {{if 'cuStreamWriteValue32_v2' in found_functions}} - global __cuStreamWriteValue32_v2 - __cuStreamWriteValue32_v2 = windll.GetProcAddress(handle, 'cuStreamWriteValue32_v2_ptsz') - {{endif}} - {{if 'cuStreamWriteValue64_v2' in found_functions}} - global __cuStreamWriteValue64_v2 - __cuStreamWriteValue64_v2 = windll.GetProcAddress(handle, 'cuStreamWriteValue64_v2_ptsz') - {{endif}} - {{if 'cuStreamBatchMemOp_v2' in found_functions}} - global __cuStreamBatchMemOp_v2 - __cuStreamBatchMemOp_v2 = windll.GetProcAddress(handle, 'cuStreamBatchMemOp_v2_ptsz') - {{endif}} - {{if 'cuLaunchKernel' in found_functions}} - global __cuLaunchKernel - __cuLaunchKernel = windll.GetProcAddress(handle, 'cuLaunchKernel_ptsz') - {{endif}} - {{if 'cuLaunchKernelEx' in found_functions}} - global __cuLaunchKernelEx - __cuLaunchKernelEx = windll.GetProcAddress(handle, 'cuLaunchKernelEx_ptsz') - {{endif}} - {{if 'cuLaunchCooperativeKernel' in found_functions}} - global __cuLaunchCooperativeKernel - __cuLaunchCooperativeKernel = windll.GetProcAddress(handle, 'cuLaunchCooperativeKernel_ptsz') - {{endif}} - {{if 'cuLaunchHostFunc' in found_functions}} - global __cuLaunchHostFunc - __cuLaunchHostFunc = windll.GetProcAddress(handle, 'cuLaunchHostFunc_ptsz') - {{endif}} - {{if 'cuLaunchHostFunc_v2' in found_functions}} - global __cuLaunchHostFunc_v2 - __cuLaunchHostFunc_v2 = windll.GetProcAddress(handle, 'cuLaunchHostFunc_v2_ptsz') - {{endif}} - {{if 'cuGraphInstantiateWithParams' in found_functions}} - global __cuGraphInstantiateWithParams - __cuGraphInstantiateWithParams = windll.GetProcAddress(handle, 'cuGraphInstantiateWithParams_ptsz') - {{endif}} - {{if 'cuGraphUpload' in found_functions}} - global __cuGraphUpload - __cuGraphUpload = windll.GetProcAddress(handle, 'cuGraphUpload_ptsz') - {{endif}} - {{if 'cuGraphLaunch' in found_functions}} - global __cuGraphLaunch - __cuGraphLaunch = windll.GetProcAddress(handle, 'cuGraphLaunch_ptsz') - {{endif}} - {{if 'cuGraphicsMapResources' in found_functions}} - global __cuGraphicsMapResources - __cuGraphicsMapResources = windll.GetProcAddress(handle, 'cuGraphicsMapResources_ptsz') - {{endif}} - {{if 'cuGraphicsUnmapResources' in found_functions}} - global __cuGraphicsUnmapResources - __cuGraphicsUnmapResources = windll.GetProcAddress(handle, 'cuGraphicsUnmapResources_ptsz') - {{endif}} - {{if 'cuStreamGetDevResource' in found_functions}} - global __cuStreamGetDevResource - __cuStreamGetDevResource = windll.GetProcAddress(handle, 'cuStreamGetDevResource_ptsz') - {{endif}} - else: - # Else get the regular version - pass - {{if 'cuMemcpy' in found_functions}} - global __cuMemcpy - __cuMemcpy = windll.GetProcAddress(handle, 'cuMemcpy') - {{endif}} - {{if 'cuMemcpyPeer' in found_functions}} - global __cuMemcpyPeer - __cuMemcpyPeer = windll.GetProcAddress(handle, 'cuMemcpyPeer') - {{endif}} - {{if 'cuMemcpyHtoD_v2' in found_functions}} - global __cuMemcpyHtoD_v2 - __cuMemcpyHtoD_v2 = windll.GetProcAddress(handle, 'cuMemcpyHtoD_v2') - {{endif}} - {{if 'cuMemcpyDtoH_v2' in found_functions}} - global __cuMemcpyDtoH_v2 - __cuMemcpyDtoH_v2 = windll.GetProcAddress(handle, 'cuMemcpyDtoH_v2') - {{endif}} - {{if 'cuMemcpyDtoD_v2' in found_functions}} - global __cuMemcpyDtoD_v2 - __cuMemcpyDtoD_v2 = windll.GetProcAddress(handle, 'cuMemcpyDtoD_v2') - {{endif}} - {{if 'cuMemcpyDtoA_v2' in found_functions}} - global __cuMemcpyDtoA_v2 - __cuMemcpyDtoA_v2 = windll.GetProcAddress(handle, 'cuMemcpyDtoA_v2') - {{endif}} - {{if 'cuMemcpyAtoD_v2' in found_functions}} - global __cuMemcpyAtoD_v2 - __cuMemcpyAtoD_v2 = windll.GetProcAddress(handle, 'cuMemcpyAtoD_v2') - {{endif}} - {{if 'cuMemcpyHtoA_v2' in found_functions}} - global __cuMemcpyHtoA_v2 - __cuMemcpyHtoA_v2 = windll.GetProcAddress(handle, 'cuMemcpyHtoA_v2') - {{endif}} - {{if 'cuMemcpyAtoH_v2' in found_functions}} - global __cuMemcpyAtoH_v2 - __cuMemcpyAtoH_v2 = windll.GetProcAddress(handle, 'cuMemcpyAtoH_v2') - {{endif}} - {{if 'cuMemcpyAtoA_v2' in found_functions}} - global __cuMemcpyAtoA_v2 - __cuMemcpyAtoA_v2 = windll.GetProcAddress(handle, 'cuMemcpyAtoA_v2') - {{endif}} - {{if 'cuMemcpy2D_v2' in found_functions}} - global __cuMemcpy2D_v2 - __cuMemcpy2D_v2 = windll.GetProcAddress(handle, 'cuMemcpy2D_v2') - {{endif}} - {{if 'cuMemcpy2DUnaligned_v2' in found_functions}} - global __cuMemcpy2DUnaligned_v2 - __cuMemcpy2DUnaligned_v2 = windll.GetProcAddress(handle, 'cuMemcpy2DUnaligned_v2') - {{endif}} - {{if 'cuMemcpy3D_v2' in found_functions}} - global __cuMemcpy3D_v2 - __cuMemcpy3D_v2 = windll.GetProcAddress(handle, 'cuMemcpy3D_v2') - {{endif}} - {{if 'cuMemcpy3DPeer' in found_functions}} - global __cuMemcpy3DPeer - __cuMemcpy3DPeer = windll.GetProcAddress(handle, 'cuMemcpy3DPeer') - {{endif}} - {{if 'cuMemcpyAsync' in found_functions}} - global __cuMemcpyAsync - __cuMemcpyAsync = windll.GetProcAddress(handle, 'cuMemcpyAsync') - {{endif}} - {{if 'cuMemcpyPeerAsync' in found_functions}} - global __cuMemcpyPeerAsync - __cuMemcpyPeerAsync = windll.GetProcAddress(handle, 'cuMemcpyPeerAsync') - {{endif}} - {{if 'cuMemcpyHtoDAsync_v2' in found_functions}} - global __cuMemcpyHtoDAsync_v2 - __cuMemcpyHtoDAsync_v2 = windll.GetProcAddress(handle, 'cuMemcpyHtoDAsync_v2') - {{endif}} - {{if 'cuMemcpyDtoHAsync_v2' in found_functions}} - global __cuMemcpyDtoHAsync_v2 - __cuMemcpyDtoHAsync_v2 = windll.GetProcAddress(handle, 'cuMemcpyDtoHAsync_v2') - {{endif}} - {{if 'cuMemcpyDtoDAsync_v2' in found_functions}} - global __cuMemcpyDtoDAsync_v2 - __cuMemcpyDtoDAsync_v2 = windll.GetProcAddress(handle, 'cuMemcpyDtoDAsync_v2') - {{endif}} - {{if 'cuMemcpyHtoAAsync_v2' in found_functions}} - global __cuMemcpyHtoAAsync_v2 - __cuMemcpyHtoAAsync_v2 = windll.GetProcAddress(handle, 'cuMemcpyHtoAAsync_v2') - {{endif}} - {{if 'cuMemcpyAtoHAsync_v2' in found_functions}} - global __cuMemcpyAtoHAsync_v2 - __cuMemcpyAtoHAsync_v2 = windll.GetProcAddress(handle, 'cuMemcpyAtoHAsync_v2') - {{endif}} - {{if 'cuMemcpy2DAsync_v2' in found_functions}} - global __cuMemcpy2DAsync_v2 - __cuMemcpy2DAsync_v2 = windll.GetProcAddress(handle, 'cuMemcpy2DAsync_v2') - {{endif}} - {{if 'cuMemcpy3DAsync_v2' in found_functions}} - global __cuMemcpy3DAsync_v2 - __cuMemcpy3DAsync_v2 = windll.GetProcAddress(handle, 'cuMemcpy3DAsync_v2') - {{endif}} - {{if 'cuMemcpy3DPeerAsync' in found_functions}} - global __cuMemcpy3DPeerAsync - __cuMemcpy3DPeerAsync = windll.GetProcAddress(handle, 'cuMemcpy3DPeerAsync') - {{endif}} - {{if 'cuMemcpyBatchAsync_v2' in found_functions}} - global __cuMemcpyBatchAsync_v2 - __cuMemcpyBatchAsync_v2 = windll.GetProcAddress(handle, 'cuMemcpyBatchAsync_v2') - {{endif}} - {{if 'cuMemcpy3DBatchAsync_v2' in found_functions}} - global __cuMemcpy3DBatchAsync_v2 - __cuMemcpy3DBatchAsync_v2 = windll.GetProcAddress(handle, 'cuMemcpy3DBatchAsync_v2') - {{endif}} - {{if 'cuMemcpyWithAttributesAsync' in found_functions}} - global __cuMemcpyWithAttributesAsync - __cuMemcpyWithAttributesAsync = windll.GetProcAddress(handle, 'cuMemcpyWithAttributesAsync') - {{endif}} - {{if 'cuMemcpy3DWithAttributesAsync' in found_functions}} - global __cuMemcpy3DWithAttributesAsync - __cuMemcpy3DWithAttributesAsync = windll.GetProcAddress(handle, 'cuMemcpy3DWithAttributesAsync') - {{endif}} - {{if 'cuMemsetD8_v2' in found_functions}} - global __cuMemsetD8_v2 - __cuMemsetD8_v2 = windll.GetProcAddress(handle, 'cuMemsetD8_v2') - {{endif}} - {{if 'cuMemsetD16_v2' in found_functions}} - global __cuMemsetD16_v2 - __cuMemsetD16_v2 = windll.GetProcAddress(handle, 'cuMemsetD16_v2') - {{endif}} - {{if 'cuMemsetD32_v2' in found_functions}} - global __cuMemsetD32_v2 - __cuMemsetD32_v2 = windll.GetProcAddress(handle, 'cuMemsetD32_v2') - {{endif}} - {{if 'cuMemsetD2D8_v2' in found_functions}} - global __cuMemsetD2D8_v2 - __cuMemsetD2D8_v2 = windll.GetProcAddress(handle, 'cuMemsetD2D8_v2') - {{endif}} - {{if 'cuMemsetD2D16_v2' in found_functions}} - global __cuMemsetD2D16_v2 - __cuMemsetD2D16_v2 = windll.GetProcAddress(handle, 'cuMemsetD2D16_v2') - {{endif}} - {{if 'cuMemsetD2D32_v2' in found_functions}} - global __cuMemsetD2D32_v2 - __cuMemsetD2D32_v2 = windll.GetProcAddress(handle, 'cuMemsetD2D32_v2') - {{endif}} - {{if 'cuMemsetD8Async' in found_functions}} - global __cuMemsetD8Async - __cuMemsetD8Async = windll.GetProcAddress(handle, 'cuMemsetD8Async') - {{endif}} - {{if 'cuMemsetD16Async' in found_functions}} - global __cuMemsetD16Async - __cuMemsetD16Async = windll.GetProcAddress(handle, 'cuMemsetD16Async') - {{endif}} - {{if 'cuMemsetD32Async' in found_functions}} - global __cuMemsetD32Async - __cuMemsetD32Async = windll.GetProcAddress(handle, 'cuMemsetD32Async') - {{endif}} - {{if 'cuMemsetD2D8Async' in found_functions}} - global __cuMemsetD2D8Async - __cuMemsetD2D8Async = windll.GetProcAddress(handle, 'cuMemsetD2D8Async') - {{endif}} - {{if 'cuMemsetD2D16Async' in found_functions}} - global __cuMemsetD2D16Async - __cuMemsetD2D16Async = windll.GetProcAddress(handle, 'cuMemsetD2D16Async') - {{endif}} - {{if 'cuMemsetD2D32Async' in found_functions}} - global __cuMemsetD2D32Async - __cuMemsetD2D32Async = windll.GetProcAddress(handle, 'cuMemsetD2D32Async') - {{endif}} - {{if 'cuMemBatchDecompressAsync' in found_functions}} - global __cuMemBatchDecompressAsync - __cuMemBatchDecompressAsync = windll.GetProcAddress(handle, 'cuMemBatchDecompressAsync') - {{endif}} - {{if 'cuMemMapArrayAsync' in found_functions}} - global __cuMemMapArrayAsync - __cuMemMapArrayAsync = windll.GetProcAddress(handle, 'cuMemMapArrayAsync') - {{endif}} - {{if 'cuMemFreeAsync' in found_functions}} - global __cuMemFreeAsync - __cuMemFreeAsync = windll.GetProcAddress(handle, 'cuMemFreeAsync') - {{endif}} - {{if 'cuMemAllocAsync' in found_functions}} - global __cuMemAllocAsync - __cuMemAllocAsync = windll.GetProcAddress(handle, 'cuMemAllocAsync') - {{endif}} - {{if 'cuMemAllocFromPoolAsync' in found_functions}} - global __cuMemAllocFromPoolAsync - __cuMemAllocFromPoolAsync = windll.GetProcAddress(handle, 'cuMemAllocFromPoolAsync') - {{endif}} - {{if 'cuMemPrefetchAsync_v2' in found_functions}} - global __cuMemPrefetchAsync_v2 - __cuMemPrefetchAsync_v2 = windll.GetProcAddress(handle, 'cuMemPrefetchAsync_v2') - {{endif}} - {{if 'cuMemPrefetchBatchAsync' in found_functions}} - global __cuMemPrefetchBatchAsync - __cuMemPrefetchBatchAsync = windll.GetProcAddress(handle, 'cuMemPrefetchBatchAsync') - {{endif}} - {{if 'cuMemDiscardBatchAsync' in found_functions}} - global __cuMemDiscardBatchAsync - __cuMemDiscardBatchAsync = windll.GetProcAddress(handle, 'cuMemDiscardBatchAsync') - {{endif}} - {{if 'cuMemDiscardAndPrefetchBatchAsync' in found_functions}} - global __cuMemDiscardAndPrefetchBatchAsync - __cuMemDiscardAndPrefetchBatchAsync = windll.GetProcAddress(handle, 'cuMemDiscardAndPrefetchBatchAsync') - {{endif}} - {{if 'cuStreamBeginCaptureToCig' in found_functions}} - global __cuStreamBeginCaptureToCig - __cuStreamBeginCaptureToCig = windll.GetProcAddress(handle, 'cuStreamBeginCaptureToCig') - {{endif}} - {{if 'cuStreamEndCaptureToCig' in found_functions}} - global __cuStreamEndCaptureToCig - __cuStreamEndCaptureToCig = windll.GetProcAddress(handle, 'cuStreamEndCaptureToCig') - {{endif}} - {{if 'cuStreamGetPriority' in found_functions}} - global __cuStreamGetPriority - __cuStreamGetPriority = windll.GetProcAddress(handle, 'cuStreamGetPriority') - {{endif}} - {{if 'cuStreamGetDevice' in found_functions}} - global __cuStreamGetDevice - __cuStreamGetDevice = windll.GetProcAddress(handle, 'cuStreamGetDevice') - {{endif}} - {{if 'cuStreamGetFlags' in found_functions}} - global __cuStreamGetFlags - __cuStreamGetFlags = windll.GetProcAddress(handle, 'cuStreamGetFlags') - {{endif}} - {{if 'cuStreamGetId' in found_functions}} - global __cuStreamGetId - __cuStreamGetId = windll.GetProcAddress(handle, 'cuStreamGetId') - {{endif}} - {{if 'cuStreamGetCtx' in found_functions}} - global __cuStreamGetCtx - __cuStreamGetCtx = windll.GetProcAddress(handle, 'cuStreamGetCtx') - {{endif}} - {{if 'cuStreamGetCtx_v2' in found_functions}} - global __cuStreamGetCtx_v2 - __cuStreamGetCtx_v2 = windll.GetProcAddress(handle, 'cuStreamGetCtx_v2') - {{endif}} - {{if 'cuStreamWaitEvent' in found_functions}} - global __cuStreamWaitEvent - __cuStreamWaitEvent = windll.GetProcAddress(handle, 'cuStreamWaitEvent') - {{endif}} - {{if 'cuStreamAddCallback' in found_functions}} - global __cuStreamAddCallback - __cuStreamAddCallback = windll.GetProcAddress(handle, 'cuStreamAddCallback') - {{endif}} - {{if 'cuStreamBeginCapture_v2' in found_functions}} - global __cuStreamBeginCapture_v2 - __cuStreamBeginCapture_v2 = windll.GetProcAddress(handle, 'cuStreamBeginCapture_v2') - {{endif}} - {{if 'cuStreamBeginCaptureToGraph' in found_functions}} - global __cuStreamBeginCaptureToGraph - __cuStreamBeginCaptureToGraph = windll.GetProcAddress(handle, 'cuStreamBeginCaptureToGraph') - {{endif}} - {{if 'cuStreamEndCapture' in found_functions}} - global __cuStreamEndCapture - __cuStreamEndCapture = windll.GetProcAddress(handle, 'cuStreamEndCapture') - {{endif}} - {{if 'cuStreamIsCapturing' in found_functions}} - global __cuStreamIsCapturing - __cuStreamIsCapturing = windll.GetProcAddress(handle, 'cuStreamIsCapturing') - {{endif}} - {{if 'cuStreamGetCaptureInfo_v3' in found_functions}} - global __cuStreamGetCaptureInfo_v3 - __cuStreamGetCaptureInfo_v3 = windll.GetProcAddress(handle, 'cuStreamGetCaptureInfo_v3') - {{endif}} - {{if 'cuStreamUpdateCaptureDependencies_v2' in found_functions}} - global __cuStreamUpdateCaptureDependencies_v2 - __cuStreamUpdateCaptureDependencies_v2 = windll.GetProcAddress(handle, 'cuStreamUpdateCaptureDependencies_v2') - {{endif}} - {{if 'cuStreamAttachMemAsync' in found_functions}} - global __cuStreamAttachMemAsync - __cuStreamAttachMemAsync = windll.GetProcAddress(handle, 'cuStreamAttachMemAsync') - {{endif}} - {{if 'cuStreamQuery' in found_functions}} - global __cuStreamQuery - __cuStreamQuery = windll.GetProcAddress(handle, 'cuStreamQuery') - {{endif}} - {{if 'cuStreamSynchronize' in found_functions}} - global __cuStreamSynchronize - __cuStreamSynchronize = windll.GetProcAddress(handle, 'cuStreamSynchronize') - {{endif}} - {{if 'cuStreamCopyAttributes' in found_functions}} - global __cuStreamCopyAttributes - __cuStreamCopyAttributes = windll.GetProcAddress(handle, 'cuStreamCopyAttributes') - {{endif}} - {{if 'cuStreamGetAttribute' in found_functions}} - global __cuStreamGetAttribute - __cuStreamGetAttribute = windll.GetProcAddress(handle, 'cuStreamGetAttribute') - {{endif}} - {{if 'cuStreamSetAttribute' in found_functions}} - global __cuStreamSetAttribute - __cuStreamSetAttribute = windll.GetProcAddress(handle, 'cuStreamSetAttribute') - {{endif}} - {{if 'cuEventRecord' in found_functions}} - global __cuEventRecord - __cuEventRecord = windll.GetProcAddress(handle, 'cuEventRecord') - {{endif}} - {{if 'cuEventRecordWithFlags' in found_functions}} - global __cuEventRecordWithFlags - __cuEventRecordWithFlags = windll.GetProcAddress(handle, 'cuEventRecordWithFlags') - {{endif}} - {{if 'cuSignalExternalSemaphoresAsync' in found_functions}} - global __cuSignalExternalSemaphoresAsync - __cuSignalExternalSemaphoresAsync = windll.GetProcAddress(handle, 'cuSignalExternalSemaphoresAsync') - {{endif}} - {{if 'cuWaitExternalSemaphoresAsync' in found_functions}} - global __cuWaitExternalSemaphoresAsync - __cuWaitExternalSemaphoresAsync = windll.GetProcAddress(handle, 'cuWaitExternalSemaphoresAsync') - {{endif}} - {{if 'cuStreamWaitValue32_v2' in found_functions}} - global __cuStreamWaitValue32_v2 - __cuStreamWaitValue32_v2 = windll.GetProcAddress(handle, 'cuStreamWaitValue32_v2') - {{endif}} - {{if 'cuStreamWaitValue64_v2' in found_functions}} - global __cuStreamWaitValue64_v2 - __cuStreamWaitValue64_v2 = windll.GetProcAddress(handle, 'cuStreamWaitValue64_v2') - {{endif}} - {{if 'cuStreamWriteValue32_v2' in found_functions}} - global __cuStreamWriteValue32_v2 - __cuStreamWriteValue32_v2 = windll.GetProcAddress(handle, 'cuStreamWriteValue32_v2') - {{endif}} - {{if 'cuStreamWriteValue64_v2' in found_functions}} - global __cuStreamWriteValue64_v2 - __cuStreamWriteValue64_v2 = windll.GetProcAddress(handle, 'cuStreamWriteValue64_v2') - {{endif}} - {{if 'cuStreamBatchMemOp_v2' in found_functions}} - global __cuStreamBatchMemOp_v2 - __cuStreamBatchMemOp_v2 = windll.GetProcAddress(handle, 'cuStreamBatchMemOp_v2') - {{endif}} - {{if 'cuLaunchKernel' in found_functions}} - global __cuLaunchKernel - __cuLaunchKernel = windll.GetProcAddress(handle, 'cuLaunchKernel') - {{endif}} - {{if 'cuLaunchKernelEx' in found_functions}} - global __cuLaunchKernelEx - __cuLaunchKernelEx = windll.GetProcAddress(handle, 'cuLaunchKernelEx') - {{endif}} - {{if 'cuLaunchCooperativeKernel' in found_functions}} - global __cuLaunchCooperativeKernel - __cuLaunchCooperativeKernel = windll.GetProcAddress(handle, 'cuLaunchCooperativeKernel') - {{endif}} - {{if 'cuLaunchHostFunc' in found_functions}} - global __cuLaunchHostFunc - __cuLaunchHostFunc = windll.GetProcAddress(handle, 'cuLaunchHostFunc') - {{endif}} - {{if 'cuLaunchHostFunc_v2' in found_functions}} - global __cuLaunchHostFunc_v2 - __cuLaunchHostFunc_v2 = windll.GetProcAddress(handle, 'cuLaunchHostFunc_v2') - {{endif}} - {{if 'cuGraphInstantiateWithParams' in found_functions}} - global __cuGraphInstantiateWithParams - __cuGraphInstantiateWithParams = windll.GetProcAddress(handle, 'cuGraphInstantiateWithParams') - {{endif}} - {{if 'cuGraphUpload' in found_functions}} - global __cuGraphUpload - __cuGraphUpload = windll.GetProcAddress(handle, 'cuGraphUpload') - {{endif}} - {{if 'cuGraphLaunch' in found_functions}} - global __cuGraphLaunch - __cuGraphLaunch = windll.GetProcAddress(handle, 'cuGraphLaunch') - {{endif}} - {{if 'cuGraphicsMapResources' in found_functions}} - global __cuGraphicsMapResources - __cuGraphicsMapResources = windll.GetProcAddress(handle, 'cuGraphicsMapResources') - {{endif}} - {{if 'cuGraphicsUnmapResources' in found_functions}} - global __cuGraphicsUnmapResources - __cuGraphicsUnmapResources = windll.GetProcAddress(handle, 'cuGraphicsUnmapResources') - {{endif}} - {{if 'cuStreamGetDevResource' in found_functions}} - global __cuStreamGetDevResource - __cuStreamGetDevResource = windll.GetProcAddress(handle, 'cuStreamGetDevResource') - {{endif}} - # Get remaining functions - {{if 'cuGetErrorString' in found_functions}} - global __cuGetErrorString - __cuGetErrorString = windll.GetProcAddress(handle, 'cuGetErrorString') - {{endif}} - {{if 'cuGetErrorName' in found_functions}} - global __cuGetErrorName - __cuGetErrorName = windll.GetProcAddress(handle, 'cuGetErrorName') - {{endif}} - {{if 'cuInit' in found_functions}} - global __cuInit - __cuInit = windll.GetProcAddress(handle, 'cuInit') - {{endif}} - {{if 'cuDriverGetVersion' in found_functions}} - global __cuDriverGetVersion - __cuDriverGetVersion = windll.GetProcAddress(handle, 'cuDriverGetVersion') - {{endif}} - {{if 'cuDeviceGet' in found_functions}} - global __cuDeviceGet - __cuDeviceGet = windll.GetProcAddress(handle, 'cuDeviceGet') - {{endif}} - {{if 'cuDeviceGetCount' in found_functions}} - global __cuDeviceGetCount - __cuDeviceGetCount = windll.GetProcAddress(handle, 'cuDeviceGetCount') - {{endif}} - {{if 'cuDeviceGetName' in found_functions}} - global __cuDeviceGetName - __cuDeviceGetName = windll.GetProcAddress(handle, 'cuDeviceGetName') - {{endif}} - {{if 'cuDeviceGetUuid_v2' in found_functions}} - global __cuDeviceGetUuid_v2 - __cuDeviceGetUuid_v2 = windll.GetProcAddress(handle, 'cuDeviceGetUuid_v2') - {{endif}} - {{if 'cuDeviceGetLuid' in found_functions}} - global __cuDeviceGetLuid - __cuDeviceGetLuid = windll.GetProcAddress(handle, 'cuDeviceGetLuid') - {{endif}} - {{if 'cuDeviceTotalMem_v2' in found_functions}} - global __cuDeviceTotalMem_v2 - __cuDeviceTotalMem_v2 = windll.GetProcAddress(handle, 'cuDeviceTotalMem_v2') - {{endif}} - {{if 'cuDeviceGetTexture1DLinearMaxWidth' in found_functions}} - global __cuDeviceGetTexture1DLinearMaxWidth - __cuDeviceGetTexture1DLinearMaxWidth = windll.GetProcAddress(handle, 'cuDeviceGetTexture1DLinearMaxWidth') - {{endif}} - {{if 'cuDeviceGetAttribute' in found_functions}} - global __cuDeviceGetAttribute - __cuDeviceGetAttribute = windll.GetProcAddress(handle, 'cuDeviceGetAttribute') - {{endif}} - {{if 'cuDeviceGetHostAtomicCapabilities' in found_functions}} - global __cuDeviceGetHostAtomicCapabilities - __cuDeviceGetHostAtomicCapabilities = windll.GetProcAddress(handle, 'cuDeviceGetHostAtomicCapabilities') - {{endif}} - {{if 'cuDeviceGetNvSciSyncAttributes' in found_functions}} - global __cuDeviceGetNvSciSyncAttributes - __cuDeviceGetNvSciSyncAttributes = windll.GetProcAddress(handle, 'cuDeviceGetNvSciSyncAttributes') - {{endif}} - {{if 'cuDeviceSetMemPool' in found_functions}} - global __cuDeviceSetMemPool - __cuDeviceSetMemPool = windll.GetProcAddress(handle, 'cuDeviceSetMemPool') - {{endif}} - {{if 'cuDeviceGetMemPool' in found_functions}} - global __cuDeviceGetMemPool - __cuDeviceGetMemPool = windll.GetProcAddress(handle, 'cuDeviceGetMemPool') - {{endif}} - {{if 'cuDeviceGetDefaultMemPool' in found_functions}} - global __cuDeviceGetDefaultMemPool - __cuDeviceGetDefaultMemPool = windll.GetProcAddress(handle, 'cuDeviceGetDefaultMemPool') - {{endif}} - {{if 'cuDeviceGetExecAffinitySupport' in found_functions}} - global __cuDeviceGetExecAffinitySupport - __cuDeviceGetExecAffinitySupport = windll.GetProcAddress(handle, 'cuDeviceGetExecAffinitySupport') - {{endif}} - {{if 'cuFlushGPUDirectRDMAWrites' in found_functions}} - global __cuFlushGPUDirectRDMAWrites - __cuFlushGPUDirectRDMAWrites = windll.GetProcAddress(handle, 'cuFlushGPUDirectRDMAWrites') - {{endif}} - {{if 'cuDeviceGetProperties' in found_functions}} - global __cuDeviceGetProperties - __cuDeviceGetProperties = windll.GetProcAddress(handle, 'cuDeviceGetProperties') - {{endif}} - {{if 'cuDeviceComputeCapability' in found_functions}} - global __cuDeviceComputeCapability - __cuDeviceComputeCapability = windll.GetProcAddress(handle, 'cuDeviceComputeCapability') - {{endif}} - {{if 'cuDevicePrimaryCtxRetain' in found_functions}} - global __cuDevicePrimaryCtxRetain - __cuDevicePrimaryCtxRetain = windll.GetProcAddress(handle, 'cuDevicePrimaryCtxRetain') - {{endif}} - {{if 'cuDevicePrimaryCtxRelease_v2' in found_functions}} - global __cuDevicePrimaryCtxRelease_v2 - __cuDevicePrimaryCtxRelease_v2 = windll.GetProcAddress(handle, 'cuDevicePrimaryCtxRelease_v2') - {{endif}} - {{if 'cuDevicePrimaryCtxSetFlags_v2' in found_functions}} - global __cuDevicePrimaryCtxSetFlags_v2 - __cuDevicePrimaryCtxSetFlags_v2 = windll.GetProcAddress(handle, 'cuDevicePrimaryCtxSetFlags_v2') - {{endif}} - {{if 'cuDevicePrimaryCtxGetState' in found_functions}} - global __cuDevicePrimaryCtxGetState - __cuDevicePrimaryCtxGetState = windll.GetProcAddress(handle, 'cuDevicePrimaryCtxGetState') - {{endif}} - {{if 'cuDevicePrimaryCtxReset_v2' in found_functions}} - global __cuDevicePrimaryCtxReset_v2 - __cuDevicePrimaryCtxReset_v2 = windll.GetProcAddress(handle, 'cuDevicePrimaryCtxReset_v2') - {{endif}} - {{if 'cuCtxCreate_v4' in found_functions}} - global __cuCtxCreate_v4 - __cuCtxCreate_v4 = windll.GetProcAddress(handle, 'cuCtxCreate_v4') - {{endif}} - {{if 'cuCtxDestroy_v2' in found_functions}} - global __cuCtxDestroy_v2 - __cuCtxDestroy_v2 = windll.GetProcAddress(handle, 'cuCtxDestroy_v2') - {{endif}} - {{if 'cuCtxPushCurrent_v2' in found_functions}} - global __cuCtxPushCurrent_v2 - __cuCtxPushCurrent_v2 = windll.GetProcAddress(handle, 'cuCtxPushCurrent_v2') - {{endif}} - {{if 'cuCtxPopCurrent_v2' in found_functions}} - global __cuCtxPopCurrent_v2 - __cuCtxPopCurrent_v2 = windll.GetProcAddress(handle, 'cuCtxPopCurrent_v2') - {{endif}} - {{if 'cuCtxSetCurrent' in found_functions}} - global __cuCtxSetCurrent - __cuCtxSetCurrent = windll.GetProcAddress(handle, 'cuCtxSetCurrent') - {{endif}} - {{if 'cuCtxGetCurrent' in found_functions}} - global __cuCtxGetCurrent - __cuCtxGetCurrent = windll.GetProcAddress(handle, 'cuCtxGetCurrent') - {{endif}} - {{if 'cuCtxGetDevice' in found_functions}} - global __cuCtxGetDevice - __cuCtxGetDevice = windll.GetProcAddress(handle, 'cuCtxGetDevice') - {{endif}} - {{if 'cuCtxGetDevice_v2' in found_functions}} - global __cuCtxGetDevice_v2 - __cuCtxGetDevice_v2 = windll.GetProcAddress(handle, 'cuCtxGetDevice_v2') - {{endif}} - {{if 'cuCtxGetFlags' in found_functions}} - global __cuCtxGetFlags - __cuCtxGetFlags = windll.GetProcAddress(handle, 'cuCtxGetFlags') - {{endif}} - {{if 'cuCtxSetFlags' in found_functions}} - global __cuCtxSetFlags - __cuCtxSetFlags = windll.GetProcAddress(handle, 'cuCtxSetFlags') - {{endif}} - {{if 'cuCtxGetId' in found_functions}} - global __cuCtxGetId - __cuCtxGetId = windll.GetProcAddress(handle, 'cuCtxGetId') - {{endif}} - {{if 'cuCtxSynchronize' in found_functions}} - global __cuCtxSynchronize - __cuCtxSynchronize = windll.GetProcAddress(handle, 'cuCtxSynchronize') - {{endif}} - {{if 'cuCtxSynchronize_v2' in found_functions}} - global __cuCtxSynchronize_v2 - __cuCtxSynchronize_v2 = windll.GetProcAddress(handle, 'cuCtxSynchronize_v2') - {{endif}} - {{if 'cuCtxSetLimit' in found_functions}} - global __cuCtxSetLimit - __cuCtxSetLimit = windll.GetProcAddress(handle, 'cuCtxSetLimit') - {{endif}} - {{if 'cuCtxGetLimit' in found_functions}} - global __cuCtxGetLimit - __cuCtxGetLimit = windll.GetProcAddress(handle, 'cuCtxGetLimit') - {{endif}} - {{if 'cuCtxGetCacheConfig' in found_functions}} - global __cuCtxGetCacheConfig - __cuCtxGetCacheConfig = windll.GetProcAddress(handle, 'cuCtxGetCacheConfig') - {{endif}} - {{if 'cuCtxSetCacheConfig' in found_functions}} - global __cuCtxSetCacheConfig - __cuCtxSetCacheConfig = windll.GetProcAddress(handle, 'cuCtxSetCacheConfig') - {{endif}} - {{if 'cuCtxGetApiVersion' in found_functions}} - global __cuCtxGetApiVersion - __cuCtxGetApiVersion = windll.GetProcAddress(handle, 'cuCtxGetApiVersion') - {{endif}} - {{if 'cuCtxGetStreamPriorityRange' in found_functions}} - global __cuCtxGetStreamPriorityRange - __cuCtxGetStreamPriorityRange = windll.GetProcAddress(handle, 'cuCtxGetStreamPriorityRange') - {{endif}} - {{if 'cuCtxResetPersistingL2Cache' in found_functions}} - global __cuCtxResetPersistingL2Cache - __cuCtxResetPersistingL2Cache = windll.GetProcAddress(handle, 'cuCtxResetPersistingL2Cache') - {{endif}} - {{if 'cuCtxGetExecAffinity' in found_functions}} - global __cuCtxGetExecAffinity - __cuCtxGetExecAffinity = windll.GetProcAddress(handle, 'cuCtxGetExecAffinity') - {{endif}} - {{if 'cuCtxRecordEvent' in found_functions}} - global __cuCtxRecordEvent - __cuCtxRecordEvent = windll.GetProcAddress(handle, 'cuCtxRecordEvent') - {{endif}} - {{if 'cuCtxWaitEvent' in found_functions}} - global __cuCtxWaitEvent - __cuCtxWaitEvent = windll.GetProcAddress(handle, 'cuCtxWaitEvent') - {{endif}} - {{if 'cuCtxAttach' in found_functions}} - global __cuCtxAttach - __cuCtxAttach = windll.GetProcAddress(handle, 'cuCtxAttach') - {{endif}} - {{if 'cuCtxDetach' in found_functions}} - global __cuCtxDetach - __cuCtxDetach = windll.GetProcAddress(handle, 'cuCtxDetach') - {{endif}} - {{if 'cuCtxGetSharedMemConfig' in found_functions}} - global __cuCtxGetSharedMemConfig - __cuCtxGetSharedMemConfig = windll.GetProcAddress(handle, 'cuCtxGetSharedMemConfig') - {{endif}} - {{if 'cuCtxSetSharedMemConfig' in found_functions}} - global __cuCtxSetSharedMemConfig - __cuCtxSetSharedMemConfig = windll.GetProcAddress(handle, 'cuCtxSetSharedMemConfig') - {{endif}} - {{if 'cuModuleLoad' in found_functions}} - global __cuModuleLoad - __cuModuleLoad = windll.GetProcAddress(handle, 'cuModuleLoad') - {{endif}} - {{if 'cuModuleLoadData' in found_functions}} - global __cuModuleLoadData - __cuModuleLoadData = windll.GetProcAddress(handle, 'cuModuleLoadData') - {{endif}} - {{if 'cuModuleLoadDataEx' in found_functions}} - global __cuModuleLoadDataEx - __cuModuleLoadDataEx = windll.GetProcAddress(handle, 'cuModuleLoadDataEx') - {{endif}} - {{if 'cuModuleLoadFatBinary' in found_functions}} - global __cuModuleLoadFatBinary - __cuModuleLoadFatBinary = windll.GetProcAddress(handle, 'cuModuleLoadFatBinary') - {{endif}} - {{if 'cuModuleUnload' in found_functions}} - global __cuModuleUnload - __cuModuleUnload = windll.GetProcAddress(handle, 'cuModuleUnload') - {{endif}} - {{if 'cuModuleGetLoadingMode' in found_functions}} - global __cuModuleGetLoadingMode - __cuModuleGetLoadingMode = windll.GetProcAddress(handle, 'cuModuleGetLoadingMode') - {{endif}} - {{if 'cuModuleGetFunction' in found_functions}} - global __cuModuleGetFunction - __cuModuleGetFunction = windll.GetProcAddress(handle, 'cuModuleGetFunction') - {{endif}} - {{if 'cuModuleGetFunctionCount' in found_functions}} - global __cuModuleGetFunctionCount - __cuModuleGetFunctionCount = windll.GetProcAddress(handle, 'cuModuleGetFunctionCount') - {{endif}} - {{if 'cuModuleEnumerateFunctions' in found_functions}} - global __cuModuleEnumerateFunctions - __cuModuleEnumerateFunctions = windll.GetProcAddress(handle, 'cuModuleEnumerateFunctions') - {{endif}} - {{if 'cuModuleGetGlobal_v2' in found_functions}} - global __cuModuleGetGlobal_v2 - __cuModuleGetGlobal_v2 = windll.GetProcAddress(handle, 'cuModuleGetGlobal_v2') - {{endif}} - {{if 'cuLinkCreate_v2' in found_functions}} - global __cuLinkCreate_v2 - __cuLinkCreate_v2 = windll.GetProcAddress(handle, 'cuLinkCreate_v2') - {{endif}} - {{if 'cuLinkAddData_v2' in found_functions}} - global __cuLinkAddData_v2 - __cuLinkAddData_v2 = windll.GetProcAddress(handle, 'cuLinkAddData_v2') - {{endif}} - {{if 'cuLinkAddFile_v2' in found_functions}} - global __cuLinkAddFile_v2 - __cuLinkAddFile_v2 = windll.GetProcAddress(handle, 'cuLinkAddFile_v2') - {{endif}} - {{if 'cuLinkComplete' in found_functions}} - global __cuLinkComplete - __cuLinkComplete = windll.GetProcAddress(handle, 'cuLinkComplete') - {{endif}} - {{if 'cuLinkDestroy' in found_functions}} - global __cuLinkDestroy - __cuLinkDestroy = windll.GetProcAddress(handle, 'cuLinkDestroy') - {{endif}} - {{if 'cuModuleGetTexRef' in found_functions}} - global __cuModuleGetTexRef - __cuModuleGetTexRef = windll.GetProcAddress(handle, 'cuModuleGetTexRef') - {{endif}} - {{if 'cuModuleGetSurfRef' in found_functions}} - global __cuModuleGetSurfRef - __cuModuleGetSurfRef = windll.GetProcAddress(handle, 'cuModuleGetSurfRef') - {{endif}} - {{if 'cuLibraryLoadData' in found_functions}} - global __cuLibraryLoadData - __cuLibraryLoadData = windll.GetProcAddress(handle, 'cuLibraryLoadData') - {{endif}} - {{if 'cuLibraryLoadFromFile' in found_functions}} - global __cuLibraryLoadFromFile - __cuLibraryLoadFromFile = windll.GetProcAddress(handle, 'cuLibraryLoadFromFile') - {{endif}} - {{if 'cuLibraryUnload' in found_functions}} - global __cuLibraryUnload - __cuLibraryUnload = windll.GetProcAddress(handle, 'cuLibraryUnload') - {{endif}} - {{if 'cuLibraryGetKernel' in found_functions}} - global __cuLibraryGetKernel - __cuLibraryGetKernel = windll.GetProcAddress(handle, 'cuLibraryGetKernel') - {{endif}} - {{if 'cuLibraryGetKernelCount' in found_functions}} - global __cuLibraryGetKernelCount - __cuLibraryGetKernelCount = windll.GetProcAddress(handle, 'cuLibraryGetKernelCount') - {{endif}} - {{if 'cuLibraryEnumerateKernels' in found_functions}} - global __cuLibraryEnumerateKernels - __cuLibraryEnumerateKernels = windll.GetProcAddress(handle, 'cuLibraryEnumerateKernels') - {{endif}} - {{if 'cuLibraryGetModule' in found_functions}} - global __cuLibraryGetModule - __cuLibraryGetModule = windll.GetProcAddress(handle, 'cuLibraryGetModule') - {{endif}} - {{if 'cuKernelGetFunction' in found_functions}} - global __cuKernelGetFunction - __cuKernelGetFunction = windll.GetProcAddress(handle, 'cuKernelGetFunction') - {{endif}} - {{if 'cuKernelGetLibrary' in found_functions}} - global __cuKernelGetLibrary - __cuKernelGetLibrary = windll.GetProcAddress(handle, 'cuKernelGetLibrary') - {{endif}} - {{if 'cuLibraryGetGlobal' in found_functions}} - global __cuLibraryGetGlobal - __cuLibraryGetGlobal = windll.GetProcAddress(handle, 'cuLibraryGetGlobal') - {{endif}} - {{if 'cuLibraryGetManaged' in found_functions}} - global __cuLibraryGetManaged - __cuLibraryGetManaged = windll.GetProcAddress(handle, 'cuLibraryGetManaged') - {{endif}} - {{if 'cuLibraryGetUnifiedFunction' in found_functions}} - global __cuLibraryGetUnifiedFunction - __cuLibraryGetUnifiedFunction = windll.GetProcAddress(handle, 'cuLibraryGetUnifiedFunction') - {{endif}} - {{if 'cuKernelGetAttribute' in found_functions}} - global __cuKernelGetAttribute - __cuKernelGetAttribute = windll.GetProcAddress(handle, 'cuKernelGetAttribute') - {{endif}} - {{if 'cuKernelSetAttribute' in found_functions}} - global __cuKernelSetAttribute - __cuKernelSetAttribute = windll.GetProcAddress(handle, 'cuKernelSetAttribute') - {{endif}} - {{if 'cuKernelSetCacheConfig' in found_functions}} - global __cuKernelSetCacheConfig - __cuKernelSetCacheConfig = windll.GetProcAddress(handle, 'cuKernelSetCacheConfig') - {{endif}} - {{if 'cuKernelGetName' in found_functions}} - global __cuKernelGetName - __cuKernelGetName = windll.GetProcAddress(handle, 'cuKernelGetName') - {{endif}} - {{if 'cuKernelGetParamInfo' in found_functions}} - global __cuKernelGetParamInfo - __cuKernelGetParamInfo = windll.GetProcAddress(handle, 'cuKernelGetParamInfo') - {{endif}} - {{if 'cuKernelGetParamCount' in found_functions}} - global __cuKernelGetParamCount - __cuKernelGetParamCount = windll.GetProcAddress(handle, 'cuKernelGetParamCount') - {{endif}} - {{if 'cuMemGetInfo_v2' in found_functions}} - global __cuMemGetInfo_v2 - __cuMemGetInfo_v2 = windll.GetProcAddress(handle, 'cuMemGetInfo_v2') - {{endif}} - {{if 'cuMemAlloc_v2' in found_functions}} - global __cuMemAlloc_v2 - __cuMemAlloc_v2 = windll.GetProcAddress(handle, 'cuMemAlloc_v2') - {{endif}} - {{if 'cuMemAllocPitch_v2' in found_functions}} - global __cuMemAllocPitch_v2 - __cuMemAllocPitch_v2 = windll.GetProcAddress(handle, 'cuMemAllocPitch_v2') - {{endif}} - {{if 'cuMemFree_v2' in found_functions}} - global __cuMemFree_v2 - __cuMemFree_v2 = windll.GetProcAddress(handle, 'cuMemFree_v2') - {{endif}} - {{if 'cuMemGetAddressRange_v2' in found_functions}} - global __cuMemGetAddressRange_v2 - __cuMemGetAddressRange_v2 = windll.GetProcAddress(handle, 'cuMemGetAddressRange_v2') - {{endif}} - {{if 'cuMemAllocHost_v2' in found_functions}} - global __cuMemAllocHost_v2 - __cuMemAllocHost_v2 = windll.GetProcAddress(handle, 'cuMemAllocHost_v2') - {{endif}} - {{if 'cuMemFreeHost' in found_functions}} - global __cuMemFreeHost - __cuMemFreeHost = windll.GetProcAddress(handle, 'cuMemFreeHost') - {{endif}} - {{if 'cuMemHostAlloc' in found_functions}} - global __cuMemHostAlloc - __cuMemHostAlloc = windll.GetProcAddress(handle, 'cuMemHostAlloc') - {{endif}} - {{if 'cuMemHostGetDevicePointer_v2' in found_functions}} - global __cuMemHostGetDevicePointer_v2 - __cuMemHostGetDevicePointer_v2 = windll.GetProcAddress(handle, 'cuMemHostGetDevicePointer_v2') - {{endif}} - {{if 'cuMemHostGetFlags' in found_functions}} - global __cuMemHostGetFlags - __cuMemHostGetFlags = windll.GetProcAddress(handle, 'cuMemHostGetFlags') - {{endif}} - {{if 'cuMemAllocManaged' in found_functions}} - global __cuMemAllocManaged - __cuMemAllocManaged = windll.GetProcAddress(handle, 'cuMemAllocManaged') - {{endif}} - {{if 'cuDeviceRegisterAsyncNotification' in found_functions}} - global __cuDeviceRegisterAsyncNotification - __cuDeviceRegisterAsyncNotification = windll.GetProcAddress(handle, 'cuDeviceRegisterAsyncNotification') - {{endif}} - {{if 'cuDeviceUnregisterAsyncNotification' in found_functions}} - global __cuDeviceUnregisterAsyncNotification - __cuDeviceUnregisterAsyncNotification = windll.GetProcAddress(handle, 'cuDeviceUnregisterAsyncNotification') - {{endif}} - {{if 'cuDeviceGetByPCIBusId' in found_functions}} - global __cuDeviceGetByPCIBusId - __cuDeviceGetByPCIBusId = windll.GetProcAddress(handle, 'cuDeviceGetByPCIBusId') - {{endif}} - {{if 'cuDeviceGetPCIBusId' in found_functions}} - global __cuDeviceGetPCIBusId - __cuDeviceGetPCIBusId = windll.GetProcAddress(handle, 'cuDeviceGetPCIBusId') - {{endif}} - {{if 'cuIpcGetEventHandle' in found_functions}} - global __cuIpcGetEventHandle - __cuIpcGetEventHandle = windll.GetProcAddress(handle, 'cuIpcGetEventHandle') - {{endif}} - {{if 'cuIpcOpenEventHandle' in found_functions}} - global __cuIpcOpenEventHandle - __cuIpcOpenEventHandle = windll.GetProcAddress(handle, 'cuIpcOpenEventHandle') - {{endif}} - {{if 'cuIpcGetMemHandle' in found_functions}} - global __cuIpcGetMemHandle - __cuIpcGetMemHandle = windll.GetProcAddress(handle, 'cuIpcGetMemHandle') - {{endif}} - {{if 'cuIpcOpenMemHandle_v2' in found_functions}} - global __cuIpcOpenMemHandle_v2 - __cuIpcOpenMemHandle_v2 = windll.GetProcAddress(handle, 'cuIpcOpenMemHandle_v2') - {{endif}} - {{if 'cuIpcCloseMemHandle' in found_functions}} - global __cuIpcCloseMemHandle - __cuIpcCloseMemHandle = windll.GetProcAddress(handle, 'cuIpcCloseMemHandle') - {{endif}} - {{if 'cuMemHostRegister_v2' in found_functions}} - global __cuMemHostRegister_v2 - __cuMemHostRegister_v2 = windll.GetProcAddress(handle, 'cuMemHostRegister_v2') - {{endif}} - {{if 'cuMemHostUnregister' in found_functions}} - global __cuMemHostUnregister - __cuMemHostUnregister = windll.GetProcAddress(handle, 'cuMemHostUnregister') - {{endif}} - {{if 'cuArrayCreate_v2' in found_functions}} - global __cuArrayCreate_v2 - __cuArrayCreate_v2 = windll.GetProcAddress(handle, 'cuArrayCreate_v2') - {{endif}} - {{if 'cuArrayGetDescriptor_v2' in found_functions}} - global __cuArrayGetDescriptor_v2 - __cuArrayGetDescriptor_v2 = windll.GetProcAddress(handle, 'cuArrayGetDescriptor_v2') - {{endif}} - {{if 'cuArrayGetSparseProperties' in found_functions}} - global __cuArrayGetSparseProperties - __cuArrayGetSparseProperties = windll.GetProcAddress(handle, 'cuArrayGetSparseProperties') - {{endif}} - {{if 'cuMipmappedArrayGetSparseProperties' in found_functions}} - global __cuMipmappedArrayGetSparseProperties - __cuMipmappedArrayGetSparseProperties = windll.GetProcAddress(handle, 'cuMipmappedArrayGetSparseProperties') - {{endif}} - {{if 'cuArrayGetMemoryRequirements' in found_functions}} - global __cuArrayGetMemoryRequirements - __cuArrayGetMemoryRequirements = windll.GetProcAddress(handle, 'cuArrayGetMemoryRequirements') - {{endif}} - {{if 'cuMipmappedArrayGetMemoryRequirements' in found_functions}} - global __cuMipmappedArrayGetMemoryRequirements - __cuMipmappedArrayGetMemoryRequirements = windll.GetProcAddress(handle, 'cuMipmappedArrayGetMemoryRequirements') - {{endif}} - {{if 'cuArrayGetPlane' in found_functions}} - global __cuArrayGetPlane - __cuArrayGetPlane = windll.GetProcAddress(handle, 'cuArrayGetPlane') - {{endif}} - {{if 'cuArrayDestroy' in found_functions}} - global __cuArrayDestroy - __cuArrayDestroy = windll.GetProcAddress(handle, 'cuArrayDestroy') - {{endif}} - {{if 'cuArray3DCreate_v2' in found_functions}} - global __cuArray3DCreate_v2 - __cuArray3DCreate_v2 = windll.GetProcAddress(handle, 'cuArray3DCreate_v2') - {{endif}} - {{if 'cuArray3DGetDescriptor_v2' in found_functions}} - global __cuArray3DGetDescriptor_v2 - __cuArray3DGetDescriptor_v2 = windll.GetProcAddress(handle, 'cuArray3DGetDescriptor_v2') - {{endif}} - {{if 'cuMipmappedArrayCreate' in found_functions}} - global __cuMipmappedArrayCreate - __cuMipmappedArrayCreate = windll.GetProcAddress(handle, 'cuMipmappedArrayCreate') - {{endif}} - {{if 'cuMipmappedArrayGetLevel' in found_functions}} - global __cuMipmappedArrayGetLevel - __cuMipmappedArrayGetLevel = windll.GetProcAddress(handle, 'cuMipmappedArrayGetLevel') - {{endif}} - {{if 'cuMipmappedArrayDestroy' in found_functions}} - global __cuMipmappedArrayDestroy - __cuMipmappedArrayDestroy = windll.GetProcAddress(handle, 'cuMipmappedArrayDestroy') - {{endif}} - {{if 'cuMemGetHandleForAddressRange' in found_functions}} - global __cuMemGetHandleForAddressRange - __cuMemGetHandleForAddressRange = windll.GetProcAddress(handle, 'cuMemGetHandleForAddressRange') - {{endif}} - {{if 'cuMemAddressReserve' in found_functions}} - global __cuMemAddressReserve - __cuMemAddressReserve = windll.GetProcAddress(handle, 'cuMemAddressReserve') - {{endif}} - {{if 'cuMemAddressFree' in found_functions}} - global __cuMemAddressFree - __cuMemAddressFree = windll.GetProcAddress(handle, 'cuMemAddressFree') - {{endif}} - {{if 'cuMemCreate' in found_functions}} - global __cuMemCreate - __cuMemCreate = windll.GetProcAddress(handle, 'cuMemCreate') - {{endif}} - {{if 'cuMemRelease' in found_functions}} - global __cuMemRelease - __cuMemRelease = windll.GetProcAddress(handle, 'cuMemRelease') - {{endif}} - {{if 'cuMemMap' in found_functions}} - global __cuMemMap - __cuMemMap = windll.GetProcAddress(handle, 'cuMemMap') - {{endif}} - {{if 'cuMemUnmap' in found_functions}} - global __cuMemUnmap - __cuMemUnmap = windll.GetProcAddress(handle, 'cuMemUnmap') - {{endif}} - {{if 'cuMemSetAccess' in found_functions}} - global __cuMemSetAccess - __cuMemSetAccess = windll.GetProcAddress(handle, 'cuMemSetAccess') - {{endif}} - {{if 'cuMemGetAccess' in found_functions}} - global __cuMemGetAccess - __cuMemGetAccess = windll.GetProcAddress(handle, 'cuMemGetAccess') - {{endif}} - {{if 'cuMemExportToShareableHandle' in found_functions}} - global __cuMemExportToShareableHandle - __cuMemExportToShareableHandle = windll.GetProcAddress(handle, 'cuMemExportToShareableHandle') - {{endif}} - {{if 'cuMemImportFromShareableHandle' in found_functions}} - global __cuMemImportFromShareableHandle - __cuMemImportFromShareableHandle = windll.GetProcAddress(handle, 'cuMemImportFromShareableHandle') - {{endif}} - {{if 'cuMemGetAllocationGranularity' in found_functions}} - global __cuMemGetAllocationGranularity - __cuMemGetAllocationGranularity = windll.GetProcAddress(handle, 'cuMemGetAllocationGranularity') - {{endif}} - {{if 'cuMemGetAllocationPropertiesFromHandle' in found_functions}} - global __cuMemGetAllocationPropertiesFromHandle - __cuMemGetAllocationPropertiesFromHandle = windll.GetProcAddress(handle, 'cuMemGetAllocationPropertiesFromHandle') - {{endif}} - {{if 'cuMemRetainAllocationHandle' in found_functions}} - global __cuMemRetainAllocationHandle - __cuMemRetainAllocationHandle = windll.GetProcAddress(handle, 'cuMemRetainAllocationHandle') - {{endif}} - {{if 'cuMemPoolTrimTo' in found_functions}} - global __cuMemPoolTrimTo - __cuMemPoolTrimTo = windll.GetProcAddress(handle, 'cuMemPoolTrimTo') - {{endif}} - {{if 'cuMemPoolSetAttribute' in found_functions}} - global __cuMemPoolSetAttribute - __cuMemPoolSetAttribute = windll.GetProcAddress(handle, 'cuMemPoolSetAttribute') - {{endif}} - {{if 'cuMemPoolGetAttribute' in found_functions}} - global __cuMemPoolGetAttribute - __cuMemPoolGetAttribute = windll.GetProcAddress(handle, 'cuMemPoolGetAttribute') - {{endif}} - {{if 'cuMemPoolSetAccess' in found_functions}} - global __cuMemPoolSetAccess - __cuMemPoolSetAccess = windll.GetProcAddress(handle, 'cuMemPoolSetAccess') - {{endif}} - {{if 'cuMemPoolGetAccess' in found_functions}} - global __cuMemPoolGetAccess - __cuMemPoolGetAccess = windll.GetProcAddress(handle, 'cuMemPoolGetAccess') - {{endif}} - {{if 'cuMemPoolCreate' in found_functions}} - global __cuMemPoolCreate - __cuMemPoolCreate = windll.GetProcAddress(handle, 'cuMemPoolCreate') - {{endif}} - {{if 'cuMemPoolDestroy' in found_functions}} - global __cuMemPoolDestroy - __cuMemPoolDestroy = windll.GetProcAddress(handle, 'cuMemPoolDestroy') - {{endif}} - {{if 'cuMemGetDefaultMemPool' in found_functions}} - global __cuMemGetDefaultMemPool - __cuMemGetDefaultMemPool = windll.GetProcAddress(handle, 'cuMemGetDefaultMemPool') - {{endif}} - {{if 'cuMemGetMemPool' in found_functions}} - global __cuMemGetMemPool - __cuMemGetMemPool = windll.GetProcAddress(handle, 'cuMemGetMemPool') - {{endif}} - {{if 'cuMemSetMemPool' in found_functions}} - global __cuMemSetMemPool - __cuMemSetMemPool = windll.GetProcAddress(handle, 'cuMemSetMemPool') - {{endif}} - {{if 'cuMemPoolExportToShareableHandle' in found_functions}} - global __cuMemPoolExportToShareableHandle - __cuMemPoolExportToShareableHandle = windll.GetProcAddress(handle, 'cuMemPoolExportToShareableHandle') - {{endif}} - {{if 'cuMemPoolImportFromShareableHandle' in found_functions}} - global __cuMemPoolImportFromShareableHandle - __cuMemPoolImportFromShareableHandle = windll.GetProcAddress(handle, 'cuMemPoolImportFromShareableHandle') - {{endif}} - {{if 'cuMemPoolExportPointer' in found_functions}} - global __cuMemPoolExportPointer - __cuMemPoolExportPointer = windll.GetProcAddress(handle, 'cuMemPoolExportPointer') - {{endif}} - {{if 'cuMemPoolImportPointer' in found_functions}} - global __cuMemPoolImportPointer - __cuMemPoolImportPointer = windll.GetProcAddress(handle, 'cuMemPoolImportPointer') - {{endif}} - {{if 'cuMulticastCreate' in found_functions}} - global __cuMulticastCreate - __cuMulticastCreate = windll.GetProcAddress(handle, 'cuMulticastCreate') - {{endif}} - {{if 'cuMulticastAddDevice' in found_functions}} - global __cuMulticastAddDevice - __cuMulticastAddDevice = windll.GetProcAddress(handle, 'cuMulticastAddDevice') - {{endif}} - {{if 'cuMulticastBindMem' in found_functions}} - global __cuMulticastBindMem - __cuMulticastBindMem = windll.GetProcAddress(handle, 'cuMulticastBindMem') - {{endif}} - {{if 'cuMulticastBindMem_v2' in found_functions}} - global __cuMulticastBindMem_v2 - __cuMulticastBindMem_v2 = windll.GetProcAddress(handle, 'cuMulticastBindMem_v2') - {{endif}} - {{if 'cuMulticastBindAddr' in found_functions}} - global __cuMulticastBindAddr - __cuMulticastBindAddr = windll.GetProcAddress(handle, 'cuMulticastBindAddr') - {{endif}} - {{if 'cuMulticastBindAddr_v2' in found_functions}} - global __cuMulticastBindAddr_v2 - __cuMulticastBindAddr_v2 = windll.GetProcAddress(handle, 'cuMulticastBindAddr_v2') - {{endif}} - {{if 'cuMulticastUnbind' in found_functions}} - global __cuMulticastUnbind - __cuMulticastUnbind = windll.GetProcAddress(handle, 'cuMulticastUnbind') - {{endif}} - {{if 'cuMulticastGetGranularity' in found_functions}} - global __cuMulticastGetGranularity - __cuMulticastGetGranularity = windll.GetProcAddress(handle, 'cuMulticastGetGranularity') - {{endif}} - {{if 'cuPointerGetAttribute' in found_functions}} - global __cuPointerGetAttribute - __cuPointerGetAttribute = windll.GetProcAddress(handle, 'cuPointerGetAttribute') - {{endif}} - {{if 'cuMemAdvise_v2' in found_functions}} - global __cuMemAdvise_v2 - __cuMemAdvise_v2 = windll.GetProcAddress(handle, 'cuMemAdvise_v2') - {{endif}} - {{if 'cuMemRangeGetAttribute' in found_functions}} - global __cuMemRangeGetAttribute - __cuMemRangeGetAttribute = windll.GetProcAddress(handle, 'cuMemRangeGetAttribute') - {{endif}} - {{if 'cuMemRangeGetAttributes' in found_functions}} - global __cuMemRangeGetAttributes - __cuMemRangeGetAttributes = windll.GetProcAddress(handle, 'cuMemRangeGetAttributes') - {{endif}} - {{if 'cuPointerSetAttribute' in found_functions}} - global __cuPointerSetAttribute - __cuPointerSetAttribute = windll.GetProcAddress(handle, 'cuPointerSetAttribute') - {{endif}} - {{if 'cuPointerGetAttributes' in found_functions}} - global __cuPointerGetAttributes - __cuPointerGetAttributes = windll.GetProcAddress(handle, 'cuPointerGetAttributes') - {{endif}} - {{if 'cuStreamCreate' in found_functions}} - global __cuStreamCreate - __cuStreamCreate = windll.GetProcAddress(handle, 'cuStreamCreate') - {{endif}} - {{if 'cuStreamCreateWithPriority' in found_functions}} - global __cuStreamCreateWithPriority - __cuStreamCreateWithPriority = windll.GetProcAddress(handle, 'cuStreamCreateWithPriority') - {{endif}} - {{if 'cuThreadExchangeStreamCaptureMode' in found_functions}} - global __cuThreadExchangeStreamCaptureMode - __cuThreadExchangeStreamCaptureMode = windll.GetProcAddress(handle, 'cuThreadExchangeStreamCaptureMode') - {{endif}} - {{if 'cuStreamDestroy_v2' in found_functions}} - global __cuStreamDestroy_v2 - __cuStreamDestroy_v2 = windll.GetProcAddress(handle, 'cuStreamDestroy_v2') - {{endif}} - {{if 'cuEventCreate' in found_functions}} - global __cuEventCreate - __cuEventCreate = windll.GetProcAddress(handle, 'cuEventCreate') - {{endif}} - {{if 'cuEventQuery' in found_functions}} - global __cuEventQuery - __cuEventQuery = windll.GetProcAddress(handle, 'cuEventQuery') - {{endif}} - {{if 'cuEventSynchronize' in found_functions}} - global __cuEventSynchronize - __cuEventSynchronize = windll.GetProcAddress(handle, 'cuEventSynchronize') - {{endif}} - {{if 'cuEventDestroy_v2' in found_functions}} - global __cuEventDestroy_v2 - __cuEventDestroy_v2 = windll.GetProcAddress(handle, 'cuEventDestroy_v2') - {{endif}} - {{if 'cuEventElapsedTime_v2' in found_functions}} - global __cuEventElapsedTime_v2 - __cuEventElapsedTime_v2 = windll.GetProcAddress(handle, 'cuEventElapsedTime_v2') - {{endif}} - {{if 'cuImportExternalMemory' in found_functions}} - global __cuImportExternalMemory - __cuImportExternalMemory = windll.GetProcAddress(handle, 'cuImportExternalMemory') - {{endif}} - {{if 'cuExternalMemoryGetMappedBuffer' in found_functions}} - global __cuExternalMemoryGetMappedBuffer - __cuExternalMemoryGetMappedBuffer = windll.GetProcAddress(handle, 'cuExternalMemoryGetMappedBuffer') - {{endif}} - {{if 'cuExternalMemoryGetMappedMipmappedArray' in found_functions}} - global __cuExternalMemoryGetMappedMipmappedArray - __cuExternalMemoryGetMappedMipmappedArray = windll.GetProcAddress(handle, 'cuExternalMemoryGetMappedMipmappedArray') - {{endif}} - {{if 'cuDestroyExternalMemory' in found_functions}} - global __cuDestroyExternalMemory - __cuDestroyExternalMemory = windll.GetProcAddress(handle, 'cuDestroyExternalMemory') - {{endif}} - {{if 'cuImportExternalSemaphore' in found_functions}} - global __cuImportExternalSemaphore - __cuImportExternalSemaphore = windll.GetProcAddress(handle, 'cuImportExternalSemaphore') - {{endif}} - {{if 'cuDestroyExternalSemaphore' in found_functions}} - global __cuDestroyExternalSemaphore - __cuDestroyExternalSemaphore = windll.GetProcAddress(handle, 'cuDestroyExternalSemaphore') - {{endif}} - {{if 'cuFuncGetAttribute' in found_functions}} - global __cuFuncGetAttribute - __cuFuncGetAttribute = windll.GetProcAddress(handle, 'cuFuncGetAttribute') - {{endif}} - {{if 'cuFuncSetAttribute' in found_functions}} - global __cuFuncSetAttribute - __cuFuncSetAttribute = windll.GetProcAddress(handle, 'cuFuncSetAttribute') - {{endif}} - {{if 'cuFuncSetCacheConfig' in found_functions}} - global __cuFuncSetCacheConfig - __cuFuncSetCacheConfig = windll.GetProcAddress(handle, 'cuFuncSetCacheConfig') - {{endif}} - {{if 'cuFuncGetModule' in found_functions}} - global __cuFuncGetModule - __cuFuncGetModule = windll.GetProcAddress(handle, 'cuFuncGetModule') - {{endif}} - {{if 'cuFuncGetName' in found_functions}} - global __cuFuncGetName - __cuFuncGetName = windll.GetProcAddress(handle, 'cuFuncGetName') - {{endif}} - {{if 'cuFuncGetParamInfo' in found_functions}} - global __cuFuncGetParamInfo - __cuFuncGetParamInfo = windll.GetProcAddress(handle, 'cuFuncGetParamInfo') - {{endif}} - {{if 'cuFuncGetParamCount' in found_functions}} - global __cuFuncGetParamCount - __cuFuncGetParamCount = windll.GetProcAddress(handle, 'cuFuncGetParamCount') - {{endif}} - {{if 'cuFuncIsLoaded' in found_functions}} - global __cuFuncIsLoaded - __cuFuncIsLoaded = windll.GetProcAddress(handle, 'cuFuncIsLoaded') - {{endif}} - {{if 'cuFuncLoad' in found_functions}} - global __cuFuncLoad - __cuFuncLoad = windll.GetProcAddress(handle, 'cuFuncLoad') - {{endif}} - {{if 'cuLaunchCooperativeKernelMultiDevice' in found_functions}} - global __cuLaunchCooperativeKernelMultiDevice - __cuLaunchCooperativeKernelMultiDevice = windll.GetProcAddress(handle, 'cuLaunchCooperativeKernelMultiDevice') - {{endif}} - {{if 'cuFuncSetBlockShape' in found_functions}} - global __cuFuncSetBlockShape - __cuFuncSetBlockShape = windll.GetProcAddress(handle, 'cuFuncSetBlockShape') - {{endif}} - {{if 'cuFuncSetSharedSize' in found_functions}} - global __cuFuncSetSharedSize - __cuFuncSetSharedSize = windll.GetProcAddress(handle, 'cuFuncSetSharedSize') - {{endif}} - {{if 'cuParamSetSize' in found_functions}} - global __cuParamSetSize - __cuParamSetSize = windll.GetProcAddress(handle, 'cuParamSetSize') - {{endif}} - {{if 'cuParamSeti' in found_functions}} - global __cuParamSeti - __cuParamSeti = windll.GetProcAddress(handle, 'cuParamSeti') - {{endif}} - {{if 'cuParamSetf' in found_functions}} - global __cuParamSetf - __cuParamSetf = windll.GetProcAddress(handle, 'cuParamSetf') - {{endif}} - {{if 'cuParamSetv' in found_functions}} - global __cuParamSetv - __cuParamSetv = windll.GetProcAddress(handle, 'cuParamSetv') - {{endif}} - {{if 'cuLaunch' in found_functions}} - global __cuLaunch - __cuLaunch = windll.GetProcAddress(handle, 'cuLaunch') - {{endif}} - {{if 'cuLaunchGrid' in found_functions}} - global __cuLaunchGrid - __cuLaunchGrid = windll.GetProcAddress(handle, 'cuLaunchGrid') - {{endif}} - {{if 'cuLaunchGridAsync' in found_functions}} - global __cuLaunchGridAsync - __cuLaunchGridAsync = windll.GetProcAddress(handle, 'cuLaunchGridAsync') - {{endif}} - {{if 'cuParamSetTexRef' in found_functions}} - global __cuParamSetTexRef - __cuParamSetTexRef = windll.GetProcAddress(handle, 'cuParamSetTexRef') - {{endif}} - {{if 'cuFuncSetSharedMemConfig' in found_functions}} - global __cuFuncSetSharedMemConfig - __cuFuncSetSharedMemConfig = windll.GetProcAddress(handle, 'cuFuncSetSharedMemConfig') - {{endif}} - {{if 'cuGraphCreate' in found_functions}} - global __cuGraphCreate - __cuGraphCreate = windll.GetProcAddress(handle, 'cuGraphCreate') - {{endif}} - {{if 'cuGraphAddKernelNode_v2' in found_functions}} - global __cuGraphAddKernelNode_v2 - __cuGraphAddKernelNode_v2 = windll.GetProcAddress(handle, 'cuGraphAddKernelNode_v2') - {{endif}} - {{if 'cuGraphKernelNodeGetParams_v2' in found_functions}} - global __cuGraphKernelNodeGetParams_v2 - __cuGraphKernelNodeGetParams_v2 = windll.GetProcAddress(handle, 'cuGraphKernelNodeGetParams_v2') - {{endif}} - {{if 'cuGraphKernelNodeSetParams_v2' in found_functions}} - global __cuGraphKernelNodeSetParams_v2 - __cuGraphKernelNodeSetParams_v2 = windll.GetProcAddress(handle, 'cuGraphKernelNodeSetParams_v2') - {{endif}} - {{if 'cuGraphAddMemcpyNode' in found_functions}} - global __cuGraphAddMemcpyNode - __cuGraphAddMemcpyNode = windll.GetProcAddress(handle, 'cuGraphAddMemcpyNode') - {{endif}} - {{if 'cuGraphMemcpyNodeGetParams' in found_functions}} - global __cuGraphMemcpyNodeGetParams - __cuGraphMemcpyNodeGetParams = windll.GetProcAddress(handle, 'cuGraphMemcpyNodeGetParams') - {{endif}} - {{if 'cuGraphMemcpyNodeSetParams' in found_functions}} - global __cuGraphMemcpyNodeSetParams - __cuGraphMemcpyNodeSetParams = windll.GetProcAddress(handle, 'cuGraphMemcpyNodeSetParams') - {{endif}} - {{if 'cuGraphAddMemsetNode' in found_functions}} - global __cuGraphAddMemsetNode - __cuGraphAddMemsetNode = windll.GetProcAddress(handle, 'cuGraphAddMemsetNode') - {{endif}} - {{if 'cuGraphMemsetNodeGetParams' in found_functions}} - global __cuGraphMemsetNodeGetParams - __cuGraphMemsetNodeGetParams = windll.GetProcAddress(handle, 'cuGraphMemsetNodeGetParams') - {{endif}} - {{if 'cuGraphMemsetNodeSetParams' in found_functions}} - global __cuGraphMemsetNodeSetParams - __cuGraphMemsetNodeSetParams = windll.GetProcAddress(handle, 'cuGraphMemsetNodeSetParams') - {{endif}} - {{if 'cuGraphAddHostNode' in found_functions}} - global __cuGraphAddHostNode - __cuGraphAddHostNode = windll.GetProcAddress(handle, 'cuGraphAddHostNode') - {{endif}} - {{if 'cuGraphHostNodeGetParams' in found_functions}} - global __cuGraphHostNodeGetParams - __cuGraphHostNodeGetParams = windll.GetProcAddress(handle, 'cuGraphHostNodeGetParams') - {{endif}} - {{if 'cuGraphHostNodeSetParams' in found_functions}} - global __cuGraphHostNodeSetParams - __cuGraphHostNodeSetParams = windll.GetProcAddress(handle, 'cuGraphHostNodeSetParams') - {{endif}} - {{if 'cuGraphAddChildGraphNode' in found_functions}} - global __cuGraphAddChildGraphNode - __cuGraphAddChildGraphNode = windll.GetProcAddress(handle, 'cuGraphAddChildGraphNode') - {{endif}} - {{if 'cuGraphChildGraphNodeGetGraph' in found_functions}} - global __cuGraphChildGraphNodeGetGraph - __cuGraphChildGraphNodeGetGraph = windll.GetProcAddress(handle, 'cuGraphChildGraphNodeGetGraph') - {{endif}} - {{if 'cuGraphAddEmptyNode' in found_functions}} - global __cuGraphAddEmptyNode - __cuGraphAddEmptyNode = windll.GetProcAddress(handle, 'cuGraphAddEmptyNode') - {{endif}} - {{if 'cuGraphAddEventRecordNode' in found_functions}} - global __cuGraphAddEventRecordNode - __cuGraphAddEventRecordNode = windll.GetProcAddress(handle, 'cuGraphAddEventRecordNode') - {{endif}} - {{if 'cuGraphEventRecordNodeGetEvent' in found_functions}} - global __cuGraphEventRecordNodeGetEvent - __cuGraphEventRecordNodeGetEvent = windll.GetProcAddress(handle, 'cuGraphEventRecordNodeGetEvent') - {{endif}} - {{if 'cuGraphEventRecordNodeSetEvent' in found_functions}} - global __cuGraphEventRecordNodeSetEvent - __cuGraphEventRecordNodeSetEvent = windll.GetProcAddress(handle, 'cuGraphEventRecordNodeSetEvent') - {{endif}} - {{if 'cuGraphAddEventWaitNode' in found_functions}} - global __cuGraphAddEventWaitNode - __cuGraphAddEventWaitNode = windll.GetProcAddress(handle, 'cuGraphAddEventWaitNode') - {{endif}} - {{if 'cuGraphEventWaitNodeGetEvent' in found_functions}} - global __cuGraphEventWaitNodeGetEvent - __cuGraphEventWaitNodeGetEvent = windll.GetProcAddress(handle, 'cuGraphEventWaitNodeGetEvent') - {{endif}} - {{if 'cuGraphEventWaitNodeSetEvent' in found_functions}} - global __cuGraphEventWaitNodeSetEvent - __cuGraphEventWaitNodeSetEvent = windll.GetProcAddress(handle, 'cuGraphEventWaitNodeSetEvent') - {{endif}} - {{if 'cuGraphAddExternalSemaphoresSignalNode' in found_functions}} - global __cuGraphAddExternalSemaphoresSignalNode - __cuGraphAddExternalSemaphoresSignalNode = windll.GetProcAddress(handle, 'cuGraphAddExternalSemaphoresSignalNode') - {{endif}} - {{if 'cuGraphExternalSemaphoresSignalNodeGetParams' in found_functions}} - global __cuGraphExternalSemaphoresSignalNodeGetParams - __cuGraphExternalSemaphoresSignalNodeGetParams = windll.GetProcAddress(handle, 'cuGraphExternalSemaphoresSignalNodeGetParams') - {{endif}} - {{if 'cuGraphExternalSemaphoresSignalNodeSetParams' in found_functions}} - global __cuGraphExternalSemaphoresSignalNodeSetParams - __cuGraphExternalSemaphoresSignalNodeSetParams = windll.GetProcAddress(handle, 'cuGraphExternalSemaphoresSignalNodeSetParams') - {{endif}} - {{if 'cuGraphAddExternalSemaphoresWaitNode' in found_functions}} - global __cuGraphAddExternalSemaphoresWaitNode - __cuGraphAddExternalSemaphoresWaitNode = windll.GetProcAddress(handle, 'cuGraphAddExternalSemaphoresWaitNode') - {{endif}} - {{if 'cuGraphExternalSemaphoresWaitNodeGetParams' in found_functions}} - global __cuGraphExternalSemaphoresWaitNodeGetParams - __cuGraphExternalSemaphoresWaitNodeGetParams = windll.GetProcAddress(handle, 'cuGraphExternalSemaphoresWaitNodeGetParams') - {{endif}} - {{if 'cuGraphExternalSemaphoresWaitNodeSetParams' in found_functions}} - global __cuGraphExternalSemaphoresWaitNodeSetParams - __cuGraphExternalSemaphoresWaitNodeSetParams = windll.GetProcAddress(handle, 'cuGraphExternalSemaphoresWaitNodeSetParams') - {{endif}} - {{if 'cuGraphAddBatchMemOpNode' in found_functions}} - global __cuGraphAddBatchMemOpNode - __cuGraphAddBatchMemOpNode = windll.GetProcAddress(handle, 'cuGraphAddBatchMemOpNode') - {{endif}} - {{if 'cuGraphBatchMemOpNodeGetParams' in found_functions}} - global __cuGraphBatchMemOpNodeGetParams - __cuGraphBatchMemOpNodeGetParams = windll.GetProcAddress(handle, 'cuGraphBatchMemOpNodeGetParams') - {{endif}} - {{if 'cuGraphBatchMemOpNodeSetParams' in found_functions}} - global __cuGraphBatchMemOpNodeSetParams - __cuGraphBatchMemOpNodeSetParams = windll.GetProcAddress(handle, 'cuGraphBatchMemOpNodeSetParams') - {{endif}} - {{if 'cuGraphExecBatchMemOpNodeSetParams' in found_functions}} - global __cuGraphExecBatchMemOpNodeSetParams - __cuGraphExecBatchMemOpNodeSetParams = windll.GetProcAddress(handle, 'cuGraphExecBatchMemOpNodeSetParams') - {{endif}} - {{if 'cuGraphAddMemAllocNode' in found_functions}} - global __cuGraphAddMemAllocNode - __cuGraphAddMemAllocNode = windll.GetProcAddress(handle, 'cuGraphAddMemAllocNode') - {{endif}} - {{if 'cuGraphMemAllocNodeGetParams' in found_functions}} - global __cuGraphMemAllocNodeGetParams - __cuGraphMemAllocNodeGetParams = windll.GetProcAddress(handle, 'cuGraphMemAllocNodeGetParams') - {{endif}} - {{if 'cuGraphAddMemFreeNode' in found_functions}} - global __cuGraphAddMemFreeNode - __cuGraphAddMemFreeNode = windll.GetProcAddress(handle, 'cuGraphAddMemFreeNode') - {{endif}} - {{if 'cuGraphMemFreeNodeGetParams' in found_functions}} - global __cuGraphMemFreeNodeGetParams - __cuGraphMemFreeNodeGetParams = windll.GetProcAddress(handle, 'cuGraphMemFreeNodeGetParams') - {{endif}} - {{if 'cuDeviceGraphMemTrim' in found_functions}} - global __cuDeviceGraphMemTrim - __cuDeviceGraphMemTrim = windll.GetProcAddress(handle, 'cuDeviceGraphMemTrim') - {{endif}} - {{if 'cuDeviceGetGraphMemAttribute' in found_functions}} - global __cuDeviceGetGraphMemAttribute - __cuDeviceGetGraphMemAttribute = windll.GetProcAddress(handle, 'cuDeviceGetGraphMemAttribute') - {{endif}} - {{if 'cuDeviceSetGraphMemAttribute' in found_functions}} - global __cuDeviceSetGraphMemAttribute - __cuDeviceSetGraphMemAttribute = windll.GetProcAddress(handle, 'cuDeviceSetGraphMemAttribute') - {{endif}} - {{if 'cuGraphClone' in found_functions}} - global __cuGraphClone - __cuGraphClone = windll.GetProcAddress(handle, 'cuGraphClone') - {{endif}} - {{if 'cuGraphNodeFindInClone' in found_functions}} - global __cuGraphNodeFindInClone - __cuGraphNodeFindInClone = windll.GetProcAddress(handle, 'cuGraphNodeFindInClone') - {{endif}} - {{if 'cuGraphNodeGetType' in found_functions}} - global __cuGraphNodeGetType - __cuGraphNodeGetType = windll.GetProcAddress(handle, 'cuGraphNodeGetType') - {{endif}} - {{if 'cuGraphNodeGetContainingGraph' in found_functions}} - global __cuGraphNodeGetContainingGraph - __cuGraphNodeGetContainingGraph = windll.GetProcAddress(handle, 'cuGraphNodeGetContainingGraph') - {{endif}} - {{if 'cuGraphNodeGetLocalId' in found_functions}} - global __cuGraphNodeGetLocalId - __cuGraphNodeGetLocalId = windll.GetProcAddress(handle, 'cuGraphNodeGetLocalId') - {{endif}} - {{if 'cuGraphNodeGetToolsId' in found_functions}} - global __cuGraphNodeGetToolsId - __cuGraphNodeGetToolsId = windll.GetProcAddress(handle, 'cuGraphNodeGetToolsId') - {{endif}} - {{if 'cuGraphGetId' in found_functions}} - global __cuGraphGetId - __cuGraphGetId = windll.GetProcAddress(handle, 'cuGraphGetId') - {{endif}} - {{if 'cuGraphExecGetId' in found_functions}} - global __cuGraphExecGetId - __cuGraphExecGetId = windll.GetProcAddress(handle, 'cuGraphExecGetId') - {{endif}} - {{if 'cuGraphGetNodes' in found_functions}} - global __cuGraphGetNodes - __cuGraphGetNodes = windll.GetProcAddress(handle, 'cuGraphGetNodes') - {{endif}} - {{if 'cuGraphGetRootNodes' in found_functions}} - global __cuGraphGetRootNodes - __cuGraphGetRootNodes = windll.GetProcAddress(handle, 'cuGraphGetRootNodes') - {{endif}} - {{if 'cuGraphGetEdges_v2' in found_functions}} - global __cuGraphGetEdges_v2 - __cuGraphGetEdges_v2 = windll.GetProcAddress(handle, 'cuGraphGetEdges_v2') - {{endif}} - {{if 'cuGraphNodeGetDependencies_v2' in found_functions}} - global __cuGraphNodeGetDependencies_v2 - __cuGraphNodeGetDependencies_v2 = windll.GetProcAddress(handle, 'cuGraphNodeGetDependencies_v2') - {{endif}} - {{if 'cuGraphNodeGetDependentNodes_v2' in found_functions}} - global __cuGraphNodeGetDependentNodes_v2 - __cuGraphNodeGetDependentNodes_v2 = windll.GetProcAddress(handle, 'cuGraphNodeGetDependentNodes_v2') - {{endif}} - {{if 'cuGraphAddDependencies_v2' in found_functions}} - global __cuGraphAddDependencies_v2 - __cuGraphAddDependencies_v2 = windll.GetProcAddress(handle, 'cuGraphAddDependencies_v2') - {{endif}} - {{if 'cuGraphRemoveDependencies_v2' in found_functions}} - global __cuGraphRemoveDependencies_v2 - __cuGraphRemoveDependencies_v2 = windll.GetProcAddress(handle, 'cuGraphRemoveDependencies_v2') - {{endif}} - {{if 'cuGraphDestroyNode' in found_functions}} - global __cuGraphDestroyNode - __cuGraphDestroyNode = windll.GetProcAddress(handle, 'cuGraphDestroyNode') - {{endif}} - {{if 'cuGraphInstantiateWithFlags' in found_functions}} - global __cuGraphInstantiateWithFlags - __cuGraphInstantiateWithFlags = windll.GetProcAddress(handle, 'cuGraphInstantiateWithFlags') - {{endif}} - {{if 'cuGraphExecGetFlags' in found_functions}} - global __cuGraphExecGetFlags - __cuGraphExecGetFlags = windll.GetProcAddress(handle, 'cuGraphExecGetFlags') - {{endif}} - {{if 'cuGraphExecKernelNodeSetParams_v2' in found_functions}} - global __cuGraphExecKernelNodeSetParams_v2 - __cuGraphExecKernelNodeSetParams_v2 = windll.GetProcAddress(handle, 'cuGraphExecKernelNodeSetParams_v2') - {{endif}} - {{if 'cuGraphExecMemcpyNodeSetParams' in found_functions}} - global __cuGraphExecMemcpyNodeSetParams - __cuGraphExecMemcpyNodeSetParams = windll.GetProcAddress(handle, 'cuGraphExecMemcpyNodeSetParams') - {{endif}} - {{if 'cuGraphExecMemsetNodeSetParams' in found_functions}} - global __cuGraphExecMemsetNodeSetParams - __cuGraphExecMemsetNodeSetParams = windll.GetProcAddress(handle, 'cuGraphExecMemsetNodeSetParams') - {{endif}} - {{if 'cuGraphExecHostNodeSetParams' in found_functions}} - global __cuGraphExecHostNodeSetParams - __cuGraphExecHostNodeSetParams = windll.GetProcAddress(handle, 'cuGraphExecHostNodeSetParams') - {{endif}} - {{if 'cuGraphExecChildGraphNodeSetParams' in found_functions}} - global __cuGraphExecChildGraphNodeSetParams - __cuGraphExecChildGraphNodeSetParams = windll.GetProcAddress(handle, 'cuGraphExecChildGraphNodeSetParams') - {{endif}} - {{if 'cuGraphExecEventRecordNodeSetEvent' in found_functions}} - global __cuGraphExecEventRecordNodeSetEvent - __cuGraphExecEventRecordNodeSetEvent = windll.GetProcAddress(handle, 'cuGraphExecEventRecordNodeSetEvent') - {{endif}} - {{if 'cuGraphExecEventWaitNodeSetEvent' in found_functions}} - global __cuGraphExecEventWaitNodeSetEvent - __cuGraphExecEventWaitNodeSetEvent = windll.GetProcAddress(handle, 'cuGraphExecEventWaitNodeSetEvent') - {{endif}} - {{if 'cuGraphExecExternalSemaphoresSignalNodeSetParams' in found_functions}} - global __cuGraphExecExternalSemaphoresSignalNodeSetParams - __cuGraphExecExternalSemaphoresSignalNodeSetParams = windll.GetProcAddress(handle, 'cuGraphExecExternalSemaphoresSignalNodeSetParams') - {{endif}} - {{if 'cuGraphExecExternalSemaphoresWaitNodeSetParams' in found_functions}} - global __cuGraphExecExternalSemaphoresWaitNodeSetParams - __cuGraphExecExternalSemaphoresWaitNodeSetParams = windll.GetProcAddress(handle, 'cuGraphExecExternalSemaphoresWaitNodeSetParams') - {{endif}} - {{if 'cuGraphNodeSetEnabled' in found_functions}} - global __cuGraphNodeSetEnabled - __cuGraphNodeSetEnabled = windll.GetProcAddress(handle, 'cuGraphNodeSetEnabled') - {{endif}} - {{if 'cuGraphNodeGetEnabled' in found_functions}} - global __cuGraphNodeGetEnabled - __cuGraphNodeGetEnabled = windll.GetProcAddress(handle, 'cuGraphNodeGetEnabled') - {{endif}} - {{if 'cuGraphExecDestroy' in found_functions}} - global __cuGraphExecDestroy - __cuGraphExecDestroy = windll.GetProcAddress(handle, 'cuGraphExecDestroy') - {{endif}} - {{if 'cuGraphDestroy' in found_functions}} - global __cuGraphDestroy - __cuGraphDestroy = windll.GetProcAddress(handle, 'cuGraphDestroy') - {{endif}} - {{if 'cuGraphExecUpdate_v2' in found_functions}} - global __cuGraphExecUpdate_v2 - __cuGraphExecUpdate_v2 = windll.GetProcAddress(handle, 'cuGraphExecUpdate_v2') - {{endif}} - {{if 'cuGraphKernelNodeCopyAttributes' in found_functions}} - global __cuGraphKernelNodeCopyAttributes - __cuGraphKernelNodeCopyAttributes = windll.GetProcAddress(handle, 'cuGraphKernelNodeCopyAttributes') - {{endif}} - {{if 'cuGraphKernelNodeGetAttribute' in found_functions}} - global __cuGraphKernelNodeGetAttribute - __cuGraphKernelNodeGetAttribute = windll.GetProcAddress(handle, 'cuGraphKernelNodeGetAttribute') - {{endif}} - {{if 'cuGraphKernelNodeSetAttribute' in found_functions}} - global __cuGraphKernelNodeSetAttribute - __cuGraphKernelNodeSetAttribute = windll.GetProcAddress(handle, 'cuGraphKernelNodeSetAttribute') - {{endif}} - {{if 'cuGraphDebugDotPrint' in found_functions}} - global __cuGraphDebugDotPrint - __cuGraphDebugDotPrint = windll.GetProcAddress(handle, 'cuGraphDebugDotPrint') - {{endif}} - {{if 'cuUserObjectCreate' in found_functions}} - global __cuUserObjectCreate - __cuUserObjectCreate = windll.GetProcAddress(handle, 'cuUserObjectCreate') - {{endif}} - {{if 'cuUserObjectRetain' in found_functions}} - global __cuUserObjectRetain - __cuUserObjectRetain = windll.GetProcAddress(handle, 'cuUserObjectRetain') - {{endif}} - {{if 'cuUserObjectRelease' in found_functions}} - global __cuUserObjectRelease - __cuUserObjectRelease = windll.GetProcAddress(handle, 'cuUserObjectRelease') - {{endif}} - {{if 'cuGraphRetainUserObject' in found_functions}} - global __cuGraphRetainUserObject - __cuGraphRetainUserObject = windll.GetProcAddress(handle, 'cuGraphRetainUserObject') - {{endif}} - {{if 'cuGraphReleaseUserObject' in found_functions}} - global __cuGraphReleaseUserObject - __cuGraphReleaseUserObject = windll.GetProcAddress(handle, 'cuGraphReleaseUserObject') - {{endif}} - {{if 'cuGraphAddNode_v2' in found_functions}} - global __cuGraphAddNode_v2 - __cuGraphAddNode_v2 = windll.GetProcAddress(handle, 'cuGraphAddNode_v2') - {{endif}} - {{if 'cuGraphNodeSetParams' in found_functions}} - global __cuGraphNodeSetParams - __cuGraphNodeSetParams = windll.GetProcAddress(handle, 'cuGraphNodeSetParams') - {{endif}} - {{if 'cuGraphNodeGetParams' in found_functions}} - global __cuGraphNodeGetParams - __cuGraphNodeGetParams = windll.GetProcAddress(handle, 'cuGraphNodeGetParams') - {{endif}} - {{if 'cuGraphExecNodeSetParams' in found_functions}} - global __cuGraphExecNodeSetParams - __cuGraphExecNodeSetParams = windll.GetProcAddress(handle, 'cuGraphExecNodeSetParams') - {{endif}} - {{if 'cuGraphConditionalHandleCreate' in found_functions}} - global __cuGraphConditionalHandleCreate - __cuGraphConditionalHandleCreate = windll.GetProcAddress(handle, 'cuGraphConditionalHandleCreate') - {{endif}} - {{if 'cuOccupancyMaxActiveBlocksPerMultiprocessor' in found_functions}} - global __cuOccupancyMaxActiveBlocksPerMultiprocessor - __cuOccupancyMaxActiveBlocksPerMultiprocessor = windll.GetProcAddress(handle, 'cuOccupancyMaxActiveBlocksPerMultiprocessor') - {{endif}} - {{if 'cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags' in found_functions}} - global __cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags - __cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags = windll.GetProcAddress(handle, 'cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags') - {{endif}} - {{if 'cuOccupancyMaxPotentialBlockSize' in found_functions}} - global __cuOccupancyMaxPotentialBlockSize - __cuOccupancyMaxPotentialBlockSize = windll.GetProcAddress(handle, 'cuOccupancyMaxPotentialBlockSize') - {{endif}} - {{if 'cuOccupancyMaxPotentialBlockSizeWithFlags' in found_functions}} - global __cuOccupancyMaxPotentialBlockSizeWithFlags - __cuOccupancyMaxPotentialBlockSizeWithFlags = windll.GetProcAddress(handle, 'cuOccupancyMaxPotentialBlockSizeWithFlags') - {{endif}} - {{if 'cuOccupancyAvailableDynamicSMemPerBlock' in found_functions}} - global __cuOccupancyAvailableDynamicSMemPerBlock - __cuOccupancyAvailableDynamicSMemPerBlock = windll.GetProcAddress(handle, 'cuOccupancyAvailableDynamicSMemPerBlock') - {{endif}} - {{if 'cuOccupancyMaxPotentialClusterSize' in found_functions}} - global __cuOccupancyMaxPotentialClusterSize - __cuOccupancyMaxPotentialClusterSize = windll.GetProcAddress(handle, 'cuOccupancyMaxPotentialClusterSize') - {{endif}} - {{if 'cuOccupancyMaxActiveClusters' in found_functions}} - global __cuOccupancyMaxActiveClusters - __cuOccupancyMaxActiveClusters = windll.GetProcAddress(handle, 'cuOccupancyMaxActiveClusters') - {{endif}} - {{if 'cuTexRefSetArray' in found_functions}} - global __cuTexRefSetArray - __cuTexRefSetArray = windll.GetProcAddress(handle, 'cuTexRefSetArray') - {{endif}} - {{if 'cuTexRefSetMipmappedArray' in found_functions}} - global __cuTexRefSetMipmappedArray - __cuTexRefSetMipmappedArray = windll.GetProcAddress(handle, 'cuTexRefSetMipmappedArray') - {{endif}} - {{if 'cuTexRefSetAddress_v2' in found_functions}} - global __cuTexRefSetAddress_v2 - __cuTexRefSetAddress_v2 = windll.GetProcAddress(handle, 'cuTexRefSetAddress_v2') - {{endif}} - {{if 'cuTexRefSetAddress2D_v3' in found_functions}} - global __cuTexRefSetAddress2D_v3 - __cuTexRefSetAddress2D_v3 = windll.GetProcAddress(handle, 'cuTexRefSetAddress2D_v3') - {{endif}} - {{if 'cuTexRefSetFormat' in found_functions}} - global __cuTexRefSetFormat - __cuTexRefSetFormat = windll.GetProcAddress(handle, 'cuTexRefSetFormat') - {{endif}} - {{if 'cuTexRefSetAddressMode' in found_functions}} - global __cuTexRefSetAddressMode - __cuTexRefSetAddressMode = windll.GetProcAddress(handle, 'cuTexRefSetAddressMode') - {{endif}} - {{if 'cuTexRefSetFilterMode' in found_functions}} - global __cuTexRefSetFilterMode - __cuTexRefSetFilterMode = windll.GetProcAddress(handle, 'cuTexRefSetFilterMode') - {{endif}} - {{if 'cuTexRefSetMipmapFilterMode' in found_functions}} - global __cuTexRefSetMipmapFilterMode - __cuTexRefSetMipmapFilterMode = windll.GetProcAddress(handle, 'cuTexRefSetMipmapFilterMode') - {{endif}} - {{if 'cuTexRefSetMipmapLevelBias' in found_functions}} - global __cuTexRefSetMipmapLevelBias - __cuTexRefSetMipmapLevelBias = windll.GetProcAddress(handle, 'cuTexRefSetMipmapLevelBias') - {{endif}} - {{if 'cuTexRefSetMipmapLevelClamp' in found_functions}} - global __cuTexRefSetMipmapLevelClamp - __cuTexRefSetMipmapLevelClamp = windll.GetProcAddress(handle, 'cuTexRefSetMipmapLevelClamp') - {{endif}} - {{if 'cuTexRefSetMaxAnisotropy' in found_functions}} - global __cuTexRefSetMaxAnisotropy - __cuTexRefSetMaxAnisotropy = windll.GetProcAddress(handle, 'cuTexRefSetMaxAnisotropy') - {{endif}} - {{if 'cuTexRefSetBorderColor' in found_functions}} - global __cuTexRefSetBorderColor - __cuTexRefSetBorderColor = windll.GetProcAddress(handle, 'cuTexRefSetBorderColor') - {{endif}} - {{if 'cuTexRefSetFlags' in found_functions}} - global __cuTexRefSetFlags - __cuTexRefSetFlags = windll.GetProcAddress(handle, 'cuTexRefSetFlags') - {{endif}} - {{if 'cuTexRefGetAddress_v2' in found_functions}} - global __cuTexRefGetAddress_v2 - __cuTexRefGetAddress_v2 = windll.GetProcAddress(handle, 'cuTexRefGetAddress_v2') - {{endif}} - {{if 'cuTexRefGetArray' in found_functions}} - global __cuTexRefGetArray - __cuTexRefGetArray = windll.GetProcAddress(handle, 'cuTexRefGetArray') - {{endif}} - {{if 'cuTexRefGetMipmappedArray' in found_functions}} - global __cuTexRefGetMipmappedArray - __cuTexRefGetMipmappedArray = windll.GetProcAddress(handle, 'cuTexRefGetMipmappedArray') - {{endif}} - {{if 'cuTexRefGetAddressMode' in found_functions}} - global __cuTexRefGetAddressMode - __cuTexRefGetAddressMode = windll.GetProcAddress(handle, 'cuTexRefGetAddressMode') - {{endif}} - {{if 'cuTexRefGetFilterMode' in found_functions}} - global __cuTexRefGetFilterMode - __cuTexRefGetFilterMode = windll.GetProcAddress(handle, 'cuTexRefGetFilterMode') - {{endif}} - {{if 'cuTexRefGetFormat' in found_functions}} - global __cuTexRefGetFormat - __cuTexRefGetFormat = windll.GetProcAddress(handle, 'cuTexRefGetFormat') - {{endif}} - {{if 'cuTexRefGetMipmapFilterMode' in found_functions}} - global __cuTexRefGetMipmapFilterMode - __cuTexRefGetMipmapFilterMode = windll.GetProcAddress(handle, 'cuTexRefGetMipmapFilterMode') - {{endif}} - {{if 'cuTexRefGetMipmapLevelBias' in found_functions}} - global __cuTexRefGetMipmapLevelBias - __cuTexRefGetMipmapLevelBias = windll.GetProcAddress(handle, 'cuTexRefGetMipmapLevelBias') - {{endif}} - {{if 'cuTexRefGetMipmapLevelClamp' in found_functions}} - global __cuTexRefGetMipmapLevelClamp - __cuTexRefGetMipmapLevelClamp = windll.GetProcAddress(handle, 'cuTexRefGetMipmapLevelClamp') - {{endif}} - {{if 'cuTexRefGetMaxAnisotropy' in found_functions}} - global __cuTexRefGetMaxAnisotropy - __cuTexRefGetMaxAnisotropy = windll.GetProcAddress(handle, 'cuTexRefGetMaxAnisotropy') - {{endif}} - {{if 'cuTexRefGetBorderColor' in found_functions}} - global __cuTexRefGetBorderColor - __cuTexRefGetBorderColor = windll.GetProcAddress(handle, 'cuTexRefGetBorderColor') - {{endif}} - {{if 'cuTexRefGetFlags' in found_functions}} - global __cuTexRefGetFlags - __cuTexRefGetFlags = windll.GetProcAddress(handle, 'cuTexRefGetFlags') - {{endif}} - {{if 'cuTexRefCreate' in found_functions}} - global __cuTexRefCreate - __cuTexRefCreate = windll.GetProcAddress(handle, 'cuTexRefCreate') - {{endif}} - {{if 'cuTexRefDestroy' in found_functions}} - global __cuTexRefDestroy - __cuTexRefDestroy = windll.GetProcAddress(handle, 'cuTexRefDestroy') - {{endif}} - {{if 'cuSurfRefSetArray' in found_functions}} - global __cuSurfRefSetArray - __cuSurfRefSetArray = windll.GetProcAddress(handle, 'cuSurfRefSetArray') - {{endif}} - {{if 'cuSurfRefGetArray' in found_functions}} - global __cuSurfRefGetArray - __cuSurfRefGetArray = windll.GetProcAddress(handle, 'cuSurfRefGetArray') - {{endif}} - {{if 'cuTexObjectCreate' in found_functions}} - global __cuTexObjectCreate - __cuTexObjectCreate = windll.GetProcAddress(handle, 'cuTexObjectCreate') - {{endif}} - {{if 'cuTexObjectDestroy' in found_functions}} - global __cuTexObjectDestroy - __cuTexObjectDestroy = windll.GetProcAddress(handle, 'cuTexObjectDestroy') - {{endif}} - {{if 'cuTexObjectGetResourceDesc' in found_functions}} - global __cuTexObjectGetResourceDesc - __cuTexObjectGetResourceDesc = windll.GetProcAddress(handle, 'cuTexObjectGetResourceDesc') - {{endif}} - {{if 'cuTexObjectGetTextureDesc' in found_functions}} - global __cuTexObjectGetTextureDesc - __cuTexObjectGetTextureDesc = windll.GetProcAddress(handle, 'cuTexObjectGetTextureDesc') - {{endif}} - {{if 'cuTexObjectGetResourceViewDesc' in found_functions}} - global __cuTexObjectGetResourceViewDesc - __cuTexObjectGetResourceViewDesc = windll.GetProcAddress(handle, 'cuTexObjectGetResourceViewDesc') - {{endif}} - {{if 'cuSurfObjectCreate' in found_functions}} - global __cuSurfObjectCreate - __cuSurfObjectCreate = windll.GetProcAddress(handle, 'cuSurfObjectCreate') - {{endif}} - {{if 'cuSurfObjectDestroy' in found_functions}} - global __cuSurfObjectDestroy - __cuSurfObjectDestroy = windll.GetProcAddress(handle, 'cuSurfObjectDestroy') - {{endif}} - {{if 'cuSurfObjectGetResourceDesc' in found_functions}} - global __cuSurfObjectGetResourceDesc - __cuSurfObjectGetResourceDesc = windll.GetProcAddress(handle, 'cuSurfObjectGetResourceDesc') - {{endif}} - {{if 'cuTensorMapEncodeTiled' in found_functions}} - global __cuTensorMapEncodeTiled - __cuTensorMapEncodeTiled = windll.GetProcAddress(handle, 'cuTensorMapEncodeTiled') - {{endif}} - {{if 'cuTensorMapEncodeIm2col' in found_functions}} - global __cuTensorMapEncodeIm2col - __cuTensorMapEncodeIm2col = windll.GetProcAddress(handle, 'cuTensorMapEncodeIm2col') - {{endif}} - {{if 'cuTensorMapEncodeIm2colWide' in found_functions}} - global __cuTensorMapEncodeIm2colWide - __cuTensorMapEncodeIm2colWide = windll.GetProcAddress(handle, 'cuTensorMapEncodeIm2colWide') - {{endif}} - {{if 'cuTensorMapReplaceAddress' in found_functions}} - global __cuTensorMapReplaceAddress - __cuTensorMapReplaceAddress = windll.GetProcAddress(handle, 'cuTensorMapReplaceAddress') - {{endif}} - {{if 'cuDeviceCanAccessPeer' in found_functions}} - global __cuDeviceCanAccessPeer - __cuDeviceCanAccessPeer = windll.GetProcAddress(handle, 'cuDeviceCanAccessPeer') - {{endif}} - {{if 'cuCtxEnablePeerAccess' in found_functions}} - global __cuCtxEnablePeerAccess - __cuCtxEnablePeerAccess = windll.GetProcAddress(handle, 'cuCtxEnablePeerAccess') - {{endif}} - {{if 'cuCtxDisablePeerAccess' in found_functions}} - global __cuCtxDisablePeerAccess - __cuCtxDisablePeerAccess = windll.GetProcAddress(handle, 'cuCtxDisablePeerAccess') - {{endif}} - {{if 'cuDeviceGetP2PAttribute' in found_functions}} - global __cuDeviceGetP2PAttribute - __cuDeviceGetP2PAttribute = windll.GetProcAddress(handle, 'cuDeviceGetP2PAttribute') - {{endif}} - {{if 'cuDeviceGetP2PAtomicCapabilities' in found_functions}} - global __cuDeviceGetP2PAtomicCapabilities - __cuDeviceGetP2PAtomicCapabilities = windll.GetProcAddress(handle, 'cuDeviceGetP2PAtomicCapabilities') - {{endif}} - {{if 'cuGraphicsUnregisterResource' in found_functions}} - global __cuGraphicsUnregisterResource - __cuGraphicsUnregisterResource = windll.GetProcAddress(handle, 'cuGraphicsUnregisterResource') - {{endif}} - {{if 'cuGraphicsSubResourceGetMappedArray' in found_functions}} - global __cuGraphicsSubResourceGetMappedArray - __cuGraphicsSubResourceGetMappedArray = windll.GetProcAddress(handle, 'cuGraphicsSubResourceGetMappedArray') - {{endif}} - {{if 'cuGraphicsResourceGetMappedMipmappedArray' in found_functions}} - global __cuGraphicsResourceGetMappedMipmappedArray - __cuGraphicsResourceGetMappedMipmappedArray = windll.GetProcAddress(handle, 'cuGraphicsResourceGetMappedMipmappedArray') - {{endif}} - {{if 'cuGraphicsResourceGetMappedPointer_v2' in found_functions}} - global __cuGraphicsResourceGetMappedPointer_v2 - __cuGraphicsResourceGetMappedPointer_v2 = windll.GetProcAddress(handle, 'cuGraphicsResourceGetMappedPointer_v2') - {{endif}} - {{if 'cuGraphicsResourceSetMapFlags_v2' in found_functions}} - global __cuGraphicsResourceSetMapFlags_v2 - __cuGraphicsResourceSetMapFlags_v2 = windll.GetProcAddress(handle, 'cuGraphicsResourceSetMapFlags_v2') - {{endif}} - {{if 'cuGetProcAddress_v2' in found_functions}} - global __cuGetProcAddress_v2 - __cuGetProcAddress_v2 = windll.GetProcAddress(handle, 'cuGetProcAddress_v2') - {{endif}} - {{if 'cuCoredumpGetAttribute' in found_functions}} - global __cuCoredumpGetAttribute - __cuCoredumpGetAttribute = windll.GetProcAddress(handle, 'cuCoredumpGetAttribute') - {{endif}} - {{if 'cuCoredumpGetAttributeGlobal' in found_functions}} - global __cuCoredumpGetAttributeGlobal - __cuCoredumpGetAttributeGlobal = windll.GetProcAddress(handle, 'cuCoredumpGetAttributeGlobal') - {{endif}} - {{if 'cuCoredumpSetAttribute' in found_functions}} - global __cuCoredumpSetAttribute - __cuCoredumpSetAttribute = windll.GetProcAddress(handle, 'cuCoredumpSetAttribute') - {{endif}} - {{if 'cuCoredumpSetAttributeGlobal' in found_functions}} - global __cuCoredumpSetAttributeGlobal - __cuCoredumpSetAttributeGlobal = windll.GetProcAddress(handle, 'cuCoredumpSetAttributeGlobal') - {{endif}} - {{if 'cuCoredumpRegisterStartCallback' in found_functions}} - global __cuCoredumpRegisterStartCallback - __cuCoredumpRegisterStartCallback = windll.GetProcAddress(handle, 'cuCoredumpRegisterStartCallback') - {{endif}} - {{if 'cuCoredumpRegisterCompleteCallback' in found_functions}} - global __cuCoredumpRegisterCompleteCallback - __cuCoredumpRegisterCompleteCallback = windll.GetProcAddress(handle, 'cuCoredumpRegisterCompleteCallback') - {{endif}} - {{if 'cuCoredumpDeregisterStartCallback' in found_functions}} - global __cuCoredumpDeregisterStartCallback - __cuCoredumpDeregisterStartCallback = windll.GetProcAddress(handle, 'cuCoredumpDeregisterStartCallback') - {{endif}} - {{if 'cuCoredumpDeregisterCompleteCallback' in found_functions}} - global __cuCoredumpDeregisterCompleteCallback - __cuCoredumpDeregisterCompleteCallback = windll.GetProcAddress(handle, 'cuCoredumpDeregisterCompleteCallback') - {{endif}} - {{if 'cuGetExportTable' in found_functions}} - global __cuGetExportTable - __cuGetExportTable = windll.GetProcAddress(handle, 'cuGetExportTable') - {{endif}} - {{if 'cuGreenCtxCreate' in found_functions}} - global __cuGreenCtxCreate - __cuGreenCtxCreate = windll.GetProcAddress(handle, 'cuGreenCtxCreate') - {{endif}} - {{if 'cuGreenCtxDestroy' in found_functions}} - global __cuGreenCtxDestroy - __cuGreenCtxDestroy = windll.GetProcAddress(handle, 'cuGreenCtxDestroy') - {{endif}} - {{if 'cuCtxFromGreenCtx' in found_functions}} - global __cuCtxFromGreenCtx - __cuCtxFromGreenCtx = windll.GetProcAddress(handle, 'cuCtxFromGreenCtx') - {{endif}} - {{if 'cuDeviceGetDevResource' in found_functions}} - global __cuDeviceGetDevResource - __cuDeviceGetDevResource = windll.GetProcAddress(handle, 'cuDeviceGetDevResource') - {{endif}} - {{if 'cuCtxGetDevResource' in found_functions}} - global __cuCtxGetDevResource - __cuCtxGetDevResource = windll.GetProcAddress(handle, 'cuCtxGetDevResource') - {{endif}} - {{if 'cuGreenCtxGetDevResource' in found_functions}} - global __cuGreenCtxGetDevResource - __cuGreenCtxGetDevResource = windll.GetProcAddress(handle, 'cuGreenCtxGetDevResource') - {{endif}} - {{if 'cuDevSmResourceSplitByCount' in found_functions}} - global __cuDevSmResourceSplitByCount - __cuDevSmResourceSplitByCount = windll.GetProcAddress(handle, 'cuDevSmResourceSplitByCount') - {{endif}} - {{if 'cuDevSmResourceSplit' in found_functions}} - global __cuDevSmResourceSplit - __cuDevSmResourceSplit = windll.GetProcAddress(handle, 'cuDevSmResourceSplit') - {{endif}} - {{if 'cuDevResourceGenerateDesc' in found_functions}} - global __cuDevResourceGenerateDesc - __cuDevResourceGenerateDesc = windll.GetProcAddress(handle, 'cuDevResourceGenerateDesc') - {{endif}} - {{if 'cuGreenCtxRecordEvent' in found_functions}} - global __cuGreenCtxRecordEvent - __cuGreenCtxRecordEvent = windll.GetProcAddress(handle, 'cuGreenCtxRecordEvent') - {{endif}} - {{if 'cuGreenCtxWaitEvent' in found_functions}} - global __cuGreenCtxWaitEvent - __cuGreenCtxWaitEvent = windll.GetProcAddress(handle, 'cuGreenCtxWaitEvent') - {{endif}} - {{if 'cuStreamGetGreenCtx' in found_functions}} - global __cuStreamGetGreenCtx - __cuStreamGetGreenCtx = windll.GetProcAddress(handle, 'cuStreamGetGreenCtx') - {{endif}} - {{if 'cuGreenCtxStreamCreate' in found_functions}} - global __cuGreenCtxStreamCreate - __cuGreenCtxStreamCreate = windll.GetProcAddress(handle, 'cuGreenCtxStreamCreate') - {{endif}} - {{if 'cuGreenCtxGetId' in found_functions}} - global __cuGreenCtxGetId - __cuGreenCtxGetId = windll.GetProcAddress(handle, 'cuGreenCtxGetId') - {{endif}} - {{if 'cuLogsRegisterCallback' in found_functions}} - global __cuLogsRegisterCallback - __cuLogsRegisterCallback = windll.GetProcAddress(handle, 'cuLogsRegisterCallback') - {{endif}} - {{if 'cuLogsUnregisterCallback' in found_functions}} - global __cuLogsUnregisterCallback - __cuLogsUnregisterCallback = windll.GetProcAddress(handle, 'cuLogsUnregisterCallback') - {{endif}} - {{if 'cuLogsCurrent' in found_functions}} - global __cuLogsCurrent - __cuLogsCurrent = windll.GetProcAddress(handle, 'cuLogsCurrent') - {{endif}} - {{if 'cuLogsDumpToFile' in found_functions}} - global __cuLogsDumpToFile - __cuLogsDumpToFile = windll.GetProcAddress(handle, 'cuLogsDumpToFile') - {{endif}} - {{if 'cuLogsDumpToMemory' in found_functions}} - global __cuLogsDumpToMemory - __cuLogsDumpToMemory = windll.GetProcAddress(handle, 'cuLogsDumpToMemory') - {{endif}} - {{if 'cuCheckpointProcessGetRestoreThreadId' in found_functions}} - global __cuCheckpointProcessGetRestoreThreadId - __cuCheckpointProcessGetRestoreThreadId = windll.GetProcAddress(handle, 'cuCheckpointProcessGetRestoreThreadId') - {{endif}} - {{if 'cuCheckpointProcessGetState' in found_functions}} - global __cuCheckpointProcessGetState - __cuCheckpointProcessGetState = windll.GetProcAddress(handle, 'cuCheckpointProcessGetState') - {{endif}} - {{if 'cuCheckpointProcessLock' in found_functions}} - global __cuCheckpointProcessLock - __cuCheckpointProcessLock = windll.GetProcAddress(handle, 'cuCheckpointProcessLock') - {{endif}} - {{if 'cuCheckpointProcessCheckpoint' in found_functions}} - global __cuCheckpointProcessCheckpoint - __cuCheckpointProcessCheckpoint = windll.GetProcAddress(handle, 'cuCheckpointProcessCheckpoint') - {{endif}} - {{if 'cuCheckpointProcessRestore' in found_functions}} - global __cuCheckpointProcessRestore - __cuCheckpointProcessRestore = windll.GetProcAddress(handle, 'cuCheckpointProcessRestore') - {{endif}} - {{if 'cuCheckpointProcessUnlock' in found_functions}} - global __cuCheckpointProcessUnlock - __cuCheckpointProcessUnlock = windll.GetProcAddress(handle, 'cuCheckpointProcessUnlock') - {{endif}} - {{if 'cuProfilerStart' in found_functions}} - global __cuProfilerStart - __cuProfilerStart = windll.GetProcAddress(handle, 'cuProfilerStart') - {{endif}} - {{if 'cuProfilerStop' in found_functions}} - global __cuProfilerStop - __cuProfilerStop = windll.GetProcAddress(handle, 'cuProfilerStop') - {{endif}} - {{if True}} - global __cuGraphicsEGLRegisterImage - __cuGraphicsEGLRegisterImage = windll.GetProcAddress(handle, 'cuGraphicsEGLRegisterImage') - {{endif}} - {{if True}} - global __cuEGLStreamConsumerConnect - __cuEGLStreamConsumerConnect = windll.GetProcAddress(handle, 'cuEGLStreamConsumerConnect') - {{endif}} - {{if True}} - global __cuEGLStreamConsumerConnectWithFlags - __cuEGLStreamConsumerConnectWithFlags = windll.GetProcAddress(handle, 'cuEGLStreamConsumerConnectWithFlags') - {{endif}} - {{if True}} - global __cuEGLStreamConsumerDisconnect - __cuEGLStreamConsumerDisconnect = windll.GetProcAddress(handle, 'cuEGLStreamConsumerDisconnect') - {{endif}} - {{if True}} - global __cuEGLStreamConsumerAcquireFrame - __cuEGLStreamConsumerAcquireFrame = windll.GetProcAddress(handle, 'cuEGLStreamConsumerAcquireFrame') - {{endif}} - {{if True}} - global __cuEGLStreamConsumerReleaseFrame - __cuEGLStreamConsumerReleaseFrame = windll.GetProcAddress(handle, 'cuEGLStreamConsumerReleaseFrame') - {{endif}} - {{if True}} - global __cuEGLStreamProducerConnect - __cuEGLStreamProducerConnect = windll.GetProcAddress(handle, 'cuEGLStreamProducerConnect') - {{endif}} - {{if True}} - global __cuEGLStreamProducerDisconnect - __cuEGLStreamProducerDisconnect = windll.GetProcAddress(handle, 'cuEGLStreamProducerDisconnect') - {{endif}} - {{if True}} - global __cuEGLStreamProducerPresentFrame - __cuEGLStreamProducerPresentFrame = windll.GetProcAddress(handle, 'cuEGLStreamProducerPresentFrame') - {{endif}} - {{if True}} - global __cuEGLStreamProducerReturnFrame - __cuEGLStreamProducerReturnFrame = windll.GetProcAddress(handle, 'cuEGLStreamProducerReturnFrame') - {{endif}} - {{if True}} - global __cuGraphicsResourceGetMappedEglFrame - __cuGraphicsResourceGetMappedEglFrame = windll.GetProcAddress(handle, 'cuGraphicsResourceGetMappedEglFrame') - {{endif}} - {{if True}} - global __cuEventCreateFromEGLSync - __cuEventCreateFromEGLSync = windll.GetProcAddress(handle, 'cuEventCreateFromEGLSync') - {{endif}} - {{if True}} - global __cuGraphicsGLRegisterBuffer - __cuGraphicsGLRegisterBuffer = windll.GetProcAddress(handle, 'cuGraphicsGLRegisterBuffer') - {{endif}} - {{if True}} - global __cuGraphicsGLRegisterImage - __cuGraphicsGLRegisterImage = windll.GetProcAddress(handle, 'cuGraphicsGLRegisterImage') - {{endif}} - {{if True}} - global __cuGLGetDevices_v2 - __cuGLGetDevices_v2 = windll.GetProcAddress(handle, 'cuGLGetDevices_v2') - {{endif}} - {{if True}} - global __cuVDPAUGetDevice - __cuVDPAUGetDevice = windll.GetProcAddress(handle, 'cuVDPAUGetDevice') - {{endif}} - {{if True}} - global __cuVDPAUCtxCreate_v2 - __cuVDPAUCtxCreate_v2 = windll.GetProcAddress(handle, 'cuVDPAUCtxCreate_v2') - {{endif}} - {{if True}} - global __cuGraphicsVDPAURegisterVideoSurface - __cuGraphicsVDPAURegisterVideoSurface = windll.GetProcAddress(handle, 'cuGraphicsVDPAURegisterVideoSurface') - {{endif}} - {{if True}} - global __cuGraphicsVDPAURegisterOutputSurface - __cuGraphicsVDPAURegisterOutputSurface = windll.GetProcAddress(handle, 'cuGraphicsVDPAURegisterOutputSurface') - {{endif}} - {{else}} - # Load using dlsym - if usePTDS: - # Get all PTDS version of functions - pass - {{if 'cuMemcpy' in found_functions}} - global __cuMemcpy - __cuMemcpy = dlfcn.dlsym(handle, 'cuMemcpy_ptds') - {{endif}} - {{if 'cuMemcpyPeer' in found_functions}} - global __cuMemcpyPeer - __cuMemcpyPeer = dlfcn.dlsym(handle, 'cuMemcpyPeer_ptds') - {{endif}} - {{if 'cuMemcpyHtoD_v2' in found_functions}} - global __cuMemcpyHtoD_v2 - __cuMemcpyHtoD_v2 = dlfcn.dlsym(handle, 'cuMemcpyHtoD_v2_ptds') - {{endif}} - {{if 'cuMemcpyDtoH_v2' in found_functions}} - global __cuMemcpyDtoH_v2 - __cuMemcpyDtoH_v2 = dlfcn.dlsym(handle, 'cuMemcpyDtoH_v2_ptds') - {{endif}} - {{if 'cuMemcpyDtoD_v2' in found_functions}} - global __cuMemcpyDtoD_v2 - __cuMemcpyDtoD_v2 = dlfcn.dlsym(handle, 'cuMemcpyDtoD_v2_ptds') - {{endif}} - {{if 'cuMemcpyDtoA_v2' in found_functions}} - global __cuMemcpyDtoA_v2 - __cuMemcpyDtoA_v2 = dlfcn.dlsym(handle, 'cuMemcpyDtoA_v2_ptds') - {{endif}} - {{if 'cuMemcpyAtoD_v2' in found_functions}} - global __cuMemcpyAtoD_v2 - __cuMemcpyAtoD_v2 = dlfcn.dlsym(handle, 'cuMemcpyAtoD_v2_ptds') - {{endif}} - {{if 'cuMemcpyHtoA_v2' in found_functions}} - global __cuMemcpyHtoA_v2 - __cuMemcpyHtoA_v2 = dlfcn.dlsym(handle, 'cuMemcpyHtoA_v2_ptds') - {{endif}} - {{if 'cuMemcpyAtoH_v2' in found_functions}} - global __cuMemcpyAtoH_v2 - __cuMemcpyAtoH_v2 = dlfcn.dlsym(handle, 'cuMemcpyAtoH_v2_ptds') - {{endif}} - {{if 'cuMemcpyAtoA_v2' in found_functions}} - global __cuMemcpyAtoA_v2 - __cuMemcpyAtoA_v2 = dlfcn.dlsym(handle, 'cuMemcpyAtoA_v2_ptds') - {{endif}} - {{if 'cuMemcpy2D_v2' in found_functions}} - global __cuMemcpy2D_v2 - __cuMemcpy2D_v2 = dlfcn.dlsym(handle, 'cuMemcpy2D_v2_ptds') - {{endif}} - {{if 'cuMemcpy2DUnaligned_v2' in found_functions}} - global __cuMemcpy2DUnaligned_v2 - __cuMemcpy2DUnaligned_v2 = dlfcn.dlsym(handle, 'cuMemcpy2DUnaligned_v2_ptds') - {{endif}} - {{if 'cuMemcpy3D_v2' in found_functions}} - global __cuMemcpy3D_v2 - __cuMemcpy3D_v2 = dlfcn.dlsym(handle, 'cuMemcpy3D_v2_ptds') - {{endif}} - {{if 'cuMemcpy3DPeer' in found_functions}} - global __cuMemcpy3DPeer - __cuMemcpy3DPeer = dlfcn.dlsym(handle, 'cuMemcpy3DPeer_ptds') - {{endif}} - {{if 'cuMemcpyAsync' in found_functions}} - global __cuMemcpyAsync - __cuMemcpyAsync = dlfcn.dlsym(handle, 'cuMemcpyAsync_ptsz') - {{endif}} - {{if 'cuMemcpyPeerAsync' in found_functions}} - global __cuMemcpyPeerAsync - __cuMemcpyPeerAsync = dlfcn.dlsym(handle, 'cuMemcpyPeerAsync_ptsz') - {{endif}} - {{if 'cuMemcpyHtoDAsync_v2' in found_functions}} - global __cuMemcpyHtoDAsync_v2 - __cuMemcpyHtoDAsync_v2 = dlfcn.dlsym(handle, 'cuMemcpyHtoDAsync_v2_ptsz') - {{endif}} - {{if 'cuMemcpyDtoHAsync_v2' in found_functions}} - global __cuMemcpyDtoHAsync_v2 - __cuMemcpyDtoHAsync_v2 = dlfcn.dlsym(handle, 'cuMemcpyDtoHAsync_v2_ptsz') - {{endif}} - {{if 'cuMemcpyDtoDAsync_v2' in found_functions}} - global __cuMemcpyDtoDAsync_v2 - __cuMemcpyDtoDAsync_v2 = dlfcn.dlsym(handle, 'cuMemcpyDtoDAsync_v2_ptsz') - {{endif}} - {{if 'cuMemcpyHtoAAsync_v2' in found_functions}} - global __cuMemcpyHtoAAsync_v2 - __cuMemcpyHtoAAsync_v2 = dlfcn.dlsym(handle, 'cuMemcpyHtoAAsync_v2_ptsz') - {{endif}} - {{if 'cuMemcpyAtoHAsync_v2' in found_functions}} - global __cuMemcpyAtoHAsync_v2 - __cuMemcpyAtoHAsync_v2 = dlfcn.dlsym(handle, 'cuMemcpyAtoHAsync_v2_ptsz') - {{endif}} - {{if 'cuMemcpy2DAsync_v2' in found_functions}} - global __cuMemcpy2DAsync_v2 - __cuMemcpy2DAsync_v2 = dlfcn.dlsym(handle, 'cuMemcpy2DAsync_v2_ptsz') - {{endif}} - {{if 'cuMemcpy3DAsync_v2' in found_functions}} - global __cuMemcpy3DAsync_v2 - __cuMemcpy3DAsync_v2 = dlfcn.dlsym(handle, 'cuMemcpy3DAsync_v2_ptsz') - {{endif}} - {{if 'cuMemcpy3DPeerAsync' in found_functions}} - global __cuMemcpy3DPeerAsync - __cuMemcpy3DPeerAsync = dlfcn.dlsym(handle, 'cuMemcpy3DPeerAsync_ptsz') - {{endif}} - {{if 'cuMemcpyBatchAsync_v2' in found_functions}} - global __cuMemcpyBatchAsync_v2 - __cuMemcpyBatchAsync_v2 = dlfcn.dlsym(handle, 'cuMemcpyBatchAsync_v2_ptsz') - {{endif}} - {{if 'cuMemcpy3DBatchAsync_v2' in found_functions}} - global __cuMemcpy3DBatchAsync_v2 - __cuMemcpy3DBatchAsync_v2 = dlfcn.dlsym(handle, 'cuMemcpy3DBatchAsync_v2_ptsz') - {{endif}} - {{if 'cuMemcpyWithAttributesAsync' in found_functions}} - global __cuMemcpyWithAttributesAsync - __cuMemcpyWithAttributesAsync = dlfcn.dlsym(handle, 'cuMemcpyWithAttributesAsync_ptsz') - {{endif}} - {{if 'cuMemcpy3DWithAttributesAsync' in found_functions}} - global __cuMemcpy3DWithAttributesAsync - __cuMemcpy3DWithAttributesAsync = dlfcn.dlsym(handle, 'cuMemcpy3DWithAttributesAsync_ptsz') - {{endif}} - {{if 'cuMemsetD8_v2' in found_functions}} - global __cuMemsetD8_v2 - __cuMemsetD8_v2 = dlfcn.dlsym(handle, 'cuMemsetD8_v2_ptds') - {{endif}} - {{if 'cuMemsetD16_v2' in found_functions}} - global __cuMemsetD16_v2 - __cuMemsetD16_v2 = dlfcn.dlsym(handle, 'cuMemsetD16_v2_ptds') - {{endif}} - {{if 'cuMemsetD32_v2' in found_functions}} - global __cuMemsetD32_v2 - __cuMemsetD32_v2 = dlfcn.dlsym(handle, 'cuMemsetD32_v2_ptds') - {{endif}} - {{if 'cuMemsetD2D8_v2' in found_functions}} - global __cuMemsetD2D8_v2 - __cuMemsetD2D8_v2 = dlfcn.dlsym(handle, 'cuMemsetD2D8_v2_ptds') - {{endif}} - {{if 'cuMemsetD2D16_v2' in found_functions}} - global __cuMemsetD2D16_v2 - __cuMemsetD2D16_v2 = dlfcn.dlsym(handle, 'cuMemsetD2D16_v2_ptds') - {{endif}} - {{if 'cuMemsetD2D32_v2' in found_functions}} - global __cuMemsetD2D32_v2 - __cuMemsetD2D32_v2 = dlfcn.dlsym(handle, 'cuMemsetD2D32_v2_ptds') - {{endif}} - {{if 'cuMemsetD8Async' in found_functions}} - global __cuMemsetD8Async - __cuMemsetD8Async = dlfcn.dlsym(handle, 'cuMemsetD8Async_ptsz') - {{endif}} - {{if 'cuMemsetD16Async' in found_functions}} - global __cuMemsetD16Async - __cuMemsetD16Async = dlfcn.dlsym(handle, 'cuMemsetD16Async_ptsz') - {{endif}} - {{if 'cuMemsetD32Async' in found_functions}} - global __cuMemsetD32Async - __cuMemsetD32Async = dlfcn.dlsym(handle, 'cuMemsetD32Async_ptsz') - {{endif}} - {{if 'cuMemsetD2D8Async' in found_functions}} - global __cuMemsetD2D8Async - __cuMemsetD2D8Async = dlfcn.dlsym(handle, 'cuMemsetD2D8Async_ptsz') - {{endif}} - {{if 'cuMemsetD2D16Async' in found_functions}} - global __cuMemsetD2D16Async - __cuMemsetD2D16Async = dlfcn.dlsym(handle, 'cuMemsetD2D16Async_ptsz') - {{endif}} - {{if 'cuMemsetD2D32Async' in found_functions}} - global __cuMemsetD2D32Async - __cuMemsetD2D32Async = dlfcn.dlsym(handle, 'cuMemsetD2D32Async_ptsz') - {{endif}} - {{if 'cuMemBatchDecompressAsync' in found_functions}} - global __cuMemBatchDecompressAsync - __cuMemBatchDecompressAsync = dlfcn.dlsym(handle, 'cuMemBatchDecompressAsync_ptsz') - {{endif}} - {{if 'cuMemMapArrayAsync' in found_functions}} - global __cuMemMapArrayAsync - __cuMemMapArrayAsync = dlfcn.dlsym(handle, 'cuMemMapArrayAsync_ptsz') - {{endif}} - {{if 'cuMemFreeAsync' in found_functions}} - global __cuMemFreeAsync - __cuMemFreeAsync = dlfcn.dlsym(handle, 'cuMemFreeAsync_ptsz') - {{endif}} - {{if 'cuMemAllocAsync' in found_functions}} - global __cuMemAllocAsync - __cuMemAllocAsync = dlfcn.dlsym(handle, 'cuMemAllocAsync_ptsz') - {{endif}} - {{if 'cuMemAllocFromPoolAsync' in found_functions}} - global __cuMemAllocFromPoolAsync - __cuMemAllocFromPoolAsync = dlfcn.dlsym(handle, 'cuMemAllocFromPoolAsync_ptsz') - {{endif}} - {{if 'cuMemPrefetchAsync_v2' in found_functions}} - global __cuMemPrefetchAsync_v2 - __cuMemPrefetchAsync_v2 = dlfcn.dlsym(handle, 'cuMemPrefetchAsync_v2_ptsz') - {{endif}} - {{if 'cuMemPrefetchBatchAsync' in found_functions}} - global __cuMemPrefetchBatchAsync - __cuMemPrefetchBatchAsync = dlfcn.dlsym(handle, 'cuMemPrefetchBatchAsync_ptsz') - {{endif}} - {{if 'cuMemDiscardBatchAsync' in found_functions}} - global __cuMemDiscardBatchAsync - __cuMemDiscardBatchAsync = dlfcn.dlsym(handle, 'cuMemDiscardBatchAsync_ptsz') - {{endif}} - {{if 'cuMemDiscardAndPrefetchBatchAsync' in found_functions}} - global __cuMemDiscardAndPrefetchBatchAsync - __cuMemDiscardAndPrefetchBatchAsync = dlfcn.dlsym(handle, 'cuMemDiscardAndPrefetchBatchAsync_ptsz') - {{endif}} - {{if 'cuStreamBeginCaptureToCig' in found_functions}} - global __cuStreamBeginCaptureToCig - __cuStreamBeginCaptureToCig = dlfcn.dlsym(handle, 'cuStreamBeginCaptureToCig_ptsz') - {{endif}} - {{if 'cuStreamEndCaptureToCig' in found_functions}} - global __cuStreamEndCaptureToCig - __cuStreamEndCaptureToCig = dlfcn.dlsym(handle, 'cuStreamEndCaptureToCig_ptsz') - {{endif}} - {{if 'cuStreamGetPriority' in found_functions}} - global __cuStreamGetPriority - __cuStreamGetPriority = dlfcn.dlsym(handle, 'cuStreamGetPriority_ptsz') - {{endif}} - {{if 'cuStreamGetDevice' in found_functions}} - global __cuStreamGetDevice - __cuStreamGetDevice = dlfcn.dlsym(handle, 'cuStreamGetDevice_ptsz') - {{endif}} - {{if 'cuStreamGetFlags' in found_functions}} - global __cuStreamGetFlags - __cuStreamGetFlags = dlfcn.dlsym(handle, 'cuStreamGetFlags_ptsz') - {{endif}} - {{if 'cuStreamGetId' in found_functions}} - global __cuStreamGetId - __cuStreamGetId = dlfcn.dlsym(handle, 'cuStreamGetId_ptsz') - {{endif}} - {{if 'cuStreamGetCtx' in found_functions}} - global __cuStreamGetCtx - __cuStreamGetCtx = dlfcn.dlsym(handle, 'cuStreamGetCtx_ptsz') - {{endif}} - {{if 'cuStreamGetCtx_v2' in found_functions}} - global __cuStreamGetCtx_v2 - __cuStreamGetCtx_v2 = dlfcn.dlsym(handle, 'cuStreamGetCtx_v2_ptsz') - {{endif}} - {{if 'cuStreamWaitEvent' in found_functions}} - global __cuStreamWaitEvent - __cuStreamWaitEvent = dlfcn.dlsym(handle, 'cuStreamWaitEvent_ptsz') - {{endif}} - {{if 'cuStreamAddCallback' in found_functions}} - global __cuStreamAddCallback - __cuStreamAddCallback = dlfcn.dlsym(handle, 'cuStreamAddCallback_ptsz') - {{endif}} - {{if 'cuStreamBeginCapture_v2' in found_functions}} - global __cuStreamBeginCapture_v2 - __cuStreamBeginCapture_v2 = dlfcn.dlsym(handle, 'cuStreamBeginCapture_v2_ptsz') - {{endif}} - {{if 'cuStreamBeginCaptureToGraph' in found_functions}} - global __cuStreamBeginCaptureToGraph - __cuStreamBeginCaptureToGraph = dlfcn.dlsym(handle, 'cuStreamBeginCaptureToGraph_ptsz') - {{endif}} - {{if 'cuStreamEndCapture' in found_functions}} - global __cuStreamEndCapture - __cuStreamEndCapture = dlfcn.dlsym(handle, 'cuStreamEndCapture_ptsz') - {{endif}} - {{if 'cuStreamIsCapturing' in found_functions}} - global __cuStreamIsCapturing - __cuStreamIsCapturing = dlfcn.dlsym(handle, 'cuStreamIsCapturing_ptsz') - {{endif}} - {{if 'cuStreamGetCaptureInfo_v3' in found_functions}} - global __cuStreamGetCaptureInfo_v3 - __cuStreamGetCaptureInfo_v3 = dlfcn.dlsym(handle, 'cuStreamGetCaptureInfo_v3_ptsz') - {{endif}} - {{if 'cuStreamUpdateCaptureDependencies_v2' in found_functions}} - global __cuStreamUpdateCaptureDependencies_v2 - __cuStreamUpdateCaptureDependencies_v2 = dlfcn.dlsym(handle, 'cuStreamUpdateCaptureDependencies_v2_ptsz') - {{endif}} - {{if 'cuStreamAttachMemAsync' in found_functions}} - global __cuStreamAttachMemAsync - __cuStreamAttachMemAsync = dlfcn.dlsym(handle, 'cuStreamAttachMemAsync_ptsz') - {{endif}} - {{if 'cuStreamQuery' in found_functions}} - global __cuStreamQuery - __cuStreamQuery = dlfcn.dlsym(handle, 'cuStreamQuery_ptsz') - {{endif}} - {{if 'cuStreamSynchronize' in found_functions}} - global __cuStreamSynchronize - __cuStreamSynchronize = dlfcn.dlsym(handle, 'cuStreamSynchronize_ptsz') - {{endif}} - {{if 'cuStreamCopyAttributes' in found_functions}} - global __cuStreamCopyAttributes - __cuStreamCopyAttributes = dlfcn.dlsym(handle, 'cuStreamCopyAttributes_ptsz') - {{endif}} - {{if 'cuStreamGetAttribute' in found_functions}} - global __cuStreamGetAttribute - __cuStreamGetAttribute = dlfcn.dlsym(handle, 'cuStreamGetAttribute_ptsz') - {{endif}} - {{if 'cuStreamSetAttribute' in found_functions}} - global __cuStreamSetAttribute - __cuStreamSetAttribute = dlfcn.dlsym(handle, 'cuStreamSetAttribute_ptsz') - {{endif}} - {{if 'cuEventRecord' in found_functions}} - global __cuEventRecord - __cuEventRecord = dlfcn.dlsym(handle, 'cuEventRecord_ptsz') - {{endif}} - {{if 'cuEventRecordWithFlags' in found_functions}} - global __cuEventRecordWithFlags - __cuEventRecordWithFlags = dlfcn.dlsym(handle, 'cuEventRecordWithFlags_ptsz') - {{endif}} - {{if 'cuSignalExternalSemaphoresAsync' in found_functions}} - global __cuSignalExternalSemaphoresAsync - __cuSignalExternalSemaphoresAsync = dlfcn.dlsym(handle, 'cuSignalExternalSemaphoresAsync_ptsz') - {{endif}} - {{if 'cuWaitExternalSemaphoresAsync' in found_functions}} - global __cuWaitExternalSemaphoresAsync - __cuWaitExternalSemaphoresAsync = dlfcn.dlsym(handle, 'cuWaitExternalSemaphoresAsync_ptsz') - {{endif}} - {{if 'cuStreamWaitValue32_v2' in found_functions}} - global __cuStreamWaitValue32_v2 - __cuStreamWaitValue32_v2 = dlfcn.dlsym(handle, 'cuStreamWaitValue32_v2_ptsz') - {{endif}} - {{if 'cuStreamWaitValue64_v2' in found_functions}} - global __cuStreamWaitValue64_v2 - __cuStreamWaitValue64_v2 = dlfcn.dlsym(handle, 'cuStreamWaitValue64_v2_ptsz') - {{endif}} - {{if 'cuStreamWriteValue32_v2' in found_functions}} - global __cuStreamWriteValue32_v2 - __cuStreamWriteValue32_v2 = dlfcn.dlsym(handle, 'cuStreamWriteValue32_v2_ptsz') - {{endif}} - {{if 'cuStreamWriteValue64_v2' in found_functions}} - global __cuStreamWriteValue64_v2 - __cuStreamWriteValue64_v2 = dlfcn.dlsym(handle, 'cuStreamWriteValue64_v2_ptsz') - {{endif}} - {{if 'cuStreamBatchMemOp_v2' in found_functions}} - global __cuStreamBatchMemOp_v2 - __cuStreamBatchMemOp_v2 = dlfcn.dlsym(handle, 'cuStreamBatchMemOp_v2_ptsz') - {{endif}} - {{if 'cuLaunchKernel' in found_functions}} - global __cuLaunchKernel - __cuLaunchKernel = dlfcn.dlsym(handle, 'cuLaunchKernel_ptsz') - {{endif}} - {{if 'cuLaunchKernelEx' in found_functions}} - global __cuLaunchKernelEx - __cuLaunchKernelEx = dlfcn.dlsym(handle, 'cuLaunchKernelEx_ptsz') - {{endif}} - {{if 'cuLaunchCooperativeKernel' in found_functions}} - global __cuLaunchCooperativeKernel - __cuLaunchCooperativeKernel = dlfcn.dlsym(handle, 'cuLaunchCooperativeKernel_ptsz') - {{endif}} - {{if 'cuLaunchHostFunc' in found_functions}} - global __cuLaunchHostFunc - __cuLaunchHostFunc = dlfcn.dlsym(handle, 'cuLaunchHostFunc_ptsz') - {{endif}} - {{if 'cuLaunchHostFunc_v2' in found_functions}} - global __cuLaunchHostFunc_v2 - __cuLaunchHostFunc_v2 = dlfcn.dlsym(handle, 'cuLaunchHostFunc_v2_ptsz') - {{endif}} - {{if 'cuGraphInstantiateWithParams' in found_functions}} - global __cuGraphInstantiateWithParams - __cuGraphInstantiateWithParams = dlfcn.dlsym(handle, 'cuGraphInstantiateWithParams_ptsz') - {{endif}} - {{if 'cuGraphUpload' in found_functions}} - global __cuGraphUpload - __cuGraphUpload = dlfcn.dlsym(handle, 'cuGraphUpload_ptsz') - {{endif}} - {{if 'cuGraphLaunch' in found_functions}} - global __cuGraphLaunch - __cuGraphLaunch = dlfcn.dlsym(handle, 'cuGraphLaunch_ptsz') - {{endif}} - {{if 'cuGraphicsMapResources' in found_functions}} - global __cuGraphicsMapResources - __cuGraphicsMapResources = dlfcn.dlsym(handle, 'cuGraphicsMapResources_ptsz') - {{endif}} - {{if 'cuGraphicsUnmapResources' in found_functions}} - global __cuGraphicsUnmapResources - __cuGraphicsUnmapResources = dlfcn.dlsym(handle, 'cuGraphicsUnmapResources_ptsz') - {{endif}} - {{if 'cuStreamGetDevResource' in found_functions}} - global __cuStreamGetDevResource - __cuStreamGetDevResource = dlfcn.dlsym(handle, 'cuStreamGetDevResource_ptsz') - {{endif}} - else: - # Else get the regular version - pass - {{if 'cuMemcpy' in found_functions}} - global __cuMemcpy - __cuMemcpy = dlfcn.dlsym(handle, 'cuMemcpy') - {{endif}} - {{if 'cuMemcpyPeer' in found_functions}} - global __cuMemcpyPeer - __cuMemcpyPeer = dlfcn.dlsym(handle, 'cuMemcpyPeer') - {{endif}} - {{if 'cuMemcpyHtoD_v2' in found_functions}} - global __cuMemcpyHtoD_v2 - __cuMemcpyHtoD_v2 = dlfcn.dlsym(handle, 'cuMemcpyHtoD_v2') - {{endif}} - {{if 'cuMemcpyDtoH_v2' in found_functions}} - global __cuMemcpyDtoH_v2 - __cuMemcpyDtoH_v2 = dlfcn.dlsym(handle, 'cuMemcpyDtoH_v2') - {{endif}} - {{if 'cuMemcpyDtoD_v2' in found_functions}} - global __cuMemcpyDtoD_v2 - __cuMemcpyDtoD_v2 = dlfcn.dlsym(handle, 'cuMemcpyDtoD_v2') - {{endif}} - {{if 'cuMemcpyDtoA_v2' in found_functions}} - global __cuMemcpyDtoA_v2 - __cuMemcpyDtoA_v2 = dlfcn.dlsym(handle, 'cuMemcpyDtoA_v2') - {{endif}} - {{if 'cuMemcpyAtoD_v2' in found_functions}} - global __cuMemcpyAtoD_v2 - __cuMemcpyAtoD_v2 = dlfcn.dlsym(handle, 'cuMemcpyAtoD_v2') - {{endif}} - {{if 'cuMemcpyHtoA_v2' in found_functions}} - global __cuMemcpyHtoA_v2 - __cuMemcpyHtoA_v2 = dlfcn.dlsym(handle, 'cuMemcpyHtoA_v2') - {{endif}} - {{if 'cuMemcpyAtoH_v2' in found_functions}} - global __cuMemcpyAtoH_v2 - __cuMemcpyAtoH_v2 = dlfcn.dlsym(handle, 'cuMemcpyAtoH_v2') - {{endif}} - {{if 'cuMemcpyAtoA_v2' in found_functions}} - global __cuMemcpyAtoA_v2 - __cuMemcpyAtoA_v2 = dlfcn.dlsym(handle, 'cuMemcpyAtoA_v2') - {{endif}} - {{if 'cuMemcpy2D_v2' in found_functions}} - global __cuMemcpy2D_v2 - __cuMemcpy2D_v2 = dlfcn.dlsym(handle, 'cuMemcpy2D_v2') - {{endif}} - {{if 'cuMemcpy2DUnaligned_v2' in found_functions}} - global __cuMemcpy2DUnaligned_v2 - __cuMemcpy2DUnaligned_v2 = dlfcn.dlsym(handle, 'cuMemcpy2DUnaligned_v2') - {{endif}} - {{if 'cuMemcpy3D_v2' in found_functions}} - global __cuMemcpy3D_v2 - __cuMemcpy3D_v2 = dlfcn.dlsym(handle, 'cuMemcpy3D_v2') - {{endif}} - {{if 'cuMemcpy3DPeer' in found_functions}} - global __cuMemcpy3DPeer - __cuMemcpy3DPeer = dlfcn.dlsym(handle, 'cuMemcpy3DPeer') - {{endif}} - {{if 'cuMemcpyAsync' in found_functions}} - global __cuMemcpyAsync - __cuMemcpyAsync = dlfcn.dlsym(handle, 'cuMemcpyAsync') - {{endif}} - {{if 'cuMemcpyPeerAsync' in found_functions}} - global __cuMemcpyPeerAsync - __cuMemcpyPeerAsync = dlfcn.dlsym(handle, 'cuMemcpyPeerAsync') - {{endif}} - {{if 'cuMemcpyHtoDAsync_v2' in found_functions}} - global __cuMemcpyHtoDAsync_v2 - __cuMemcpyHtoDAsync_v2 = dlfcn.dlsym(handle, 'cuMemcpyHtoDAsync_v2') - {{endif}} - {{if 'cuMemcpyDtoHAsync_v2' in found_functions}} - global __cuMemcpyDtoHAsync_v2 - __cuMemcpyDtoHAsync_v2 = dlfcn.dlsym(handle, 'cuMemcpyDtoHAsync_v2') - {{endif}} - {{if 'cuMemcpyDtoDAsync_v2' in found_functions}} - global __cuMemcpyDtoDAsync_v2 - __cuMemcpyDtoDAsync_v2 = dlfcn.dlsym(handle, 'cuMemcpyDtoDAsync_v2') - {{endif}} - {{if 'cuMemcpyHtoAAsync_v2' in found_functions}} - global __cuMemcpyHtoAAsync_v2 - __cuMemcpyHtoAAsync_v2 = dlfcn.dlsym(handle, 'cuMemcpyHtoAAsync_v2') - {{endif}} - {{if 'cuMemcpyAtoHAsync_v2' in found_functions}} - global __cuMemcpyAtoHAsync_v2 - __cuMemcpyAtoHAsync_v2 = dlfcn.dlsym(handle, 'cuMemcpyAtoHAsync_v2') - {{endif}} - {{if 'cuMemcpy2DAsync_v2' in found_functions}} - global __cuMemcpy2DAsync_v2 - __cuMemcpy2DAsync_v2 = dlfcn.dlsym(handle, 'cuMemcpy2DAsync_v2') - {{endif}} - {{if 'cuMemcpy3DAsync_v2' in found_functions}} - global __cuMemcpy3DAsync_v2 - __cuMemcpy3DAsync_v2 = dlfcn.dlsym(handle, 'cuMemcpy3DAsync_v2') - {{endif}} - {{if 'cuMemcpy3DPeerAsync' in found_functions}} - global __cuMemcpy3DPeerAsync - __cuMemcpy3DPeerAsync = dlfcn.dlsym(handle, 'cuMemcpy3DPeerAsync') - {{endif}} - {{if 'cuMemcpyBatchAsync_v2' in found_functions}} - global __cuMemcpyBatchAsync_v2 - __cuMemcpyBatchAsync_v2 = dlfcn.dlsym(handle, 'cuMemcpyBatchAsync_v2') - {{endif}} - {{if 'cuMemcpy3DBatchAsync_v2' in found_functions}} - global __cuMemcpy3DBatchAsync_v2 - __cuMemcpy3DBatchAsync_v2 = dlfcn.dlsym(handle, 'cuMemcpy3DBatchAsync_v2') - {{endif}} - {{if 'cuMemcpyWithAttributesAsync' in found_functions}} - global __cuMemcpyWithAttributesAsync - __cuMemcpyWithAttributesAsync = dlfcn.dlsym(handle, 'cuMemcpyWithAttributesAsync') - {{endif}} - {{if 'cuMemcpy3DWithAttributesAsync' in found_functions}} - global __cuMemcpy3DWithAttributesAsync - __cuMemcpy3DWithAttributesAsync = dlfcn.dlsym(handle, 'cuMemcpy3DWithAttributesAsync') - {{endif}} - {{if 'cuMemsetD8_v2' in found_functions}} - global __cuMemsetD8_v2 - __cuMemsetD8_v2 = dlfcn.dlsym(handle, 'cuMemsetD8_v2') - {{endif}} - {{if 'cuMemsetD16_v2' in found_functions}} - global __cuMemsetD16_v2 - __cuMemsetD16_v2 = dlfcn.dlsym(handle, 'cuMemsetD16_v2') - {{endif}} - {{if 'cuMemsetD32_v2' in found_functions}} - global __cuMemsetD32_v2 - __cuMemsetD32_v2 = dlfcn.dlsym(handle, 'cuMemsetD32_v2') - {{endif}} - {{if 'cuMemsetD2D8_v2' in found_functions}} - global __cuMemsetD2D8_v2 - __cuMemsetD2D8_v2 = dlfcn.dlsym(handle, 'cuMemsetD2D8_v2') - {{endif}} - {{if 'cuMemsetD2D16_v2' in found_functions}} - global __cuMemsetD2D16_v2 - __cuMemsetD2D16_v2 = dlfcn.dlsym(handle, 'cuMemsetD2D16_v2') - {{endif}} - {{if 'cuMemsetD2D32_v2' in found_functions}} - global __cuMemsetD2D32_v2 - __cuMemsetD2D32_v2 = dlfcn.dlsym(handle, 'cuMemsetD2D32_v2') - {{endif}} - {{if 'cuMemsetD8Async' in found_functions}} - global __cuMemsetD8Async - __cuMemsetD8Async = dlfcn.dlsym(handle, 'cuMemsetD8Async') - {{endif}} - {{if 'cuMemsetD16Async' in found_functions}} - global __cuMemsetD16Async - __cuMemsetD16Async = dlfcn.dlsym(handle, 'cuMemsetD16Async') - {{endif}} - {{if 'cuMemsetD32Async' in found_functions}} - global __cuMemsetD32Async - __cuMemsetD32Async = dlfcn.dlsym(handle, 'cuMemsetD32Async') - {{endif}} - {{if 'cuMemsetD2D8Async' in found_functions}} - global __cuMemsetD2D8Async - __cuMemsetD2D8Async = dlfcn.dlsym(handle, 'cuMemsetD2D8Async') - {{endif}} - {{if 'cuMemsetD2D16Async' in found_functions}} - global __cuMemsetD2D16Async - __cuMemsetD2D16Async = dlfcn.dlsym(handle, 'cuMemsetD2D16Async') - {{endif}} - {{if 'cuMemsetD2D32Async' in found_functions}} - global __cuMemsetD2D32Async - __cuMemsetD2D32Async = dlfcn.dlsym(handle, 'cuMemsetD2D32Async') - {{endif}} - {{if 'cuMemBatchDecompressAsync' in found_functions}} - global __cuMemBatchDecompressAsync - __cuMemBatchDecompressAsync = dlfcn.dlsym(handle, 'cuMemBatchDecompressAsync') - {{endif}} - {{if 'cuMemMapArrayAsync' in found_functions}} - global __cuMemMapArrayAsync - __cuMemMapArrayAsync = dlfcn.dlsym(handle, 'cuMemMapArrayAsync') - {{endif}} - {{if 'cuMemFreeAsync' in found_functions}} - global __cuMemFreeAsync - __cuMemFreeAsync = dlfcn.dlsym(handle, 'cuMemFreeAsync') - {{endif}} - {{if 'cuMemAllocAsync' in found_functions}} - global __cuMemAllocAsync - __cuMemAllocAsync = dlfcn.dlsym(handle, 'cuMemAllocAsync') - {{endif}} - {{if 'cuMemAllocFromPoolAsync' in found_functions}} - global __cuMemAllocFromPoolAsync - __cuMemAllocFromPoolAsync = dlfcn.dlsym(handle, 'cuMemAllocFromPoolAsync') - {{endif}} - {{if 'cuMemPrefetchAsync_v2' in found_functions}} - global __cuMemPrefetchAsync_v2 - __cuMemPrefetchAsync_v2 = dlfcn.dlsym(handle, 'cuMemPrefetchAsync_v2') - {{endif}} - {{if 'cuMemPrefetchBatchAsync' in found_functions}} - global __cuMemPrefetchBatchAsync - __cuMemPrefetchBatchAsync = dlfcn.dlsym(handle, 'cuMemPrefetchBatchAsync') - {{endif}} - {{if 'cuMemDiscardBatchAsync' in found_functions}} - global __cuMemDiscardBatchAsync - __cuMemDiscardBatchAsync = dlfcn.dlsym(handle, 'cuMemDiscardBatchAsync') - {{endif}} - {{if 'cuMemDiscardAndPrefetchBatchAsync' in found_functions}} - global __cuMemDiscardAndPrefetchBatchAsync - __cuMemDiscardAndPrefetchBatchAsync = dlfcn.dlsym(handle, 'cuMemDiscardAndPrefetchBatchAsync') - {{endif}} - {{if 'cuStreamBeginCaptureToCig' in found_functions}} - global __cuStreamBeginCaptureToCig - __cuStreamBeginCaptureToCig = dlfcn.dlsym(handle, 'cuStreamBeginCaptureToCig') - {{endif}} - {{if 'cuStreamEndCaptureToCig' in found_functions}} - global __cuStreamEndCaptureToCig - __cuStreamEndCaptureToCig = dlfcn.dlsym(handle, 'cuStreamEndCaptureToCig') - {{endif}} - {{if 'cuStreamGetPriority' in found_functions}} - global __cuStreamGetPriority - __cuStreamGetPriority = dlfcn.dlsym(handle, 'cuStreamGetPriority') - {{endif}} - {{if 'cuStreamGetDevice' in found_functions}} - global __cuStreamGetDevice - __cuStreamGetDevice = dlfcn.dlsym(handle, 'cuStreamGetDevice') - {{endif}} - {{if 'cuStreamGetFlags' in found_functions}} - global __cuStreamGetFlags - __cuStreamGetFlags = dlfcn.dlsym(handle, 'cuStreamGetFlags') - {{endif}} - {{if 'cuStreamGetId' in found_functions}} - global __cuStreamGetId - __cuStreamGetId = dlfcn.dlsym(handle, 'cuStreamGetId') - {{endif}} - {{if 'cuStreamGetCtx' in found_functions}} - global __cuStreamGetCtx - __cuStreamGetCtx = dlfcn.dlsym(handle, 'cuStreamGetCtx') - {{endif}} - {{if 'cuStreamGetCtx_v2' in found_functions}} - global __cuStreamGetCtx_v2 - __cuStreamGetCtx_v2 = dlfcn.dlsym(handle, 'cuStreamGetCtx_v2') - {{endif}} - {{if 'cuStreamWaitEvent' in found_functions}} - global __cuStreamWaitEvent - __cuStreamWaitEvent = dlfcn.dlsym(handle, 'cuStreamWaitEvent') - {{endif}} - {{if 'cuStreamAddCallback' in found_functions}} - global __cuStreamAddCallback - __cuStreamAddCallback = dlfcn.dlsym(handle, 'cuStreamAddCallback') - {{endif}} - {{if 'cuStreamBeginCapture_v2' in found_functions}} - global __cuStreamBeginCapture_v2 - __cuStreamBeginCapture_v2 = dlfcn.dlsym(handle, 'cuStreamBeginCapture_v2') - {{endif}} - {{if 'cuStreamBeginCaptureToGraph' in found_functions}} - global __cuStreamBeginCaptureToGraph - __cuStreamBeginCaptureToGraph = dlfcn.dlsym(handle, 'cuStreamBeginCaptureToGraph') - {{endif}} - {{if 'cuStreamEndCapture' in found_functions}} - global __cuStreamEndCapture - __cuStreamEndCapture = dlfcn.dlsym(handle, 'cuStreamEndCapture') - {{endif}} - {{if 'cuStreamIsCapturing' in found_functions}} - global __cuStreamIsCapturing - __cuStreamIsCapturing = dlfcn.dlsym(handle, 'cuStreamIsCapturing') - {{endif}} - {{if 'cuStreamGetCaptureInfo_v3' in found_functions}} - global __cuStreamGetCaptureInfo_v3 - __cuStreamGetCaptureInfo_v3 = dlfcn.dlsym(handle, 'cuStreamGetCaptureInfo_v3') - {{endif}} - {{if 'cuStreamUpdateCaptureDependencies_v2' in found_functions}} - global __cuStreamUpdateCaptureDependencies_v2 - __cuStreamUpdateCaptureDependencies_v2 = dlfcn.dlsym(handle, 'cuStreamUpdateCaptureDependencies_v2') - {{endif}} - {{if 'cuStreamAttachMemAsync' in found_functions}} - global __cuStreamAttachMemAsync - __cuStreamAttachMemAsync = dlfcn.dlsym(handle, 'cuStreamAttachMemAsync') - {{endif}} - {{if 'cuStreamQuery' in found_functions}} - global __cuStreamQuery - __cuStreamQuery = dlfcn.dlsym(handle, 'cuStreamQuery') - {{endif}} - {{if 'cuStreamSynchronize' in found_functions}} - global __cuStreamSynchronize - __cuStreamSynchronize = dlfcn.dlsym(handle, 'cuStreamSynchronize') - {{endif}} - {{if 'cuStreamCopyAttributes' in found_functions}} - global __cuStreamCopyAttributes - __cuStreamCopyAttributes = dlfcn.dlsym(handle, 'cuStreamCopyAttributes') - {{endif}} - {{if 'cuStreamGetAttribute' in found_functions}} - global __cuStreamGetAttribute - __cuStreamGetAttribute = dlfcn.dlsym(handle, 'cuStreamGetAttribute') - {{endif}} - {{if 'cuStreamSetAttribute' in found_functions}} - global __cuStreamSetAttribute - __cuStreamSetAttribute = dlfcn.dlsym(handle, 'cuStreamSetAttribute') - {{endif}} - {{if 'cuEventRecord' in found_functions}} - global __cuEventRecord - __cuEventRecord = dlfcn.dlsym(handle, 'cuEventRecord') - {{endif}} - {{if 'cuEventRecordWithFlags' in found_functions}} - global __cuEventRecordWithFlags - __cuEventRecordWithFlags = dlfcn.dlsym(handle, 'cuEventRecordWithFlags') - {{endif}} - {{if 'cuSignalExternalSemaphoresAsync' in found_functions}} - global __cuSignalExternalSemaphoresAsync - __cuSignalExternalSemaphoresAsync = dlfcn.dlsym(handle, 'cuSignalExternalSemaphoresAsync') - {{endif}} - {{if 'cuWaitExternalSemaphoresAsync' in found_functions}} - global __cuWaitExternalSemaphoresAsync - __cuWaitExternalSemaphoresAsync = dlfcn.dlsym(handle, 'cuWaitExternalSemaphoresAsync') - {{endif}} - {{if 'cuStreamWaitValue32_v2' in found_functions}} - global __cuStreamWaitValue32_v2 - __cuStreamWaitValue32_v2 = dlfcn.dlsym(handle, 'cuStreamWaitValue32_v2') - {{endif}} - {{if 'cuStreamWaitValue64_v2' in found_functions}} - global __cuStreamWaitValue64_v2 - __cuStreamWaitValue64_v2 = dlfcn.dlsym(handle, 'cuStreamWaitValue64_v2') - {{endif}} - {{if 'cuStreamWriteValue32_v2' in found_functions}} - global __cuStreamWriteValue32_v2 - __cuStreamWriteValue32_v2 = dlfcn.dlsym(handle, 'cuStreamWriteValue32_v2') - {{endif}} - {{if 'cuStreamWriteValue64_v2' in found_functions}} - global __cuStreamWriteValue64_v2 - __cuStreamWriteValue64_v2 = dlfcn.dlsym(handle, 'cuStreamWriteValue64_v2') - {{endif}} - {{if 'cuStreamBatchMemOp_v2' in found_functions}} - global __cuStreamBatchMemOp_v2 - __cuStreamBatchMemOp_v2 = dlfcn.dlsym(handle, 'cuStreamBatchMemOp_v2') - {{endif}} - {{if 'cuLaunchKernel' in found_functions}} - global __cuLaunchKernel - __cuLaunchKernel = dlfcn.dlsym(handle, 'cuLaunchKernel') - {{endif}} - {{if 'cuLaunchKernelEx' in found_functions}} - global __cuLaunchKernelEx - __cuLaunchKernelEx = dlfcn.dlsym(handle, 'cuLaunchKernelEx') - {{endif}} - {{if 'cuLaunchCooperativeKernel' in found_functions}} - global __cuLaunchCooperativeKernel - __cuLaunchCooperativeKernel = dlfcn.dlsym(handle, 'cuLaunchCooperativeKernel') - {{endif}} - {{if 'cuLaunchHostFunc' in found_functions}} - global __cuLaunchHostFunc - __cuLaunchHostFunc = dlfcn.dlsym(handle, 'cuLaunchHostFunc') - {{endif}} - {{if 'cuLaunchHostFunc_v2' in found_functions}} - global __cuLaunchHostFunc_v2 - __cuLaunchHostFunc_v2 = dlfcn.dlsym(handle, 'cuLaunchHostFunc_v2') - {{endif}} - {{if 'cuGraphInstantiateWithParams' in found_functions}} - global __cuGraphInstantiateWithParams - __cuGraphInstantiateWithParams = dlfcn.dlsym(handle, 'cuGraphInstantiateWithParams') - {{endif}} - {{if 'cuGraphUpload' in found_functions}} - global __cuGraphUpload - __cuGraphUpload = dlfcn.dlsym(handle, 'cuGraphUpload') - {{endif}} - {{if 'cuGraphLaunch' in found_functions}} - global __cuGraphLaunch - __cuGraphLaunch = dlfcn.dlsym(handle, 'cuGraphLaunch') - {{endif}} - {{if 'cuGraphicsMapResources' in found_functions}} - global __cuGraphicsMapResources - __cuGraphicsMapResources = dlfcn.dlsym(handle, 'cuGraphicsMapResources') - {{endif}} - {{if 'cuGraphicsUnmapResources' in found_functions}} - global __cuGraphicsUnmapResources - __cuGraphicsUnmapResources = dlfcn.dlsym(handle, 'cuGraphicsUnmapResources') - {{endif}} - {{if 'cuStreamGetDevResource' in found_functions}} - global __cuStreamGetDevResource - __cuStreamGetDevResource = dlfcn.dlsym(handle, 'cuStreamGetDevResource') - {{endif}} - # Get remaining functions - {{if 'cuGetErrorString' in found_functions}} - global __cuGetErrorString - __cuGetErrorString = dlfcn.dlsym(handle, 'cuGetErrorString') - {{endif}} - {{if 'cuGetErrorName' in found_functions}} - global __cuGetErrorName - __cuGetErrorName = dlfcn.dlsym(handle, 'cuGetErrorName') - {{endif}} - {{if 'cuInit' in found_functions}} - global __cuInit - __cuInit = dlfcn.dlsym(handle, 'cuInit') - {{endif}} - {{if 'cuDriverGetVersion' in found_functions}} - global __cuDriverGetVersion - __cuDriverGetVersion = dlfcn.dlsym(handle, 'cuDriverGetVersion') - {{endif}} - {{if 'cuDeviceGet' in found_functions}} - global __cuDeviceGet - __cuDeviceGet = dlfcn.dlsym(handle, 'cuDeviceGet') - {{endif}} - {{if 'cuDeviceGetCount' in found_functions}} - global __cuDeviceGetCount - __cuDeviceGetCount = dlfcn.dlsym(handle, 'cuDeviceGetCount') - {{endif}} - {{if 'cuDeviceGetName' in found_functions}} - global __cuDeviceGetName - __cuDeviceGetName = dlfcn.dlsym(handle, 'cuDeviceGetName') - {{endif}} - {{if 'cuDeviceGetUuid_v2' in found_functions}} - global __cuDeviceGetUuid_v2 - __cuDeviceGetUuid_v2 = dlfcn.dlsym(handle, 'cuDeviceGetUuid_v2') - {{endif}} - {{if 'cuDeviceGetLuid' in found_functions}} - global __cuDeviceGetLuid - __cuDeviceGetLuid = dlfcn.dlsym(handle, 'cuDeviceGetLuid') - {{endif}} - {{if 'cuDeviceTotalMem_v2' in found_functions}} - global __cuDeviceTotalMem_v2 - __cuDeviceTotalMem_v2 = dlfcn.dlsym(handle, 'cuDeviceTotalMem_v2') - {{endif}} - {{if 'cuDeviceGetTexture1DLinearMaxWidth' in found_functions}} - global __cuDeviceGetTexture1DLinearMaxWidth - __cuDeviceGetTexture1DLinearMaxWidth = dlfcn.dlsym(handle, 'cuDeviceGetTexture1DLinearMaxWidth') - {{endif}} - {{if 'cuDeviceGetAttribute' in found_functions}} - global __cuDeviceGetAttribute - __cuDeviceGetAttribute = dlfcn.dlsym(handle, 'cuDeviceGetAttribute') - {{endif}} - {{if 'cuDeviceGetHostAtomicCapabilities' in found_functions}} - global __cuDeviceGetHostAtomicCapabilities - __cuDeviceGetHostAtomicCapabilities = dlfcn.dlsym(handle, 'cuDeviceGetHostAtomicCapabilities') - {{endif}} - {{if 'cuDeviceGetNvSciSyncAttributes' in found_functions}} - global __cuDeviceGetNvSciSyncAttributes - __cuDeviceGetNvSciSyncAttributes = dlfcn.dlsym(handle, 'cuDeviceGetNvSciSyncAttributes') - {{endif}} - {{if 'cuDeviceSetMemPool' in found_functions}} - global __cuDeviceSetMemPool - __cuDeviceSetMemPool = dlfcn.dlsym(handle, 'cuDeviceSetMemPool') - {{endif}} - {{if 'cuDeviceGetMemPool' in found_functions}} - global __cuDeviceGetMemPool - __cuDeviceGetMemPool = dlfcn.dlsym(handle, 'cuDeviceGetMemPool') - {{endif}} - {{if 'cuDeviceGetDefaultMemPool' in found_functions}} - global __cuDeviceGetDefaultMemPool - __cuDeviceGetDefaultMemPool = dlfcn.dlsym(handle, 'cuDeviceGetDefaultMemPool') - {{endif}} - {{if 'cuDeviceGetExecAffinitySupport' in found_functions}} - global __cuDeviceGetExecAffinitySupport - __cuDeviceGetExecAffinitySupport = dlfcn.dlsym(handle, 'cuDeviceGetExecAffinitySupport') - {{endif}} - {{if 'cuFlushGPUDirectRDMAWrites' in found_functions}} - global __cuFlushGPUDirectRDMAWrites - __cuFlushGPUDirectRDMAWrites = dlfcn.dlsym(handle, 'cuFlushGPUDirectRDMAWrites') - {{endif}} - {{if 'cuDeviceGetProperties' in found_functions}} - global __cuDeviceGetProperties - __cuDeviceGetProperties = dlfcn.dlsym(handle, 'cuDeviceGetProperties') - {{endif}} - {{if 'cuDeviceComputeCapability' in found_functions}} - global __cuDeviceComputeCapability - __cuDeviceComputeCapability = dlfcn.dlsym(handle, 'cuDeviceComputeCapability') - {{endif}} - {{if 'cuDevicePrimaryCtxRetain' in found_functions}} - global __cuDevicePrimaryCtxRetain - __cuDevicePrimaryCtxRetain = dlfcn.dlsym(handle, 'cuDevicePrimaryCtxRetain') - {{endif}} - {{if 'cuDevicePrimaryCtxRelease_v2' in found_functions}} - global __cuDevicePrimaryCtxRelease_v2 - __cuDevicePrimaryCtxRelease_v2 = dlfcn.dlsym(handle, 'cuDevicePrimaryCtxRelease_v2') - {{endif}} - {{if 'cuDevicePrimaryCtxSetFlags_v2' in found_functions}} - global __cuDevicePrimaryCtxSetFlags_v2 - __cuDevicePrimaryCtxSetFlags_v2 = dlfcn.dlsym(handle, 'cuDevicePrimaryCtxSetFlags_v2') - {{endif}} - {{if 'cuDevicePrimaryCtxGetState' in found_functions}} - global __cuDevicePrimaryCtxGetState - __cuDevicePrimaryCtxGetState = dlfcn.dlsym(handle, 'cuDevicePrimaryCtxGetState') - {{endif}} - {{if 'cuDevicePrimaryCtxReset_v2' in found_functions}} - global __cuDevicePrimaryCtxReset_v2 - __cuDevicePrimaryCtxReset_v2 = dlfcn.dlsym(handle, 'cuDevicePrimaryCtxReset_v2') - {{endif}} - {{if 'cuCtxCreate_v4' in found_functions}} - global __cuCtxCreate_v4 - __cuCtxCreate_v4 = dlfcn.dlsym(handle, 'cuCtxCreate_v4') - {{endif}} - {{if 'cuCtxDestroy_v2' in found_functions}} - global __cuCtxDestroy_v2 - __cuCtxDestroy_v2 = dlfcn.dlsym(handle, 'cuCtxDestroy_v2') - {{endif}} - {{if 'cuCtxPushCurrent_v2' in found_functions}} - global __cuCtxPushCurrent_v2 - __cuCtxPushCurrent_v2 = dlfcn.dlsym(handle, 'cuCtxPushCurrent_v2') - {{endif}} - {{if 'cuCtxPopCurrent_v2' in found_functions}} - global __cuCtxPopCurrent_v2 - __cuCtxPopCurrent_v2 = dlfcn.dlsym(handle, 'cuCtxPopCurrent_v2') - {{endif}} - {{if 'cuCtxSetCurrent' in found_functions}} - global __cuCtxSetCurrent - __cuCtxSetCurrent = dlfcn.dlsym(handle, 'cuCtxSetCurrent') - {{endif}} - {{if 'cuCtxGetCurrent' in found_functions}} - global __cuCtxGetCurrent - __cuCtxGetCurrent = dlfcn.dlsym(handle, 'cuCtxGetCurrent') - {{endif}} - {{if 'cuCtxGetDevice' in found_functions}} - global __cuCtxGetDevice - __cuCtxGetDevice = dlfcn.dlsym(handle, 'cuCtxGetDevice') - {{endif}} - {{if 'cuCtxGetDevice_v2' in found_functions}} - global __cuCtxGetDevice_v2 - __cuCtxGetDevice_v2 = dlfcn.dlsym(handle, 'cuCtxGetDevice_v2') - {{endif}} - {{if 'cuCtxGetFlags' in found_functions}} - global __cuCtxGetFlags - __cuCtxGetFlags = dlfcn.dlsym(handle, 'cuCtxGetFlags') - {{endif}} - {{if 'cuCtxSetFlags' in found_functions}} - global __cuCtxSetFlags - __cuCtxSetFlags = dlfcn.dlsym(handle, 'cuCtxSetFlags') - {{endif}} - {{if 'cuCtxGetId' in found_functions}} - global __cuCtxGetId - __cuCtxGetId = dlfcn.dlsym(handle, 'cuCtxGetId') - {{endif}} - {{if 'cuCtxSynchronize' in found_functions}} - global __cuCtxSynchronize - __cuCtxSynchronize = dlfcn.dlsym(handle, 'cuCtxSynchronize') - {{endif}} - {{if 'cuCtxSynchronize_v2' in found_functions}} - global __cuCtxSynchronize_v2 - __cuCtxSynchronize_v2 = dlfcn.dlsym(handle, 'cuCtxSynchronize_v2') - {{endif}} - {{if 'cuCtxSetLimit' in found_functions}} - global __cuCtxSetLimit - __cuCtxSetLimit = dlfcn.dlsym(handle, 'cuCtxSetLimit') - {{endif}} - {{if 'cuCtxGetLimit' in found_functions}} - global __cuCtxGetLimit - __cuCtxGetLimit = dlfcn.dlsym(handle, 'cuCtxGetLimit') - {{endif}} - {{if 'cuCtxGetCacheConfig' in found_functions}} - global __cuCtxGetCacheConfig - __cuCtxGetCacheConfig = dlfcn.dlsym(handle, 'cuCtxGetCacheConfig') - {{endif}} - {{if 'cuCtxSetCacheConfig' in found_functions}} - global __cuCtxSetCacheConfig - __cuCtxSetCacheConfig = dlfcn.dlsym(handle, 'cuCtxSetCacheConfig') - {{endif}} - {{if 'cuCtxGetApiVersion' in found_functions}} - global __cuCtxGetApiVersion - __cuCtxGetApiVersion = dlfcn.dlsym(handle, 'cuCtxGetApiVersion') - {{endif}} - {{if 'cuCtxGetStreamPriorityRange' in found_functions}} - global __cuCtxGetStreamPriorityRange - __cuCtxGetStreamPriorityRange = dlfcn.dlsym(handle, 'cuCtxGetStreamPriorityRange') - {{endif}} - {{if 'cuCtxResetPersistingL2Cache' in found_functions}} - global __cuCtxResetPersistingL2Cache - __cuCtxResetPersistingL2Cache = dlfcn.dlsym(handle, 'cuCtxResetPersistingL2Cache') - {{endif}} - {{if 'cuCtxGetExecAffinity' in found_functions}} - global __cuCtxGetExecAffinity - __cuCtxGetExecAffinity = dlfcn.dlsym(handle, 'cuCtxGetExecAffinity') - {{endif}} - {{if 'cuCtxRecordEvent' in found_functions}} - global __cuCtxRecordEvent - __cuCtxRecordEvent = dlfcn.dlsym(handle, 'cuCtxRecordEvent') - {{endif}} - {{if 'cuCtxWaitEvent' in found_functions}} - global __cuCtxWaitEvent - __cuCtxWaitEvent = dlfcn.dlsym(handle, 'cuCtxWaitEvent') - {{endif}} - {{if 'cuCtxAttach' in found_functions}} - global __cuCtxAttach - __cuCtxAttach = dlfcn.dlsym(handle, 'cuCtxAttach') - {{endif}} - {{if 'cuCtxDetach' in found_functions}} - global __cuCtxDetach - __cuCtxDetach = dlfcn.dlsym(handle, 'cuCtxDetach') - {{endif}} - {{if 'cuCtxGetSharedMemConfig' in found_functions}} - global __cuCtxGetSharedMemConfig - __cuCtxGetSharedMemConfig = dlfcn.dlsym(handle, 'cuCtxGetSharedMemConfig') - {{endif}} - {{if 'cuCtxSetSharedMemConfig' in found_functions}} - global __cuCtxSetSharedMemConfig - __cuCtxSetSharedMemConfig = dlfcn.dlsym(handle, 'cuCtxSetSharedMemConfig') - {{endif}} - {{if 'cuModuleLoad' in found_functions}} - global __cuModuleLoad - __cuModuleLoad = dlfcn.dlsym(handle, 'cuModuleLoad') - {{endif}} - {{if 'cuModuleLoadData' in found_functions}} - global __cuModuleLoadData - __cuModuleLoadData = dlfcn.dlsym(handle, 'cuModuleLoadData') - {{endif}} - {{if 'cuModuleLoadDataEx' in found_functions}} - global __cuModuleLoadDataEx - __cuModuleLoadDataEx = dlfcn.dlsym(handle, 'cuModuleLoadDataEx') - {{endif}} - {{if 'cuModuleLoadFatBinary' in found_functions}} - global __cuModuleLoadFatBinary - __cuModuleLoadFatBinary = dlfcn.dlsym(handle, 'cuModuleLoadFatBinary') - {{endif}} - {{if 'cuModuleUnload' in found_functions}} - global __cuModuleUnload - __cuModuleUnload = dlfcn.dlsym(handle, 'cuModuleUnload') - {{endif}} - {{if 'cuModuleGetLoadingMode' in found_functions}} - global __cuModuleGetLoadingMode - __cuModuleGetLoadingMode = dlfcn.dlsym(handle, 'cuModuleGetLoadingMode') - {{endif}} - {{if 'cuModuleGetFunction' in found_functions}} - global __cuModuleGetFunction - __cuModuleGetFunction = dlfcn.dlsym(handle, 'cuModuleGetFunction') - {{endif}} - {{if 'cuModuleGetFunctionCount' in found_functions}} - global __cuModuleGetFunctionCount - __cuModuleGetFunctionCount = dlfcn.dlsym(handle, 'cuModuleGetFunctionCount') - {{endif}} - {{if 'cuModuleEnumerateFunctions' in found_functions}} - global __cuModuleEnumerateFunctions - __cuModuleEnumerateFunctions = dlfcn.dlsym(handle, 'cuModuleEnumerateFunctions') - {{endif}} - {{if 'cuModuleGetGlobal_v2' in found_functions}} - global __cuModuleGetGlobal_v2 - __cuModuleGetGlobal_v2 = dlfcn.dlsym(handle, 'cuModuleGetGlobal_v2') - {{endif}} - {{if 'cuLinkCreate_v2' in found_functions}} - global __cuLinkCreate_v2 - __cuLinkCreate_v2 = dlfcn.dlsym(handle, 'cuLinkCreate_v2') - {{endif}} - {{if 'cuLinkAddData_v2' in found_functions}} - global __cuLinkAddData_v2 - __cuLinkAddData_v2 = dlfcn.dlsym(handle, 'cuLinkAddData_v2') - {{endif}} - {{if 'cuLinkAddFile_v2' in found_functions}} - global __cuLinkAddFile_v2 - __cuLinkAddFile_v2 = dlfcn.dlsym(handle, 'cuLinkAddFile_v2') - {{endif}} - {{if 'cuLinkComplete' in found_functions}} - global __cuLinkComplete - __cuLinkComplete = dlfcn.dlsym(handle, 'cuLinkComplete') - {{endif}} - {{if 'cuLinkDestroy' in found_functions}} - global __cuLinkDestroy - __cuLinkDestroy = dlfcn.dlsym(handle, 'cuLinkDestroy') - {{endif}} - {{if 'cuModuleGetTexRef' in found_functions}} - global __cuModuleGetTexRef - __cuModuleGetTexRef = dlfcn.dlsym(handle, 'cuModuleGetTexRef') - {{endif}} - {{if 'cuModuleGetSurfRef' in found_functions}} - global __cuModuleGetSurfRef - __cuModuleGetSurfRef = dlfcn.dlsym(handle, 'cuModuleGetSurfRef') - {{endif}} - {{if 'cuLibraryLoadData' in found_functions}} - global __cuLibraryLoadData - __cuLibraryLoadData = dlfcn.dlsym(handle, 'cuLibraryLoadData') - {{endif}} - {{if 'cuLibraryLoadFromFile' in found_functions}} - global __cuLibraryLoadFromFile - __cuLibraryLoadFromFile = dlfcn.dlsym(handle, 'cuLibraryLoadFromFile') - {{endif}} - {{if 'cuLibraryUnload' in found_functions}} - global __cuLibraryUnload - __cuLibraryUnload = dlfcn.dlsym(handle, 'cuLibraryUnload') - {{endif}} - {{if 'cuLibraryGetKernel' in found_functions}} - global __cuLibraryGetKernel - __cuLibraryGetKernel = dlfcn.dlsym(handle, 'cuLibraryGetKernel') - {{endif}} - {{if 'cuLibraryGetKernelCount' in found_functions}} - global __cuLibraryGetKernelCount - __cuLibraryGetKernelCount = dlfcn.dlsym(handle, 'cuLibraryGetKernelCount') - {{endif}} - {{if 'cuLibraryEnumerateKernels' in found_functions}} - global __cuLibraryEnumerateKernels - __cuLibraryEnumerateKernels = dlfcn.dlsym(handle, 'cuLibraryEnumerateKernels') - {{endif}} - {{if 'cuLibraryGetModule' in found_functions}} - global __cuLibraryGetModule - __cuLibraryGetModule = dlfcn.dlsym(handle, 'cuLibraryGetModule') - {{endif}} - {{if 'cuKernelGetFunction' in found_functions}} - global __cuKernelGetFunction - __cuKernelGetFunction = dlfcn.dlsym(handle, 'cuKernelGetFunction') - {{endif}} - {{if 'cuKernelGetLibrary' in found_functions}} - global __cuKernelGetLibrary - __cuKernelGetLibrary = dlfcn.dlsym(handle, 'cuKernelGetLibrary') - {{endif}} - {{if 'cuLibraryGetGlobal' in found_functions}} - global __cuLibraryGetGlobal - __cuLibraryGetGlobal = dlfcn.dlsym(handle, 'cuLibraryGetGlobal') - {{endif}} - {{if 'cuLibraryGetManaged' in found_functions}} - global __cuLibraryGetManaged - __cuLibraryGetManaged = dlfcn.dlsym(handle, 'cuLibraryGetManaged') - {{endif}} - {{if 'cuLibraryGetUnifiedFunction' in found_functions}} - global __cuLibraryGetUnifiedFunction - __cuLibraryGetUnifiedFunction = dlfcn.dlsym(handle, 'cuLibraryGetUnifiedFunction') - {{endif}} - {{if 'cuKernelGetAttribute' in found_functions}} - global __cuKernelGetAttribute - __cuKernelGetAttribute = dlfcn.dlsym(handle, 'cuKernelGetAttribute') - {{endif}} - {{if 'cuKernelSetAttribute' in found_functions}} - global __cuKernelSetAttribute - __cuKernelSetAttribute = dlfcn.dlsym(handle, 'cuKernelSetAttribute') - {{endif}} - {{if 'cuKernelSetCacheConfig' in found_functions}} - global __cuKernelSetCacheConfig - __cuKernelSetCacheConfig = dlfcn.dlsym(handle, 'cuKernelSetCacheConfig') - {{endif}} - {{if 'cuKernelGetName' in found_functions}} - global __cuKernelGetName - __cuKernelGetName = dlfcn.dlsym(handle, 'cuKernelGetName') - {{endif}} - {{if 'cuKernelGetParamInfo' in found_functions}} - global __cuKernelGetParamInfo - __cuKernelGetParamInfo = dlfcn.dlsym(handle, 'cuKernelGetParamInfo') - {{endif}} - {{if 'cuKernelGetParamCount' in found_functions}} - global __cuKernelGetParamCount - __cuKernelGetParamCount = dlfcn.dlsym(handle, 'cuKernelGetParamCount') - {{endif}} - {{if 'cuMemGetInfo_v2' in found_functions}} - global __cuMemGetInfo_v2 - __cuMemGetInfo_v2 = dlfcn.dlsym(handle, 'cuMemGetInfo_v2') - {{endif}} - {{if 'cuMemAlloc_v2' in found_functions}} - global __cuMemAlloc_v2 - __cuMemAlloc_v2 = dlfcn.dlsym(handle, 'cuMemAlloc_v2') - {{endif}} - {{if 'cuMemAllocPitch_v2' in found_functions}} - global __cuMemAllocPitch_v2 - __cuMemAllocPitch_v2 = dlfcn.dlsym(handle, 'cuMemAllocPitch_v2') - {{endif}} - {{if 'cuMemFree_v2' in found_functions}} - global __cuMemFree_v2 - __cuMemFree_v2 = dlfcn.dlsym(handle, 'cuMemFree_v2') - {{endif}} - {{if 'cuMemGetAddressRange_v2' in found_functions}} - global __cuMemGetAddressRange_v2 - __cuMemGetAddressRange_v2 = dlfcn.dlsym(handle, 'cuMemGetAddressRange_v2') - {{endif}} - {{if 'cuMemAllocHost_v2' in found_functions}} - global __cuMemAllocHost_v2 - __cuMemAllocHost_v2 = dlfcn.dlsym(handle, 'cuMemAllocHost_v2') - {{endif}} - {{if 'cuMemFreeHost' in found_functions}} - global __cuMemFreeHost - __cuMemFreeHost = dlfcn.dlsym(handle, 'cuMemFreeHost') - {{endif}} - {{if 'cuMemHostAlloc' in found_functions}} - global __cuMemHostAlloc - __cuMemHostAlloc = dlfcn.dlsym(handle, 'cuMemHostAlloc') - {{endif}} - {{if 'cuMemHostGetDevicePointer_v2' in found_functions}} - global __cuMemHostGetDevicePointer_v2 - __cuMemHostGetDevicePointer_v2 = dlfcn.dlsym(handle, 'cuMemHostGetDevicePointer_v2') - {{endif}} - {{if 'cuMemHostGetFlags' in found_functions}} - global __cuMemHostGetFlags - __cuMemHostGetFlags = dlfcn.dlsym(handle, 'cuMemHostGetFlags') - {{endif}} - {{if 'cuMemAllocManaged' in found_functions}} - global __cuMemAllocManaged - __cuMemAllocManaged = dlfcn.dlsym(handle, 'cuMemAllocManaged') - {{endif}} - {{if 'cuDeviceRegisterAsyncNotification' in found_functions}} - global __cuDeviceRegisterAsyncNotification - __cuDeviceRegisterAsyncNotification = dlfcn.dlsym(handle, 'cuDeviceRegisterAsyncNotification') - {{endif}} - {{if 'cuDeviceUnregisterAsyncNotification' in found_functions}} - global __cuDeviceUnregisterAsyncNotification - __cuDeviceUnregisterAsyncNotification = dlfcn.dlsym(handle, 'cuDeviceUnregisterAsyncNotification') - {{endif}} - {{if 'cuDeviceGetByPCIBusId' in found_functions}} - global __cuDeviceGetByPCIBusId - __cuDeviceGetByPCIBusId = dlfcn.dlsym(handle, 'cuDeviceGetByPCIBusId') - {{endif}} - {{if 'cuDeviceGetPCIBusId' in found_functions}} - global __cuDeviceGetPCIBusId - __cuDeviceGetPCIBusId = dlfcn.dlsym(handle, 'cuDeviceGetPCIBusId') - {{endif}} - {{if 'cuIpcGetEventHandle' in found_functions}} - global __cuIpcGetEventHandle - __cuIpcGetEventHandle = dlfcn.dlsym(handle, 'cuIpcGetEventHandle') - {{endif}} - {{if 'cuIpcOpenEventHandle' in found_functions}} - global __cuIpcOpenEventHandle - __cuIpcOpenEventHandle = dlfcn.dlsym(handle, 'cuIpcOpenEventHandle') - {{endif}} - {{if 'cuIpcGetMemHandle' in found_functions}} - global __cuIpcGetMemHandle - __cuIpcGetMemHandle = dlfcn.dlsym(handle, 'cuIpcGetMemHandle') - {{endif}} - {{if 'cuIpcOpenMemHandle_v2' in found_functions}} - global __cuIpcOpenMemHandle_v2 - __cuIpcOpenMemHandle_v2 = dlfcn.dlsym(handle, 'cuIpcOpenMemHandle_v2') - {{endif}} - {{if 'cuIpcCloseMemHandle' in found_functions}} - global __cuIpcCloseMemHandle - __cuIpcCloseMemHandle = dlfcn.dlsym(handle, 'cuIpcCloseMemHandle') - {{endif}} - {{if 'cuMemHostRegister_v2' in found_functions}} - global __cuMemHostRegister_v2 - __cuMemHostRegister_v2 = dlfcn.dlsym(handle, 'cuMemHostRegister_v2') - {{endif}} - {{if 'cuMemHostUnregister' in found_functions}} - global __cuMemHostUnregister - __cuMemHostUnregister = dlfcn.dlsym(handle, 'cuMemHostUnregister') - {{endif}} - {{if 'cuArrayCreate_v2' in found_functions}} - global __cuArrayCreate_v2 - __cuArrayCreate_v2 = dlfcn.dlsym(handle, 'cuArrayCreate_v2') - {{endif}} - {{if 'cuArrayGetDescriptor_v2' in found_functions}} - global __cuArrayGetDescriptor_v2 - __cuArrayGetDescriptor_v2 = dlfcn.dlsym(handle, 'cuArrayGetDescriptor_v2') - {{endif}} - {{if 'cuArrayGetSparseProperties' in found_functions}} - global __cuArrayGetSparseProperties - __cuArrayGetSparseProperties = dlfcn.dlsym(handle, 'cuArrayGetSparseProperties') - {{endif}} - {{if 'cuMipmappedArrayGetSparseProperties' in found_functions}} - global __cuMipmappedArrayGetSparseProperties - __cuMipmappedArrayGetSparseProperties = dlfcn.dlsym(handle, 'cuMipmappedArrayGetSparseProperties') - {{endif}} - {{if 'cuArrayGetMemoryRequirements' in found_functions}} - global __cuArrayGetMemoryRequirements - __cuArrayGetMemoryRequirements = dlfcn.dlsym(handle, 'cuArrayGetMemoryRequirements') - {{endif}} - {{if 'cuMipmappedArrayGetMemoryRequirements' in found_functions}} - global __cuMipmappedArrayGetMemoryRequirements - __cuMipmappedArrayGetMemoryRequirements = dlfcn.dlsym(handle, 'cuMipmappedArrayGetMemoryRequirements') - {{endif}} - {{if 'cuArrayGetPlane' in found_functions}} - global __cuArrayGetPlane - __cuArrayGetPlane = dlfcn.dlsym(handle, 'cuArrayGetPlane') - {{endif}} - {{if 'cuArrayDestroy' in found_functions}} - global __cuArrayDestroy - __cuArrayDestroy = dlfcn.dlsym(handle, 'cuArrayDestroy') - {{endif}} - {{if 'cuArray3DCreate_v2' in found_functions}} - global __cuArray3DCreate_v2 - __cuArray3DCreate_v2 = dlfcn.dlsym(handle, 'cuArray3DCreate_v2') - {{endif}} - {{if 'cuArray3DGetDescriptor_v2' in found_functions}} - global __cuArray3DGetDescriptor_v2 - __cuArray3DGetDescriptor_v2 = dlfcn.dlsym(handle, 'cuArray3DGetDescriptor_v2') - {{endif}} - {{if 'cuMipmappedArrayCreate' in found_functions}} - global __cuMipmappedArrayCreate - __cuMipmappedArrayCreate = dlfcn.dlsym(handle, 'cuMipmappedArrayCreate') - {{endif}} - {{if 'cuMipmappedArrayGetLevel' in found_functions}} - global __cuMipmappedArrayGetLevel - __cuMipmappedArrayGetLevel = dlfcn.dlsym(handle, 'cuMipmappedArrayGetLevel') - {{endif}} - {{if 'cuMipmappedArrayDestroy' in found_functions}} - global __cuMipmappedArrayDestroy - __cuMipmappedArrayDestroy = dlfcn.dlsym(handle, 'cuMipmappedArrayDestroy') - {{endif}} - {{if 'cuMemGetHandleForAddressRange' in found_functions}} - global __cuMemGetHandleForAddressRange - __cuMemGetHandleForAddressRange = dlfcn.dlsym(handle, 'cuMemGetHandleForAddressRange') - {{endif}} - {{if 'cuMemAddressReserve' in found_functions}} - global __cuMemAddressReserve - __cuMemAddressReserve = dlfcn.dlsym(handle, 'cuMemAddressReserve') - {{endif}} - {{if 'cuMemAddressFree' in found_functions}} - global __cuMemAddressFree - __cuMemAddressFree = dlfcn.dlsym(handle, 'cuMemAddressFree') - {{endif}} - {{if 'cuMemCreate' in found_functions}} - global __cuMemCreate - __cuMemCreate = dlfcn.dlsym(handle, 'cuMemCreate') - {{endif}} - {{if 'cuMemRelease' in found_functions}} - global __cuMemRelease - __cuMemRelease = dlfcn.dlsym(handle, 'cuMemRelease') - {{endif}} - {{if 'cuMemMap' in found_functions}} - global __cuMemMap - __cuMemMap = dlfcn.dlsym(handle, 'cuMemMap') - {{endif}} - {{if 'cuMemUnmap' in found_functions}} - global __cuMemUnmap - __cuMemUnmap = dlfcn.dlsym(handle, 'cuMemUnmap') - {{endif}} - {{if 'cuMemSetAccess' in found_functions}} - global __cuMemSetAccess - __cuMemSetAccess = dlfcn.dlsym(handle, 'cuMemSetAccess') - {{endif}} - {{if 'cuMemGetAccess' in found_functions}} - global __cuMemGetAccess - __cuMemGetAccess = dlfcn.dlsym(handle, 'cuMemGetAccess') - {{endif}} - {{if 'cuMemExportToShareableHandle' in found_functions}} - global __cuMemExportToShareableHandle - __cuMemExportToShareableHandle = dlfcn.dlsym(handle, 'cuMemExportToShareableHandle') - {{endif}} - {{if 'cuMemImportFromShareableHandle' in found_functions}} - global __cuMemImportFromShareableHandle - __cuMemImportFromShareableHandle = dlfcn.dlsym(handle, 'cuMemImportFromShareableHandle') - {{endif}} - {{if 'cuMemGetAllocationGranularity' in found_functions}} - global __cuMemGetAllocationGranularity - __cuMemGetAllocationGranularity = dlfcn.dlsym(handle, 'cuMemGetAllocationGranularity') - {{endif}} - {{if 'cuMemGetAllocationPropertiesFromHandle' in found_functions}} - global __cuMemGetAllocationPropertiesFromHandle - __cuMemGetAllocationPropertiesFromHandle = dlfcn.dlsym(handle, 'cuMemGetAllocationPropertiesFromHandle') - {{endif}} - {{if 'cuMemRetainAllocationHandle' in found_functions}} - global __cuMemRetainAllocationHandle - __cuMemRetainAllocationHandle = dlfcn.dlsym(handle, 'cuMemRetainAllocationHandle') - {{endif}} - {{if 'cuMemPoolTrimTo' in found_functions}} - global __cuMemPoolTrimTo - __cuMemPoolTrimTo = dlfcn.dlsym(handle, 'cuMemPoolTrimTo') - {{endif}} - {{if 'cuMemPoolSetAttribute' in found_functions}} - global __cuMemPoolSetAttribute - __cuMemPoolSetAttribute = dlfcn.dlsym(handle, 'cuMemPoolSetAttribute') - {{endif}} - {{if 'cuMemPoolGetAttribute' in found_functions}} - global __cuMemPoolGetAttribute - __cuMemPoolGetAttribute = dlfcn.dlsym(handle, 'cuMemPoolGetAttribute') - {{endif}} - {{if 'cuMemPoolSetAccess' in found_functions}} - global __cuMemPoolSetAccess - __cuMemPoolSetAccess = dlfcn.dlsym(handle, 'cuMemPoolSetAccess') - {{endif}} - {{if 'cuMemPoolGetAccess' in found_functions}} - global __cuMemPoolGetAccess - __cuMemPoolGetAccess = dlfcn.dlsym(handle, 'cuMemPoolGetAccess') - {{endif}} - {{if 'cuMemPoolCreate' in found_functions}} - global __cuMemPoolCreate - __cuMemPoolCreate = dlfcn.dlsym(handle, 'cuMemPoolCreate') - {{endif}} - {{if 'cuMemPoolDestroy' in found_functions}} - global __cuMemPoolDestroy - __cuMemPoolDestroy = dlfcn.dlsym(handle, 'cuMemPoolDestroy') - {{endif}} - {{if 'cuMemGetDefaultMemPool' in found_functions}} - global __cuMemGetDefaultMemPool - __cuMemGetDefaultMemPool = dlfcn.dlsym(handle, 'cuMemGetDefaultMemPool') - {{endif}} - {{if 'cuMemGetMemPool' in found_functions}} - global __cuMemGetMemPool - __cuMemGetMemPool = dlfcn.dlsym(handle, 'cuMemGetMemPool') - {{endif}} - {{if 'cuMemSetMemPool' in found_functions}} - global __cuMemSetMemPool - __cuMemSetMemPool = dlfcn.dlsym(handle, 'cuMemSetMemPool') - {{endif}} - {{if 'cuMemPoolExportToShareableHandle' in found_functions}} - global __cuMemPoolExportToShareableHandle - __cuMemPoolExportToShareableHandle = dlfcn.dlsym(handle, 'cuMemPoolExportToShareableHandle') - {{endif}} - {{if 'cuMemPoolImportFromShareableHandle' in found_functions}} - global __cuMemPoolImportFromShareableHandle - __cuMemPoolImportFromShareableHandle = dlfcn.dlsym(handle, 'cuMemPoolImportFromShareableHandle') - {{endif}} - {{if 'cuMemPoolExportPointer' in found_functions}} - global __cuMemPoolExportPointer - __cuMemPoolExportPointer = dlfcn.dlsym(handle, 'cuMemPoolExportPointer') - {{endif}} - {{if 'cuMemPoolImportPointer' in found_functions}} - global __cuMemPoolImportPointer - __cuMemPoolImportPointer = dlfcn.dlsym(handle, 'cuMemPoolImportPointer') - {{endif}} - {{if 'cuMulticastCreate' in found_functions}} - global __cuMulticastCreate - __cuMulticastCreate = dlfcn.dlsym(handle, 'cuMulticastCreate') - {{endif}} - {{if 'cuMulticastAddDevice' in found_functions}} - global __cuMulticastAddDevice - __cuMulticastAddDevice = dlfcn.dlsym(handle, 'cuMulticastAddDevice') - {{endif}} - {{if 'cuMulticastBindMem' in found_functions}} - global __cuMulticastBindMem - __cuMulticastBindMem = dlfcn.dlsym(handle, 'cuMulticastBindMem') - {{endif}} - {{if 'cuMulticastBindMem_v2' in found_functions}} - global __cuMulticastBindMem_v2 - __cuMulticastBindMem_v2 = dlfcn.dlsym(handle, 'cuMulticastBindMem_v2') - {{endif}} - {{if 'cuMulticastBindAddr' in found_functions}} - global __cuMulticastBindAddr - __cuMulticastBindAddr = dlfcn.dlsym(handle, 'cuMulticastBindAddr') - {{endif}} - {{if 'cuMulticastBindAddr_v2' in found_functions}} - global __cuMulticastBindAddr_v2 - __cuMulticastBindAddr_v2 = dlfcn.dlsym(handle, 'cuMulticastBindAddr_v2') - {{endif}} - {{if 'cuMulticastUnbind' in found_functions}} - global __cuMulticastUnbind - __cuMulticastUnbind = dlfcn.dlsym(handle, 'cuMulticastUnbind') - {{endif}} - {{if 'cuMulticastGetGranularity' in found_functions}} - global __cuMulticastGetGranularity - __cuMulticastGetGranularity = dlfcn.dlsym(handle, 'cuMulticastGetGranularity') - {{endif}} - {{if 'cuPointerGetAttribute' in found_functions}} - global __cuPointerGetAttribute - __cuPointerGetAttribute = dlfcn.dlsym(handle, 'cuPointerGetAttribute') - {{endif}} - {{if 'cuMemAdvise_v2' in found_functions}} - global __cuMemAdvise_v2 - __cuMemAdvise_v2 = dlfcn.dlsym(handle, 'cuMemAdvise_v2') - {{endif}} - {{if 'cuMemRangeGetAttribute' in found_functions}} - global __cuMemRangeGetAttribute - __cuMemRangeGetAttribute = dlfcn.dlsym(handle, 'cuMemRangeGetAttribute') - {{endif}} - {{if 'cuMemRangeGetAttributes' in found_functions}} - global __cuMemRangeGetAttributes - __cuMemRangeGetAttributes = dlfcn.dlsym(handle, 'cuMemRangeGetAttributes') - {{endif}} - {{if 'cuPointerSetAttribute' in found_functions}} - global __cuPointerSetAttribute - __cuPointerSetAttribute = dlfcn.dlsym(handle, 'cuPointerSetAttribute') - {{endif}} - {{if 'cuPointerGetAttributes' in found_functions}} - global __cuPointerGetAttributes - __cuPointerGetAttributes = dlfcn.dlsym(handle, 'cuPointerGetAttributes') - {{endif}} - {{if 'cuStreamCreate' in found_functions}} - global __cuStreamCreate - __cuStreamCreate = dlfcn.dlsym(handle, 'cuStreamCreate') - {{endif}} - {{if 'cuStreamCreateWithPriority' in found_functions}} - global __cuStreamCreateWithPriority - __cuStreamCreateWithPriority = dlfcn.dlsym(handle, 'cuStreamCreateWithPriority') - {{endif}} - {{if 'cuThreadExchangeStreamCaptureMode' in found_functions}} - global __cuThreadExchangeStreamCaptureMode - __cuThreadExchangeStreamCaptureMode = dlfcn.dlsym(handle, 'cuThreadExchangeStreamCaptureMode') - {{endif}} - {{if 'cuStreamDestroy_v2' in found_functions}} - global __cuStreamDestroy_v2 - __cuStreamDestroy_v2 = dlfcn.dlsym(handle, 'cuStreamDestroy_v2') - {{endif}} - {{if 'cuEventCreate' in found_functions}} - global __cuEventCreate - __cuEventCreate = dlfcn.dlsym(handle, 'cuEventCreate') - {{endif}} - {{if 'cuEventQuery' in found_functions}} - global __cuEventQuery - __cuEventQuery = dlfcn.dlsym(handle, 'cuEventQuery') - {{endif}} - {{if 'cuEventSynchronize' in found_functions}} - global __cuEventSynchronize - __cuEventSynchronize = dlfcn.dlsym(handle, 'cuEventSynchronize') - {{endif}} - {{if 'cuEventDestroy_v2' in found_functions}} - global __cuEventDestroy_v2 - __cuEventDestroy_v2 = dlfcn.dlsym(handle, 'cuEventDestroy_v2') - {{endif}} - {{if 'cuEventElapsedTime_v2' in found_functions}} - global __cuEventElapsedTime_v2 - __cuEventElapsedTime_v2 = dlfcn.dlsym(handle, 'cuEventElapsedTime_v2') - {{endif}} - {{if 'cuImportExternalMemory' in found_functions}} - global __cuImportExternalMemory - __cuImportExternalMemory = dlfcn.dlsym(handle, 'cuImportExternalMemory') - {{endif}} - {{if 'cuExternalMemoryGetMappedBuffer' in found_functions}} - global __cuExternalMemoryGetMappedBuffer - __cuExternalMemoryGetMappedBuffer = dlfcn.dlsym(handle, 'cuExternalMemoryGetMappedBuffer') - {{endif}} - {{if 'cuExternalMemoryGetMappedMipmappedArray' in found_functions}} - global __cuExternalMemoryGetMappedMipmappedArray - __cuExternalMemoryGetMappedMipmappedArray = dlfcn.dlsym(handle, 'cuExternalMemoryGetMappedMipmappedArray') - {{endif}} - {{if 'cuDestroyExternalMemory' in found_functions}} - global __cuDestroyExternalMemory - __cuDestroyExternalMemory = dlfcn.dlsym(handle, 'cuDestroyExternalMemory') - {{endif}} - {{if 'cuImportExternalSemaphore' in found_functions}} - global __cuImportExternalSemaphore - __cuImportExternalSemaphore = dlfcn.dlsym(handle, 'cuImportExternalSemaphore') - {{endif}} - {{if 'cuDestroyExternalSemaphore' in found_functions}} - global __cuDestroyExternalSemaphore - __cuDestroyExternalSemaphore = dlfcn.dlsym(handle, 'cuDestroyExternalSemaphore') - {{endif}} - {{if 'cuFuncGetAttribute' in found_functions}} - global __cuFuncGetAttribute - __cuFuncGetAttribute = dlfcn.dlsym(handle, 'cuFuncGetAttribute') - {{endif}} - {{if 'cuFuncSetAttribute' in found_functions}} - global __cuFuncSetAttribute - __cuFuncSetAttribute = dlfcn.dlsym(handle, 'cuFuncSetAttribute') - {{endif}} - {{if 'cuFuncSetCacheConfig' in found_functions}} - global __cuFuncSetCacheConfig - __cuFuncSetCacheConfig = dlfcn.dlsym(handle, 'cuFuncSetCacheConfig') - {{endif}} - {{if 'cuFuncGetModule' in found_functions}} - global __cuFuncGetModule - __cuFuncGetModule = dlfcn.dlsym(handle, 'cuFuncGetModule') - {{endif}} - {{if 'cuFuncGetName' in found_functions}} - global __cuFuncGetName - __cuFuncGetName = dlfcn.dlsym(handle, 'cuFuncGetName') - {{endif}} - {{if 'cuFuncGetParamInfo' in found_functions}} - global __cuFuncGetParamInfo - __cuFuncGetParamInfo = dlfcn.dlsym(handle, 'cuFuncGetParamInfo') - {{endif}} - {{if 'cuFuncGetParamCount' in found_functions}} - global __cuFuncGetParamCount - __cuFuncGetParamCount = dlfcn.dlsym(handle, 'cuFuncGetParamCount') - {{endif}} - {{if 'cuFuncIsLoaded' in found_functions}} - global __cuFuncIsLoaded - __cuFuncIsLoaded = dlfcn.dlsym(handle, 'cuFuncIsLoaded') - {{endif}} - {{if 'cuFuncLoad' in found_functions}} - global __cuFuncLoad - __cuFuncLoad = dlfcn.dlsym(handle, 'cuFuncLoad') - {{endif}} - {{if 'cuLaunchCooperativeKernelMultiDevice' in found_functions}} - global __cuLaunchCooperativeKernelMultiDevice - __cuLaunchCooperativeKernelMultiDevice = dlfcn.dlsym(handle, 'cuLaunchCooperativeKernelMultiDevice') - {{endif}} - {{if 'cuFuncSetBlockShape' in found_functions}} - global __cuFuncSetBlockShape - __cuFuncSetBlockShape = dlfcn.dlsym(handle, 'cuFuncSetBlockShape') - {{endif}} - {{if 'cuFuncSetSharedSize' in found_functions}} - global __cuFuncSetSharedSize - __cuFuncSetSharedSize = dlfcn.dlsym(handle, 'cuFuncSetSharedSize') - {{endif}} - {{if 'cuParamSetSize' in found_functions}} - global __cuParamSetSize - __cuParamSetSize = dlfcn.dlsym(handle, 'cuParamSetSize') - {{endif}} - {{if 'cuParamSeti' in found_functions}} - global __cuParamSeti - __cuParamSeti = dlfcn.dlsym(handle, 'cuParamSeti') - {{endif}} - {{if 'cuParamSetf' in found_functions}} - global __cuParamSetf - __cuParamSetf = dlfcn.dlsym(handle, 'cuParamSetf') - {{endif}} - {{if 'cuParamSetv' in found_functions}} - global __cuParamSetv - __cuParamSetv = dlfcn.dlsym(handle, 'cuParamSetv') - {{endif}} - {{if 'cuLaunch' in found_functions}} - global __cuLaunch - __cuLaunch = dlfcn.dlsym(handle, 'cuLaunch') - {{endif}} - {{if 'cuLaunchGrid' in found_functions}} - global __cuLaunchGrid - __cuLaunchGrid = dlfcn.dlsym(handle, 'cuLaunchGrid') - {{endif}} - {{if 'cuLaunchGridAsync' in found_functions}} - global __cuLaunchGridAsync - __cuLaunchGridAsync = dlfcn.dlsym(handle, 'cuLaunchGridAsync') - {{endif}} - {{if 'cuParamSetTexRef' in found_functions}} - global __cuParamSetTexRef - __cuParamSetTexRef = dlfcn.dlsym(handle, 'cuParamSetTexRef') - {{endif}} - {{if 'cuFuncSetSharedMemConfig' in found_functions}} - global __cuFuncSetSharedMemConfig - __cuFuncSetSharedMemConfig = dlfcn.dlsym(handle, 'cuFuncSetSharedMemConfig') - {{endif}} - {{if 'cuGraphCreate' in found_functions}} - global __cuGraphCreate - __cuGraphCreate = dlfcn.dlsym(handle, 'cuGraphCreate') - {{endif}} - {{if 'cuGraphAddKernelNode_v2' in found_functions}} - global __cuGraphAddKernelNode_v2 - __cuGraphAddKernelNode_v2 = dlfcn.dlsym(handle, 'cuGraphAddKernelNode_v2') - {{endif}} - {{if 'cuGraphKernelNodeGetParams_v2' in found_functions}} - global __cuGraphKernelNodeGetParams_v2 - __cuGraphKernelNodeGetParams_v2 = dlfcn.dlsym(handle, 'cuGraphKernelNodeGetParams_v2') - {{endif}} - {{if 'cuGraphKernelNodeSetParams_v2' in found_functions}} - global __cuGraphKernelNodeSetParams_v2 - __cuGraphKernelNodeSetParams_v2 = dlfcn.dlsym(handle, 'cuGraphKernelNodeSetParams_v2') - {{endif}} - {{if 'cuGraphAddMemcpyNode' in found_functions}} - global __cuGraphAddMemcpyNode - __cuGraphAddMemcpyNode = dlfcn.dlsym(handle, 'cuGraphAddMemcpyNode') - {{endif}} - {{if 'cuGraphMemcpyNodeGetParams' in found_functions}} - global __cuGraphMemcpyNodeGetParams - __cuGraphMemcpyNodeGetParams = dlfcn.dlsym(handle, 'cuGraphMemcpyNodeGetParams') - {{endif}} - {{if 'cuGraphMemcpyNodeSetParams' in found_functions}} - global __cuGraphMemcpyNodeSetParams - __cuGraphMemcpyNodeSetParams = dlfcn.dlsym(handle, 'cuGraphMemcpyNodeSetParams') - {{endif}} - {{if 'cuGraphAddMemsetNode' in found_functions}} - global __cuGraphAddMemsetNode - __cuGraphAddMemsetNode = dlfcn.dlsym(handle, 'cuGraphAddMemsetNode') - {{endif}} - {{if 'cuGraphMemsetNodeGetParams' in found_functions}} - global __cuGraphMemsetNodeGetParams - __cuGraphMemsetNodeGetParams = dlfcn.dlsym(handle, 'cuGraphMemsetNodeGetParams') - {{endif}} - {{if 'cuGraphMemsetNodeSetParams' in found_functions}} - global __cuGraphMemsetNodeSetParams - __cuGraphMemsetNodeSetParams = dlfcn.dlsym(handle, 'cuGraphMemsetNodeSetParams') - {{endif}} - {{if 'cuGraphAddHostNode' in found_functions}} - global __cuGraphAddHostNode - __cuGraphAddHostNode = dlfcn.dlsym(handle, 'cuGraphAddHostNode') - {{endif}} - {{if 'cuGraphHostNodeGetParams' in found_functions}} - global __cuGraphHostNodeGetParams - __cuGraphHostNodeGetParams = dlfcn.dlsym(handle, 'cuGraphHostNodeGetParams') - {{endif}} - {{if 'cuGraphHostNodeSetParams' in found_functions}} - global __cuGraphHostNodeSetParams - __cuGraphHostNodeSetParams = dlfcn.dlsym(handle, 'cuGraphHostNodeSetParams') - {{endif}} - {{if 'cuGraphAddChildGraphNode' in found_functions}} - global __cuGraphAddChildGraphNode - __cuGraphAddChildGraphNode = dlfcn.dlsym(handle, 'cuGraphAddChildGraphNode') - {{endif}} - {{if 'cuGraphChildGraphNodeGetGraph' in found_functions}} - global __cuGraphChildGraphNodeGetGraph - __cuGraphChildGraphNodeGetGraph = dlfcn.dlsym(handle, 'cuGraphChildGraphNodeGetGraph') - {{endif}} - {{if 'cuGraphAddEmptyNode' in found_functions}} - global __cuGraphAddEmptyNode - __cuGraphAddEmptyNode = dlfcn.dlsym(handle, 'cuGraphAddEmptyNode') - {{endif}} - {{if 'cuGraphAddEventRecordNode' in found_functions}} - global __cuGraphAddEventRecordNode - __cuGraphAddEventRecordNode = dlfcn.dlsym(handle, 'cuGraphAddEventRecordNode') - {{endif}} - {{if 'cuGraphEventRecordNodeGetEvent' in found_functions}} - global __cuGraphEventRecordNodeGetEvent - __cuGraphEventRecordNodeGetEvent = dlfcn.dlsym(handle, 'cuGraphEventRecordNodeGetEvent') - {{endif}} - {{if 'cuGraphEventRecordNodeSetEvent' in found_functions}} - global __cuGraphEventRecordNodeSetEvent - __cuGraphEventRecordNodeSetEvent = dlfcn.dlsym(handle, 'cuGraphEventRecordNodeSetEvent') - {{endif}} - {{if 'cuGraphAddEventWaitNode' in found_functions}} - global __cuGraphAddEventWaitNode - __cuGraphAddEventWaitNode = dlfcn.dlsym(handle, 'cuGraphAddEventWaitNode') - {{endif}} - {{if 'cuGraphEventWaitNodeGetEvent' in found_functions}} - global __cuGraphEventWaitNodeGetEvent - __cuGraphEventWaitNodeGetEvent = dlfcn.dlsym(handle, 'cuGraphEventWaitNodeGetEvent') - {{endif}} - {{if 'cuGraphEventWaitNodeSetEvent' in found_functions}} - global __cuGraphEventWaitNodeSetEvent - __cuGraphEventWaitNodeSetEvent = dlfcn.dlsym(handle, 'cuGraphEventWaitNodeSetEvent') - {{endif}} - {{if 'cuGraphAddExternalSemaphoresSignalNode' in found_functions}} - global __cuGraphAddExternalSemaphoresSignalNode - __cuGraphAddExternalSemaphoresSignalNode = dlfcn.dlsym(handle, 'cuGraphAddExternalSemaphoresSignalNode') - {{endif}} - {{if 'cuGraphExternalSemaphoresSignalNodeGetParams' in found_functions}} - global __cuGraphExternalSemaphoresSignalNodeGetParams - __cuGraphExternalSemaphoresSignalNodeGetParams = dlfcn.dlsym(handle, 'cuGraphExternalSemaphoresSignalNodeGetParams') - {{endif}} - {{if 'cuGraphExternalSemaphoresSignalNodeSetParams' in found_functions}} - global __cuGraphExternalSemaphoresSignalNodeSetParams - __cuGraphExternalSemaphoresSignalNodeSetParams = dlfcn.dlsym(handle, 'cuGraphExternalSemaphoresSignalNodeSetParams') - {{endif}} - {{if 'cuGraphAddExternalSemaphoresWaitNode' in found_functions}} - global __cuGraphAddExternalSemaphoresWaitNode - __cuGraphAddExternalSemaphoresWaitNode = dlfcn.dlsym(handle, 'cuGraphAddExternalSemaphoresWaitNode') - {{endif}} - {{if 'cuGraphExternalSemaphoresWaitNodeGetParams' in found_functions}} - global __cuGraphExternalSemaphoresWaitNodeGetParams - __cuGraphExternalSemaphoresWaitNodeGetParams = dlfcn.dlsym(handle, 'cuGraphExternalSemaphoresWaitNodeGetParams') - {{endif}} - {{if 'cuGraphExternalSemaphoresWaitNodeSetParams' in found_functions}} - global __cuGraphExternalSemaphoresWaitNodeSetParams - __cuGraphExternalSemaphoresWaitNodeSetParams = dlfcn.dlsym(handle, 'cuGraphExternalSemaphoresWaitNodeSetParams') - {{endif}} - {{if 'cuGraphAddBatchMemOpNode' in found_functions}} - global __cuGraphAddBatchMemOpNode - __cuGraphAddBatchMemOpNode = dlfcn.dlsym(handle, 'cuGraphAddBatchMemOpNode') - {{endif}} - {{if 'cuGraphBatchMemOpNodeGetParams' in found_functions}} - global __cuGraphBatchMemOpNodeGetParams - __cuGraphBatchMemOpNodeGetParams = dlfcn.dlsym(handle, 'cuGraphBatchMemOpNodeGetParams') - {{endif}} - {{if 'cuGraphBatchMemOpNodeSetParams' in found_functions}} - global __cuGraphBatchMemOpNodeSetParams - __cuGraphBatchMemOpNodeSetParams = dlfcn.dlsym(handle, 'cuGraphBatchMemOpNodeSetParams') - {{endif}} - {{if 'cuGraphExecBatchMemOpNodeSetParams' in found_functions}} - global __cuGraphExecBatchMemOpNodeSetParams - __cuGraphExecBatchMemOpNodeSetParams = dlfcn.dlsym(handle, 'cuGraphExecBatchMemOpNodeSetParams') - {{endif}} - {{if 'cuGraphAddMemAllocNode' in found_functions}} - global __cuGraphAddMemAllocNode - __cuGraphAddMemAllocNode = dlfcn.dlsym(handle, 'cuGraphAddMemAllocNode') - {{endif}} - {{if 'cuGraphMemAllocNodeGetParams' in found_functions}} - global __cuGraphMemAllocNodeGetParams - __cuGraphMemAllocNodeGetParams = dlfcn.dlsym(handle, 'cuGraphMemAllocNodeGetParams') - {{endif}} - {{if 'cuGraphAddMemFreeNode' in found_functions}} - global __cuGraphAddMemFreeNode - __cuGraphAddMemFreeNode = dlfcn.dlsym(handle, 'cuGraphAddMemFreeNode') - {{endif}} - {{if 'cuGraphMemFreeNodeGetParams' in found_functions}} - global __cuGraphMemFreeNodeGetParams - __cuGraphMemFreeNodeGetParams = dlfcn.dlsym(handle, 'cuGraphMemFreeNodeGetParams') - {{endif}} - {{if 'cuDeviceGraphMemTrim' in found_functions}} - global __cuDeviceGraphMemTrim - __cuDeviceGraphMemTrim = dlfcn.dlsym(handle, 'cuDeviceGraphMemTrim') - {{endif}} - {{if 'cuDeviceGetGraphMemAttribute' in found_functions}} - global __cuDeviceGetGraphMemAttribute - __cuDeviceGetGraphMemAttribute = dlfcn.dlsym(handle, 'cuDeviceGetGraphMemAttribute') - {{endif}} - {{if 'cuDeviceSetGraphMemAttribute' in found_functions}} - global __cuDeviceSetGraphMemAttribute - __cuDeviceSetGraphMemAttribute = dlfcn.dlsym(handle, 'cuDeviceSetGraphMemAttribute') - {{endif}} - {{if 'cuGraphClone' in found_functions}} - global __cuGraphClone - __cuGraphClone = dlfcn.dlsym(handle, 'cuGraphClone') - {{endif}} - {{if 'cuGraphNodeFindInClone' in found_functions}} - global __cuGraphNodeFindInClone - __cuGraphNodeFindInClone = dlfcn.dlsym(handle, 'cuGraphNodeFindInClone') - {{endif}} - {{if 'cuGraphNodeGetType' in found_functions}} - global __cuGraphNodeGetType - __cuGraphNodeGetType = dlfcn.dlsym(handle, 'cuGraphNodeGetType') - {{endif}} - {{if 'cuGraphNodeGetContainingGraph' in found_functions}} - global __cuGraphNodeGetContainingGraph - __cuGraphNodeGetContainingGraph = dlfcn.dlsym(handle, 'cuGraphNodeGetContainingGraph') - {{endif}} - {{if 'cuGraphNodeGetLocalId' in found_functions}} - global __cuGraphNodeGetLocalId - __cuGraphNodeGetLocalId = dlfcn.dlsym(handle, 'cuGraphNodeGetLocalId') - {{endif}} - {{if 'cuGraphNodeGetToolsId' in found_functions}} - global __cuGraphNodeGetToolsId - __cuGraphNodeGetToolsId = dlfcn.dlsym(handle, 'cuGraphNodeGetToolsId') - {{endif}} - {{if 'cuGraphGetId' in found_functions}} - global __cuGraphGetId - __cuGraphGetId = dlfcn.dlsym(handle, 'cuGraphGetId') - {{endif}} - {{if 'cuGraphExecGetId' in found_functions}} - global __cuGraphExecGetId - __cuGraphExecGetId = dlfcn.dlsym(handle, 'cuGraphExecGetId') - {{endif}} - {{if 'cuGraphGetNodes' in found_functions}} - global __cuGraphGetNodes - __cuGraphGetNodes = dlfcn.dlsym(handle, 'cuGraphGetNodes') - {{endif}} - {{if 'cuGraphGetRootNodes' in found_functions}} - global __cuGraphGetRootNodes - __cuGraphGetRootNodes = dlfcn.dlsym(handle, 'cuGraphGetRootNodes') - {{endif}} - {{if 'cuGraphGetEdges_v2' in found_functions}} - global __cuGraphGetEdges_v2 - __cuGraphGetEdges_v2 = dlfcn.dlsym(handle, 'cuGraphGetEdges_v2') - {{endif}} - {{if 'cuGraphNodeGetDependencies_v2' in found_functions}} - global __cuGraphNodeGetDependencies_v2 - __cuGraphNodeGetDependencies_v2 = dlfcn.dlsym(handle, 'cuGraphNodeGetDependencies_v2') - {{endif}} - {{if 'cuGraphNodeGetDependentNodes_v2' in found_functions}} - global __cuGraphNodeGetDependentNodes_v2 - __cuGraphNodeGetDependentNodes_v2 = dlfcn.dlsym(handle, 'cuGraphNodeGetDependentNodes_v2') - {{endif}} - {{if 'cuGraphAddDependencies_v2' in found_functions}} - global __cuGraphAddDependencies_v2 - __cuGraphAddDependencies_v2 = dlfcn.dlsym(handle, 'cuGraphAddDependencies_v2') - {{endif}} - {{if 'cuGraphRemoveDependencies_v2' in found_functions}} - global __cuGraphRemoveDependencies_v2 - __cuGraphRemoveDependencies_v2 = dlfcn.dlsym(handle, 'cuGraphRemoveDependencies_v2') - {{endif}} - {{if 'cuGraphDestroyNode' in found_functions}} - global __cuGraphDestroyNode - __cuGraphDestroyNode = dlfcn.dlsym(handle, 'cuGraphDestroyNode') - {{endif}} - {{if 'cuGraphInstantiateWithFlags' in found_functions}} - global __cuGraphInstantiateWithFlags - __cuGraphInstantiateWithFlags = dlfcn.dlsym(handle, 'cuGraphInstantiateWithFlags') - {{endif}} - {{if 'cuGraphExecGetFlags' in found_functions}} - global __cuGraphExecGetFlags - __cuGraphExecGetFlags = dlfcn.dlsym(handle, 'cuGraphExecGetFlags') - {{endif}} - {{if 'cuGraphExecKernelNodeSetParams_v2' in found_functions}} - global __cuGraphExecKernelNodeSetParams_v2 - __cuGraphExecKernelNodeSetParams_v2 = dlfcn.dlsym(handle, 'cuGraphExecKernelNodeSetParams_v2') - {{endif}} - {{if 'cuGraphExecMemcpyNodeSetParams' in found_functions}} - global __cuGraphExecMemcpyNodeSetParams - __cuGraphExecMemcpyNodeSetParams = dlfcn.dlsym(handle, 'cuGraphExecMemcpyNodeSetParams') - {{endif}} - {{if 'cuGraphExecMemsetNodeSetParams' in found_functions}} - global __cuGraphExecMemsetNodeSetParams - __cuGraphExecMemsetNodeSetParams = dlfcn.dlsym(handle, 'cuGraphExecMemsetNodeSetParams') - {{endif}} - {{if 'cuGraphExecHostNodeSetParams' in found_functions}} - global __cuGraphExecHostNodeSetParams - __cuGraphExecHostNodeSetParams = dlfcn.dlsym(handle, 'cuGraphExecHostNodeSetParams') - {{endif}} - {{if 'cuGraphExecChildGraphNodeSetParams' in found_functions}} - global __cuGraphExecChildGraphNodeSetParams - __cuGraphExecChildGraphNodeSetParams = dlfcn.dlsym(handle, 'cuGraphExecChildGraphNodeSetParams') - {{endif}} - {{if 'cuGraphExecEventRecordNodeSetEvent' in found_functions}} - global __cuGraphExecEventRecordNodeSetEvent - __cuGraphExecEventRecordNodeSetEvent = dlfcn.dlsym(handle, 'cuGraphExecEventRecordNodeSetEvent') - {{endif}} - {{if 'cuGraphExecEventWaitNodeSetEvent' in found_functions}} - global __cuGraphExecEventWaitNodeSetEvent - __cuGraphExecEventWaitNodeSetEvent = dlfcn.dlsym(handle, 'cuGraphExecEventWaitNodeSetEvent') - {{endif}} - {{if 'cuGraphExecExternalSemaphoresSignalNodeSetParams' in found_functions}} - global __cuGraphExecExternalSemaphoresSignalNodeSetParams - __cuGraphExecExternalSemaphoresSignalNodeSetParams = dlfcn.dlsym(handle, 'cuGraphExecExternalSemaphoresSignalNodeSetParams') - {{endif}} - {{if 'cuGraphExecExternalSemaphoresWaitNodeSetParams' in found_functions}} - global __cuGraphExecExternalSemaphoresWaitNodeSetParams - __cuGraphExecExternalSemaphoresWaitNodeSetParams = dlfcn.dlsym(handle, 'cuGraphExecExternalSemaphoresWaitNodeSetParams') - {{endif}} - {{if 'cuGraphNodeSetEnabled' in found_functions}} - global __cuGraphNodeSetEnabled - __cuGraphNodeSetEnabled = dlfcn.dlsym(handle, 'cuGraphNodeSetEnabled') - {{endif}} - {{if 'cuGraphNodeGetEnabled' in found_functions}} - global __cuGraphNodeGetEnabled - __cuGraphNodeGetEnabled = dlfcn.dlsym(handle, 'cuGraphNodeGetEnabled') - {{endif}} - {{if 'cuGraphExecDestroy' in found_functions}} - global __cuGraphExecDestroy - __cuGraphExecDestroy = dlfcn.dlsym(handle, 'cuGraphExecDestroy') - {{endif}} - {{if 'cuGraphDestroy' in found_functions}} - global __cuGraphDestroy - __cuGraphDestroy = dlfcn.dlsym(handle, 'cuGraphDestroy') - {{endif}} - {{if 'cuGraphExecUpdate_v2' in found_functions}} - global __cuGraphExecUpdate_v2 - __cuGraphExecUpdate_v2 = dlfcn.dlsym(handle, 'cuGraphExecUpdate_v2') - {{endif}} - {{if 'cuGraphKernelNodeCopyAttributes' in found_functions}} - global __cuGraphKernelNodeCopyAttributes - __cuGraphKernelNodeCopyAttributes = dlfcn.dlsym(handle, 'cuGraphKernelNodeCopyAttributes') - {{endif}} - {{if 'cuGraphKernelNodeGetAttribute' in found_functions}} - global __cuGraphKernelNodeGetAttribute - __cuGraphKernelNodeGetAttribute = dlfcn.dlsym(handle, 'cuGraphKernelNodeGetAttribute') - {{endif}} - {{if 'cuGraphKernelNodeSetAttribute' in found_functions}} - global __cuGraphKernelNodeSetAttribute - __cuGraphKernelNodeSetAttribute = dlfcn.dlsym(handle, 'cuGraphKernelNodeSetAttribute') - {{endif}} - {{if 'cuGraphDebugDotPrint' in found_functions}} - global __cuGraphDebugDotPrint - __cuGraphDebugDotPrint = dlfcn.dlsym(handle, 'cuGraphDebugDotPrint') - {{endif}} - {{if 'cuUserObjectCreate' in found_functions}} - global __cuUserObjectCreate - __cuUserObjectCreate = dlfcn.dlsym(handle, 'cuUserObjectCreate') - {{endif}} - {{if 'cuUserObjectRetain' in found_functions}} - global __cuUserObjectRetain - __cuUserObjectRetain = dlfcn.dlsym(handle, 'cuUserObjectRetain') - {{endif}} - {{if 'cuUserObjectRelease' in found_functions}} - global __cuUserObjectRelease - __cuUserObjectRelease = dlfcn.dlsym(handle, 'cuUserObjectRelease') - {{endif}} - {{if 'cuGraphRetainUserObject' in found_functions}} - global __cuGraphRetainUserObject - __cuGraphRetainUserObject = dlfcn.dlsym(handle, 'cuGraphRetainUserObject') - {{endif}} - {{if 'cuGraphReleaseUserObject' in found_functions}} - global __cuGraphReleaseUserObject - __cuGraphReleaseUserObject = dlfcn.dlsym(handle, 'cuGraphReleaseUserObject') - {{endif}} - {{if 'cuGraphAddNode_v2' in found_functions}} - global __cuGraphAddNode_v2 - __cuGraphAddNode_v2 = dlfcn.dlsym(handle, 'cuGraphAddNode_v2') - {{endif}} - {{if 'cuGraphNodeSetParams' in found_functions}} - global __cuGraphNodeSetParams - __cuGraphNodeSetParams = dlfcn.dlsym(handle, 'cuGraphNodeSetParams') - {{endif}} - {{if 'cuGraphNodeGetParams' in found_functions}} - global __cuGraphNodeGetParams - __cuGraphNodeGetParams = dlfcn.dlsym(handle, 'cuGraphNodeGetParams') - {{endif}} - {{if 'cuGraphExecNodeSetParams' in found_functions}} - global __cuGraphExecNodeSetParams - __cuGraphExecNodeSetParams = dlfcn.dlsym(handle, 'cuGraphExecNodeSetParams') - {{endif}} - {{if 'cuGraphConditionalHandleCreate' in found_functions}} - global __cuGraphConditionalHandleCreate - __cuGraphConditionalHandleCreate = dlfcn.dlsym(handle, 'cuGraphConditionalHandleCreate') - {{endif}} - {{if 'cuOccupancyMaxActiveBlocksPerMultiprocessor' in found_functions}} - global __cuOccupancyMaxActiveBlocksPerMultiprocessor - __cuOccupancyMaxActiveBlocksPerMultiprocessor = dlfcn.dlsym(handle, 'cuOccupancyMaxActiveBlocksPerMultiprocessor') - {{endif}} - {{if 'cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags' in found_functions}} - global __cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags - __cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags = dlfcn.dlsym(handle, 'cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags') - {{endif}} - {{if 'cuOccupancyMaxPotentialBlockSize' in found_functions}} - global __cuOccupancyMaxPotentialBlockSize - __cuOccupancyMaxPotentialBlockSize = dlfcn.dlsym(handle, 'cuOccupancyMaxPotentialBlockSize') - {{endif}} - {{if 'cuOccupancyMaxPotentialBlockSizeWithFlags' in found_functions}} - global __cuOccupancyMaxPotentialBlockSizeWithFlags - __cuOccupancyMaxPotentialBlockSizeWithFlags = dlfcn.dlsym(handle, 'cuOccupancyMaxPotentialBlockSizeWithFlags') - {{endif}} - {{if 'cuOccupancyAvailableDynamicSMemPerBlock' in found_functions}} - global __cuOccupancyAvailableDynamicSMemPerBlock - __cuOccupancyAvailableDynamicSMemPerBlock = dlfcn.dlsym(handle, 'cuOccupancyAvailableDynamicSMemPerBlock') - {{endif}} - {{if 'cuOccupancyMaxPotentialClusterSize' in found_functions}} - global __cuOccupancyMaxPotentialClusterSize - __cuOccupancyMaxPotentialClusterSize = dlfcn.dlsym(handle, 'cuOccupancyMaxPotentialClusterSize') - {{endif}} - {{if 'cuOccupancyMaxActiveClusters' in found_functions}} - global __cuOccupancyMaxActiveClusters - __cuOccupancyMaxActiveClusters = dlfcn.dlsym(handle, 'cuOccupancyMaxActiveClusters') - {{endif}} - {{if 'cuTexRefSetArray' in found_functions}} - global __cuTexRefSetArray - __cuTexRefSetArray = dlfcn.dlsym(handle, 'cuTexRefSetArray') - {{endif}} - {{if 'cuTexRefSetMipmappedArray' in found_functions}} - global __cuTexRefSetMipmappedArray - __cuTexRefSetMipmappedArray = dlfcn.dlsym(handle, 'cuTexRefSetMipmappedArray') - {{endif}} - {{if 'cuTexRefSetAddress_v2' in found_functions}} - global __cuTexRefSetAddress_v2 - __cuTexRefSetAddress_v2 = dlfcn.dlsym(handle, 'cuTexRefSetAddress_v2') - {{endif}} - {{if 'cuTexRefSetAddress2D_v3' in found_functions}} - global __cuTexRefSetAddress2D_v3 - __cuTexRefSetAddress2D_v3 = dlfcn.dlsym(handle, 'cuTexRefSetAddress2D_v3') - {{endif}} - {{if 'cuTexRefSetFormat' in found_functions}} - global __cuTexRefSetFormat - __cuTexRefSetFormat = dlfcn.dlsym(handle, 'cuTexRefSetFormat') - {{endif}} - {{if 'cuTexRefSetAddressMode' in found_functions}} - global __cuTexRefSetAddressMode - __cuTexRefSetAddressMode = dlfcn.dlsym(handle, 'cuTexRefSetAddressMode') - {{endif}} - {{if 'cuTexRefSetFilterMode' in found_functions}} - global __cuTexRefSetFilterMode - __cuTexRefSetFilterMode = dlfcn.dlsym(handle, 'cuTexRefSetFilterMode') - {{endif}} - {{if 'cuTexRefSetMipmapFilterMode' in found_functions}} - global __cuTexRefSetMipmapFilterMode - __cuTexRefSetMipmapFilterMode = dlfcn.dlsym(handle, 'cuTexRefSetMipmapFilterMode') - {{endif}} - {{if 'cuTexRefSetMipmapLevelBias' in found_functions}} - global __cuTexRefSetMipmapLevelBias - __cuTexRefSetMipmapLevelBias = dlfcn.dlsym(handle, 'cuTexRefSetMipmapLevelBias') - {{endif}} - {{if 'cuTexRefSetMipmapLevelClamp' in found_functions}} - global __cuTexRefSetMipmapLevelClamp - __cuTexRefSetMipmapLevelClamp = dlfcn.dlsym(handle, 'cuTexRefSetMipmapLevelClamp') - {{endif}} - {{if 'cuTexRefSetMaxAnisotropy' in found_functions}} - global __cuTexRefSetMaxAnisotropy - __cuTexRefSetMaxAnisotropy = dlfcn.dlsym(handle, 'cuTexRefSetMaxAnisotropy') - {{endif}} - {{if 'cuTexRefSetBorderColor' in found_functions}} - global __cuTexRefSetBorderColor - __cuTexRefSetBorderColor = dlfcn.dlsym(handle, 'cuTexRefSetBorderColor') - {{endif}} - {{if 'cuTexRefSetFlags' in found_functions}} - global __cuTexRefSetFlags - __cuTexRefSetFlags = dlfcn.dlsym(handle, 'cuTexRefSetFlags') - {{endif}} - {{if 'cuTexRefGetAddress_v2' in found_functions}} - global __cuTexRefGetAddress_v2 - __cuTexRefGetAddress_v2 = dlfcn.dlsym(handle, 'cuTexRefGetAddress_v2') - {{endif}} - {{if 'cuTexRefGetArray' in found_functions}} - global __cuTexRefGetArray - __cuTexRefGetArray = dlfcn.dlsym(handle, 'cuTexRefGetArray') - {{endif}} - {{if 'cuTexRefGetMipmappedArray' in found_functions}} - global __cuTexRefGetMipmappedArray - __cuTexRefGetMipmappedArray = dlfcn.dlsym(handle, 'cuTexRefGetMipmappedArray') - {{endif}} - {{if 'cuTexRefGetAddressMode' in found_functions}} - global __cuTexRefGetAddressMode - __cuTexRefGetAddressMode = dlfcn.dlsym(handle, 'cuTexRefGetAddressMode') - {{endif}} - {{if 'cuTexRefGetFilterMode' in found_functions}} - global __cuTexRefGetFilterMode - __cuTexRefGetFilterMode = dlfcn.dlsym(handle, 'cuTexRefGetFilterMode') - {{endif}} - {{if 'cuTexRefGetFormat' in found_functions}} - global __cuTexRefGetFormat - __cuTexRefGetFormat = dlfcn.dlsym(handle, 'cuTexRefGetFormat') - {{endif}} - {{if 'cuTexRefGetMipmapFilterMode' in found_functions}} - global __cuTexRefGetMipmapFilterMode - __cuTexRefGetMipmapFilterMode = dlfcn.dlsym(handle, 'cuTexRefGetMipmapFilterMode') - {{endif}} - {{if 'cuTexRefGetMipmapLevelBias' in found_functions}} - global __cuTexRefGetMipmapLevelBias - __cuTexRefGetMipmapLevelBias = dlfcn.dlsym(handle, 'cuTexRefGetMipmapLevelBias') - {{endif}} - {{if 'cuTexRefGetMipmapLevelClamp' in found_functions}} - global __cuTexRefGetMipmapLevelClamp - __cuTexRefGetMipmapLevelClamp = dlfcn.dlsym(handle, 'cuTexRefGetMipmapLevelClamp') - {{endif}} - {{if 'cuTexRefGetMaxAnisotropy' in found_functions}} - global __cuTexRefGetMaxAnisotropy - __cuTexRefGetMaxAnisotropy = dlfcn.dlsym(handle, 'cuTexRefGetMaxAnisotropy') - {{endif}} - {{if 'cuTexRefGetBorderColor' in found_functions}} - global __cuTexRefGetBorderColor - __cuTexRefGetBorderColor = dlfcn.dlsym(handle, 'cuTexRefGetBorderColor') - {{endif}} - {{if 'cuTexRefGetFlags' in found_functions}} - global __cuTexRefGetFlags - __cuTexRefGetFlags = dlfcn.dlsym(handle, 'cuTexRefGetFlags') - {{endif}} - {{if 'cuTexRefCreate' in found_functions}} - global __cuTexRefCreate - __cuTexRefCreate = dlfcn.dlsym(handle, 'cuTexRefCreate') - {{endif}} - {{if 'cuTexRefDestroy' in found_functions}} - global __cuTexRefDestroy - __cuTexRefDestroy = dlfcn.dlsym(handle, 'cuTexRefDestroy') - {{endif}} - {{if 'cuSurfRefSetArray' in found_functions}} - global __cuSurfRefSetArray - __cuSurfRefSetArray = dlfcn.dlsym(handle, 'cuSurfRefSetArray') - {{endif}} - {{if 'cuSurfRefGetArray' in found_functions}} - global __cuSurfRefGetArray - __cuSurfRefGetArray = dlfcn.dlsym(handle, 'cuSurfRefGetArray') - {{endif}} - {{if 'cuTexObjectCreate' in found_functions}} - global __cuTexObjectCreate - __cuTexObjectCreate = dlfcn.dlsym(handle, 'cuTexObjectCreate') - {{endif}} - {{if 'cuTexObjectDestroy' in found_functions}} - global __cuTexObjectDestroy - __cuTexObjectDestroy = dlfcn.dlsym(handle, 'cuTexObjectDestroy') - {{endif}} - {{if 'cuTexObjectGetResourceDesc' in found_functions}} - global __cuTexObjectGetResourceDesc - __cuTexObjectGetResourceDesc = dlfcn.dlsym(handle, 'cuTexObjectGetResourceDesc') - {{endif}} - {{if 'cuTexObjectGetTextureDesc' in found_functions}} - global __cuTexObjectGetTextureDesc - __cuTexObjectGetTextureDesc = dlfcn.dlsym(handle, 'cuTexObjectGetTextureDesc') - {{endif}} - {{if 'cuTexObjectGetResourceViewDesc' in found_functions}} - global __cuTexObjectGetResourceViewDesc - __cuTexObjectGetResourceViewDesc = dlfcn.dlsym(handle, 'cuTexObjectGetResourceViewDesc') - {{endif}} - {{if 'cuSurfObjectCreate' in found_functions}} - global __cuSurfObjectCreate - __cuSurfObjectCreate = dlfcn.dlsym(handle, 'cuSurfObjectCreate') - {{endif}} - {{if 'cuSurfObjectDestroy' in found_functions}} - global __cuSurfObjectDestroy - __cuSurfObjectDestroy = dlfcn.dlsym(handle, 'cuSurfObjectDestroy') - {{endif}} - {{if 'cuSurfObjectGetResourceDesc' in found_functions}} - global __cuSurfObjectGetResourceDesc - __cuSurfObjectGetResourceDesc = dlfcn.dlsym(handle, 'cuSurfObjectGetResourceDesc') - {{endif}} - {{if 'cuTensorMapEncodeTiled' in found_functions}} - global __cuTensorMapEncodeTiled - __cuTensorMapEncodeTiled = dlfcn.dlsym(handle, 'cuTensorMapEncodeTiled') - {{endif}} - {{if 'cuTensorMapEncodeIm2col' in found_functions}} - global __cuTensorMapEncodeIm2col - __cuTensorMapEncodeIm2col = dlfcn.dlsym(handle, 'cuTensorMapEncodeIm2col') - {{endif}} - {{if 'cuTensorMapEncodeIm2colWide' in found_functions}} - global __cuTensorMapEncodeIm2colWide - __cuTensorMapEncodeIm2colWide = dlfcn.dlsym(handle, 'cuTensorMapEncodeIm2colWide') - {{endif}} - {{if 'cuTensorMapReplaceAddress' in found_functions}} - global __cuTensorMapReplaceAddress - __cuTensorMapReplaceAddress = dlfcn.dlsym(handle, 'cuTensorMapReplaceAddress') - {{endif}} - {{if 'cuDeviceCanAccessPeer' in found_functions}} - global __cuDeviceCanAccessPeer - __cuDeviceCanAccessPeer = dlfcn.dlsym(handle, 'cuDeviceCanAccessPeer') - {{endif}} - {{if 'cuCtxEnablePeerAccess' in found_functions}} - global __cuCtxEnablePeerAccess - __cuCtxEnablePeerAccess = dlfcn.dlsym(handle, 'cuCtxEnablePeerAccess') - {{endif}} - {{if 'cuCtxDisablePeerAccess' in found_functions}} - global __cuCtxDisablePeerAccess - __cuCtxDisablePeerAccess = dlfcn.dlsym(handle, 'cuCtxDisablePeerAccess') - {{endif}} - {{if 'cuDeviceGetP2PAttribute' in found_functions}} - global __cuDeviceGetP2PAttribute - __cuDeviceGetP2PAttribute = dlfcn.dlsym(handle, 'cuDeviceGetP2PAttribute') - {{endif}} - {{if 'cuDeviceGetP2PAtomicCapabilities' in found_functions}} - global __cuDeviceGetP2PAtomicCapabilities - __cuDeviceGetP2PAtomicCapabilities = dlfcn.dlsym(handle, 'cuDeviceGetP2PAtomicCapabilities') - {{endif}} - {{if 'cuGraphicsUnregisterResource' in found_functions}} - global __cuGraphicsUnregisterResource - __cuGraphicsUnregisterResource = dlfcn.dlsym(handle, 'cuGraphicsUnregisterResource') - {{endif}} - {{if 'cuGraphicsSubResourceGetMappedArray' in found_functions}} - global __cuGraphicsSubResourceGetMappedArray - __cuGraphicsSubResourceGetMappedArray = dlfcn.dlsym(handle, 'cuGraphicsSubResourceGetMappedArray') - {{endif}} - {{if 'cuGraphicsResourceGetMappedMipmappedArray' in found_functions}} - global __cuGraphicsResourceGetMappedMipmappedArray - __cuGraphicsResourceGetMappedMipmappedArray = dlfcn.dlsym(handle, 'cuGraphicsResourceGetMappedMipmappedArray') - {{endif}} - {{if 'cuGraphicsResourceGetMappedPointer_v2' in found_functions}} - global __cuGraphicsResourceGetMappedPointer_v2 - __cuGraphicsResourceGetMappedPointer_v2 = dlfcn.dlsym(handle, 'cuGraphicsResourceGetMappedPointer_v2') - {{endif}} - {{if 'cuGraphicsResourceSetMapFlags_v2' in found_functions}} - global __cuGraphicsResourceSetMapFlags_v2 - __cuGraphicsResourceSetMapFlags_v2 = dlfcn.dlsym(handle, 'cuGraphicsResourceSetMapFlags_v2') - {{endif}} - {{if 'cuGetProcAddress_v2' in found_functions}} - global __cuGetProcAddress_v2 - __cuGetProcAddress_v2 = dlfcn.dlsym(handle, 'cuGetProcAddress_v2') - {{endif}} - {{if 'cuCoredumpGetAttribute' in found_functions}} - global __cuCoredumpGetAttribute - __cuCoredumpGetAttribute = dlfcn.dlsym(handle, 'cuCoredumpGetAttribute') - {{endif}} - {{if 'cuCoredumpGetAttributeGlobal' in found_functions}} - global __cuCoredumpGetAttributeGlobal - __cuCoredumpGetAttributeGlobal = dlfcn.dlsym(handle, 'cuCoredumpGetAttributeGlobal') - {{endif}} - {{if 'cuCoredumpSetAttribute' in found_functions}} - global __cuCoredumpSetAttribute - __cuCoredumpSetAttribute = dlfcn.dlsym(handle, 'cuCoredumpSetAttribute') - {{endif}} - {{if 'cuCoredumpSetAttributeGlobal' in found_functions}} - global __cuCoredumpSetAttributeGlobal - __cuCoredumpSetAttributeGlobal = dlfcn.dlsym(handle, 'cuCoredumpSetAttributeGlobal') - {{endif}} - {{if 'cuCoredumpRegisterStartCallback' in found_functions}} - global __cuCoredumpRegisterStartCallback - __cuCoredumpRegisterStartCallback = dlfcn.dlsym(handle, 'cuCoredumpRegisterStartCallback') - {{endif}} - {{if 'cuCoredumpRegisterCompleteCallback' in found_functions}} - global __cuCoredumpRegisterCompleteCallback - __cuCoredumpRegisterCompleteCallback = dlfcn.dlsym(handle, 'cuCoredumpRegisterCompleteCallback') - {{endif}} - {{if 'cuCoredumpDeregisterStartCallback' in found_functions}} - global __cuCoredumpDeregisterStartCallback - __cuCoredumpDeregisterStartCallback = dlfcn.dlsym(handle, 'cuCoredumpDeregisterStartCallback') - {{endif}} - {{if 'cuCoredumpDeregisterCompleteCallback' in found_functions}} - global __cuCoredumpDeregisterCompleteCallback - __cuCoredumpDeregisterCompleteCallback = dlfcn.dlsym(handle, 'cuCoredumpDeregisterCompleteCallback') - {{endif}} - {{if 'cuGetExportTable' in found_functions}} - global __cuGetExportTable - __cuGetExportTable = dlfcn.dlsym(handle, 'cuGetExportTable') - {{endif}} - {{if 'cuGreenCtxCreate' in found_functions}} - global __cuGreenCtxCreate - __cuGreenCtxCreate = dlfcn.dlsym(handle, 'cuGreenCtxCreate') - {{endif}} - {{if 'cuGreenCtxDestroy' in found_functions}} - global __cuGreenCtxDestroy - __cuGreenCtxDestroy = dlfcn.dlsym(handle, 'cuGreenCtxDestroy') - {{endif}} - {{if 'cuCtxFromGreenCtx' in found_functions}} - global __cuCtxFromGreenCtx - __cuCtxFromGreenCtx = dlfcn.dlsym(handle, 'cuCtxFromGreenCtx') - {{endif}} - {{if 'cuDeviceGetDevResource' in found_functions}} - global __cuDeviceGetDevResource - __cuDeviceGetDevResource = dlfcn.dlsym(handle, 'cuDeviceGetDevResource') - {{endif}} - {{if 'cuCtxGetDevResource' in found_functions}} - global __cuCtxGetDevResource - __cuCtxGetDevResource = dlfcn.dlsym(handle, 'cuCtxGetDevResource') - {{endif}} - {{if 'cuGreenCtxGetDevResource' in found_functions}} - global __cuGreenCtxGetDevResource - __cuGreenCtxGetDevResource = dlfcn.dlsym(handle, 'cuGreenCtxGetDevResource') - {{endif}} - {{if 'cuDevSmResourceSplitByCount' in found_functions}} - global __cuDevSmResourceSplitByCount - __cuDevSmResourceSplitByCount = dlfcn.dlsym(handle, 'cuDevSmResourceSplitByCount') - {{endif}} - {{if 'cuDevSmResourceSplit' in found_functions}} - global __cuDevSmResourceSplit - __cuDevSmResourceSplit = dlfcn.dlsym(handle, 'cuDevSmResourceSplit') - {{endif}} - {{if 'cuDevResourceGenerateDesc' in found_functions}} - global __cuDevResourceGenerateDesc - __cuDevResourceGenerateDesc = dlfcn.dlsym(handle, 'cuDevResourceGenerateDesc') - {{endif}} - {{if 'cuGreenCtxRecordEvent' in found_functions}} - global __cuGreenCtxRecordEvent - __cuGreenCtxRecordEvent = dlfcn.dlsym(handle, 'cuGreenCtxRecordEvent') - {{endif}} - {{if 'cuGreenCtxWaitEvent' in found_functions}} - global __cuGreenCtxWaitEvent - __cuGreenCtxWaitEvent = dlfcn.dlsym(handle, 'cuGreenCtxWaitEvent') - {{endif}} - {{if 'cuStreamGetGreenCtx' in found_functions}} - global __cuStreamGetGreenCtx - __cuStreamGetGreenCtx = dlfcn.dlsym(handle, 'cuStreamGetGreenCtx') - {{endif}} - {{if 'cuGreenCtxStreamCreate' in found_functions}} - global __cuGreenCtxStreamCreate - __cuGreenCtxStreamCreate = dlfcn.dlsym(handle, 'cuGreenCtxStreamCreate') - {{endif}} - {{if 'cuGreenCtxGetId' in found_functions}} - global __cuGreenCtxGetId - __cuGreenCtxGetId = dlfcn.dlsym(handle, 'cuGreenCtxGetId') - {{endif}} - {{if 'cuLogsRegisterCallback' in found_functions}} - global __cuLogsRegisterCallback - __cuLogsRegisterCallback = dlfcn.dlsym(handle, 'cuLogsRegisterCallback') - {{endif}} - {{if 'cuLogsUnregisterCallback' in found_functions}} - global __cuLogsUnregisterCallback - __cuLogsUnregisterCallback = dlfcn.dlsym(handle, 'cuLogsUnregisterCallback') - {{endif}} - {{if 'cuLogsCurrent' in found_functions}} - global __cuLogsCurrent - __cuLogsCurrent = dlfcn.dlsym(handle, 'cuLogsCurrent') - {{endif}} - {{if 'cuLogsDumpToFile' in found_functions}} - global __cuLogsDumpToFile - __cuLogsDumpToFile = dlfcn.dlsym(handle, 'cuLogsDumpToFile') - {{endif}} - {{if 'cuLogsDumpToMemory' in found_functions}} - global __cuLogsDumpToMemory - __cuLogsDumpToMemory = dlfcn.dlsym(handle, 'cuLogsDumpToMemory') - {{endif}} - {{if 'cuCheckpointProcessGetRestoreThreadId' in found_functions}} - global __cuCheckpointProcessGetRestoreThreadId - __cuCheckpointProcessGetRestoreThreadId = dlfcn.dlsym(handle, 'cuCheckpointProcessGetRestoreThreadId') - {{endif}} - {{if 'cuCheckpointProcessGetState' in found_functions}} - global __cuCheckpointProcessGetState - __cuCheckpointProcessGetState = dlfcn.dlsym(handle, 'cuCheckpointProcessGetState') - {{endif}} - {{if 'cuCheckpointProcessLock' in found_functions}} - global __cuCheckpointProcessLock - __cuCheckpointProcessLock = dlfcn.dlsym(handle, 'cuCheckpointProcessLock') - {{endif}} - {{if 'cuCheckpointProcessCheckpoint' in found_functions}} - global __cuCheckpointProcessCheckpoint - __cuCheckpointProcessCheckpoint = dlfcn.dlsym(handle, 'cuCheckpointProcessCheckpoint') - {{endif}} - {{if 'cuCheckpointProcessRestore' in found_functions}} - global __cuCheckpointProcessRestore - __cuCheckpointProcessRestore = dlfcn.dlsym(handle, 'cuCheckpointProcessRestore') - {{endif}} - {{if 'cuCheckpointProcessUnlock' in found_functions}} - global __cuCheckpointProcessUnlock - __cuCheckpointProcessUnlock = dlfcn.dlsym(handle, 'cuCheckpointProcessUnlock') - {{endif}} - {{if 'cuProfilerStart' in found_functions}} - global __cuProfilerStart - __cuProfilerStart = dlfcn.dlsym(handle, 'cuProfilerStart') - {{endif}} - {{if 'cuProfilerStop' in found_functions}} - global __cuProfilerStop - __cuProfilerStop = dlfcn.dlsym(handle, 'cuProfilerStop') - {{endif}} - {{if True}} - global __cuGraphicsEGLRegisterImage - __cuGraphicsEGLRegisterImage = dlfcn.dlsym(handle, 'cuGraphicsEGLRegisterImage') - {{endif}} - {{if True}} - global __cuEGLStreamConsumerConnect - __cuEGLStreamConsumerConnect = dlfcn.dlsym(handle, 'cuEGLStreamConsumerConnect') - {{endif}} - {{if True}} - global __cuEGLStreamConsumerConnectWithFlags - __cuEGLStreamConsumerConnectWithFlags = dlfcn.dlsym(handle, 'cuEGLStreamConsumerConnectWithFlags') - {{endif}} - {{if True}} - global __cuEGLStreamConsumerDisconnect - __cuEGLStreamConsumerDisconnect = dlfcn.dlsym(handle, 'cuEGLStreamConsumerDisconnect') - {{endif}} - {{if True}} - global __cuEGLStreamConsumerAcquireFrame - __cuEGLStreamConsumerAcquireFrame = dlfcn.dlsym(handle, 'cuEGLStreamConsumerAcquireFrame') - {{endif}} - {{if True}} - global __cuEGLStreamConsumerReleaseFrame - __cuEGLStreamConsumerReleaseFrame = dlfcn.dlsym(handle, 'cuEGLStreamConsumerReleaseFrame') - {{endif}} - {{if True}} - global __cuEGLStreamProducerConnect - __cuEGLStreamProducerConnect = dlfcn.dlsym(handle, 'cuEGLStreamProducerConnect') - {{endif}} - {{if True}} - global __cuEGLStreamProducerDisconnect - __cuEGLStreamProducerDisconnect = dlfcn.dlsym(handle, 'cuEGLStreamProducerDisconnect') - {{endif}} - {{if True}} - global __cuEGLStreamProducerPresentFrame - __cuEGLStreamProducerPresentFrame = dlfcn.dlsym(handle, 'cuEGLStreamProducerPresentFrame') - {{endif}} - {{if True}} - global __cuEGLStreamProducerReturnFrame - __cuEGLStreamProducerReturnFrame = dlfcn.dlsym(handle, 'cuEGLStreamProducerReturnFrame') - {{endif}} - {{if True}} - global __cuGraphicsResourceGetMappedEglFrame - __cuGraphicsResourceGetMappedEglFrame = dlfcn.dlsym(handle, 'cuGraphicsResourceGetMappedEglFrame') - {{endif}} - {{if True}} - global __cuEventCreateFromEGLSync - __cuEventCreateFromEGLSync = dlfcn.dlsym(handle, 'cuEventCreateFromEGLSync') - {{endif}} - {{if True}} - global __cuGraphicsGLRegisterBuffer - __cuGraphicsGLRegisterBuffer = dlfcn.dlsym(handle, 'cuGraphicsGLRegisterBuffer') - {{endif}} - {{if True}} - global __cuGraphicsGLRegisterImage - __cuGraphicsGLRegisterImage = dlfcn.dlsym(handle, 'cuGraphicsGLRegisterImage') - {{endif}} - {{if True}} - global __cuGLGetDevices_v2 - __cuGLGetDevices_v2 = dlfcn.dlsym(handle, 'cuGLGetDevices_v2') - {{endif}} - {{if True}} - global __cuVDPAUGetDevice - __cuVDPAUGetDevice = dlfcn.dlsym(handle, 'cuVDPAUGetDevice') - {{endif}} - {{if True}} - global __cuVDPAUCtxCreate_v2 - __cuVDPAUCtxCreate_v2 = dlfcn.dlsym(handle, 'cuVDPAUCtxCreate_v2') - {{endif}} - {{if True}} - global __cuGraphicsVDPAURegisterVideoSurface - __cuGraphicsVDPAURegisterVideoSurface = dlfcn.dlsym(handle, 'cuGraphicsVDPAURegisterVideoSurface') - {{endif}} - {{if True}} - global __cuGraphicsVDPAURegisterOutputSurface - __cuGraphicsVDPAURegisterOutputSurface = dlfcn.dlsym(handle, 'cuGraphicsVDPAURegisterOutputSurface') - {{endif}} - {{endif}} - __cuPythonInit = True - return 0 - -# Create a very small function to check whether we are init'ed, so the C -# compiler can inline it. -cdef inline int cuPythonInit() except -1 nogil: - if __cuPythonInit: - return 0 - return _cuPythonInit() - -{{if 'cuGetErrorString' in found_functions}} - -cdef CUresult _cuGetErrorString(CUresult error, const char** pStr) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGetErrorString - cuPythonInit() - if __cuGetErrorString == NULL: - with gil: - raise RuntimeError('Function "cuGetErrorString" not found') - err = ( __cuGetErrorString)(error, pStr) - return err -{{endif}} - -{{if 'cuGetErrorName' in found_functions}} - -cdef CUresult _cuGetErrorName(CUresult error, const char** pStr) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGetErrorName - cuPythonInit() - if __cuGetErrorName == NULL: - with gil: - raise RuntimeError('Function "cuGetErrorName" not found') - err = ( __cuGetErrorName)(error, pStr) - return err -{{endif}} - -{{if 'cuInit' in found_functions}} - -cdef CUresult _cuInit(unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuInit - cuPythonInit() - if __cuInit == NULL: - with gil: - raise RuntimeError('Function "cuInit" not found') - err = ( __cuInit)(Flags) - return err -{{endif}} - -{{if 'cuDriverGetVersion' in found_functions}} - -cdef CUresult _cuDriverGetVersion(int* driverVersion) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuDriverGetVersion - cuPythonInit() - if __cuDriverGetVersion == NULL: - with gil: - raise RuntimeError('Function "cuDriverGetVersion" not found') - err = ( __cuDriverGetVersion)(driverVersion) - return err -{{endif}} - -{{if 'cuDeviceGet' in found_functions}} - -cdef CUresult _cuDeviceGet(CUdevice* device, int ordinal) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuDeviceGet - cuPythonInit() - if __cuDeviceGet == NULL: - with gil: - raise RuntimeError('Function "cuDeviceGet" not found') - err = ( __cuDeviceGet)(device, ordinal) - return err -{{endif}} - -{{if 'cuDeviceGetCount' in found_functions}} - -cdef CUresult _cuDeviceGetCount(int* count) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuDeviceGetCount - cuPythonInit() - if __cuDeviceGetCount == NULL: - with gil: - raise RuntimeError('Function "cuDeviceGetCount" not found') - err = ( __cuDeviceGetCount)(count) - return err -{{endif}} - -{{if 'cuDeviceGetName' in found_functions}} - -cdef CUresult _cuDeviceGetName(char* name, int length, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuDeviceGetName - cuPythonInit() - if __cuDeviceGetName == NULL: - with gil: - raise RuntimeError('Function "cuDeviceGetName" not found') - err = ( __cuDeviceGetName)(name, length, dev) - return err -{{endif}} - -{{if 'cuDeviceGetUuid_v2' in found_functions}} - -cdef CUresult _cuDeviceGetUuid_v2(CUuuid* uuid, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuDeviceGetUuid_v2 - cuPythonInit() - if __cuDeviceGetUuid_v2 == NULL: - with gil: - raise RuntimeError('Function "cuDeviceGetUuid_v2" not found') - err = ( __cuDeviceGetUuid_v2)(uuid, dev) - return err -{{endif}} - -{{if 'cuDeviceGetLuid' in found_functions}} - -cdef CUresult _cuDeviceGetLuid(char* luid, unsigned int* deviceNodeMask, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuDeviceGetLuid - cuPythonInit() - if __cuDeviceGetLuid == NULL: - with gil: - raise RuntimeError('Function "cuDeviceGetLuid" not found') - err = ( __cuDeviceGetLuid)(luid, deviceNodeMask, dev) - return err -{{endif}} - -{{if 'cuDeviceTotalMem_v2' in found_functions}} - -cdef CUresult _cuDeviceTotalMem_v2(size_t* numbytes, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuDeviceTotalMem_v2 - cuPythonInit() - if __cuDeviceTotalMem_v2 == NULL: - with gil: - raise RuntimeError('Function "cuDeviceTotalMem_v2" not found') - err = ( __cuDeviceTotalMem_v2)(numbytes, dev) - return err -{{endif}} - -{{if 'cuDeviceGetTexture1DLinearMaxWidth' in found_functions}} - -cdef CUresult _cuDeviceGetTexture1DLinearMaxWidth(size_t* maxWidthInElements, CUarray_format pformat, unsigned numChannels, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuDeviceGetTexture1DLinearMaxWidth - cuPythonInit() - if __cuDeviceGetTexture1DLinearMaxWidth == NULL: - with gil: - raise RuntimeError('Function "cuDeviceGetTexture1DLinearMaxWidth" not found') - err = ( __cuDeviceGetTexture1DLinearMaxWidth)(maxWidthInElements, pformat, numChannels, dev) - return err -{{endif}} - -{{if 'cuDeviceGetAttribute' in found_functions}} - -cdef CUresult _cuDeviceGetAttribute(int* pi, CUdevice_attribute attrib, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuDeviceGetAttribute - cuPythonInit() - if __cuDeviceGetAttribute == NULL: - with gil: - raise RuntimeError('Function "cuDeviceGetAttribute" not found') - err = ( __cuDeviceGetAttribute)(pi, attrib, dev) - return err -{{endif}} - -{{if 'cuDeviceGetHostAtomicCapabilities' in found_functions}} - -cdef CUresult _cuDeviceGetHostAtomicCapabilities(unsigned int* capabilities, const CUatomicOperation* operations, unsigned int count, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuDeviceGetHostAtomicCapabilities - cuPythonInit() - if __cuDeviceGetHostAtomicCapabilities == NULL: - with gil: - raise RuntimeError('Function "cuDeviceGetHostAtomicCapabilities" not found') - err = ( __cuDeviceGetHostAtomicCapabilities)(capabilities, operations, count, dev) - return err -{{endif}} - -{{if 'cuDeviceGetNvSciSyncAttributes' in found_functions}} - -cdef CUresult _cuDeviceGetNvSciSyncAttributes(void* nvSciSyncAttrList, CUdevice dev, int flags) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuDeviceGetNvSciSyncAttributes - cuPythonInit() - if __cuDeviceGetNvSciSyncAttributes == NULL: - with gil: - raise RuntimeError('Function "cuDeviceGetNvSciSyncAttributes" not found') - err = ( __cuDeviceGetNvSciSyncAttributes)(nvSciSyncAttrList, dev, flags) - return err -{{endif}} - -{{if 'cuDeviceSetMemPool' in found_functions}} - -cdef CUresult _cuDeviceSetMemPool(CUdevice dev, CUmemoryPool pool) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuDeviceSetMemPool - cuPythonInit() - if __cuDeviceSetMemPool == NULL: - with gil: - raise RuntimeError('Function "cuDeviceSetMemPool" not found') - err = ( __cuDeviceSetMemPool)(dev, pool) - return err -{{endif}} - -{{if 'cuDeviceGetMemPool' in found_functions}} - -cdef CUresult _cuDeviceGetMemPool(CUmemoryPool* pool, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuDeviceGetMemPool - cuPythonInit() - if __cuDeviceGetMemPool == NULL: - with gil: - raise RuntimeError('Function "cuDeviceGetMemPool" not found') - err = ( __cuDeviceGetMemPool)(pool, dev) - return err -{{endif}} - -{{if 'cuDeviceGetDefaultMemPool' in found_functions}} - -cdef CUresult _cuDeviceGetDefaultMemPool(CUmemoryPool* pool_out, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuDeviceGetDefaultMemPool - cuPythonInit() - if __cuDeviceGetDefaultMemPool == NULL: - with gil: - raise RuntimeError('Function "cuDeviceGetDefaultMemPool" not found') - err = ( __cuDeviceGetDefaultMemPool)(pool_out, dev) - return err -{{endif}} - -{{if 'cuDeviceGetExecAffinitySupport' in found_functions}} - -cdef CUresult _cuDeviceGetExecAffinitySupport(int* pi, CUexecAffinityType typename, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuDeviceGetExecAffinitySupport - cuPythonInit() - if __cuDeviceGetExecAffinitySupport == NULL: - with gil: - raise RuntimeError('Function "cuDeviceGetExecAffinitySupport" not found') - err = ( __cuDeviceGetExecAffinitySupport)(pi, typename, dev) - return err -{{endif}} - -{{if 'cuFlushGPUDirectRDMAWrites' in found_functions}} - -cdef CUresult _cuFlushGPUDirectRDMAWrites(CUflushGPUDirectRDMAWritesTarget target, CUflushGPUDirectRDMAWritesScope scope) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuFlushGPUDirectRDMAWrites - cuPythonInit() - if __cuFlushGPUDirectRDMAWrites == NULL: - with gil: - raise RuntimeError('Function "cuFlushGPUDirectRDMAWrites" not found') - err = ( __cuFlushGPUDirectRDMAWrites)(target, scope) - return err -{{endif}} - -{{if 'cuDeviceGetProperties' in found_functions}} - -cdef CUresult _cuDeviceGetProperties(CUdevprop* prop, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuDeviceGetProperties - cuPythonInit() - if __cuDeviceGetProperties == NULL: - with gil: - raise RuntimeError('Function "cuDeviceGetProperties" not found') - err = ( __cuDeviceGetProperties)(prop, dev) - return err -{{endif}} - -{{if 'cuDeviceComputeCapability' in found_functions}} - -cdef CUresult _cuDeviceComputeCapability(int* major, int* minor, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuDeviceComputeCapability - cuPythonInit() - if __cuDeviceComputeCapability == NULL: - with gil: - raise RuntimeError('Function "cuDeviceComputeCapability" not found') - err = ( __cuDeviceComputeCapability)(major, minor, dev) - return err -{{endif}} - -{{if 'cuDevicePrimaryCtxRetain' in found_functions}} - -cdef CUresult _cuDevicePrimaryCtxRetain(CUcontext* pctx, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuDevicePrimaryCtxRetain - cuPythonInit() - if __cuDevicePrimaryCtxRetain == NULL: - with gil: - raise RuntimeError('Function "cuDevicePrimaryCtxRetain" not found') - err = ( __cuDevicePrimaryCtxRetain)(pctx, dev) - return err -{{endif}} - -{{if 'cuDevicePrimaryCtxRelease_v2' in found_functions}} - -cdef CUresult _cuDevicePrimaryCtxRelease_v2(CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuDevicePrimaryCtxRelease_v2 - cuPythonInit() - if __cuDevicePrimaryCtxRelease_v2 == NULL: - with gil: - raise RuntimeError('Function "cuDevicePrimaryCtxRelease_v2" not found') - err = ( __cuDevicePrimaryCtxRelease_v2)(dev) - return err -{{endif}} - -{{if 'cuDevicePrimaryCtxSetFlags_v2' in found_functions}} - -cdef CUresult _cuDevicePrimaryCtxSetFlags_v2(CUdevice dev, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuDevicePrimaryCtxSetFlags_v2 - cuPythonInit() - if __cuDevicePrimaryCtxSetFlags_v2 == NULL: - with gil: - raise RuntimeError('Function "cuDevicePrimaryCtxSetFlags_v2" not found') - err = ( __cuDevicePrimaryCtxSetFlags_v2)(dev, flags) - return err -{{endif}} - -{{if 'cuDevicePrimaryCtxGetState' in found_functions}} - -cdef CUresult _cuDevicePrimaryCtxGetState(CUdevice dev, unsigned int* flags, int* active) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuDevicePrimaryCtxGetState - cuPythonInit() - if __cuDevicePrimaryCtxGetState == NULL: - with gil: - raise RuntimeError('Function "cuDevicePrimaryCtxGetState" not found') - err = ( __cuDevicePrimaryCtxGetState)(dev, flags, active) - return err -{{endif}} - -{{if 'cuDevicePrimaryCtxReset_v2' in found_functions}} - -cdef CUresult _cuDevicePrimaryCtxReset_v2(CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuDevicePrimaryCtxReset_v2 - cuPythonInit() - if __cuDevicePrimaryCtxReset_v2 == NULL: - with gil: - raise RuntimeError('Function "cuDevicePrimaryCtxReset_v2" not found') - err = ( __cuDevicePrimaryCtxReset_v2)(dev) - return err -{{endif}} - -{{if 'cuCtxCreate_v4' in found_functions}} - -cdef CUresult _cuCtxCreate_v4(CUcontext* pctx, CUctxCreateParams* ctxCreateParams, unsigned int flags, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuCtxCreate_v4 - cuPythonInit() - if __cuCtxCreate_v4 == NULL: - with gil: - raise RuntimeError('Function "cuCtxCreate_v4" not found') - err = ( __cuCtxCreate_v4)(pctx, ctxCreateParams, flags, dev) - return err -{{endif}} - -{{if 'cuCtxDestroy_v2' in found_functions}} - -cdef CUresult _cuCtxDestroy_v2(CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuCtxDestroy_v2 - cuPythonInit() - if __cuCtxDestroy_v2 == NULL: - with gil: - raise RuntimeError('Function "cuCtxDestroy_v2" not found') - err = ( __cuCtxDestroy_v2)(ctx) - return err -{{endif}} - -{{if 'cuCtxPushCurrent_v2' in found_functions}} - -cdef CUresult _cuCtxPushCurrent_v2(CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuCtxPushCurrent_v2 - cuPythonInit() - if __cuCtxPushCurrent_v2 == NULL: - with gil: - raise RuntimeError('Function "cuCtxPushCurrent_v2" not found') - err = ( __cuCtxPushCurrent_v2)(ctx) - return err -{{endif}} - -{{if 'cuCtxPopCurrent_v2' in found_functions}} - -cdef CUresult _cuCtxPopCurrent_v2(CUcontext* pctx) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuCtxPopCurrent_v2 - cuPythonInit() - if __cuCtxPopCurrent_v2 == NULL: - with gil: - raise RuntimeError('Function "cuCtxPopCurrent_v2" not found') - err = ( __cuCtxPopCurrent_v2)(pctx) - return err -{{endif}} - -{{if 'cuCtxSetCurrent' in found_functions}} - -cdef CUresult _cuCtxSetCurrent(CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuCtxSetCurrent - cuPythonInit() - if __cuCtxSetCurrent == NULL: - with gil: - raise RuntimeError('Function "cuCtxSetCurrent" not found') - err = ( __cuCtxSetCurrent)(ctx) - return err -{{endif}} - -{{if 'cuCtxGetCurrent' in found_functions}} - -cdef CUresult _cuCtxGetCurrent(CUcontext* pctx) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuCtxGetCurrent - cuPythonInit() - if __cuCtxGetCurrent == NULL: - with gil: - raise RuntimeError('Function "cuCtxGetCurrent" not found') - err = ( __cuCtxGetCurrent)(pctx) - return err -{{endif}} - -{{if 'cuCtxGetDevice' in found_functions}} - -cdef CUresult _cuCtxGetDevice(CUdevice* device) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuCtxGetDevice - cuPythonInit() - if __cuCtxGetDevice == NULL: - with gil: - raise RuntimeError('Function "cuCtxGetDevice" not found') - err = ( __cuCtxGetDevice)(device) - return err -{{endif}} - -{{if 'cuCtxGetDevice_v2' in found_functions}} - -cdef CUresult _cuCtxGetDevice_v2(CUdevice* device, CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuCtxGetDevice_v2 - cuPythonInit() - if __cuCtxGetDevice_v2 == NULL: - with gil: - raise RuntimeError('Function "cuCtxGetDevice_v2" not found') - err = ( __cuCtxGetDevice_v2)(device, ctx) - return err -{{endif}} - -{{if 'cuCtxGetFlags' in found_functions}} - -cdef CUresult _cuCtxGetFlags(unsigned int* flags) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuCtxGetFlags - cuPythonInit() - if __cuCtxGetFlags == NULL: - with gil: - raise RuntimeError('Function "cuCtxGetFlags" not found') - err = ( __cuCtxGetFlags)(flags) - return err -{{endif}} - -{{if 'cuCtxSetFlags' in found_functions}} - -cdef CUresult _cuCtxSetFlags(unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuCtxSetFlags - cuPythonInit() - if __cuCtxSetFlags == NULL: - with gil: - raise RuntimeError('Function "cuCtxSetFlags" not found') - err = ( __cuCtxSetFlags)(flags) - return err -{{endif}} - -{{if 'cuCtxGetId' in found_functions}} - -cdef CUresult _cuCtxGetId(CUcontext ctx, unsigned long long* ctxId) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuCtxGetId - cuPythonInit() - if __cuCtxGetId == NULL: - with gil: - raise RuntimeError('Function "cuCtxGetId" not found') - err = ( __cuCtxGetId)(ctx, ctxId) - return err -{{endif}} - -{{if 'cuCtxSynchronize' in found_functions}} - -cdef CUresult _cuCtxSynchronize() except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuCtxSynchronize - cuPythonInit() - if __cuCtxSynchronize == NULL: - with gil: - raise RuntimeError('Function "cuCtxSynchronize" not found') - err = ( __cuCtxSynchronize)() - return err -{{endif}} - -{{if 'cuCtxSynchronize_v2' in found_functions}} - -cdef CUresult _cuCtxSynchronize_v2(CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuCtxSynchronize_v2 - cuPythonInit() - if __cuCtxSynchronize_v2 == NULL: - with gil: - raise RuntimeError('Function "cuCtxSynchronize_v2" not found') - err = ( __cuCtxSynchronize_v2)(ctx) - return err -{{endif}} - -{{if 'cuCtxSetLimit' in found_functions}} - -cdef CUresult _cuCtxSetLimit(CUlimit limit, size_t value) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuCtxSetLimit - cuPythonInit() - if __cuCtxSetLimit == NULL: - with gil: - raise RuntimeError('Function "cuCtxSetLimit" not found') - err = ( __cuCtxSetLimit)(limit, value) - return err -{{endif}} - -{{if 'cuCtxGetLimit' in found_functions}} - -cdef CUresult _cuCtxGetLimit(size_t* pvalue, CUlimit limit) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuCtxGetLimit - cuPythonInit() - if __cuCtxGetLimit == NULL: - with gil: - raise RuntimeError('Function "cuCtxGetLimit" not found') - err = ( __cuCtxGetLimit)(pvalue, limit) - return err -{{endif}} - -{{if 'cuCtxGetCacheConfig' in found_functions}} - -cdef CUresult _cuCtxGetCacheConfig(CUfunc_cache* pconfig) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuCtxGetCacheConfig - cuPythonInit() - if __cuCtxGetCacheConfig == NULL: - with gil: - raise RuntimeError('Function "cuCtxGetCacheConfig" not found') - err = ( __cuCtxGetCacheConfig)(pconfig) - return err -{{endif}} - -{{if 'cuCtxSetCacheConfig' in found_functions}} - -cdef CUresult _cuCtxSetCacheConfig(CUfunc_cache config) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuCtxSetCacheConfig - cuPythonInit() - if __cuCtxSetCacheConfig == NULL: - with gil: - raise RuntimeError('Function "cuCtxSetCacheConfig" not found') - err = ( __cuCtxSetCacheConfig)(config) - return err -{{endif}} - -{{if 'cuCtxGetApiVersion' in found_functions}} - -cdef CUresult _cuCtxGetApiVersion(CUcontext ctx, unsigned int* version) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuCtxGetApiVersion - cuPythonInit() - if __cuCtxGetApiVersion == NULL: - with gil: - raise RuntimeError('Function "cuCtxGetApiVersion" not found') - err = ( __cuCtxGetApiVersion)(ctx, version) - return err -{{endif}} - -{{if 'cuCtxGetStreamPriorityRange' in found_functions}} - -cdef CUresult _cuCtxGetStreamPriorityRange(int* leastPriority, int* greatestPriority) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuCtxGetStreamPriorityRange - cuPythonInit() - if __cuCtxGetStreamPriorityRange == NULL: - with gil: - raise RuntimeError('Function "cuCtxGetStreamPriorityRange" not found') - err = ( __cuCtxGetStreamPriorityRange)(leastPriority, greatestPriority) - return err -{{endif}} - -{{if 'cuCtxResetPersistingL2Cache' in found_functions}} - -cdef CUresult _cuCtxResetPersistingL2Cache() except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuCtxResetPersistingL2Cache - cuPythonInit() - if __cuCtxResetPersistingL2Cache == NULL: - with gil: - raise RuntimeError('Function "cuCtxResetPersistingL2Cache" not found') - err = ( __cuCtxResetPersistingL2Cache)() - return err -{{endif}} - -{{if 'cuCtxGetExecAffinity' in found_functions}} - -cdef CUresult _cuCtxGetExecAffinity(CUexecAffinityParam* pExecAffinity, CUexecAffinityType typename) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuCtxGetExecAffinity - cuPythonInit() - if __cuCtxGetExecAffinity == NULL: - with gil: - raise RuntimeError('Function "cuCtxGetExecAffinity" not found') - err = ( __cuCtxGetExecAffinity)(pExecAffinity, typename) - return err -{{endif}} - -{{if 'cuCtxRecordEvent' in found_functions}} - -cdef CUresult _cuCtxRecordEvent(CUcontext hCtx, CUevent hEvent) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuCtxRecordEvent - cuPythonInit() - if __cuCtxRecordEvent == NULL: - with gil: - raise RuntimeError('Function "cuCtxRecordEvent" not found') - err = ( __cuCtxRecordEvent)(hCtx, hEvent) - return err -{{endif}} - -{{if 'cuCtxWaitEvent' in found_functions}} - -cdef CUresult _cuCtxWaitEvent(CUcontext hCtx, CUevent hEvent) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuCtxWaitEvent - cuPythonInit() - if __cuCtxWaitEvent == NULL: - with gil: - raise RuntimeError('Function "cuCtxWaitEvent" not found') - err = ( __cuCtxWaitEvent)(hCtx, hEvent) - return err -{{endif}} - -{{if 'cuCtxAttach' in found_functions}} - -cdef CUresult _cuCtxAttach(CUcontext* pctx, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuCtxAttach - cuPythonInit() - if __cuCtxAttach == NULL: - with gil: - raise RuntimeError('Function "cuCtxAttach" not found') - err = ( __cuCtxAttach)(pctx, flags) - return err -{{endif}} - -{{if 'cuCtxDetach' in found_functions}} - -cdef CUresult _cuCtxDetach(CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuCtxDetach - cuPythonInit() - if __cuCtxDetach == NULL: - with gil: - raise RuntimeError('Function "cuCtxDetach" not found') - err = ( __cuCtxDetach)(ctx) - return err -{{endif}} - -{{if 'cuCtxGetSharedMemConfig' in found_functions}} - -cdef CUresult _cuCtxGetSharedMemConfig(CUsharedconfig* pConfig) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuCtxGetSharedMemConfig - cuPythonInit() - if __cuCtxGetSharedMemConfig == NULL: - with gil: - raise RuntimeError('Function "cuCtxGetSharedMemConfig" not found') - err = ( __cuCtxGetSharedMemConfig)(pConfig) - return err -{{endif}} - -{{if 'cuCtxSetSharedMemConfig' in found_functions}} - -cdef CUresult _cuCtxSetSharedMemConfig(CUsharedconfig config) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuCtxSetSharedMemConfig - cuPythonInit() - if __cuCtxSetSharedMemConfig == NULL: - with gil: - raise RuntimeError('Function "cuCtxSetSharedMemConfig" not found') - err = ( __cuCtxSetSharedMemConfig)(config) - return err -{{endif}} - -{{if 'cuModuleLoad' in found_functions}} - -cdef CUresult _cuModuleLoad(CUmodule* module, const char* fname) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuModuleLoad - cuPythonInit() - if __cuModuleLoad == NULL: - with gil: - raise RuntimeError('Function "cuModuleLoad" not found') - err = ( __cuModuleLoad)(module, fname) - return err -{{endif}} - -{{if 'cuModuleLoadData' in found_functions}} - -cdef CUresult _cuModuleLoadData(CUmodule* module, const void* image) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuModuleLoadData - cuPythonInit() - if __cuModuleLoadData == NULL: - with gil: - raise RuntimeError('Function "cuModuleLoadData" not found') - err = ( __cuModuleLoadData)(module, image) - return err -{{endif}} - -{{if 'cuModuleLoadDataEx' in found_functions}} - -cdef CUresult _cuModuleLoadDataEx(CUmodule* module, const void* image, unsigned int numOptions, CUjit_option* options, void** optionValues) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuModuleLoadDataEx - cuPythonInit() - if __cuModuleLoadDataEx == NULL: - with gil: - raise RuntimeError('Function "cuModuleLoadDataEx" not found') - err = ( __cuModuleLoadDataEx)(module, image, numOptions, options, optionValues) - return err -{{endif}} - -{{if 'cuModuleLoadFatBinary' in found_functions}} - -cdef CUresult _cuModuleLoadFatBinary(CUmodule* module, const void* fatCubin) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuModuleLoadFatBinary - cuPythonInit() - if __cuModuleLoadFatBinary == NULL: - with gil: - raise RuntimeError('Function "cuModuleLoadFatBinary" not found') - err = ( __cuModuleLoadFatBinary)(module, fatCubin) - return err -{{endif}} - -{{if 'cuModuleUnload' in found_functions}} - -cdef CUresult _cuModuleUnload(CUmodule hmod) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuModuleUnload - cuPythonInit() - if __cuModuleUnload == NULL: - with gil: - raise RuntimeError('Function "cuModuleUnload" not found') - err = ( __cuModuleUnload)(hmod) - return err -{{endif}} - -{{if 'cuModuleGetLoadingMode' in found_functions}} - -cdef CUresult _cuModuleGetLoadingMode(CUmoduleLoadingMode* mode) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuModuleGetLoadingMode - cuPythonInit() - if __cuModuleGetLoadingMode == NULL: - with gil: - raise RuntimeError('Function "cuModuleGetLoadingMode" not found') - err = ( __cuModuleGetLoadingMode)(mode) - return err -{{endif}} - -{{if 'cuModuleGetFunction' in found_functions}} - -cdef CUresult _cuModuleGetFunction(CUfunction* hfunc, CUmodule hmod, const char* name) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuModuleGetFunction - cuPythonInit() - if __cuModuleGetFunction == NULL: - with gil: - raise RuntimeError('Function "cuModuleGetFunction" not found') - err = ( __cuModuleGetFunction)(hfunc, hmod, name) - return err -{{endif}} - -{{if 'cuModuleGetFunctionCount' in found_functions}} - -cdef CUresult _cuModuleGetFunctionCount(unsigned int* count, CUmodule mod) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuModuleGetFunctionCount - cuPythonInit() - if __cuModuleGetFunctionCount == NULL: - with gil: - raise RuntimeError('Function "cuModuleGetFunctionCount" not found') - err = ( __cuModuleGetFunctionCount)(count, mod) - return err -{{endif}} - -{{if 'cuModuleEnumerateFunctions' in found_functions}} - -cdef CUresult _cuModuleEnumerateFunctions(CUfunction* functions, unsigned int numFunctions, CUmodule mod) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuModuleEnumerateFunctions - cuPythonInit() - if __cuModuleEnumerateFunctions == NULL: - with gil: - raise RuntimeError('Function "cuModuleEnumerateFunctions" not found') - err = ( __cuModuleEnumerateFunctions)(functions, numFunctions, mod) - return err -{{endif}} - -{{if 'cuModuleGetGlobal_v2' in found_functions}} - -cdef CUresult _cuModuleGetGlobal_v2(CUdeviceptr* dptr, size_t* numbytes, CUmodule hmod, const char* name) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuModuleGetGlobal_v2 - cuPythonInit() - if __cuModuleGetGlobal_v2 == NULL: - with gil: - raise RuntimeError('Function "cuModuleGetGlobal_v2" not found') - err = ( __cuModuleGetGlobal_v2)(dptr, numbytes, hmod, name) - return err -{{endif}} - -{{if 'cuLinkCreate_v2' in found_functions}} - -cdef CUresult _cuLinkCreate_v2(unsigned int numOptions, CUjit_option* options, void** optionValues, CUlinkState* stateOut) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuLinkCreate_v2 - cuPythonInit() - if __cuLinkCreate_v2 == NULL: - with gil: - raise RuntimeError('Function "cuLinkCreate_v2" not found') - err = ( __cuLinkCreate_v2)(numOptions, options, optionValues, stateOut) - return err -{{endif}} - -{{if 'cuLinkAddData_v2' in found_functions}} - -cdef CUresult _cuLinkAddData_v2(CUlinkState state, CUjitInputType typename, void* data, size_t size, const char* name, unsigned int numOptions, CUjit_option* options, void** optionValues) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuLinkAddData_v2 - cuPythonInit() - if __cuLinkAddData_v2 == NULL: - with gil: - raise RuntimeError('Function "cuLinkAddData_v2" not found') - err = ( __cuLinkAddData_v2)(state, typename, data, size, name, numOptions, options, optionValues) - return err -{{endif}} - -{{if 'cuLinkAddFile_v2' in found_functions}} - -cdef CUresult _cuLinkAddFile_v2(CUlinkState state, CUjitInputType typename, const char* path, unsigned int numOptions, CUjit_option* options, void** optionValues) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuLinkAddFile_v2 - cuPythonInit() - if __cuLinkAddFile_v2 == NULL: - with gil: - raise RuntimeError('Function "cuLinkAddFile_v2" not found') - err = ( __cuLinkAddFile_v2)(state, typename, path, numOptions, options, optionValues) - return err -{{endif}} - -{{if 'cuLinkComplete' in found_functions}} - -cdef CUresult _cuLinkComplete(CUlinkState state, void** cubinOut, size_t* sizeOut) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuLinkComplete - cuPythonInit() - if __cuLinkComplete == NULL: - with gil: - raise RuntimeError('Function "cuLinkComplete" not found') - err = ( __cuLinkComplete)(state, cubinOut, sizeOut) - return err -{{endif}} - -{{if 'cuLinkDestroy' in found_functions}} - -cdef CUresult _cuLinkDestroy(CUlinkState state) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuLinkDestroy - cuPythonInit() - if __cuLinkDestroy == NULL: - with gil: - raise RuntimeError('Function "cuLinkDestroy" not found') - err = ( __cuLinkDestroy)(state) - return err -{{endif}} - -{{if 'cuModuleGetTexRef' in found_functions}} - -cdef CUresult _cuModuleGetTexRef(CUtexref* pTexRef, CUmodule hmod, const char* name) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuModuleGetTexRef - cuPythonInit() - if __cuModuleGetTexRef == NULL: - with gil: - raise RuntimeError('Function "cuModuleGetTexRef" not found') - err = ( __cuModuleGetTexRef)(pTexRef, hmod, name) - return err -{{endif}} - -{{if 'cuModuleGetSurfRef' in found_functions}} - -cdef CUresult _cuModuleGetSurfRef(CUsurfref* pSurfRef, CUmodule hmod, const char* name) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuModuleGetSurfRef - cuPythonInit() - if __cuModuleGetSurfRef == NULL: - with gil: - raise RuntimeError('Function "cuModuleGetSurfRef" not found') - err = ( __cuModuleGetSurfRef)(pSurfRef, hmod, name) - return err -{{endif}} - -{{if 'cuLibraryLoadData' in found_functions}} - -cdef CUresult _cuLibraryLoadData(CUlibrary* library, const void* code, CUjit_option* jitOptions, void** jitOptionsValues, unsigned int numJitOptions, CUlibraryOption* libraryOptions, void** libraryOptionValues, unsigned int numLibraryOptions) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuLibraryLoadData - cuPythonInit() - if __cuLibraryLoadData == NULL: - with gil: - raise RuntimeError('Function "cuLibraryLoadData" not found') - err = ( __cuLibraryLoadData)(library, code, jitOptions, jitOptionsValues, numJitOptions, libraryOptions, libraryOptionValues, numLibraryOptions) - return err -{{endif}} - -{{if 'cuLibraryLoadFromFile' in found_functions}} - -cdef CUresult _cuLibraryLoadFromFile(CUlibrary* library, const char* fileName, CUjit_option* jitOptions, void** jitOptionsValues, unsigned int numJitOptions, CUlibraryOption* libraryOptions, void** libraryOptionValues, unsigned int numLibraryOptions) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuLibraryLoadFromFile - cuPythonInit() - if __cuLibraryLoadFromFile == NULL: - with gil: - raise RuntimeError('Function "cuLibraryLoadFromFile" not found') - err = ( __cuLibraryLoadFromFile)(library, fileName, jitOptions, jitOptionsValues, numJitOptions, libraryOptions, libraryOptionValues, numLibraryOptions) - return err -{{endif}} - -{{if 'cuLibraryUnload' in found_functions}} - -cdef CUresult _cuLibraryUnload(CUlibrary library) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuLibraryUnload - cuPythonInit() - if __cuLibraryUnload == NULL: - with gil: - raise RuntimeError('Function "cuLibraryUnload" not found') - err = ( __cuLibraryUnload)(library) - return err -{{endif}} - -{{if 'cuLibraryGetKernel' in found_functions}} - -cdef CUresult _cuLibraryGetKernel(CUkernel* pKernel, CUlibrary library, const char* name) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuLibraryGetKernel - cuPythonInit() - if __cuLibraryGetKernel == NULL: - with gil: - raise RuntimeError('Function "cuLibraryGetKernel" not found') - err = ( __cuLibraryGetKernel)(pKernel, library, name) - return err -{{endif}} - -{{if 'cuLibraryGetKernelCount' in found_functions}} - -cdef CUresult _cuLibraryGetKernelCount(unsigned int* count, CUlibrary lib) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuLibraryGetKernelCount - cuPythonInit() - if __cuLibraryGetKernelCount == NULL: - with gil: - raise RuntimeError('Function "cuLibraryGetKernelCount" not found') - err = ( __cuLibraryGetKernelCount)(count, lib) - return err -{{endif}} - -{{if 'cuLibraryEnumerateKernels' in found_functions}} - -cdef CUresult _cuLibraryEnumerateKernels(CUkernel* kernels, unsigned int numKernels, CUlibrary lib) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuLibraryEnumerateKernels - cuPythonInit() - if __cuLibraryEnumerateKernels == NULL: - with gil: - raise RuntimeError('Function "cuLibraryEnumerateKernels" not found') - err = ( __cuLibraryEnumerateKernels)(kernels, numKernels, lib) - return err -{{endif}} - -{{if 'cuLibraryGetModule' in found_functions}} - -cdef CUresult _cuLibraryGetModule(CUmodule* pMod, CUlibrary library) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuLibraryGetModule - cuPythonInit() - if __cuLibraryGetModule == NULL: - with gil: - raise RuntimeError('Function "cuLibraryGetModule" not found') - err = ( __cuLibraryGetModule)(pMod, library) - return err -{{endif}} - -{{if 'cuKernelGetFunction' in found_functions}} - -cdef CUresult _cuKernelGetFunction(CUfunction* pFunc, CUkernel kernel) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuKernelGetFunction - cuPythonInit() - if __cuKernelGetFunction == NULL: - with gil: - raise RuntimeError('Function "cuKernelGetFunction" not found') - err = ( __cuKernelGetFunction)(pFunc, kernel) - return err -{{endif}} - -{{if 'cuKernelGetLibrary' in found_functions}} - -cdef CUresult _cuKernelGetLibrary(CUlibrary* pLib, CUkernel kernel) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuKernelGetLibrary - cuPythonInit() - if __cuKernelGetLibrary == NULL: - with gil: - raise RuntimeError('Function "cuKernelGetLibrary" not found') - err = ( __cuKernelGetLibrary)(pLib, kernel) - return err -{{endif}} - -{{if 'cuLibraryGetGlobal' in found_functions}} - -cdef CUresult _cuLibraryGetGlobal(CUdeviceptr* dptr, size_t* numbytes, CUlibrary library, const char* name) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuLibraryGetGlobal - cuPythonInit() - if __cuLibraryGetGlobal == NULL: - with gil: - raise RuntimeError('Function "cuLibraryGetGlobal" not found') - err = ( __cuLibraryGetGlobal)(dptr, numbytes, library, name) - return err -{{endif}} - -{{if 'cuLibraryGetManaged' in found_functions}} - -cdef CUresult _cuLibraryGetManaged(CUdeviceptr* dptr, size_t* numbytes, CUlibrary library, const char* name) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuLibraryGetManaged - cuPythonInit() - if __cuLibraryGetManaged == NULL: - with gil: - raise RuntimeError('Function "cuLibraryGetManaged" not found') - err = ( __cuLibraryGetManaged)(dptr, numbytes, library, name) - return err -{{endif}} - -{{if 'cuLibraryGetUnifiedFunction' in found_functions}} - -cdef CUresult _cuLibraryGetUnifiedFunction(void** fptr, CUlibrary library, const char* symbol) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuLibraryGetUnifiedFunction - cuPythonInit() - if __cuLibraryGetUnifiedFunction == NULL: - with gil: - raise RuntimeError('Function "cuLibraryGetUnifiedFunction" not found') - err = ( __cuLibraryGetUnifiedFunction)(fptr, library, symbol) - return err -{{endif}} - -{{if 'cuKernelGetAttribute' in found_functions}} - -cdef CUresult _cuKernelGetAttribute(int* pi, CUfunction_attribute attrib, CUkernel kernel, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuKernelGetAttribute - cuPythonInit() - if __cuKernelGetAttribute == NULL: - with gil: - raise RuntimeError('Function "cuKernelGetAttribute" not found') - err = ( __cuKernelGetAttribute)(pi, attrib, kernel, dev) - return err -{{endif}} - -{{if 'cuKernelSetAttribute' in found_functions}} - -cdef CUresult _cuKernelSetAttribute(CUfunction_attribute attrib, int val, CUkernel kernel, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuKernelSetAttribute - cuPythonInit() - if __cuKernelSetAttribute == NULL: - with gil: - raise RuntimeError('Function "cuKernelSetAttribute" not found') - err = ( __cuKernelSetAttribute)(attrib, val, kernel, dev) - return err -{{endif}} - -{{if 'cuKernelSetCacheConfig' in found_functions}} - -cdef CUresult _cuKernelSetCacheConfig(CUkernel kernel, CUfunc_cache config, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuKernelSetCacheConfig - cuPythonInit() - if __cuKernelSetCacheConfig == NULL: - with gil: - raise RuntimeError('Function "cuKernelSetCacheConfig" not found') - err = ( __cuKernelSetCacheConfig)(kernel, config, dev) - return err -{{endif}} - -{{if 'cuKernelGetName' in found_functions}} - -cdef CUresult _cuKernelGetName(const char** name, CUkernel hfunc) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuKernelGetName - cuPythonInit() - if __cuKernelGetName == NULL: - with gil: - raise RuntimeError('Function "cuKernelGetName" not found') - err = ( __cuKernelGetName)(name, hfunc) - return err -{{endif}} - -{{if 'cuKernelGetParamInfo' in found_functions}} - -cdef CUresult _cuKernelGetParamInfo(CUkernel kernel, size_t paramIndex, size_t* paramOffset, size_t* paramSize) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuKernelGetParamInfo - cuPythonInit() - if __cuKernelGetParamInfo == NULL: - with gil: - raise RuntimeError('Function "cuKernelGetParamInfo" not found') - err = ( __cuKernelGetParamInfo)(kernel, paramIndex, paramOffset, paramSize) - return err -{{endif}} - -{{if 'cuKernelGetParamCount' in found_functions}} - -cdef CUresult _cuKernelGetParamCount(CUkernel kernel, size_t* paramCount) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuKernelGetParamCount - cuPythonInit() - if __cuKernelGetParamCount == NULL: - with gil: - raise RuntimeError('Function "cuKernelGetParamCount" not found') - err = ( __cuKernelGetParamCount)(kernel, paramCount) - return err -{{endif}} - -{{if 'cuMemGetInfo_v2' in found_functions}} - -cdef CUresult _cuMemGetInfo_v2(size_t* free, size_t* total) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMemGetInfo_v2 - cuPythonInit() - if __cuMemGetInfo_v2 == NULL: - with gil: - raise RuntimeError('Function "cuMemGetInfo_v2" not found') - err = ( __cuMemGetInfo_v2)(free, total) - return err -{{endif}} - -{{if 'cuMemAlloc_v2' in found_functions}} - -cdef CUresult _cuMemAlloc_v2(CUdeviceptr* dptr, size_t bytesize) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMemAlloc_v2 - cuPythonInit() - if __cuMemAlloc_v2 == NULL: - with gil: - raise RuntimeError('Function "cuMemAlloc_v2" not found') - err = ( __cuMemAlloc_v2)(dptr, bytesize) - return err -{{endif}} - -{{if 'cuMemAllocPitch_v2' in found_functions}} - -cdef CUresult _cuMemAllocPitch_v2(CUdeviceptr* dptr, size_t* pPitch, size_t WidthInBytes, size_t Height, unsigned int ElementSizeBytes) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMemAllocPitch_v2 - cuPythonInit() - if __cuMemAllocPitch_v2 == NULL: - with gil: - raise RuntimeError('Function "cuMemAllocPitch_v2" not found') - err = ( __cuMemAllocPitch_v2)(dptr, pPitch, WidthInBytes, Height, ElementSizeBytes) - return err -{{endif}} - -{{if 'cuMemFree_v2' in found_functions}} - -cdef CUresult _cuMemFree_v2(CUdeviceptr dptr) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMemFree_v2 - cuPythonInit() - if __cuMemFree_v2 == NULL: - with gil: - raise RuntimeError('Function "cuMemFree_v2" not found') - err = ( __cuMemFree_v2)(dptr) - return err -{{endif}} - -{{if 'cuMemGetAddressRange_v2' in found_functions}} - -cdef CUresult _cuMemGetAddressRange_v2(CUdeviceptr* pbase, size_t* psize, CUdeviceptr dptr) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMemGetAddressRange_v2 - cuPythonInit() - if __cuMemGetAddressRange_v2 == NULL: - with gil: - raise RuntimeError('Function "cuMemGetAddressRange_v2" not found') - err = ( __cuMemGetAddressRange_v2)(pbase, psize, dptr) - return err -{{endif}} - -{{if 'cuMemAllocHost_v2' in found_functions}} - -cdef CUresult _cuMemAllocHost_v2(void** pp, size_t bytesize) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMemAllocHost_v2 - cuPythonInit() - if __cuMemAllocHost_v2 == NULL: - with gil: - raise RuntimeError('Function "cuMemAllocHost_v2" not found') - err = ( __cuMemAllocHost_v2)(pp, bytesize) - return err -{{endif}} - -{{if 'cuMemFreeHost' in found_functions}} - -cdef CUresult _cuMemFreeHost(void* p) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMemFreeHost - cuPythonInit() - if __cuMemFreeHost == NULL: - with gil: - raise RuntimeError('Function "cuMemFreeHost" not found') - err = ( __cuMemFreeHost)(p) - return err -{{endif}} - -{{if 'cuMemHostAlloc' in found_functions}} - -cdef CUresult _cuMemHostAlloc(void** pp, size_t bytesize, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMemHostAlloc - cuPythonInit() - if __cuMemHostAlloc == NULL: - with gil: - raise RuntimeError('Function "cuMemHostAlloc" not found') - err = ( __cuMemHostAlloc)(pp, bytesize, Flags) - return err -{{endif}} - -{{if 'cuMemHostGetDevicePointer_v2' in found_functions}} - -cdef CUresult _cuMemHostGetDevicePointer_v2(CUdeviceptr* pdptr, void* p, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMemHostGetDevicePointer_v2 - cuPythonInit() - if __cuMemHostGetDevicePointer_v2 == NULL: - with gil: - raise RuntimeError('Function "cuMemHostGetDevicePointer_v2" not found') - err = ( __cuMemHostGetDevicePointer_v2)(pdptr, p, Flags) - return err -{{endif}} - -{{if 'cuMemHostGetFlags' in found_functions}} - -cdef CUresult _cuMemHostGetFlags(unsigned int* pFlags, void* p) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMemHostGetFlags - cuPythonInit() - if __cuMemHostGetFlags == NULL: - with gil: - raise RuntimeError('Function "cuMemHostGetFlags" not found') - err = ( __cuMemHostGetFlags)(pFlags, p) - return err -{{endif}} - -{{if 'cuMemAllocManaged' in found_functions}} - -cdef CUresult _cuMemAllocManaged(CUdeviceptr* dptr, size_t bytesize, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMemAllocManaged - cuPythonInit() - if __cuMemAllocManaged == NULL: - with gil: - raise RuntimeError('Function "cuMemAllocManaged" not found') - err = ( __cuMemAllocManaged)(dptr, bytesize, flags) - return err -{{endif}} - -{{if 'cuDeviceRegisterAsyncNotification' in found_functions}} - -cdef CUresult _cuDeviceRegisterAsyncNotification(CUdevice device, CUasyncCallback callbackFunc, void* userData, CUasyncCallbackHandle* callback) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuDeviceRegisterAsyncNotification - cuPythonInit() - if __cuDeviceRegisterAsyncNotification == NULL: - with gil: - raise RuntimeError('Function "cuDeviceRegisterAsyncNotification" not found') - err = ( __cuDeviceRegisterAsyncNotification)(device, callbackFunc, userData, callback) - return err -{{endif}} - -{{if 'cuDeviceUnregisterAsyncNotification' in found_functions}} - -cdef CUresult _cuDeviceUnregisterAsyncNotification(CUdevice device, CUasyncCallbackHandle callback) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuDeviceUnregisterAsyncNotification - cuPythonInit() - if __cuDeviceUnregisterAsyncNotification == NULL: - with gil: - raise RuntimeError('Function "cuDeviceUnregisterAsyncNotification" not found') - err = ( __cuDeviceUnregisterAsyncNotification)(device, callback) - return err -{{endif}} - -{{if 'cuDeviceGetByPCIBusId' in found_functions}} - -cdef CUresult _cuDeviceGetByPCIBusId(CUdevice* dev, const char* pciBusId) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuDeviceGetByPCIBusId - cuPythonInit() - if __cuDeviceGetByPCIBusId == NULL: - with gil: - raise RuntimeError('Function "cuDeviceGetByPCIBusId" not found') - err = ( __cuDeviceGetByPCIBusId)(dev, pciBusId) - return err -{{endif}} - -{{if 'cuDeviceGetPCIBusId' in found_functions}} - -cdef CUresult _cuDeviceGetPCIBusId(char* pciBusId, int length, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuDeviceGetPCIBusId - cuPythonInit() - if __cuDeviceGetPCIBusId == NULL: - with gil: - raise RuntimeError('Function "cuDeviceGetPCIBusId" not found') - err = ( __cuDeviceGetPCIBusId)(pciBusId, length, dev) - return err -{{endif}} - -{{if 'cuIpcGetEventHandle' in found_functions}} - -cdef CUresult _cuIpcGetEventHandle(CUipcEventHandle* pHandle, CUevent event) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuIpcGetEventHandle - cuPythonInit() - if __cuIpcGetEventHandle == NULL: - with gil: - raise RuntimeError('Function "cuIpcGetEventHandle" not found') - err = ( __cuIpcGetEventHandle)(pHandle, event) - return err -{{endif}} - -{{if 'cuIpcOpenEventHandle' in found_functions}} - -cdef CUresult _cuIpcOpenEventHandle(CUevent* phEvent, CUipcEventHandle handle) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuIpcOpenEventHandle - cuPythonInit() - if __cuIpcOpenEventHandle == NULL: - with gil: - raise RuntimeError('Function "cuIpcOpenEventHandle" not found') - err = ( __cuIpcOpenEventHandle)(phEvent, handle) - return err -{{endif}} - -{{if 'cuIpcGetMemHandle' in found_functions}} - -cdef CUresult _cuIpcGetMemHandle(CUipcMemHandle* pHandle, CUdeviceptr dptr) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuIpcGetMemHandle - cuPythonInit() - if __cuIpcGetMemHandle == NULL: - with gil: - raise RuntimeError('Function "cuIpcGetMemHandle" not found') - err = ( __cuIpcGetMemHandle)(pHandle, dptr) - return err -{{endif}} - -{{if 'cuIpcOpenMemHandle_v2' in found_functions}} - -cdef CUresult _cuIpcOpenMemHandle_v2(CUdeviceptr* pdptr, CUipcMemHandle handle, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuIpcOpenMemHandle_v2 - cuPythonInit() - if __cuIpcOpenMemHandle_v2 == NULL: - with gil: - raise RuntimeError('Function "cuIpcOpenMemHandle_v2" not found') - err = ( __cuIpcOpenMemHandle_v2)(pdptr, handle, Flags) - return err -{{endif}} - -{{if 'cuIpcCloseMemHandle' in found_functions}} - -cdef CUresult _cuIpcCloseMemHandle(CUdeviceptr dptr) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuIpcCloseMemHandle - cuPythonInit() - if __cuIpcCloseMemHandle == NULL: - with gil: - raise RuntimeError('Function "cuIpcCloseMemHandle" not found') - err = ( __cuIpcCloseMemHandle)(dptr) - return err -{{endif}} - -{{if 'cuMemHostRegister_v2' in found_functions}} - -cdef CUresult _cuMemHostRegister_v2(void* p, size_t bytesize, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMemHostRegister_v2 - cuPythonInit() - if __cuMemHostRegister_v2 == NULL: - with gil: - raise RuntimeError('Function "cuMemHostRegister_v2" not found') - err = ( __cuMemHostRegister_v2)(p, bytesize, Flags) - return err -{{endif}} - -{{if 'cuMemHostUnregister' in found_functions}} - -cdef CUresult _cuMemHostUnregister(void* p) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMemHostUnregister - cuPythonInit() - if __cuMemHostUnregister == NULL: - with gil: - raise RuntimeError('Function "cuMemHostUnregister" not found') - err = ( __cuMemHostUnregister)(p) - return err -{{endif}} - -{{if 'cuMemcpy' in found_functions}} - -cdef CUresult _cuMemcpy(CUdeviceptr dst, CUdeviceptr src, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMemcpy - cuPythonInit() - if __cuMemcpy == NULL: - with gil: - raise RuntimeError('Function "cuMemcpy" not found') - err = ( __cuMemcpy)(dst, src, ByteCount) - return err -{{endif}} - -{{if 'cuMemcpyPeer' in found_functions}} - -cdef CUresult _cuMemcpyPeer(CUdeviceptr dstDevice, CUcontext dstContext, CUdeviceptr srcDevice, CUcontext srcContext, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMemcpyPeer - cuPythonInit() - if __cuMemcpyPeer == NULL: - with gil: - raise RuntimeError('Function "cuMemcpyPeer" not found') - err = ( __cuMemcpyPeer)(dstDevice, dstContext, srcDevice, srcContext, ByteCount) - return err -{{endif}} - -{{if 'cuMemcpyHtoD_v2' in found_functions}} - -cdef CUresult _cuMemcpyHtoD_v2(CUdeviceptr dstDevice, const void* srcHost, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMemcpyHtoD_v2 - cuPythonInit() - if __cuMemcpyHtoD_v2 == NULL: - with gil: - raise RuntimeError('Function "cuMemcpyHtoD_v2" not found') - err = ( __cuMemcpyHtoD_v2)(dstDevice, srcHost, ByteCount) - return err -{{endif}} - -{{if 'cuMemcpyDtoH_v2' in found_functions}} - -cdef CUresult _cuMemcpyDtoH_v2(void* dstHost, CUdeviceptr srcDevice, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMemcpyDtoH_v2 - cuPythonInit() - if __cuMemcpyDtoH_v2 == NULL: - with gil: - raise RuntimeError('Function "cuMemcpyDtoH_v2" not found') - err = ( __cuMemcpyDtoH_v2)(dstHost, srcDevice, ByteCount) - return err -{{endif}} - -{{if 'cuMemcpyDtoD_v2' in found_functions}} - -cdef CUresult _cuMemcpyDtoD_v2(CUdeviceptr dstDevice, CUdeviceptr srcDevice, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMemcpyDtoD_v2 - cuPythonInit() - if __cuMemcpyDtoD_v2 == NULL: - with gil: - raise RuntimeError('Function "cuMemcpyDtoD_v2" not found') - err = ( __cuMemcpyDtoD_v2)(dstDevice, srcDevice, ByteCount) - return err -{{endif}} - -{{if 'cuMemcpyDtoA_v2' in found_functions}} - -cdef CUresult _cuMemcpyDtoA_v2(CUarray dstArray, size_t dstOffset, CUdeviceptr srcDevice, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMemcpyDtoA_v2 - cuPythonInit() - if __cuMemcpyDtoA_v2 == NULL: - with gil: - raise RuntimeError('Function "cuMemcpyDtoA_v2" not found') - err = ( __cuMemcpyDtoA_v2)(dstArray, dstOffset, srcDevice, ByteCount) - return err -{{endif}} - -{{if 'cuMemcpyAtoD_v2' in found_functions}} - -cdef CUresult _cuMemcpyAtoD_v2(CUdeviceptr dstDevice, CUarray srcArray, size_t srcOffset, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMemcpyAtoD_v2 - cuPythonInit() - if __cuMemcpyAtoD_v2 == NULL: - with gil: - raise RuntimeError('Function "cuMemcpyAtoD_v2" not found') - err = ( __cuMemcpyAtoD_v2)(dstDevice, srcArray, srcOffset, ByteCount) - return err -{{endif}} - -{{if 'cuMemcpyHtoA_v2' in found_functions}} - -cdef CUresult _cuMemcpyHtoA_v2(CUarray dstArray, size_t dstOffset, const void* srcHost, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMemcpyHtoA_v2 - cuPythonInit() - if __cuMemcpyHtoA_v2 == NULL: - with gil: - raise RuntimeError('Function "cuMemcpyHtoA_v2" not found') - err = ( __cuMemcpyHtoA_v2)(dstArray, dstOffset, srcHost, ByteCount) - return err -{{endif}} - -{{if 'cuMemcpyAtoH_v2' in found_functions}} - -cdef CUresult _cuMemcpyAtoH_v2(void* dstHost, CUarray srcArray, size_t srcOffset, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMemcpyAtoH_v2 - cuPythonInit() - if __cuMemcpyAtoH_v2 == NULL: - with gil: - raise RuntimeError('Function "cuMemcpyAtoH_v2" not found') - err = ( __cuMemcpyAtoH_v2)(dstHost, srcArray, srcOffset, ByteCount) - return err -{{endif}} - -{{if 'cuMemcpyAtoA_v2' in found_functions}} - -cdef CUresult _cuMemcpyAtoA_v2(CUarray dstArray, size_t dstOffset, CUarray srcArray, size_t srcOffset, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMemcpyAtoA_v2 - cuPythonInit() - if __cuMemcpyAtoA_v2 == NULL: - with gil: - raise RuntimeError('Function "cuMemcpyAtoA_v2" not found') - err = ( __cuMemcpyAtoA_v2)(dstArray, dstOffset, srcArray, srcOffset, ByteCount) - return err -{{endif}} - -{{if 'cuMemcpy2D_v2' in found_functions}} - -cdef CUresult _cuMemcpy2D_v2(const CUDA_MEMCPY2D* pCopy) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMemcpy2D_v2 - cuPythonInit() - if __cuMemcpy2D_v2 == NULL: - with gil: - raise RuntimeError('Function "cuMemcpy2D_v2" not found') - err = ( __cuMemcpy2D_v2)(pCopy) - return err -{{endif}} - -{{if 'cuMemcpy2DUnaligned_v2' in found_functions}} - -cdef CUresult _cuMemcpy2DUnaligned_v2(const CUDA_MEMCPY2D* pCopy) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMemcpy2DUnaligned_v2 - cuPythonInit() - if __cuMemcpy2DUnaligned_v2 == NULL: - with gil: - raise RuntimeError('Function "cuMemcpy2DUnaligned_v2" not found') - err = ( __cuMemcpy2DUnaligned_v2)(pCopy) - return err -{{endif}} - -{{if 'cuMemcpy3D_v2' in found_functions}} - -cdef CUresult _cuMemcpy3D_v2(const CUDA_MEMCPY3D* pCopy) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMemcpy3D_v2 - cuPythonInit() - if __cuMemcpy3D_v2 == NULL: - with gil: - raise RuntimeError('Function "cuMemcpy3D_v2" not found') - err = ( __cuMemcpy3D_v2)(pCopy) - return err -{{endif}} - -{{if 'cuMemcpy3DPeer' in found_functions}} - -cdef CUresult _cuMemcpy3DPeer(const CUDA_MEMCPY3D_PEER* pCopy) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMemcpy3DPeer - cuPythonInit() - if __cuMemcpy3DPeer == NULL: - with gil: - raise RuntimeError('Function "cuMemcpy3DPeer" not found') - err = ( __cuMemcpy3DPeer)(pCopy) - return err -{{endif}} - -{{if 'cuMemcpyAsync' in found_functions}} - -cdef CUresult _cuMemcpyAsync(CUdeviceptr dst, CUdeviceptr src, size_t ByteCount, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMemcpyAsync - cuPythonInit() - if __cuMemcpyAsync == NULL: - with gil: - raise RuntimeError('Function "cuMemcpyAsync" not found') - err = ( __cuMemcpyAsync)(dst, src, ByteCount, hStream) - return err -{{endif}} - -{{if 'cuMemcpyPeerAsync' in found_functions}} - -cdef CUresult _cuMemcpyPeerAsync(CUdeviceptr dstDevice, CUcontext dstContext, CUdeviceptr srcDevice, CUcontext srcContext, size_t ByteCount, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMemcpyPeerAsync - cuPythonInit() - if __cuMemcpyPeerAsync == NULL: - with gil: - raise RuntimeError('Function "cuMemcpyPeerAsync" not found') - err = ( __cuMemcpyPeerAsync)(dstDevice, dstContext, srcDevice, srcContext, ByteCount, hStream) - return err -{{endif}} - -{{if 'cuMemcpyHtoDAsync_v2' in found_functions}} - -cdef CUresult _cuMemcpyHtoDAsync_v2(CUdeviceptr dstDevice, const void* srcHost, size_t ByteCount, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMemcpyHtoDAsync_v2 - cuPythonInit() - if __cuMemcpyHtoDAsync_v2 == NULL: - with gil: - raise RuntimeError('Function "cuMemcpyHtoDAsync_v2" not found') - err = ( __cuMemcpyHtoDAsync_v2)(dstDevice, srcHost, ByteCount, hStream) - return err -{{endif}} - -{{if 'cuMemcpyDtoHAsync_v2' in found_functions}} - -cdef CUresult _cuMemcpyDtoHAsync_v2(void* dstHost, CUdeviceptr srcDevice, size_t ByteCount, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMemcpyDtoHAsync_v2 - cuPythonInit() - if __cuMemcpyDtoHAsync_v2 == NULL: - with gil: - raise RuntimeError('Function "cuMemcpyDtoHAsync_v2" not found') - err = ( __cuMemcpyDtoHAsync_v2)(dstHost, srcDevice, ByteCount, hStream) - return err -{{endif}} - -{{if 'cuMemcpyDtoDAsync_v2' in found_functions}} - -cdef CUresult _cuMemcpyDtoDAsync_v2(CUdeviceptr dstDevice, CUdeviceptr srcDevice, size_t ByteCount, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMemcpyDtoDAsync_v2 - cuPythonInit() - if __cuMemcpyDtoDAsync_v2 == NULL: - with gil: - raise RuntimeError('Function "cuMemcpyDtoDAsync_v2" not found') - err = ( __cuMemcpyDtoDAsync_v2)(dstDevice, srcDevice, ByteCount, hStream) - return err -{{endif}} - -{{if 'cuMemcpyHtoAAsync_v2' in found_functions}} - -cdef CUresult _cuMemcpyHtoAAsync_v2(CUarray dstArray, size_t dstOffset, const void* srcHost, size_t ByteCount, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMemcpyHtoAAsync_v2 - cuPythonInit() - if __cuMemcpyHtoAAsync_v2 == NULL: - with gil: - raise RuntimeError('Function "cuMemcpyHtoAAsync_v2" not found') - err = ( __cuMemcpyHtoAAsync_v2)(dstArray, dstOffset, srcHost, ByteCount, hStream) - return err -{{endif}} - -{{if 'cuMemcpyAtoHAsync_v2' in found_functions}} - -cdef CUresult _cuMemcpyAtoHAsync_v2(void* dstHost, CUarray srcArray, size_t srcOffset, size_t ByteCount, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMemcpyAtoHAsync_v2 - cuPythonInit() - if __cuMemcpyAtoHAsync_v2 == NULL: - with gil: - raise RuntimeError('Function "cuMemcpyAtoHAsync_v2" not found') - err = ( __cuMemcpyAtoHAsync_v2)(dstHost, srcArray, srcOffset, ByteCount, hStream) - return err -{{endif}} - -{{if 'cuMemcpy2DAsync_v2' in found_functions}} - -cdef CUresult _cuMemcpy2DAsync_v2(const CUDA_MEMCPY2D* pCopy, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMemcpy2DAsync_v2 - cuPythonInit() - if __cuMemcpy2DAsync_v2 == NULL: - with gil: - raise RuntimeError('Function "cuMemcpy2DAsync_v2" not found') - err = ( __cuMemcpy2DAsync_v2)(pCopy, hStream) - return err -{{endif}} - -{{if 'cuMemcpy3DAsync_v2' in found_functions}} - -cdef CUresult _cuMemcpy3DAsync_v2(const CUDA_MEMCPY3D* pCopy, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMemcpy3DAsync_v2 - cuPythonInit() - if __cuMemcpy3DAsync_v2 == NULL: - with gil: - raise RuntimeError('Function "cuMemcpy3DAsync_v2" not found') - err = ( __cuMemcpy3DAsync_v2)(pCopy, hStream) - return err -{{endif}} - -{{if 'cuMemcpy3DPeerAsync' in found_functions}} - -cdef CUresult _cuMemcpy3DPeerAsync(const CUDA_MEMCPY3D_PEER* pCopy, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMemcpy3DPeerAsync - cuPythonInit() - if __cuMemcpy3DPeerAsync == NULL: - with gil: - raise RuntimeError('Function "cuMemcpy3DPeerAsync" not found') - err = ( __cuMemcpy3DPeerAsync)(pCopy, hStream) - return err -{{endif}} - -{{if 'cuMemcpyBatchAsync_v2' in found_functions}} - -cdef CUresult _cuMemcpyBatchAsync_v2(CUdeviceptr* dsts, CUdeviceptr* srcs, size_t* sizes, size_t count, CUmemcpyAttributes* attrs, size_t* attrsIdxs, size_t numAttrs, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMemcpyBatchAsync_v2 - cuPythonInit() - if __cuMemcpyBatchAsync_v2 == NULL: - with gil: - raise RuntimeError('Function "cuMemcpyBatchAsync_v2" not found') - err = ( __cuMemcpyBatchAsync_v2)(dsts, srcs, sizes, count, attrs, attrsIdxs, numAttrs, hStream) - return err -{{endif}} - -{{if 'cuMemcpy3DBatchAsync_v2' in found_functions}} - -cdef CUresult _cuMemcpy3DBatchAsync_v2(size_t numOps, CUDA_MEMCPY3D_BATCH_OP* opList, unsigned long long flags, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMemcpy3DBatchAsync_v2 - cuPythonInit() - if __cuMemcpy3DBatchAsync_v2 == NULL: - with gil: - raise RuntimeError('Function "cuMemcpy3DBatchAsync_v2" not found') - err = ( __cuMemcpy3DBatchAsync_v2)(numOps, opList, flags, hStream) - return err -{{endif}} - -{{if 'cuMemcpyWithAttributesAsync' in found_functions}} - -cdef CUresult _cuMemcpyWithAttributesAsync(CUdeviceptr dst, CUdeviceptr src, size_t size, CUmemcpyAttributes* attr, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMemcpyWithAttributesAsync - cuPythonInit() - if __cuMemcpyWithAttributesAsync == NULL: - with gil: - raise RuntimeError('Function "cuMemcpyWithAttributesAsync" not found') - err = ( __cuMemcpyWithAttributesAsync)(dst, src, size, attr, hStream) - return err -{{endif}} - -{{if 'cuMemcpy3DWithAttributesAsync' in found_functions}} - -cdef CUresult _cuMemcpy3DWithAttributesAsync(CUDA_MEMCPY3D_BATCH_OP* op, unsigned long long flags, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMemcpy3DWithAttributesAsync - cuPythonInit() - if __cuMemcpy3DWithAttributesAsync == NULL: - with gil: - raise RuntimeError('Function "cuMemcpy3DWithAttributesAsync" not found') - err = ( __cuMemcpy3DWithAttributesAsync)(op, flags, hStream) - return err -{{endif}} - -{{if 'cuMemsetD8_v2' in found_functions}} - -cdef CUresult _cuMemsetD8_v2(CUdeviceptr dstDevice, unsigned char uc, size_t N) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMemsetD8_v2 - cuPythonInit() - if __cuMemsetD8_v2 == NULL: - with gil: - raise RuntimeError('Function "cuMemsetD8_v2" not found') - err = ( __cuMemsetD8_v2)(dstDevice, uc, N) - return err -{{endif}} - -{{if 'cuMemsetD16_v2' in found_functions}} - -cdef CUresult _cuMemsetD16_v2(CUdeviceptr dstDevice, unsigned short us, size_t N) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMemsetD16_v2 - cuPythonInit() - if __cuMemsetD16_v2 == NULL: - with gil: - raise RuntimeError('Function "cuMemsetD16_v2" not found') - err = ( __cuMemsetD16_v2)(dstDevice, us, N) - return err -{{endif}} - -{{if 'cuMemsetD32_v2' in found_functions}} - -cdef CUresult _cuMemsetD32_v2(CUdeviceptr dstDevice, unsigned int ui, size_t N) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMemsetD32_v2 - cuPythonInit() - if __cuMemsetD32_v2 == NULL: - with gil: - raise RuntimeError('Function "cuMemsetD32_v2" not found') - err = ( __cuMemsetD32_v2)(dstDevice, ui, N) - return err -{{endif}} - -{{if 'cuMemsetD2D8_v2' in found_functions}} - -cdef CUresult _cuMemsetD2D8_v2(CUdeviceptr dstDevice, size_t dstPitch, unsigned char uc, size_t Width, size_t Height) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMemsetD2D8_v2 - cuPythonInit() - if __cuMemsetD2D8_v2 == NULL: - with gil: - raise RuntimeError('Function "cuMemsetD2D8_v2" not found') - err = ( __cuMemsetD2D8_v2)(dstDevice, dstPitch, uc, Width, Height) - return err -{{endif}} - -{{if 'cuMemsetD2D16_v2' in found_functions}} - -cdef CUresult _cuMemsetD2D16_v2(CUdeviceptr dstDevice, size_t dstPitch, unsigned short us, size_t Width, size_t Height) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMemsetD2D16_v2 - cuPythonInit() - if __cuMemsetD2D16_v2 == NULL: - with gil: - raise RuntimeError('Function "cuMemsetD2D16_v2" not found') - err = ( __cuMemsetD2D16_v2)(dstDevice, dstPitch, us, Width, Height) - return err -{{endif}} - -{{if 'cuMemsetD2D32_v2' in found_functions}} - -cdef CUresult _cuMemsetD2D32_v2(CUdeviceptr dstDevice, size_t dstPitch, unsigned int ui, size_t Width, size_t Height) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMemsetD2D32_v2 - cuPythonInit() - if __cuMemsetD2D32_v2 == NULL: - with gil: - raise RuntimeError('Function "cuMemsetD2D32_v2" not found') - err = ( __cuMemsetD2D32_v2)(dstDevice, dstPitch, ui, Width, Height) - return err -{{endif}} - -{{if 'cuMemsetD8Async' in found_functions}} - -cdef CUresult _cuMemsetD8Async(CUdeviceptr dstDevice, unsigned char uc, size_t N, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMemsetD8Async - cuPythonInit() - if __cuMemsetD8Async == NULL: - with gil: - raise RuntimeError('Function "cuMemsetD8Async" not found') - err = ( __cuMemsetD8Async)(dstDevice, uc, N, hStream) - return err -{{endif}} - -{{if 'cuMemsetD16Async' in found_functions}} - -cdef CUresult _cuMemsetD16Async(CUdeviceptr dstDevice, unsigned short us, size_t N, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMemsetD16Async - cuPythonInit() - if __cuMemsetD16Async == NULL: - with gil: - raise RuntimeError('Function "cuMemsetD16Async" not found') - err = ( __cuMemsetD16Async)(dstDevice, us, N, hStream) - return err -{{endif}} - -{{if 'cuMemsetD32Async' in found_functions}} - -cdef CUresult _cuMemsetD32Async(CUdeviceptr dstDevice, unsigned int ui, size_t N, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMemsetD32Async - cuPythonInit() - if __cuMemsetD32Async == NULL: - with gil: - raise RuntimeError('Function "cuMemsetD32Async" not found') - err = ( __cuMemsetD32Async)(dstDevice, ui, N, hStream) - return err -{{endif}} - -{{if 'cuMemsetD2D8Async' in found_functions}} - -cdef CUresult _cuMemsetD2D8Async(CUdeviceptr dstDevice, size_t dstPitch, unsigned char uc, size_t Width, size_t Height, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMemsetD2D8Async - cuPythonInit() - if __cuMemsetD2D8Async == NULL: - with gil: - raise RuntimeError('Function "cuMemsetD2D8Async" not found') - err = ( __cuMemsetD2D8Async)(dstDevice, dstPitch, uc, Width, Height, hStream) - return err -{{endif}} - -{{if 'cuMemsetD2D16Async' in found_functions}} - -cdef CUresult _cuMemsetD2D16Async(CUdeviceptr dstDevice, size_t dstPitch, unsigned short us, size_t Width, size_t Height, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMemsetD2D16Async - cuPythonInit() - if __cuMemsetD2D16Async == NULL: - with gil: - raise RuntimeError('Function "cuMemsetD2D16Async" not found') - err = ( __cuMemsetD2D16Async)(dstDevice, dstPitch, us, Width, Height, hStream) - return err -{{endif}} - -{{if 'cuMemsetD2D32Async' in found_functions}} - -cdef CUresult _cuMemsetD2D32Async(CUdeviceptr dstDevice, size_t dstPitch, unsigned int ui, size_t Width, size_t Height, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMemsetD2D32Async - cuPythonInit() - if __cuMemsetD2D32Async == NULL: - with gil: - raise RuntimeError('Function "cuMemsetD2D32Async" not found') - err = ( __cuMemsetD2D32Async)(dstDevice, dstPitch, ui, Width, Height, hStream) - return err -{{endif}} - -{{if 'cuArrayCreate_v2' in found_functions}} - -cdef CUresult _cuArrayCreate_v2(CUarray* pHandle, const CUDA_ARRAY_DESCRIPTOR* pAllocateArray) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuArrayCreate_v2 - cuPythonInit() - if __cuArrayCreate_v2 == NULL: - with gil: - raise RuntimeError('Function "cuArrayCreate_v2" not found') - err = ( __cuArrayCreate_v2)(pHandle, pAllocateArray) - return err -{{endif}} - -{{if 'cuArrayGetDescriptor_v2' in found_functions}} - -cdef CUresult _cuArrayGetDescriptor_v2(CUDA_ARRAY_DESCRIPTOR* pArrayDescriptor, CUarray hArray) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuArrayGetDescriptor_v2 - cuPythonInit() - if __cuArrayGetDescriptor_v2 == NULL: - with gil: - raise RuntimeError('Function "cuArrayGetDescriptor_v2" not found') - err = ( __cuArrayGetDescriptor_v2)(pArrayDescriptor, hArray) - return err -{{endif}} - -{{if 'cuArrayGetSparseProperties' in found_functions}} - -cdef CUresult _cuArrayGetSparseProperties(CUDA_ARRAY_SPARSE_PROPERTIES* sparseProperties, CUarray array) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuArrayGetSparseProperties - cuPythonInit() - if __cuArrayGetSparseProperties == NULL: - with gil: - raise RuntimeError('Function "cuArrayGetSparseProperties" not found') - err = ( __cuArrayGetSparseProperties)(sparseProperties, array) - return err -{{endif}} - -{{if 'cuMipmappedArrayGetSparseProperties' in found_functions}} - -cdef CUresult _cuMipmappedArrayGetSparseProperties(CUDA_ARRAY_SPARSE_PROPERTIES* sparseProperties, CUmipmappedArray mipmap) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMipmappedArrayGetSparseProperties - cuPythonInit() - if __cuMipmappedArrayGetSparseProperties == NULL: - with gil: - raise RuntimeError('Function "cuMipmappedArrayGetSparseProperties" not found') - err = ( __cuMipmappedArrayGetSparseProperties)(sparseProperties, mipmap) - return err -{{endif}} - -{{if 'cuArrayGetMemoryRequirements' in found_functions}} - -cdef CUresult _cuArrayGetMemoryRequirements(CUDA_ARRAY_MEMORY_REQUIREMENTS* memoryRequirements, CUarray array, CUdevice device) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuArrayGetMemoryRequirements - cuPythonInit() - if __cuArrayGetMemoryRequirements == NULL: - with gil: - raise RuntimeError('Function "cuArrayGetMemoryRequirements" not found') - err = ( __cuArrayGetMemoryRequirements)(memoryRequirements, array, device) - return err -{{endif}} - -{{if 'cuMipmappedArrayGetMemoryRequirements' in found_functions}} - -cdef CUresult _cuMipmappedArrayGetMemoryRequirements(CUDA_ARRAY_MEMORY_REQUIREMENTS* memoryRequirements, CUmipmappedArray mipmap, CUdevice device) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMipmappedArrayGetMemoryRequirements - cuPythonInit() - if __cuMipmappedArrayGetMemoryRequirements == NULL: - with gil: - raise RuntimeError('Function "cuMipmappedArrayGetMemoryRequirements" not found') - err = ( __cuMipmappedArrayGetMemoryRequirements)(memoryRequirements, mipmap, device) - return err -{{endif}} - -{{if 'cuArrayGetPlane' in found_functions}} - -cdef CUresult _cuArrayGetPlane(CUarray* pPlaneArray, CUarray hArray, unsigned int planeIdx) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuArrayGetPlane - cuPythonInit() - if __cuArrayGetPlane == NULL: - with gil: - raise RuntimeError('Function "cuArrayGetPlane" not found') - err = ( __cuArrayGetPlane)(pPlaneArray, hArray, planeIdx) - return err -{{endif}} - -{{if 'cuArrayDestroy' in found_functions}} - -cdef CUresult _cuArrayDestroy(CUarray hArray) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuArrayDestroy - cuPythonInit() - if __cuArrayDestroy == NULL: - with gil: - raise RuntimeError('Function "cuArrayDestroy" not found') - err = ( __cuArrayDestroy)(hArray) - return err -{{endif}} - -{{if 'cuArray3DCreate_v2' in found_functions}} - -cdef CUresult _cuArray3DCreate_v2(CUarray* pHandle, const CUDA_ARRAY3D_DESCRIPTOR* pAllocateArray) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuArray3DCreate_v2 - cuPythonInit() - if __cuArray3DCreate_v2 == NULL: - with gil: - raise RuntimeError('Function "cuArray3DCreate_v2" not found') - err = ( __cuArray3DCreate_v2)(pHandle, pAllocateArray) - return err -{{endif}} - -{{if 'cuArray3DGetDescriptor_v2' in found_functions}} - -cdef CUresult _cuArray3DGetDescriptor_v2(CUDA_ARRAY3D_DESCRIPTOR* pArrayDescriptor, CUarray hArray) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuArray3DGetDescriptor_v2 - cuPythonInit() - if __cuArray3DGetDescriptor_v2 == NULL: - with gil: - raise RuntimeError('Function "cuArray3DGetDescriptor_v2" not found') - err = ( __cuArray3DGetDescriptor_v2)(pArrayDescriptor, hArray) - return err -{{endif}} - -{{if 'cuMipmappedArrayCreate' in found_functions}} - -cdef CUresult _cuMipmappedArrayCreate(CUmipmappedArray* pHandle, const CUDA_ARRAY3D_DESCRIPTOR* pMipmappedArrayDesc, unsigned int numMipmapLevels) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMipmappedArrayCreate - cuPythonInit() - if __cuMipmappedArrayCreate == NULL: - with gil: - raise RuntimeError('Function "cuMipmappedArrayCreate" not found') - err = ( __cuMipmappedArrayCreate)(pHandle, pMipmappedArrayDesc, numMipmapLevels) - return err -{{endif}} - -{{if 'cuMipmappedArrayGetLevel' in found_functions}} - -cdef CUresult _cuMipmappedArrayGetLevel(CUarray* pLevelArray, CUmipmappedArray hMipmappedArray, unsigned int level) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMipmappedArrayGetLevel - cuPythonInit() - if __cuMipmappedArrayGetLevel == NULL: - with gil: - raise RuntimeError('Function "cuMipmappedArrayGetLevel" not found') - err = ( __cuMipmappedArrayGetLevel)(pLevelArray, hMipmappedArray, level) - return err -{{endif}} - -{{if 'cuMipmappedArrayDestroy' in found_functions}} - -cdef CUresult _cuMipmappedArrayDestroy(CUmipmappedArray hMipmappedArray) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMipmappedArrayDestroy - cuPythonInit() - if __cuMipmappedArrayDestroy == NULL: - with gil: - raise RuntimeError('Function "cuMipmappedArrayDestroy" not found') - err = ( __cuMipmappedArrayDestroy)(hMipmappedArray) - return err -{{endif}} - -{{if 'cuMemGetHandleForAddressRange' in found_functions}} - -cdef CUresult _cuMemGetHandleForAddressRange(void* handle, CUdeviceptr dptr, size_t size, CUmemRangeHandleType handleType, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMemGetHandleForAddressRange - cuPythonInit() - if __cuMemGetHandleForAddressRange == NULL: - with gil: - raise RuntimeError('Function "cuMemGetHandleForAddressRange" not found') - err = ( __cuMemGetHandleForAddressRange)(handle, dptr, size, handleType, flags) - return err -{{endif}} - -{{if 'cuMemBatchDecompressAsync' in found_functions}} - -cdef CUresult _cuMemBatchDecompressAsync(CUmemDecompressParams* paramsArray, size_t count, unsigned int flags, size_t* errorIndex, CUstream stream) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMemBatchDecompressAsync - cuPythonInit() - if __cuMemBatchDecompressAsync == NULL: - with gil: - raise RuntimeError('Function "cuMemBatchDecompressAsync" not found') - err = ( __cuMemBatchDecompressAsync)(paramsArray, count, flags, errorIndex, stream) - return err -{{endif}} - -{{if 'cuMemAddressReserve' in found_functions}} - -cdef CUresult _cuMemAddressReserve(CUdeviceptr* ptr, size_t size, size_t alignment, CUdeviceptr addr, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMemAddressReserve - cuPythonInit() - if __cuMemAddressReserve == NULL: - with gil: - raise RuntimeError('Function "cuMemAddressReserve" not found') - err = ( __cuMemAddressReserve)(ptr, size, alignment, addr, flags) - return err -{{endif}} - -{{if 'cuMemAddressFree' in found_functions}} - -cdef CUresult _cuMemAddressFree(CUdeviceptr ptr, size_t size) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMemAddressFree - cuPythonInit() - if __cuMemAddressFree == NULL: - with gil: - raise RuntimeError('Function "cuMemAddressFree" not found') - err = ( __cuMemAddressFree)(ptr, size) - return err -{{endif}} - -{{if 'cuMemCreate' in found_functions}} - -cdef CUresult _cuMemCreate(CUmemGenericAllocationHandle* handle, size_t size, const CUmemAllocationProp* prop, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMemCreate - cuPythonInit() - if __cuMemCreate == NULL: - with gil: - raise RuntimeError('Function "cuMemCreate" not found') - err = ( __cuMemCreate)(handle, size, prop, flags) - return err -{{endif}} - -{{if 'cuMemRelease' in found_functions}} - -cdef CUresult _cuMemRelease(CUmemGenericAllocationHandle handle) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMemRelease - cuPythonInit() - if __cuMemRelease == NULL: - with gil: - raise RuntimeError('Function "cuMemRelease" not found') - err = ( __cuMemRelease)(handle) - return err -{{endif}} - -{{if 'cuMemMap' in found_functions}} - -cdef CUresult _cuMemMap(CUdeviceptr ptr, size_t size, size_t offset, CUmemGenericAllocationHandle handle, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMemMap - cuPythonInit() - if __cuMemMap == NULL: - with gil: - raise RuntimeError('Function "cuMemMap" not found') - err = ( __cuMemMap)(ptr, size, offset, handle, flags) - return err -{{endif}} - -{{if 'cuMemMapArrayAsync' in found_functions}} - -cdef CUresult _cuMemMapArrayAsync(CUarrayMapInfo* mapInfoList, unsigned int count, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMemMapArrayAsync - cuPythonInit() - if __cuMemMapArrayAsync == NULL: - with gil: - raise RuntimeError('Function "cuMemMapArrayAsync" not found') - err = ( __cuMemMapArrayAsync)(mapInfoList, count, hStream) - return err -{{endif}} - -{{if 'cuMemUnmap' in found_functions}} - -cdef CUresult _cuMemUnmap(CUdeviceptr ptr, size_t size) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMemUnmap - cuPythonInit() - if __cuMemUnmap == NULL: - with gil: - raise RuntimeError('Function "cuMemUnmap" not found') - err = ( __cuMemUnmap)(ptr, size) - return err -{{endif}} - -{{if 'cuMemSetAccess' in found_functions}} - -cdef CUresult _cuMemSetAccess(CUdeviceptr ptr, size_t size, const CUmemAccessDesc* desc, size_t count) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMemSetAccess - cuPythonInit() - if __cuMemSetAccess == NULL: - with gil: - raise RuntimeError('Function "cuMemSetAccess" not found') - err = ( __cuMemSetAccess)(ptr, size, desc, count) - return err -{{endif}} - -{{if 'cuMemGetAccess' in found_functions}} - -cdef CUresult _cuMemGetAccess(unsigned long long* flags, const CUmemLocation* location, CUdeviceptr ptr) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMemGetAccess - cuPythonInit() - if __cuMemGetAccess == NULL: - with gil: - raise RuntimeError('Function "cuMemGetAccess" not found') - err = ( __cuMemGetAccess)(flags, location, ptr) - return err -{{endif}} - -{{if 'cuMemExportToShareableHandle' in found_functions}} - -cdef CUresult _cuMemExportToShareableHandle(void* shareableHandle, CUmemGenericAllocationHandle handle, CUmemAllocationHandleType handleType, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMemExportToShareableHandle - cuPythonInit() - if __cuMemExportToShareableHandle == NULL: - with gil: - raise RuntimeError('Function "cuMemExportToShareableHandle" not found') - err = ( __cuMemExportToShareableHandle)(shareableHandle, handle, handleType, flags) - return err -{{endif}} - -{{if 'cuMemImportFromShareableHandle' in found_functions}} - -cdef CUresult _cuMemImportFromShareableHandle(CUmemGenericAllocationHandle* handle, void* osHandle, CUmemAllocationHandleType shHandleType) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMemImportFromShareableHandle - cuPythonInit() - if __cuMemImportFromShareableHandle == NULL: - with gil: - raise RuntimeError('Function "cuMemImportFromShareableHandle" not found') - err = ( __cuMemImportFromShareableHandle)(handle, osHandle, shHandleType) - return err -{{endif}} - -{{if 'cuMemGetAllocationGranularity' in found_functions}} - -cdef CUresult _cuMemGetAllocationGranularity(size_t* granularity, const CUmemAllocationProp* prop, CUmemAllocationGranularity_flags option) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMemGetAllocationGranularity - cuPythonInit() - if __cuMemGetAllocationGranularity == NULL: - with gil: - raise RuntimeError('Function "cuMemGetAllocationGranularity" not found') - err = ( __cuMemGetAllocationGranularity)(granularity, prop, option) - return err -{{endif}} - -{{if 'cuMemGetAllocationPropertiesFromHandle' in found_functions}} - -cdef CUresult _cuMemGetAllocationPropertiesFromHandle(CUmemAllocationProp* prop, CUmemGenericAllocationHandle handle) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMemGetAllocationPropertiesFromHandle - cuPythonInit() - if __cuMemGetAllocationPropertiesFromHandle == NULL: - with gil: - raise RuntimeError('Function "cuMemGetAllocationPropertiesFromHandle" not found') - err = ( __cuMemGetAllocationPropertiesFromHandle)(prop, handle) - return err -{{endif}} - -{{if 'cuMemRetainAllocationHandle' in found_functions}} - -cdef CUresult _cuMemRetainAllocationHandle(CUmemGenericAllocationHandle* handle, void* addr) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMemRetainAllocationHandle - cuPythonInit() - if __cuMemRetainAllocationHandle == NULL: - with gil: - raise RuntimeError('Function "cuMemRetainAllocationHandle" not found') - err = ( __cuMemRetainAllocationHandle)(handle, addr) - return err -{{endif}} - -{{if 'cuMemFreeAsync' in found_functions}} - -cdef CUresult _cuMemFreeAsync(CUdeviceptr dptr, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMemFreeAsync - cuPythonInit() - if __cuMemFreeAsync == NULL: - with gil: - raise RuntimeError('Function "cuMemFreeAsync" not found') - err = ( __cuMemFreeAsync)(dptr, hStream) - return err -{{endif}} - -{{if 'cuMemAllocAsync' in found_functions}} - -cdef CUresult _cuMemAllocAsync(CUdeviceptr* dptr, size_t bytesize, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMemAllocAsync - cuPythonInit() - if __cuMemAllocAsync == NULL: - with gil: - raise RuntimeError('Function "cuMemAllocAsync" not found') - err = ( __cuMemAllocAsync)(dptr, bytesize, hStream) - return err -{{endif}} - -{{if 'cuMemPoolTrimTo' in found_functions}} - -cdef CUresult _cuMemPoolTrimTo(CUmemoryPool pool, size_t minBytesToKeep) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMemPoolTrimTo - cuPythonInit() - if __cuMemPoolTrimTo == NULL: - with gil: - raise RuntimeError('Function "cuMemPoolTrimTo" not found') - err = ( __cuMemPoolTrimTo)(pool, minBytesToKeep) - return err -{{endif}} - -{{if 'cuMemPoolSetAttribute' in found_functions}} - -cdef CUresult _cuMemPoolSetAttribute(CUmemoryPool pool, CUmemPool_attribute attr, void* value) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMemPoolSetAttribute - cuPythonInit() - if __cuMemPoolSetAttribute == NULL: - with gil: - raise RuntimeError('Function "cuMemPoolSetAttribute" not found') - err = ( __cuMemPoolSetAttribute)(pool, attr, value) - return err -{{endif}} - -{{if 'cuMemPoolGetAttribute' in found_functions}} - -cdef CUresult _cuMemPoolGetAttribute(CUmemoryPool pool, CUmemPool_attribute attr, void* value) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMemPoolGetAttribute - cuPythonInit() - if __cuMemPoolGetAttribute == NULL: - with gil: - raise RuntimeError('Function "cuMemPoolGetAttribute" not found') - err = ( __cuMemPoolGetAttribute)(pool, attr, value) - return err -{{endif}} - -{{if 'cuMemPoolSetAccess' in found_functions}} - -cdef CUresult _cuMemPoolSetAccess(CUmemoryPool pool, const CUmemAccessDesc* map, size_t count) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMemPoolSetAccess - cuPythonInit() - if __cuMemPoolSetAccess == NULL: - with gil: - raise RuntimeError('Function "cuMemPoolSetAccess" not found') - err = ( __cuMemPoolSetAccess)(pool, map, count) - return err -{{endif}} - -{{if 'cuMemPoolGetAccess' in found_functions}} - -cdef CUresult _cuMemPoolGetAccess(CUmemAccess_flags* flags, CUmemoryPool memPool, CUmemLocation* location) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMemPoolGetAccess - cuPythonInit() - if __cuMemPoolGetAccess == NULL: - with gil: - raise RuntimeError('Function "cuMemPoolGetAccess" not found') - err = ( __cuMemPoolGetAccess)(flags, memPool, location) - return err -{{endif}} - -{{if 'cuMemPoolCreate' in found_functions}} - -cdef CUresult _cuMemPoolCreate(CUmemoryPool* pool, const CUmemPoolProps* poolProps) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMemPoolCreate - cuPythonInit() - if __cuMemPoolCreate == NULL: - with gil: - raise RuntimeError('Function "cuMemPoolCreate" not found') - err = ( __cuMemPoolCreate)(pool, poolProps) - return err -{{endif}} - -{{if 'cuMemPoolDestroy' in found_functions}} - -cdef CUresult _cuMemPoolDestroy(CUmemoryPool pool) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMemPoolDestroy - cuPythonInit() - if __cuMemPoolDestroy == NULL: - with gil: - raise RuntimeError('Function "cuMemPoolDestroy" not found') - err = ( __cuMemPoolDestroy)(pool) - return err -{{endif}} - -{{if 'cuMemGetDefaultMemPool' in found_functions}} - -cdef CUresult _cuMemGetDefaultMemPool(CUmemoryPool* pool_out, CUmemLocation* location, CUmemAllocationType typename) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMemGetDefaultMemPool - cuPythonInit() - if __cuMemGetDefaultMemPool == NULL: - with gil: - raise RuntimeError('Function "cuMemGetDefaultMemPool" not found') - err = ( __cuMemGetDefaultMemPool)(pool_out, location, typename) - return err -{{endif}} - -{{if 'cuMemGetMemPool' in found_functions}} - -cdef CUresult _cuMemGetMemPool(CUmemoryPool* pool, CUmemLocation* location, CUmemAllocationType typename) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMemGetMemPool - cuPythonInit() - if __cuMemGetMemPool == NULL: - with gil: - raise RuntimeError('Function "cuMemGetMemPool" not found') - err = ( __cuMemGetMemPool)(pool, location, typename) - return err -{{endif}} - -{{if 'cuMemSetMemPool' in found_functions}} - -cdef CUresult _cuMemSetMemPool(CUmemLocation* location, CUmemAllocationType typename, CUmemoryPool pool) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMemSetMemPool - cuPythonInit() - if __cuMemSetMemPool == NULL: - with gil: - raise RuntimeError('Function "cuMemSetMemPool" not found') - err = ( __cuMemSetMemPool)(location, typename, pool) - return err -{{endif}} - -{{if 'cuMemAllocFromPoolAsync' in found_functions}} - -cdef CUresult _cuMemAllocFromPoolAsync(CUdeviceptr* dptr, size_t bytesize, CUmemoryPool pool, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMemAllocFromPoolAsync - cuPythonInit() - if __cuMemAllocFromPoolAsync == NULL: - with gil: - raise RuntimeError('Function "cuMemAllocFromPoolAsync" not found') - err = ( __cuMemAllocFromPoolAsync)(dptr, bytesize, pool, hStream) - return err -{{endif}} - -{{if 'cuMemPoolExportToShareableHandle' in found_functions}} - -cdef CUresult _cuMemPoolExportToShareableHandle(void* handle_out, CUmemoryPool pool, CUmemAllocationHandleType handleType, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMemPoolExportToShareableHandle - cuPythonInit() - if __cuMemPoolExportToShareableHandle == NULL: - with gil: - raise RuntimeError('Function "cuMemPoolExportToShareableHandle" not found') - err = ( __cuMemPoolExportToShareableHandle)(handle_out, pool, handleType, flags) - return err -{{endif}} - -{{if 'cuMemPoolImportFromShareableHandle' in found_functions}} - -cdef CUresult _cuMemPoolImportFromShareableHandle(CUmemoryPool* pool_out, void* handle, CUmemAllocationHandleType handleType, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMemPoolImportFromShareableHandle - cuPythonInit() - if __cuMemPoolImportFromShareableHandle == NULL: - with gil: - raise RuntimeError('Function "cuMemPoolImportFromShareableHandle" not found') - err = ( __cuMemPoolImportFromShareableHandle)(pool_out, handle, handleType, flags) - return err -{{endif}} - -{{if 'cuMemPoolExportPointer' in found_functions}} - -cdef CUresult _cuMemPoolExportPointer(CUmemPoolPtrExportData* shareData_out, CUdeviceptr ptr) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMemPoolExportPointer - cuPythonInit() - if __cuMemPoolExportPointer == NULL: - with gil: - raise RuntimeError('Function "cuMemPoolExportPointer" not found') - err = ( __cuMemPoolExportPointer)(shareData_out, ptr) - return err -{{endif}} - -{{if 'cuMemPoolImportPointer' in found_functions}} - -cdef CUresult _cuMemPoolImportPointer(CUdeviceptr* ptr_out, CUmemoryPool pool, CUmemPoolPtrExportData* shareData) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMemPoolImportPointer - cuPythonInit() - if __cuMemPoolImportPointer == NULL: - with gil: - raise RuntimeError('Function "cuMemPoolImportPointer" not found') - err = ( __cuMemPoolImportPointer)(ptr_out, pool, shareData) - return err -{{endif}} - -{{if 'cuMulticastCreate' in found_functions}} - -cdef CUresult _cuMulticastCreate(CUmemGenericAllocationHandle* mcHandle, const CUmulticastObjectProp* prop) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMulticastCreate - cuPythonInit() - if __cuMulticastCreate == NULL: - with gil: - raise RuntimeError('Function "cuMulticastCreate" not found') - err = ( __cuMulticastCreate)(mcHandle, prop) - return err -{{endif}} - -{{if 'cuMulticastAddDevice' in found_functions}} - -cdef CUresult _cuMulticastAddDevice(CUmemGenericAllocationHandle mcHandle, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMulticastAddDevice - cuPythonInit() - if __cuMulticastAddDevice == NULL: - with gil: - raise RuntimeError('Function "cuMulticastAddDevice" not found') - err = ( __cuMulticastAddDevice)(mcHandle, dev) - return err -{{endif}} - -{{if 'cuMulticastBindMem' in found_functions}} - -cdef CUresult _cuMulticastBindMem(CUmemGenericAllocationHandle mcHandle, size_t mcOffset, CUmemGenericAllocationHandle memHandle, size_t memOffset, size_t size, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMulticastBindMem - cuPythonInit() - if __cuMulticastBindMem == NULL: - with gil: - raise RuntimeError('Function "cuMulticastBindMem" not found') - err = ( __cuMulticastBindMem)(mcHandle, mcOffset, memHandle, memOffset, size, flags) - return err -{{endif}} - -{{if 'cuMulticastBindMem_v2' in found_functions}} - -cdef CUresult _cuMulticastBindMem_v2(CUmemGenericAllocationHandle mcHandle, CUdevice dev, size_t mcOffset, CUmemGenericAllocationHandle memHandle, size_t memOffset, size_t size, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMulticastBindMem_v2 - cuPythonInit() - if __cuMulticastBindMem_v2 == NULL: - with gil: - raise RuntimeError('Function "cuMulticastBindMem_v2" not found') - err = ( __cuMulticastBindMem_v2)(mcHandle, dev, mcOffset, memHandle, memOffset, size, flags) - return err -{{endif}} - -{{if 'cuMulticastBindAddr' in found_functions}} - -cdef CUresult _cuMulticastBindAddr(CUmemGenericAllocationHandle mcHandle, size_t mcOffset, CUdeviceptr memptr, size_t size, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMulticastBindAddr - cuPythonInit() - if __cuMulticastBindAddr == NULL: - with gil: - raise RuntimeError('Function "cuMulticastBindAddr" not found') - err = ( __cuMulticastBindAddr)(mcHandle, mcOffset, memptr, size, flags) - return err -{{endif}} - -{{if 'cuMulticastBindAddr_v2' in found_functions}} - -cdef CUresult _cuMulticastBindAddr_v2(CUmemGenericAllocationHandle mcHandle, CUdevice dev, size_t mcOffset, CUdeviceptr memptr, size_t size, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMulticastBindAddr_v2 - cuPythonInit() - if __cuMulticastBindAddr_v2 == NULL: - with gil: - raise RuntimeError('Function "cuMulticastBindAddr_v2" not found') - err = ( __cuMulticastBindAddr_v2)(mcHandle, dev, mcOffset, memptr, size, flags) - return err -{{endif}} - -{{if 'cuMulticastUnbind' in found_functions}} - -cdef CUresult _cuMulticastUnbind(CUmemGenericAllocationHandle mcHandle, CUdevice dev, size_t mcOffset, size_t size) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMulticastUnbind - cuPythonInit() - if __cuMulticastUnbind == NULL: - with gil: - raise RuntimeError('Function "cuMulticastUnbind" not found') - err = ( __cuMulticastUnbind)(mcHandle, dev, mcOffset, size) - return err -{{endif}} - -{{if 'cuMulticastGetGranularity' in found_functions}} - -cdef CUresult _cuMulticastGetGranularity(size_t* granularity, const CUmulticastObjectProp* prop, CUmulticastGranularity_flags option) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMulticastGetGranularity - cuPythonInit() - if __cuMulticastGetGranularity == NULL: - with gil: - raise RuntimeError('Function "cuMulticastGetGranularity" not found') - err = ( __cuMulticastGetGranularity)(granularity, prop, option) - return err -{{endif}} - -{{if 'cuPointerGetAttribute' in found_functions}} - -cdef CUresult _cuPointerGetAttribute(void* data, CUpointer_attribute attribute, CUdeviceptr ptr) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuPointerGetAttribute - cuPythonInit() - if __cuPointerGetAttribute == NULL: - with gil: - raise RuntimeError('Function "cuPointerGetAttribute" not found') - err = ( __cuPointerGetAttribute)(data, attribute, ptr) - return err -{{endif}} - -{{if 'cuMemPrefetchAsync_v2' in found_functions}} - -cdef CUresult _cuMemPrefetchAsync_v2(CUdeviceptr devPtr, size_t count, CUmemLocation location, unsigned int flags, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMemPrefetchAsync_v2 - cuPythonInit() - if __cuMemPrefetchAsync_v2 == NULL: - with gil: - raise RuntimeError('Function "cuMemPrefetchAsync_v2" not found') - err = ( __cuMemPrefetchAsync_v2)(devPtr, count, location, flags, hStream) - return err -{{endif}} - -{{if 'cuMemAdvise_v2' in found_functions}} - -cdef CUresult _cuMemAdvise_v2(CUdeviceptr devPtr, size_t count, CUmem_advise advice, CUmemLocation location) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMemAdvise_v2 - cuPythonInit() - if __cuMemAdvise_v2 == NULL: - with gil: - raise RuntimeError('Function "cuMemAdvise_v2" not found') - err = ( __cuMemAdvise_v2)(devPtr, count, advice, location) - return err -{{endif}} - -{{if 'cuMemPrefetchBatchAsync' in found_functions}} - -cdef CUresult _cuMemPrefetchBatchAsync(CUdeviceptr* dptrs, size_t* sizes, size_t count, CUmemLocation* prefetchLocs, size_t* prefetchLocIdxs, size_t numPrefetchLocs, unsigned long long flags, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMemPrefetchBatchAsync - cuPythonInit() - if __cuMemPrefetchBatchAsync == NULL: - with gil: - raise RuntimeError('Function "cuMemPrefetchBatchAsync" not found') - err = ( __cuMemPrefetchBatchAsync)(dptrs, sizes, count, prefetchLocs, prefetchLocIdxs, numPrefetchLocs, flags, hStream) - return err -{{endif}} - -{{if 'cuMemDiscardBatchAsync' in found_functions}} - -cdef CUresult _cuMemDiscardBatchAsync(CUdeviceptr* dptrs, size_t* sizes, size_t count, unsigned long long flags, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMemDiscardBatchAsync - cuPythonInit() - if __cuMemDiscardBatchAsync == NULL: - with gil: - raise RuntimeError('Function "cuMemDiscardBatchAsync" not found') - err = ( __cuMemDiscardBatchAsync)(dptrs, sizes, count, flags, hStream) - return err -{{endif}} - -{{if 'cuMemDiscardAndPrefetchBatchAsync' in found_functions}} - -cdef CUresult _cuMemDiscardAndPrefetchBatchAsync(CUdeviceptr* dptrs, size_t* sizes, size_t count, CUmemLocation* prefetchLocs, size_t* prefetchLocIdxs, size_t numPrefetchLocs, unsigned long long flags, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMemDiscardAndPrefetchBatchAsync - cuPythonInit() - if __cuMemDiscardAndPrefetchBatchAsync == NULL: - with gil: - raise RuntimeError('Function "cuMemDiscardAndPrefetchBatchAsync" not found') - err = ( __cuMemDiscardAndPrefetchBatchAsync)(dptrs, sizes, count, prefetchLocs, prefetchLocIdxs, numPrefetchLocs, flags, hStream) - return err -{{endif}} - -{{if 'cuMemRangeGetAttribute' in found_functions}} - -cdef CUresult _cuMemRangeGetAttribute(void* data, size_t dataSize, CUmem_range_attribute attribute, CUdeviceptr devPtr, size_t count) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMemRangeGetAttribute - cuPythonInit() - if __cuMemRangeGetAttribute == NULL: - with gil: - raise RuntimeError('Function "cuMemRangeGetAttribute" not found') - err = ( __cuMemRangeGetAttribute)(data, dataSize, attribute, devPtr, count) - return err -{{endif}} - -{{if 'cuMemRangeGetAttributes' in found_functions}} - -cdef CUresult _cuMemRangeGetAttributes(void** data, size_t* dataSizes, CUmem_range_attribute* attributes, size_t numAttributes, CUdeviceptr devPtr, size_t count) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuMemRangeGetAttributes - cuPythonInit() - if __cuMemRangeGetAttributes == NULL: - with gil: - raise RuntimeError('Function "cuMemRangeGetAttributes" not found') - err = ( __cuMemRangeGetAttributes)(data, dataSizes, attributes, numAttributes, devPtr, count) - return err -{{endif}} - -{{if 'cuPointerSetAttribute' in found_functions}} - -cdef CUresult _cuPointerSetAttribute(const void* value, CUpointer_attribute attribute, CUdeviceptr ptr) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuPointerSetAttribute - cuPythonInit() - if __cuPointerSetAttribute == NULL: - with gil: - raise RuntimeError('Function "cuPointerSetAttribute" not found') - err = ( __cuPointerSetAttribute)(value, attribute, ptr) - return err -{{endif}} - -{{if 'cuPointerGetAttributes' in found_functions}} - -cdef CUresult _cuPointerGetAttributes(unsigned int numAttributes, CUpointer_attribute* attributes, void** data, CUdeviceptr ptr) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuPointerGetAttributes - cuPythonInit() - if __cuPointerGetAttributes == NULL: - with gil: - raise RuntimeError('Function "cuPointerGetAttributes" not found') - err = ( __cuPointerGetAttributes)(numAttributes, attributes, data, ptr) - return err -{{endif}} - -{{if 'cuStreamCreate' in found_functions}} - -cdef CUresult _cuStreamCreate(CUstream* phStream, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuStreamCreate - cuPythonInit() - if __cuStreamCreate == NULL: - with gil: - raise RuntimeError('Function "cuStreamCreate" not found') - err = ( __cuStreamCreate)(phStream, Flags) - return err -{{endif}} - -{{if 'cuStreamCreateWithPriority' in found_functions}} - -cdef CUresult _cuStreamCreateWithPriority(CUstream* phStream, unsigned int flags, int priority) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuStreamCreateWithPriority - cuPythonInit() - if __cuStreamCreateWithPriority == NULL: - with gil: - raise RuntimeError('Function "cuStreamCreateWithPriority" not found') - err = ( __cuStreamCreateWithPriority)(phStream, flags, priority) - return err -{{endif}} - -{{if 'cuStreamBeginCaptureToCig' in found_functions}} - -cdef CUresult _cuStreamBeginCaptureToCig(CUstream hStream, CUstreamCigCaptureParams* streamCigCaptureParams) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuStreamBeginCaptureToCig - cuPythonInit() - if __cuStreamBeginCaptureToCig == NULL: - with gil: - raise RuntimeError('Function "cuStreamBeginCaptureToCig" not found') - err = ( __cuStreamBeginCaptureToCig)(hStream, streamCigCaptureParams) - return err -{{endif}} - -{{if 'cuStreamEndCaptureToCig' in found_functions}} - -cdef CUresult _cuStreamEndCaptureToCig(CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuStreamEndCaptureToCig - cuPythonInit() - if __cuStreamEndCaptureToCig == NULL: - with gil: - raise RuntimeError('Function "cuStreamEndCaptureToCig" not found') - err = ( __cuStreamEndCaptureToCig)(hStream) - return err -{{endif}} - -{{if 'cuStreamGetPriority' in found_functions}} - -cdef CUresult _cuStreamGetPriority(CUstream hStream, int* priority) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuStreamGetPriority - cuPythonInit() - if __cuStreamGetPriority == NULL: - with gil: - raise RuntimeError('Function "cuStreamGetPriority" not found') - err = ( __cuStreamGetPriority)(hStream, priority) - return err -{{endif}} - -{{if 'cuStreamGetDevice' in found_functions}} - -cdef CUresult _cuStreamGetDevice(CUstream hStream, CUdevice* device) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuStreamGetDevice - cuPythonInit() - if __cuStreamGetDevice == NULL: - with gil: - raise RuntimeError('Function "cuStreamGetDevice" not found') - err = ( __cuStreamGetDevice)(hStream, device) - return err -{{endif}} - -{{if 'cuStreamGetFlags' in found_functions}} - -cdef CUresult _cuStreamGetFlags(CUstream hStream, unsigned int* flags) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuStreamGetFlags - cuPythonInit() - if __cuStreamGetFlags == NULL: - with gil: - raise RuntimeError('Function "cuStreamGetFlags" not found') - err = ( __cuStreamGetFlags)(hStream, flags) - return err -{{endif}} - -{{if 'cuStreamGetId' in found_functions}} - -cdef CUresult _cuStreamGetId(CUstream hStream, unsigned long long* streamId) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuStreamGetId - cuPythonInit() - if __cuStreamGetId == NULL: - with gil: - raise RuntimeError('Function "cuStreamGetId" not found') - err = ( __cuStreamGetId)(hStream, streamId) - return err -{{endif}} - -{{if 'cuStreamGetCtx' in found_functions}} - -cdef CUresult _cuStreamGetCtx(CUstream hStream, CUcontext* pctx) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuStreamGetCtx - cuPythonInit() - if __cuStreamGetCtx == NULL: - with gil: - raise RuntimeError('Function "cuStreamGetCtx" not found') - err = ( __cuStreamGetCtx)(hStream, pctx) - return err -{{endif}} - -{{if 'cuStreamGetCtx_v2' in found_functions}} - -cdef CUresult _cuStreamGetCtx_v2(CUstream hStream, CUcontext* pCtx, CUgreenCtx* pGreenCtx) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuStreamGetCtx_v2 - cuPythonInit() - if __cuStreamGetCtx_v2 == NULL: - with gil: - raise RuntimeError('Function "cuStreamGetCtx_v2" not found') - err = ( __cuStreamGetCtx_v2)(hStream, pCtx, pGreenCtx) - return err -{{endif}} - -{{if 'cuStreamWaitEvent' in found_functions}} - -cdef CUresult _cuStreamWaitEvent(CUstream hStream, CUevent hEvent, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuStreamWaitEvent - cuPythonInit() - if __cuStreamWaitEvent == NULL: - with gil: - raise RuntimeError('Function "cuStreamWaitEvent" not found') - err = ( __cuStreamWaitEvent)(hStream, hEvent, Flags) - return err -{{endif}} - -{{if 'cuStreamAddCallback' in found_functions}} - -cdef CUresult _cuStreamAddCallback(CUstream hStream, CUstreamCallback callback, void* userData, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuStreamAddCallback - cuPythonInit() - if __cuStreamAddCallback == NULL: - with gil: - raise RuntimeError('Function "cuStreamAddCallback" not found') - err = ( __cuStreamAddCallback)(hStream, callback, userData, flags) - return err -{{endif}} - -{{if 'cuStreamBeginCapture_v2' in found_functions}} - -cdef CUresult _cuStreamBeginCapture_v2(CUstream hStream, CUstreamCaptureMode mode) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuStreamBeginCapture_v2 - cuPythonInit() - if __cuStreamBeginCapture_v2 == NULL: - with gil: - raise RuntimeError('Function "cuStreamBeginCapture_v2" not found') - err = ( __cuStreamBeginCapture_v2)(hStream, mode) - return err -{{endif}} - -{{if 'cuStreamBeginCaptureToGraph' in found_functions}} - -cdef CUresult _cuStreamBeginCaptureToGraph(CUstream hStream, CUgraph hGraph, const CUgraphNode* dependencies, const CUgraphEdgeData* dependencyData, size_t numDependencies, CUstreamCaptureMode mode) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuStreamBeginCaptureToGraph - cuPythonInit() - if __cuStreamBeginCaptureToGraph == NULL: - with gil: - raise RuntimeError('Function "cuStreamBeginCaptureToGraph" not found') - err = ( __cuStreamBeginCaptureToGraph)(hStream, hGraph, dependencies, dependencyData, numDependencies, mode) - return err -{{endif}} - -{{if 'cuThreadExchangeStreamCaptureMode' in found_functions}} - -cdef CUresult _cuThreadExchangeStreamCaptureMode(CUstreamCaptureMode* mode) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuThreadExchangeStreamCaptureMode - cuPythonInit() - if __cuThreadExchangeStreamCaptureMode == NULL: - with gil: - raise RuntimeError('Function "cuThreadExchangeStreamCaptureMode" not found') - err = ( __cuThreadExchangeStreamCaptureMode)(mode) - return err -{{endif}} - -{{if 'cuStreamEndCapture' in found_functions}} - -cdef CUresult _cuStreamEndCapture(CUstream hStream, CUgraph* phGraph) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuStreamEndCapture - cuPythonInit() - if __cuStreamEndCapture == NULL: - with gil: - raise RuntimeError('Function "cuStreamEndCapture" not found') - err = ( __cuStreamEndCapture)(hStream, phGraph) - return err -{{endif}} - -{{if 'cuStreamIsCapturing' in found_functions}} - -cdef CUresult _cuStreamIsCapturing(CUstream hStream, CUstreamCaptureStatus* captureStatus) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuStreamIsCapturing - cuPythonInit() - if __cuStreamIsCapturing == NULL: - with gil: - raise RuntimeError('Function "cuStreamIsCapturing" not found') - err = ( __cuStreamIsCapturing)(hStream, captureStatus) - return err -{{endif}} - -{{if 'cuStreamGetCaptureInfo_v3' in found_functions}} - -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 - cuPythonInit() - if __cuStreamGetCaptureInfo_v3 == NULL: - with gil: - raise RuntimeError('Function "cuStreamGetCaptureInfo_v3" not found') - err = ( __cuStreamGetCaptureInfo_v3)(hStream, captureStatus_out, id_out, graph_out, dependencies_out, edgeData_out, numDependencies_out) - return err -{{endif}} - -{{if 'cuStreamUpdateCaptureDependencies_v2' in found_functions}} - -cdef CUresult _cuStreamUpdateCaptureDependencies_v2(CUstream hStream, CUgraphNode* dependencies, const CUgraphEdgeData* dependencyData, size_t numDependencies, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuStreamUpdateCaptureDependencies_v2 - cuPythonInit() - if __cuStreamUpdateCaptureDependencies_v2 == NULL: - with gil: - raise RuntimeError('Function "cuStreamUpdateCaptureDependencies_v2" not found') - err = ( __cuStreamUpdateCaptureDependencies_v2)(hStream, dependencies, dependencyData, numDependencies, flags) - return err -{{endif}} - -{{if 'cuStreamAttachMemAsync' in found_functions}} - -cdef CUresult _cuStreamAttachMemAsync(CUstream hStream, CUdeviceptr dptr, size_t length, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuStreamAttachMemAsync - cuPythonInit() - if __cuStreamAttachMemAsync == NULL: - with gil: - raise RuntimeError('Function "cuStreamAttachMemAsync" not found') - err = ( __cuStreamAttachMemAsync)(hStream, dptr, length, flags) - return err -{{endif}} - -{{if 'cuStreamQuery' in found_functions}} - -cdef CUresult _cuStreamQuery(CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuStreamQuery - cuPythonInit() - if __cuStreamQuery == NULL: - with gil: - raise RuntimeError('Function "cuStreamQuery" not found') - err = ( __cuStreamQuery)(hStream) - return err -{{endif}} - -{{if 'cuStreamSynchronize' in found_functions}} - -cdef CUresult _cuStreamSynchronize(CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuStreamSynchronize - cuPythonInit() - if __cuStreamSynchronize == NULL: - with gil: - raise RuntimeError('Function "cuStreamSynchronize" not found') - err = ( __cuStreamSynchronize)(hStream) - return err -{{endif}} - -{{if 'cuStreamDestroy_v2' in found_functions}} - -cdef CUresult _cuStreamDestroy_v2(CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuStreamDestroy_v2 - cuPythonInit() - if __cuStreamDestroy_v2 == NULL: - with gil: - raise RuntimeError('Function "cuStreamDestroy_v2" not found') - err = ( __cuStreamDestroy_v2)(hStream) - return err -{{endif}} - -{{if 'cuStreamCopyAttributes' in found_functions}} - -cdef CUresult _cuStreamCopyAttributes(CUstream dst, CUstream src) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuStreamCopyAttributes - cuPythonInit() - if __cuStreamCopyAttributes == NULL: - with gil: - raise RuntimeError('Function "cuStreamCopyAttributes" not found') - err = ( __cuStreamCopyAttributes)(dst, src) - return err -{{endif}} - -{{if 'cuStreamGetAttribute' in found_functions}} - -cdef CUresult _cuStreamGetAttribute(CUstream hStream, CUstreamAttrID attr, CUstreamAttrValue* value_out) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuStreamGetAttribute - cuPythonInit() - if __cuStreamGetAttribute == NULL: - with gil: - raise RuntimeError('Function "cuStreamGetAttribute" not found') - err = ( __cuStreamGetAttribute)(hStream, attr, value_out) - return err -{{endif}} - -{{if 'cuStreamSetAttribute' in found_functions}} - -cdef CUresult _cuStreamSetAttribute(CUstream hStream, CUstreamAttrID attr, const CUstreamAttrValue* value) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuStreamSetAttribute - cuPythonInit() - if __cuStreamSetAttribute == NULL: - with gil: - raise RuntimeError('Function "cuStreamSetAttribute" not found') - err = ( __cuStreamSetAttribute)(hStream, attr, value) - return err -{{endif}} - -{{if 'cuEventCreate' in found_functions}} - -cdef CUresult _cuEventCreate(CUevent* phEvent, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuEventCreate - cuPythonInit() - if __cuEventCreate == NULL: - with gil: - raise RuntimeError('Function "cuEventCreate" not found') - err = ( __cuEventCreate)(phEvent, Flags) - return err -{{endif}} - -{{if 'cuEventRecord' in found_functions}} - -cdef CUresult _cuEventRecord(CUevent hEvent, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuEventRecord - cuPythonInit() - if __cuEventRecord == NULL: - with gil: - raise RuntimeError('Function "cuEventRecord" not found') - err = ( __cuEventRecord)(hEvent, hStream) - return err -{{endif}} - -{{if 'cuEventRecordWithFlags' in found_functions}} - -cdef CUresult _cuEventRecordWithFlags(CUevent hEvent, CUstream hStream, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuEventRecordWithFlags - cuPythonInit() - if __cuEventRecordWithFlags == NULL: - with gil: - raise RuntimeError('Function "cuEventRecordWithFlags" not found') - err = ( __cuEventRecordWithFlags)(hEvent, hStream, flags) - return err -{{endif}} - -{{if 'cuEventQuery' in found_functions}} - -cdef CUresult _cuEventQuery(CUevent hEvent) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuEventQuery - cuPythonInit() - if __cuEventQuery == NULL: - with gil: - raise RuntimeError('Function "cuEventQuery" not found') - err = ( __cuEventQuery)(hEvent) - return err -{{endif}} - -{{if 'cuEventSynchronize' in found_functions}} - -cdef CUresult _cuEventSynchronize(CUevent hEvent) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuEventSynchronize - cuPythonInit() - if __cuEventSynchronize == NULL: - with gil: - raise RuntimeError('Function "cuEventSynchronize" not found') - err = ( __cuEventSynchronize)(hEvent) - return err -{{endif}} - -{{if 'cuEventDestroy_v2' in found_functions}} - -cdef CUresult _cuEventDestroy_v2(CUevent hEvent) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuEventDestroy_v2 - cuPythonInit() - if __cuEventDestroy_v2 == NULL: - with gil: - raise RuntimeError('Function "cuEventDestroy_v2" not found') - err = ( __cuEventDestroy_v2)(hEvent) - return err -{{endif}} - -{{if 'cuEventElapsedTime_v2' in found_functions}} - -cdef CUresult _cuEventElapsedTime_v2(float* pMilliseconds, CUevent hStart, CUevent hEnd) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuEventElapsedTime_v2 - cuPythonInit() - if __cuEventElapsedTime_v2 == NULL: - with gil: - raise RuntimeError('Function "cuEventElapsedTime_v2" not found') - err = ( __cuEventElapsedTime_v2)(pMilliseconds, hStart, hEnd) - return err -{{endif}} - -{{if 'cuImportExternalMemory' in found_functions}} - -cdef CUresult _cuImportExternalMemory(CUexternalMemory* extMem_out, const CUDA_EXTERNAL_MEMORY_HANDLE_DESC* memHandleDesc) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuImportExternalMemory - cuPythonInit() - if __cuImportExternalMemory == NULL: - with gil: - raise RuntimeError('Function "cuImportExternalMemory" not found') - err = ( __cuImportExternalMemory)(extMem_out, memHandleDesc) - return err -{{endif}} - -{{if 'cuExternalMemoryGetMappedBuffer' in found_functions}} - -cdef CUresult _cuExternalMemoryGetMappedBuffer(CUdeviceptr* devPtr, CUexternalMemory extMem, const CUDA_EXTERNAL_MEMORY_BUFFER_DESC* bufferDesc) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuExternalMemoryGetMappedBuffer - cuPythonInit() - if __cuExternalMemoryGetMappedBuffer == NULL: - with gil: - raise RuntimeError('Function "cuExternalMemoryGetMappedBuffer" not found') - err = ( __cuExternalMemoryGetMappedBuffer)(devPtr, extMem, bufferDesc) - return err -{{endif}} - -{{if 'cuExternalMemoryGetMappedMipmappedArray' in found_functions}} - -cdef CUresult _cuExternalMemoryGetMappedMipmappedArray(CUmipmappedArray* mipmap, CUexternalMemory extMem, const CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC* mipmapDesc) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuExternalMemoryGetMappedMipmappedArray - cuPythonInit() - if __cuExternalMemoryGetMappedMipmappedArray == NULL: - with gil: - raise RuntimeError('Function "cuExternalMemoryGetMappedMipmappedArray" not found') - err = ( __cuExternalMemoryGetMappedMipmappedArray)(mipmap, extMem, mipmapDesc) - return err -{{endif}} - -{{if 'cuDestroyExternalMemory' in found_functions}} - -cdef CUresult _cuDestroyExternalMemory(CUexternalMemory extMem) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuDestroyExternalMemory - cuPythonInit() - if __cuDestroyExternalMemory == NULL: - with gil: - raise RuntimeError('Function "cuDestroyExternalMemory" not found') - err = ( __cuDestroyExternalMemory)(extMem) - return err -{{endif}} - -{{if 'cuImportExternalSemaphore' in found_functions}} - -cdef CUresult _cuImportExternalSemaphore(CUexternalSemaphore* extSem_out, const CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC* semHandleDesc) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuImportExternalSemaphore - cuPythonInit() - if __cuImportExternalSemaphore == NULL: - with gil: - raise RuntimeError('Function "cuImportExternalSemaphore" not found') - err = ( __cuImportExternalSemaphore)(extSem_out, semHandleDesc) - return err -{{endif}} - -{{if 'cuSignalExternalSemaphoresAsync' in found_functions}} - -cdef CUresult _cuSignalExternalSemaphoresAsync(const CUexternalSemaphore* extSemArray, const CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS* paramsArray, unsigned int numExtSems, CUstream stream) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuSignalExternalSemaphoresAsync - cuPythonInit() - if __cuSignalExternalSemaphoresAsync == NULL: - with gil: - raise RuntimeError('Function "cuSignalExternalSemaphoresAsync" not found') - err = ( __cuSignalExternalSemaphoresAsync)(extSemArray, paramsArray, numExtSems, stream) - return err -{{endif}} - -{{if 'cuWaitExternalSemaphoresAsync' in found_functions}} - -cdef CUresult _cuWaitExternalSemaphoresAsync(const CUexternalSemaphore* extSemArray, const CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS* paramsArray, unsigned int numExtSems, CUstream stream) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuWaitExternalSemaphoresAsync - cuPythonInit() - if __cuWaitExternalSemaphoresAsync == NULL: - with gil: - raise RuntimeError('Function "cuWaitExternalSemaphoresAsync" not found') - err = ( __cuWaitExternalSemaphoresAsync)(extSemArray, paramsArray, numExtSems, stream) - return err -{{endif}} - -{{if 'cuDestroyExternalSemaphore' in found_functions}} - -cdef CUresult _cuDestroyExternalSemaphore(CUexternalSemaphore extSem) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuDestroyExternalSemaphore - cuPythonInit() - if __cuDestroyExternalSemaphore == NULL: - with gil: - raise RuntimeError('Function "cuDestroyExternalSemaphore" not found') - err = ( __cuDestroyExternalSemaphore)(extSem) - return err -{{endif}} - -{{if 'cuStreamWaitValue32_v2' in found_functions}} - -cdef CUresult _cuStreamWaitValue32_v2(CUstream stream, CUdeviceptr addr, cuuint32_t value, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuStreamWaitValue32_v2 - cuPythonInit() - if __cuStreamWaitValue32_v2 == NULL: - with gil: - raise RuntimeError('Function "cuStreamWaitValue32_v2" not found') - err = ( __cuStreamWaitValue32_v2)(stream, addr, value, flags) - return err -{{endif}} - -{{if 'cuStreamWaitValue64_v2' in found_functions}} - -cdef CUresult _cuStreamWaitValue64_v2(CUstream stream, CUdeviceptr addr, cuuint64_t value, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuStreamWaitValue64_v2 - cuPythonInit() - if __cuStreamWaitValue64_v2 == NULL: - with gil: - raise RuntimeError('Function "cuStreamWaitValue64_v2" not found') - err = ( __cuStreamWaitValue64_v2)(stream, addr, value, flags) - return err -{{endif}} - -{{if 'cuStreamWriteValue32_v2' in found_functions}} - -cdef CUresult _cuStreamWriteValue32_v2(CUstream stream, CUdeviceptr addr, cuuint32_t value, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuStreamWriteValue32_v2 - cuPythonInit() - if __cuStreamWriteValue32_v2 == NULL: - with gil: - raise RuntimeError('Function "cuStreamWriteValue32_v2" not found') - err = ( __cuStreamWriteValue32_v2)(stream, addr, value, flags) - return err -{{endif}} - -{{if 'cuStreamWriteValue64_v2' in found_functions}} - -cdef CUresult _cuStreamWriteValue64_v2(CUstream stream, CUdeviceptr addr, cuuint64_t value, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuStreamWriteValue64_v2 - cuPythonInit() - if __cuStreamWriteValue64_v2 == NULL: - with gil: - raise RuntimeError('Function "cuStreamWriteValue64_v2" not found') - err = ( __cuStreamWriteValue64_v2)(stream, addr, value, flags) - return err -{{endif}} - -{{if 'cuStreamBatchMemOp_v2' in found_functions}} - -cdef CUresult _cuStreamBatchMemOp_v2(CUstream stream, unsigned int count, CUstreamBatchMemOpParams* paramArray, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuStreamBatchMemOp_v2 - cuPythonInit() - if __cuStreamBatchMemOp_v2 == NULL: - with gil: - raise RuntimeError('Function "cuStreamBatchMemOp_v2" not found') - err = ( __cuStreamBatchMemOp_v2)(stream, count, paramArray, flags) - return err -{{endif}} - -{{if 'cuFuncGetAttribute' in found_functions}} - -cdef CUresult _cuFuncGetAttribute(int* pi, CUfunction_attribute attrib, CUfunction hfunc) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuFuncGetAttribute - cuPythonInit() - if __cuFuncGetAttribute == NULL: - with gil: - raise RuntimeError('Function "cuFuncGetAttribute" not found') - err = ( __cuFuncGetAttribute)(pi, attrib, hfunc) - return err -{{endif}} - -{{if 'cuFuncSetAttribute' in found_functions}} - -cdef CUresult _cuFuncSetAttribute(CUfunction hfunc, CUfunction_attribute attrib, int value) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuFuncSetAttribute - cuPythonInit() - if __cuFuncSetAttribute == NULL: - with gil: - raise RuntimeError('Function "cuFuncSetAttribute" not found') - err = ( __cuFuncSetAttribute)(hfunc, attrib, value) - return err -{{endif}} - -{{if 'cuFuncSetCacheConfig' in found_functions}} - -cdef CUresult _cuFuncSetCacheConfig(CUfunction hfunc, CUfunc_cache config) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuFuncSetCacheConfig - cuPythonInit() - if __cuFuncSetCacheConfig == NULL: - with gil: - raise RuntimeError('Function "cuFuncSetCacheConfig" not found') - err = ( __cuFuncSetCacheConfig)(hfunc, config) - return err -{{endif}} - -{{if 'cuFuncGetModule' in found_functions}} - -cdef CUresult _cuFuncGetModule(CUmodule* hmod, CUfunction hfunc) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuFuncGetModule - cuPythonInit() - if __cuFuncGetModule == NULL: - with gil: - raise RuntimeError('Function "cuFuncGetModule" not found') - err = ( __cuFuncGetModule)(hmod, hfunc) - return err -{{endif}} - -{{if 'cuFuncGetName' in found_functions}} - -cdef CUresult _cuFuncGetName(const char** name, CUfunction hfunc) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuFuncGetName - cuPythonInit() - if __cuFuncGetName == NULL: - with gil: - raise RuntimeError('Function "cuFuncGetName" not found') - err = ( __cuFuncGetName)(name, hfunc) - return err -{{endif}} - -{{if 'cuFuncGetParamInfo' in found_functions}} - -cdef CUresult _cuFuncGetParamInfo(CUfunction func, size_t paramIndex, size_t* paramOffset, size_t* paramSize) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuFuncGetParamInfo - cuPythonInit() - if __cuFuncGetParamInfo == NULL: - with gil: - raise RuntimeError('Function "cuFuncGetParamInfo" not found') - err = ( __cuFuncGetParamInfo)(func, paramIndex, paramOffset, paramSize) - return err -{{endif}} - -{{if 'cuFuncGetParamCount' in found_functions}} - -cdef CUresult _cuFuncGetParamCount(CUfunction func, size_t* paramCount) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuFuncGetParamCount - cuPythonInit() - if __cuFuncGetParamCount == NULL: - with gil: - raise RuntimeError('Function "cuFuncGetParamCount" not found') - err = ( __cuFuncGetParamCount)(func, paramCount) - return err -{{endif}} - -{{if 'cuFuncIsLoaded' in found_functions}} - -cdef CUresult _cuFuncIsLoaded(CUfunctionLoadingState* state, CUfunction function) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuFuncIsLoaded - cuPythonInit() - if __cuFuncIsLoaded == NULL: - with gil: - raise RuntimeError('Function "cuFuncIsLoaded" not found') - err = ( __cuFuncIsLoaded)(state, function) - return err -{{endif}} - -{{if 'cuFuncLoad' in found_functions}} - -cdef CUresult _cuFuncLoad(CUfunction function) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuFuncLoad - cuPythonInit() - if __cuFuncLoad == NULL: - with gil: - raise RuntimeError('Function "cuFuncLoad" not found') - err = ( __cuFuncLoad)(function) - return err -{{endif}} - -{{if 'cuLaunchKernel' in found_functions}} - -cdef CUresult _cuLaunchKernel(CUfunction f, unsigned int gridDimX, unsigned int gridDimY, unsigned int gridDimZ, unsigned int blockDimX, unsigned int blockDimY, unsigned int blockDimZ, unsigned int sharedMemBytes, CUstream hStream, void** kernelParams, void** extra) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuLaunchKernel - cuPythonInit() - if __cuLaunchKernel == NULL: - with gil: - raise RuntimeError('Function "cuLaunchKernel" not found') - err = ( __cuLaunchKernel)(f, gridDimX, gridDimY, gridDimZ, blockDimX, blockDimY, blockDimZ, sharedMemBytes, hStream, kernelParams, extra) - return err -{{endif}} - -{{if 'cuLaunchKernelEx' in found_functions}} - -cdef CUresult _cuLaunchKernelEx(const CUlaunchConfig* config, CUfunction f, void** kernelParams, void** extra) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuLaunchKernelEx - cuPythonInit() - if __cuLaunchKernelEx == NULL: - with gil: - raise RuntimeError('Function "cuLaunchKernelEx" not found') - err = ( __cuLaunchKernelEx)(config, f, kernelParams, extra) - return err -{{endif}} - -{{if 'cuLaunchCooperativeKernel' in found_functions}} - -cdef CUresult _cuLaunchCooperativeKernel(CUfunction f, unsigned int gridDimX, unsigned int gridDimY, unsigned int gridDimZ, unsigned int blockDimX, unsigned int blockDimY, unsigned int blockDimZ, unsigned int sharedMemBytes, CUstream hStream, void** kernelParams) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuLaunchCooperativeKernel - cuPythonInit() - if __cuLaunchCooperativeKernel == NULL: - with gil: - raise RuntimeError('Function "cuLaunchCooperativeKernel" not found') - err = ( __cuLaunchCooperativeKernel)(f, gridDimX, gridDimY, gridDimZ, blockDimX, blockDimY, blockDimZ, sharedMemBytes, hStream, kernelParams) - return err -{{endif}} - -{{if 'cuLaunchCooperativeKernelMultiDevice' in found_functions}} - -cdef CUresult _cuLaunchCooperativeKernelMultiDevice(CUDA_LAUNCH_PARAMS* launchParamsList, unsigned int numDevices, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuLaunchCooperativeKernelMultiDevice - cuPythonInit() - if __cuLaunchCooperativeKernelMultiDevice == NULL: - with gil: - raise RuntimeError('Function "cuLaunchCooperativeKernelMultiDevice" not found') - err = ( __cuLaunchCooperativeKernelMultiDevice)(launchParamsList, numDevices, flags) - return err -{{endif}} - -{{if 'cuLaunchHostFunc' in found_functions}} - -cdef CUresult _cuLaunchHostFunc(CUstream hStream, CUhostFn fn, void* userData) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuLaunchHostFunc - cuPythonInit() - if __cuLaunchHostFunc == NULL: - with gil: - raise RuntimeError('Function "cuLaunchHostFunc" not found') - err = ( __cuLaunchHostFunc)(hStream, fn, userData) - return err -{{endif}} - -{{if 'cuLaunchHostFunc_v2' in found_functions}} - -cdef CUresult _cuLaunchHostFunc_v2(CUstream hStream, CUhostFn fn, void* userData, unsigned int syncMode) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuLaunchHostFunc_v2 - cuPythonInit() - if __cuLaunchHostFunc_v2 == NULL: - with gil: - raise RuntimeError('Function "cuLaunchHostFunc_v2" not found') - err = ( __cuLaunchHostFunc_v2)(hStream, fn, userData, syncMode) - return err -{{endif}} - -{{if 'cuFuncSetBlockShape' in found_functions}} - -cdef CUresult _cuFuncSetBlockShape(CUfunction hfunc, int x, int y, int z) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuFuncSetBlockShape - cuPythonInit() - if __cuFuncSetBlockShape == NULL: - with gil: - raise RuntimeError('Function "cuFuncSetBlockShape" not found') - err = ( __cuFuncSetBlockShape)(hfunc, x, y, z) - return err -{{endif}} - -{{if 'cuFuncSetSharedSize' in found_functions}} - -cdef CUresult _cuFuncSetSharedSize(CUfunction hfunc, unsigned int numbytes) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuFuncSetSharedSize - cuPythonInit() - if __cuFuncSetSharedSize == NULL: - with gil: - raise RuntimeError('Function "cuFuncSetSharedSize" not found') - err = ( __cuFuncSetSharedSize)(hfunc, numbytes) - return err -{{endif}} - -{{if 'cuParamSetSize' in found_functions}} - -cdef CUresult _cuParamSetSize(CUfunction hfunc, unsigned int numbytes) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuParamSetSize - cuPythonInit() - if __cuParamSetSize == NULL: - with gil: - raise RuntimeError('Function "cuParamSetSize" not found') - err = ( __cuParamSetSize)(hfunc, numbytes) - return err -{{endif}} - -{{if 'cuParamSeti' in found_functions}} - -cdef CUresult _cuParamSeti(CUfunction hfunc, int offset, unsigned int value) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuParamSeti - cuPythonInit() - if __cuParamSeti == NULL: - with gil: - raise RuntimeError('Function "cuParamSeti" not found') - err = ( __cuParamSeti)(hfunc, offset, value) - return err -{{endif}} - -{{if 'cuParamSetf' in found_functions}} - -cdef CUresult _cuParamSetf(CUfunction hfunc, int offset, float value) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuParamSetf - cuPythonInit() - if __cuParamSetf == NULL: - with gil: - raise RuntimeError('Function "cuParamSetf" not found') - err = ( __cuParamSetf)(hfunc, offset, value) - return err -{{endif}} - -{{if 'cuParamSetv' in found_functions}} - -cdef CUresult _cuParamSetv(CUfunction hfunc, int offset, void* ptr, unsigned int numbytes) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuParamSetv - cuPythonInit() - if __cuParamSetv == NULL: - with gil: - raise RuntimeError('Function "cuParamSetv" not found') - err = ( __cuParamSetv)(hfunc, offset, ptr, numbytes) - return err -{{endif}} - -{{if 'cuLaunch' in found_functions}} - -cdef CUresult _cuLaunch(CUfunction f) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuLaunch - cuPythonInit() - if __cuLaunch == NULL: - with gil: - raise RuntimeError('Function "cuLaunch" not found') - err = ( __cuLaunch)(f) - return err -{{endif}} - -{{if 'cuLaunchGrid' in found_functions}} - -cdef CUresult _cuLaunchGrid(CUfunction f, int grid_width, int grid_height) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuLaunchGrid - cuPythonInit() - if __cuLaunchGrid == NULL: - with gil: - raise RuntimeError('Function "cuLaunchGrid" not found') - err = ( __cuLaunchGrid)(f, grid_width, grid_height) - return err -{{endif}} - -{{if 'cuLaunchGridAsync' in found_functions}} - -cdef CUresult _cuLaunchGridAsync(CUfunction f, int grid_width, int grid_height, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuLaunchGridAsync - cuPythonInit() - if __cuLaunchGridAsync == NULL: - with gil: - raise RuntimeError('Function "cuLaunchGridAsync" not found') - err = ( __cuLaunchGridAsync)(f, grid_width, grid_height, hStream) - return err -{{endif}} - -{{if 'cuParamSetTexRef' in found_functions}} - -cdef CUresult _cuParamSetTexRef(CUfunction hfunc, int texunit, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuParamSetTexRef - cuPythonInit() - if __cuParamSetTexRef == NULL: - with gil: - raise RuntimeError('Function "cuParamSetTexRef" not found') - err = ( __cuParamSetTexRef)(hfunc, texunit, hTexRef) - return err -{{endif}} - -{{if 'cuFuncSetSharedMemConfig' in found_functions}} - -cdef CUresult _cuFuncSetSharedMemConfig(CUfunction hfunc, CUsharedconfig config) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuFuncSetSharedMemConfig - cuPythonInit() - if __cuFuncSetSharedMemConfig == NULL: - with gil: - raise RuntimeError('Function "cuFuncSetSharedMemConfig" not found') - err = ( __cuFuncSetSharedMemConfig)(hfunc, config) - return err -{{endif}} - -{{if 'cuGraphCreate' in found_functions}} - -cdef CUresult _cuGraphCreate(CUgraph* phGraph, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGraphCreate - cuPythonInit() - if __cuGraphCreate == NULL: - with gil: - raise RuntimeError('Function "cuGraphCreate" not found') - err = ( __cuGraphCreate)(phGraph, flags) - return err -{{endif}} - -{{if 'cuGraphAddKernelNode_v2' in found_functions}} - -cdef CUresult _cuGraphAddKernelNode_v2(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, const CUDA_KERNEL_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGraphAddKernelNode_v2 - cuPythonInit() - if __cuGraphAddKernelNode_v2 == NULL: - with gil: - raise RuntimeError('Function "cuGraphAddKernelNode_v2" not found') - err = ( __cuGraphAddKernelNode_v2)(phGraphNode, hGraph, dependencies, numDependencies, nodeParams) - return err -{{endif}} - -{{if 'cuGraphKernelNodeGetParams_v2' in found_functions}} - -cdef CUresult _cuGraphKernelNodeGetParams_v2(CUgraphNode hNode, CUDA_KERNEL_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGraphKernelNodeGetParams_v2 - cuPythonInit() - if __cuGraphKernelNodeGetParams_v2 == NULL: - with gil: - raise RuntimeError('Function "cuGraphKernelNodeGetParams_v2" not found') - err = ( __cuGraphKernelNodeGetParams_v2)(hNode, nodeParams) - return err -{{endif}} - -{{if 'cuGraphKernelNodeSetParams_v2' in found_functions}} - -cdef CUresult _cuGraphKernelNodeSetParams_v2(CUgraphNode hNode, const CUDA_KERNEL_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGraphKernelNodeSetParams_v2 - cuPythonInit() - if __cuGraphKernelNodeSetParams_v2 == NULL: - with gil: - raise RuntimeError('Function "cuGraphKernelNodeSetParams_v2" not found') - err = ( __cuGraphKernelNodeSetParams_v2)(hNode, nodeParams) - return err -{{endif}} - -{{if 'cuGraphAddMemcpyNode' in found_functions}} - -cdef CUresult _cuGraphAddMemcpyNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, const CUDA_MEMCPY3D* copyParams, CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGraphAddMemcpyNode - cuPythonInit() - if __cuGraphAddMemcpyNode == NULL: - with gil: - raise RuntimeError('Function "cuGraphAddMemcpyNode" not found') - err = ( __cuGraphAddMemcpyNode)(phGraphNode, hGraph, dependencies, numDependencies, copyParams, ctx) - return err -{{endif}} - -{{if 'cuGraphMemcpyNodeGetParams' in found_functions}} - -cdef CUresult _cuGraphMemcpyNodeGetParams(CUgraphNode hNode, CUDA_MEMCPY3D* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGraphMemcpyNodeGetParams - cuPythonInit() - if __cuGraphMemcpyNodeGetParams == NULL: - with gil: - raise RuntimeError('Function "cuGraphMemcpyNodeGetParams" not found') - err = ( __cuGraphMemcpyNodeGetParams)(hNode, nodeParams) - return err -{{endif}} - -{{if 'cuGraphMemcpyNodeSetParams' in found_functions}} - -cdef CUresult _cuGraphMemcpyNodeSetParams(CUgraphNode hNode, const CUDA_MEMCPY3D* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGraphMemcpyNodeSetParams - cuPythonInit() - if __cuGraphMemcpyNodeSetParams == NULL: - with gil: - raise RuntimeError('Function "cuGraphMemcpyNodeSetParams" not found') - err = ( __cuGraphMemcpyNodeSetParams)(hNode, nodeParams) - return err -{{endif}} - -{{if 'cuGraphAddMemsetNode' in found_functions}} - -cdef CUresult _cuGraphAddMemsetNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, const CUDA_MEMSET_NODE_PARAMS* memsetParams, CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGraphAddMemsetNode - cuPythonInit() - if __cuGraphAddMemsetNode == NULL: - with gil: - raise RuntimeError('Function "cuGraphAddMemsetNode" not found') - err = ( __cuGraphAddMemsetNode)(phGraphNode, hGraph, dependencies, numDependencies, memsetParams, ctx) - return err -{{endif}} - -{{if 'cuGraphMemsetNodeGetParams' in found_functions}} - -cdef CUresult _cuGraphMemsetNodeGetParams(CUgraphNode hNode, CUDA_MEMSET_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGraphMemsetNodeGetParams - cuPythonInit() - if __cuGraphMemsetNodeGetParams == NULL: - with gil: - raise RuntimeError('Function "cuGraphMemsetNodeGetParams" not found') - err = ( __cuGraphMemsetNodeGetParams)(hNode, nodeParams) - return err -{{endif}} - -{{if 'cuGraphMemsetNodeSetParams' in found_functions}} - -cdef CUresult _cuGraphMemsetNodeSetParams(CUgraphNode hNode, const CUDA_MEMSET_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGraphMemsetNodeSetParams - cuPythonInit() - if __cuGraphMemsetNodeSetParams == NULL: - with gil: - raise RuntimeError('Function "cuGraphMemsetNodeSetParams" not found') - err = ( __cuGraphMemsetNodeSetParams)(hNode, nodeParams) - return err -{{endif}} - -{{if 'cuGraphAddHostNode' in found_functions}} - -cdef CUresult _cuGraphAddHostNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, const CUDA_HOST_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGraphAddHostNode - cuPythonInit() - if __cuGraphAddHostNode == NULL: - with gil: - raise RuntimeError('Function "cuGraphAddHostNode" not found') - err = ( __cuGraphAddHostNode)(phGraphNode, hGraph, dependencies, numDependencies, nodeParams) - return err -{{endif}} - -{{if 'cuGraphHostNodeGetParams' in found_functions}} - -cdef CUresult _cuGraphHostNodeGetParams(CUgraphNode hNode, CUDA_HOST_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGraphHostNodeGetParams - cuPythonInit() - if __cuGraphHostNodeGetParams == NULL: - with gil: - raise RuntimeError('Function "cuGraphHostNodeGetParams" not found') - err = ( __cuGraphHostNodeGetParams)(hNode, nodeParams) - return err -{{endif}} - -{{if 'cuGraphHostNodeSetParams' in found_functions}} - -cdef CUresult _cuGraphHostNodeSetParams(CUgraphNode hNode, const CUDA_HOST_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGraphHostNodeSetParams - cuPythonInit() - if __cuGraphHostNodeSetParams == NULL: - with gil: - raise RuntimeError('Function "cuGraphHostNodeSetParams" not found') - err = ( __cuGraphHostNodeSetParams)(hNode, nodeParams) - return err -{{endif}} - -{{if 'cuGraphAddChildGraphNode' in found_functions}} - -cdef CUresult _cuGraphAddChildGraphNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, CUgraph childGraph) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGraphAddChildGraphNode - cuPythonInit() - if __cuGraphAddChildGraphNode == NULL: - with gil: - raise RuntimeError('Function "cuGraphAddChildGraphNode" not found') - err = ( __cuGraphAddChildGraphNode)(phGraphNode, hGraph, dependencies, numDependencies, childGraph) - return err -{{endif}} - -{{if 'cuGraphChildGraphNodeGetGraph' in found_functions}} - -cdef CUresult _cuGraphChildGraphNodeGetGraph(CUgraphNode hNode, CUgraph* phGraph) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGraphChildGraphNodeGetGraph - cuPythonInit() - if __cuGraphChildGraphNodeGetGraph == NULL: - with gil: - raise RuntimeError('Function "cuGraphChildGraphNodeGetGraph" not found') - err = ( __cuGraphChildGraphNodeGetGraph)(hNode, phGraph) - return err -{{endif}} - -{{if 'cuGraphAddEmptyNode' in found_functions}} - -cdef CUresult _cuGraphAddEmptyNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGraphAddEmptyNode - cuPythonInit() - if __cuGraphAddEmptyNode == NULL: - with gil: - raise RuntimeError('Function "cuGraphAddEmptyNode" not found') - err = ( __cuGraphAddEmptyNode)(phGraphNode, hGraph, dependencies, numDependencies) - return err -{{endif}} - -{{if 'cuGraphAddEventRecordNode' in found_functions}} - -cdef CUresult _cuGraphAddEventRecordNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, CUevent event) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGraphAddEventRecordNode - cuPythonInit() - if __cuGraphAddEventRecordNode == NULL: - with gil: - raise RuntimeError('Function "cuGraphAddEventRecordNode" not found') - err = ( __cuGraphAddEventRecordNode)(phGraphNode, hGraph, dependencies, numDependencies, event) - return err -{{endif}} - -{{if 'cuGraphEventRecordNodeGetEvent' in found_functions}} - -cdef CUresult _cuGraphEventRecordNodeGetEvent(CUgraphNode hNode, CUevent* event_out) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGraphEventRecordNodeGetEvent - cuPythonInit() - if __cuGraphEventRecordNodeGetEvent == NULL: - with gil: - raise RuntimeError('Function "cuGraphEventRecordNodeGetEvent" not found') - err = ( __cuGraphEventRecordNodeGetEvent)(hNode, event_out) - return err -{{endif}} - -{{if 'cuGraphEventRecordNodeSetEvent' in found_functions}} - -cdef CUresult _cuGraphEventRecordNodeSetEvent(CUgraphNode hNode, CUevent event) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGraphEventRecordNodeSetEvent - cuPythonInit() - if __cuGraphEventRecordNodeSetEvent == NULL: - with gil: - raise RuntimeError('Function "cuGraphEventRecordNodeSetEvent" not found') - err = ( __cuGraphEventRecordNodeSetEvent)(hNode, event) - return err -{{endif}} - -{{if 'cuGraphAddEventWaitNode' in found_functions}} - -cdef CUresult _cuGraphAddEventWaitNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, CUevent event) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGraphAddEventWaitNode - cuPythonInit() - if __cuGraphAddEventWaitNode == NULL: - with gil: - raise RuntimeError('Function "cuGraphAddEventWaitNode" not found') - err = ( __cuGraphAddEventWaitNode)(phGraphNode, hGraph, dependencies, numDependencies, event) - return err -{{endif}} - -{{if 'cuGraphEventWaitNodeGetEvent' in found_functions}} - -cdef CUresult _cuGraphEventWaitNodeGetEvent(CUgraphNode hNode, CUevent* event_out) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGraphEventWaitNodeGetEvent - cuPythonInit() - if __cuGraphEventWaitNodeGetEvent == NULL: - with gil: - raise RuntimeError('Function "cuGraphEventWaitNodeGetEvent" not found') - err = ( __cuGraphEventWaitNodeGetEvent)(hNode, event_out) - return err -{{endif}} - -{{if 'cuGraphEventWaitNodeSetEvent' in found_functions}} - -cdef CUresult _cuGraphEventWaitNodeSetEvent(CUgraphNode hNode, CUevent event) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGraphEventWaitNodeSetEvent - cuPythonInit() - if __cuGraphEventWaitNodeSetEvent == NULL: - with gil: - raise RuntimeError('Function "cuGraphEventWaitNodeSetEvent" not found') - err = ( __cuGraphEventWaitNodeSetEvent)(hNode, event) - return err -{{endif}} - -{{if 'cuGraphAddExternalSemaphoresSignalNode' in found_functions}} - -cdef CUresult _cuGraphAddExternalSemaphoresSignalNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, const CUDA_EXT_SEM_SIGNAL_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGraphAddExternalSemaphoresSignalNode - cuPythonInit() - if __cuGraphAddExternalSemaphoresSignalNode == NULL: - with gil: - raise RuntimeError('Function "cuGraphAddExternalSemaphoresSignalNode" not found') - err = ( __cuGraphAddExternalSemaphoresSignalNode)(phGraphNode, hGraph, dependencies, numDependencies, nodeParams) - return err -{{endif}} - -{{if 'cuGraphExternalSemaphoresSignalNodeGetParams' in found_functions}} - -cdef CUresult _cuGraphExternalSemaphoresSignalNodeGetParams(CUgraphNode hNode, CUDA_EXT_SEM_SIGNAL_NODE_PARAMS* params_out) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGraphExternalSemaphoresSignalNodeGetParams - cuPythonInit() - if __cuGraphExternalSemaphoresSignalNodeGetParams == NULL: - with gil: - raise RuntimeError('Function "cuGraphExternalSemaphoresSignalNodeGetParams" not found') - err = ( __cuGraphExternalSemaphoresSignalNodeGetParams)(hNode, params_out) - return err -{{endif}} - -{{if 'cuGraphExternalSemaphoresSignalNodeSetParams' in found_functions}} - -cdef CUresult _cuGraphExternalSemaphoresSignalNodeSetParams(CUgraphNode hNode, const CUDA_EXT_SEM_SIGNAL_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGraphExternalSemaphoresSignalNodeSetParams - cuPythonInit() - if __cuGraphExternalSemaphoresSignalNodeSetParams == NULL: - with gil: - raise RuntimeError('Function "cuGraphExternalSemaphoresSignalNodeSetParams" not found') - err = ( __cuGraphExternalSemaphoresSignalNodeSetParams)(hNode, nodeParams) - return err -{{endif}} - -{{if 'cuGraphAddExternalSemaphoresWaitNode' in found_functions}} - -cdef CUresult _cuGraphAddExternalSemaphoresWaitNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, const CUDA_EXT_SEM_WAIT_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGraphAddExternalSemaphoresWaitNode - cuPythonInit() - if __cuGraphAddExternalSemaphoresWaitNode == NULL: - with gil: - raise RuntimeError('Function "cuGraphAddExternalSemaphoresWaitNode" not found') - err = ( __cuGraphAddExternalSemaphoresWaitNode)(phGraphNode, hGraph, dependencies, numDependencies, nodeParams) - return err -{{endif}} - -{{if 'cuGraphExternalSemaphoresWaitNodeGetParams' in found_functions}} - -cdef CUresult _cuGraphExternalSemaphoresWaitNodeGetParams(CUgraphNode hNode, CUDA_EXT_SEM_WAIT_NODE_PARAMS* params_out) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGraphExternalSemaphoresWaitNodeGetParams - cuPythonInit() - if __cuGraphExternalSemaphoresWaitNodeGetParams == NULL: - with gil: - raise RuntimeError('Function "cuGraphExternalSemaphoresWaitNodeGetParams" not found') - err = ( __cuGraphExternalSemaphoresWaitNodeGetParams)(hNode, params_out) - return err -{{endif}} - -{{if 'cuGraphExternalSemaphoresWaitNodeSetParams' in found_functions}} - -cdef CUresult _cuGraphExternalSemaphoresWaitNodeSetParams(CUgraphNode hNode, const CUDA_EXT_SEM_WAIT_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGraphExternalSemaphoresWaitNodeSetParams - cuPythonInit() - if __cuGraphExternalSemaphoresWaitNodeSetParams == NULL: - with gil: - raise RuntimeError('Function "cuGraphExternalSemaphoresWaitNodeSetParams" not found') - err = ( __cuGraphExternalSemaphoresWaitNodeSetParams)(hNode, nodeParams) - return err -{{endif}} - -{{if 'cuGraphAddBatchMemOpNode' in found_functions}} - -cdef CUresult _cuGraphAddBatchMemOpNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, const CUDA_BATCH_MEM_OP_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGraphAddBatchMemOpNode - cuPythonInit() - if __cuGraphAddBatchMemOpNode == NULL: - with gil: - raise RuntimeError('Function "cuGraphAddBatchMemOpNode" not found') - err = ( __cuGraphAddBatchMemOpNode)(phGraphNode, hGraph, dependencies, numDependencies, nodeParams) - return err -{{endif}} - -{{if 'cuGraphBatchMemOpNodeGetParams' in found_functions}} - -cdef CUresult _cuGraphBatchMemOpNodeGetParams(CUgraphNode hNode, CUDA_BATCH_MEM_OP_NODE_PARAMS* nodeParams_out) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGraphBatchMemOpNodeGetParams - cuPythonInit() - if __cuGraphBatchMemOpNodeGetParams == NULL: - with gil: - raise RuntimeError('Function "cuGraphBatchMemOpNodeGetParams" not found') - err = ( __cuGraphBatchMemOpNodeGetParams)(hNode, nodeParams_out) - return err -{{endif}} - -{{if 'cuGraphBatchMemOpNodeSetParams' in found_functions}} - -cdef CUresult _cuGraphBatchMemOpNodeSetParams(CUgraphNode hNode, const CUDA_BATCH_MEM_OP_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGraphBatchMemOpNodeSetParams - cuPythonInit() - if __cuGraphBatchMemOpNodeSetParams == NULL: - with gil: - raise RuntimeError('Function "cuGraphBatchMemOpNodeSetParams" not found') - err = ( __cuGraphBatchMemOpNodeSetParams)(hNode, nodeParams) - return err -{{endif}} - -{{if 'cuGraphExecBatchMemOpNodeSetParams' in found_functions}} - -cdef CUresult _cuGraphExecBatchMemOpNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_BATCH_MEM_OP_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGraphExecBatchMemOpNodeSetParams - cuPythonInit() - if __cuGraphExecBatchMemOpNodeSetParams == NULL: - with gil: - raise RuntimeError('Function "cuGraphExecBatchMemOpNodeSetParams" not found') - err = ( __cuGraphExecBatchMemOpNodeSetParams)(hGraphExec, hNode, nodeParams) - return err -{{endif}} - -{{if 'cuGraphAddMemAllocNode' in found_functions}} - -cdef CUresult _cuGraphAddMemAllocNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, CUDA_MEM_ALLOC_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGraphAddMemAllocNode - cuPythonInit() - if __cuGraphAddMemAllocNode == NULL: - with gil: - raise RuntimeError('Function "cuGraphAddMemAllocNode" not found') - err = ( __cuGraphAddMemAllocNode)(phGraphNode, hGraph, dependencies, numDependencies, nodeParams) - return err -{{endif}} - -{{if 'cuGraphMemAllocNodeGetParams' in found_functions}} - -cdef CUresult _cuGraphMemAllocNodeGetParams(CUgraphNode hNode, CUDA_MEM_ALLOC_NODE_PARAMS* params_out) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGraphMemAllocNodeGetParams - cuPythonInit() - if __cuGraphMemAllocNodeGetParams == NULL: - with gil: - raise RuntimeError('Function "cuGraphMemAllocNodeGetParams" not found') - err = ( __cuGraphMemAllocNodeGetParams)(hNode, params_out) - return err -{{endif}} - -{{if 'cuGraphAddMemFreeNode' in found_functions}} - -cdef CUresult _cuGraphAddMemFreeNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, CUdeviceptr dptr) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGraphAddMemFreeNode - cuPythonInit() - if __cuGraphAddMemFreeNode == NULL: - with gil: - raise RuntimeError('Function "cuGraphAddMemFreeNode" not found') - err = ( __cuGraphAddMemFreeNode)(phGraphNode, hGraph, dependencies, numDependencies, dptr) - return err -{{endif}} - -{{if 'cuGraphMemFreeNodeGetParams' in found_functions}} - -cdef CUresult _cuGraphMemFreeNodeGetParams(CUgraphNode hNode, CUdeviceptr* dptr_out) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGraphMemFreeNodeGetParams - cuPythonInit() - if __cuGraphMemFreeNodeGetParams == NULL: - with gil: - raise RuntimeError('Function "cuGraphMemFreeNodeGetParams" not found') - err = ( __cuGraphMemFreeNodeGetParams)(hNode, dptr_out) - return err -{{endif}} - -{{if 'cuDeviceGraphMemTrim' in found_functions}} - -cdef CUresult _cuDeviceGraphMemTrim(CUdevice device) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuDeviceGraphMemTrim - cuPythonInit() - if __cuDeviceGraphMemTrim == NULL: - with gil: - raise RuntimeError('Function "cuDeviceGraphMemTrim" not found') - err = ( __cuDeviceGraphMemTrim)(device) - return err -{{endif}} - -{{if 'cuDeviceGetGraphMemAttribute' in found_functions}} - -cdef CUresult _cuDeviceGetGraphMemAttribute(CUdevice device, CUgraphMem_attribute attr, void* value) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuDeviceGetGraphMemAttribute - cuPythonInit() - if __cuDeviceGetGraphMemAttribute == NULL: - with gil: - raise RuntimeError('Function "cuDeviceGetGraphMemAttribute" not found') - err = ( __cuDeviceGetGraphMemAttribute)(device, attr, value) - return err -{{endif}} - -{{if 'cuDeviceSetGraphMemAttribute' in found_functions}} - -cdef CUresult _cuDeviceSetGraphMemAttribute(CUdevice device, CUgraphMem_attribute attr, void* value) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuDeviceSetGraphMemAttribute - cuPythonInit() - if __cuDeviceSetGraphMemAttribute == NULL: - with gil: - raise RuntimeError('Function "cuDeviceSetGraphMemAttribute" not found') - err = ( __cuDeviceSetGraphMemAttribute)(device, attr, value) - return err -{{endif}} - -{{if 'cuGraphClone' in found_functions}} - -cdef CUresult _cuGraphClone(CUgraph* phGraphClone, CUgraph originalGraph) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGraphClone - cuPythonInit() - if __cuGraphClone == NULL: - with gil: - raise RuntimeError('Function "cuGraphClone" not found') - err = ( __cuGraphClone)(phGraphClone, originalGraph) - return err -{{endif}} - -{{if 'cuGraphNodeFindInClone' in found_functions}} - -cdef CUresult _cuGraphNodeFindInClone(CUgraphNode* phNode, CUgraphNode hOriginalNode, CUgraph hClonedGraph) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGraphNodeFindInClone - cuPythonInit() - if __cuGraphNodeFindInClone == NULL: - with gil: - raise RuntimeError('Function "cuGraphNodeFindInClone" not found') - err = ( __cuGraphNodeFindInClone)(phNode, hOriginalNode, hClonedGraph) - return err -{{endif}} - -{{if 'cuGraphNodeGetType' in found_functions}} - -cdef CUresult _cuGraphNodeGetType(CUgraphNode hNode, CUgraphNodeType* typename) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGraphNodeGetType - cuPythonInit() - if __cuGraphNodeGetType == NULL: - with gil: - raise RuntimeError('Function "cuGraphNodeGetType" not found') - err = ( __cuGraphNodeGetType)(hNode, typename) - return err -{{endif}} - -{{if 'cuGraphNodeGetContainingGraph' in found_functions}} - -cdef CUresult _cuGraphNodeGetContainingGraph(CUgraphNode hNode, CUgraph* phGraph) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGraphNodeGetContainingGraph - cuPythonInit() - if __cuGraphNodeGetContainingGraph == NULL: - with gil: - raise RuntimeError('Function "cuGraphNodeGetContainingGraph" not found') - err = ( __cuGraphNodeGetContainingGraph)(hNode, phGraph) - return err -{{endif}} - -{{if 'cuGraphNodeGetLocalId' in found_functions}} - -cdef CUresult _cuGraphNodeGetLocalId(CUgraphNode hNode, unsigned int* nodeId) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGraphNodeGetLocalId - cuPythonInit() - if __cuGraphNodeGetLocalId == NULL: - with gil: - raise RuntimeError('Function "cuGraphNodeGetLocalId" not found') - err = ( __cuGraphNodeGetLocalId)(hNode, nodeId) - return err -{{endif}} - -{{if 'cuGraphNodeGetToolsId' in found_functions}} - -cdef CUresult _cuGraphNodeGetToolsId(CUgraphNode hNode, unsigned long long* toolsNodeId) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGraphNodeGetToolsId - cuPythonInit() - if __cuGraphNodeGetToolsId == NULL: - with gil: - raise RuntimeError('Function "cuGraphNodeGetToolsId" not found') - err = ( __cuGraphNodeGetToolsId)(hNode, toolsNodeId) - return err -{{endif}} - -{{if 'cuGraphGetId' in found_functions}} - -cdef CUresult _cuGraphGetId(CUgraph hGraph, unsigned int* graphId) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGraphGetId - cuPythonInit() - if __cuGraphGetId == NULL: - with gil: - raise RuntimeError('Function "cuGraphGetId" not found') - err = ( __cuGraphGetId)(hGraph, graphId) - return err -{{endif}} - -{{if 'cuGraphExecGetId' in found_functions}} - -cdef CUresult _cuGraphExecGetId(CUgraphExec hGraphExec, unsigned int* graphId) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGraphExecGetId - cuPythonInit() - if __cuGraphExecGetId == NULL: - with gil: - raise RuntimeError('Function "cuGraphExecGetId" not found') - err = ( __cuGraphExecGetId)(hGraphExec, graphId) - return err -{{endif}} - -{{if 'cuGraphGetNodes' in found_functions}} - -cdef CUresult _cuGraphGetNodes(CUgraph hGraph, CUgraphNode* nodes, size_t* numNodes) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGraphGetNodes - cuPythonInit() - if __cuGraphGetNodes == NULL: - with gil: - raise RuntimeError('Function "cuGraphGetNodes" not found') - err = ( __cuGraphGetNodes)(hGraph, nodes, numNodes) - return err -{{endif}} - -{{if 'cuGraphGetRootNodes' in found_functions}} - -cdef CUresult _cuGraphGetRootNodes(CUgraph hGraph, CUgraphNode* rootNodes, size_t* numRootNodes) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGraphGetRootNodes - cuPythonInit() - if __cuGraphGetRootNodes == NULL: - with gil: - raise RuntimeError('Function "cuGraphGetRootNodes" not found') - err = ( __cuGraphGetRootNodes)(hGraph, rootNodes, numRootNodes) - return err -{{endif}} - -{{if 'cuGraphGetEdges_v2' in found_functions}} - -cdef CUresult _cuGraphGetEdges_v2(CUgraph hGraph, CUgraphNode* from_, CUgraphNode* to, CUgraphEdgeData* edgeData, size_t* numEdges) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGraphGetEdges_v2 - cuPythonInit() - if __cuGraphGetEdges_v2 == NULL: - with gil: - raise RuntimeError('Function "cuGraphGetEdges_v2" not found') - err = ( __cuGraphGetEdges_v2)(hGraph, from_, to, edgeData, numEdges) - return err -{{endif}} - -{{if 'cuGraphNodeGetDependencies_v2' in found_functions}} - -cdef CUresult _cuGraphNodeGetDependencies_v2(CUgraphNode hNode, CUgraphNode* dependencies, CUgraphEdgeData* edgeData, size_t* numDependencies) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGraphNodeGetDependencies_v2 - cuPythonInit() - if __cuGraphNodeGetDependencies_v2 == NULL: - with gil: - raise RuntimeError('Function "cuGraphNodeGetDependencies_v2" not found') - err = ( __cuGraphNodeGetDependencies_v2)(hNode, dependencies, edgeData, numDependencies) - return err -{{endif}} - -{{if 'cuGraphNodeGetDependentNodes_v2' in found_functions}} - -cdef CUresult _cuGraphNodeGetDependentNodes_v2(CUgraphNode hNode, CUgraphNode* dependentNodes, CUgraphEdgeData* edgeData, size_t* numDependentNodes) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGraphNodeGetDependentNodes_v2 - cuPythonInit() - if __cuGraphNodeGetDependentNodes_v2 == NULL: - with gil: - raise RuntimeError('Function "cuGraphNodeGetDependentNodes_v2" not found') - err = ( __cuGraphNodeGetDependentNodes_v2)(hNode, dependentNodes, edgeData, numDependentNodes) - return err -{{endif}} - -{{if 'cuGraphAddDependencies_v2' in found_functions}} - -cdef CUresult _cuGraphAddDependencies_v2(CUgraph hGraph, const CUgraphNode* from_, const CUgraphNode* to, const CUgraphEdgeData* edgeData, size_t numDependencies) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGraphAddDependencies_v2 - cuPythonInit() - if __cuGraphAddDependencies_v2 == NULL: - with gil: - raise RuntimeError('Function "cuGraphAddDependencies_v2" not found') - err = ( __cuGraphAddDependencies_v2)(hGraph, from_, to, edgeData, numDependencies) - return err -{{endif}} - -{{if 'cuGraphRemoveDependencies_v2' in found_functions}} - -cdef CUresult _cuGraphRemoveDependencies_v2(CUgraph hGraph, const CUgraphNode* from_, const CUgraphNode* to, const CUgraphEdgeData* edgeData, size_t numDependencies) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGraphRemoveDependencies_v2 - cuPythonInit() - if __cuGraphRemoveDependencies_v2 == NULL: - with gil: - raise RuntimeError('Function "cuGraphRemoveDependencies_v2" not found') - err = ( __cuGraphRemoveDependencies_v2)(hGraph, from_, to, edgeData, numDependencies) - return err -{{endif}} - -{{if 'cuGraphDestroyNode' in found_functions}} - -cdef CUresult _cuGraphDestroyNode(CUgraphNode hNode) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGraphDestroyNode - cuPythonInit() - if __cuGraphDestroyNode == NULL: - with gil: - raise RuntimeError('Function "cuGraphDestroyNode" not found') - err = ( __cuGraphDestroyNode)(hNode) - return err -{{endif}} - -{{if 'cuGraphInstantiateWithFlags' in found_functions}} - -cdef CUresult _cuGraphInstantiateWithFlags(CUgraphExec* phGraphExec, CUgraph hGraph, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGraphInstantiateWithFlags - cuPythonInit() - if __cuGraphInstantiateWithFlags == NULL: - with gil: - raise RuntimeError('Function "cuGraphInstantiateWithFlags" not found') - err = ( __cuGraphInstantiateWithFlags)(phGraphExec, hGraph, flags) - return err -{{endif}} - -{{if 'cuGraphInstantiateWithParams' in found_functions}} - -cdef CUresult _cuGraphInstantiateWithParams(CUgraphExec* phGraphExec, CUgraph hGraph, CUDA_GRAPH_INSTANTIATE_PARAMS* instantiateParams) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGraphInstantiateWithParams - cuPythonInit() - if __cuGraphInstantiateWithParams == NULL: - with gil: - raise RuntimeError('Function "cuGraphInstantiateWithParams" not found') - err = ( __cuGraphInstantiateWithParams)(phGraphExec, hGraph, instantiateParams) - return err -{{endif}} - -{{if 'cuGraphExecGetFlags' in found_functions}} - -cdef CUresult _cuGraphExecGetFlags(CUgraphExec hGraphExec, cuuint64_t* flags) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGraphExecGetFlags - cuPythonInit() - if __cuGraphExecGetFlags == NULL: - with gil: - raise RuntimeError('Function "cuGraphExecGetFlags" not found') - err = ( __cuGraphExecGetFlags)(hGraphExec, flags) - return err -{{endif}} - -{{if 'cuGraphExecKernelNodeSetParams_v2' in found_functions}} - -cdef CUresult _cuGraphExecKernelNodeSetParams_v2(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_KERNEL_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGraphExecKernelNodeSetParams_v2 - cuPythonInit() - if __cuGraphExecKernelNodeSetParams_v2 == NULL: - with gil: - raise RuntimeError('Function "cuGraphExecKernelNodeSetParams_v2" not found') - err = ( __cuGraphExecKernelNodeSetParams_v2)(hGraphExec, hNode, nodeParams) - return err -{{endif}} - -{{if 'cuGraphExecMemcpyNodeSetParams' in found_functions}} - -cdef CUresult _cuGraphExecMemcpyNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_MEMCPY3D* copyParams, CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGraphExecMemcpyNodeSetParams - cuPythonInit() - if __cuGraphExecMemcpyNodeSetParams == NULL: - with gil: - raise RuntimeError('Function "cuGraphExecMemcpyNodeSetParams" not found') - err = ( __cuGraphExecMemcpyNodeSetParams)(hGraphExec, hNode, copyParams, ctx) - return err -{{endif}} - -{{if 'cuGraphExecMemsetNodeSetParams' in found_functions}} - -cdef CUresult _cuGraphExecMemsetNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_MEMSET_NODE_PARAMS* memsetParams, CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGraphExecMemsetNodeSetParams - cuPythonInit() - if __cuGraphExecMemsetNodeSetParams == NULL: - with gil: - raise RuntimeError('Function "cuGraphExecMemsetNodeSetParams" not found') - err = ( __cuGraphExecMemsetNodeSetParams)(hGraphExec, hNode, memsetParams, ctx) - return err -{{endif}} - -{{if 'cuGraphExecHostNodeSetParams' in found_functions}} - -cdef CUresult _cuGraphExecHostNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_HOST_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGraphExecHostNodeSetParams - cuPythonInit() - if __cuGraphExecHostNodeSetParams == NULL: - with gil: - raise RuntimeError('Function "cuGraphExecHostNodeSetParams" not found') - err = ( __cuGraphExecHostNodeSetParams)(hGraphExec, hNode, nodeParams) - return err -{{endif}} - -{{if 'cuGraphExecChildGraphNodeSetParams' in found_functions}} - -cdef CUresult _cuGraphExecChildGraphNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, CUgraph childGraph) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGraphExecChildGraphNodeSetParams - cuPythonInit() - if __cuGraphExecChildGraphNodeSetParams == NULL: - with gil: - raise RuntimeError('Function "cuGraphExecChildGraphNodeSetParams" not found') - err = ( __cuGraphExecChildGraphNodeSetParams)(hGraphExec, hNode, childGraph) - return err -{{endif}} - -{{if 'cuGraphExecEventRecordNodeSetEvent' in found_functions}} - -cdef CUresult _cuGraphExecEventRecordNodeSetEvent(CUgraphExec hGraphExec, CUgraphNode hNode, CUevent event) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGraphExecEventRecordNodeSetEvent - cuPythonInit() - if __cuGraphExecEventRecordNodeSetEvent == NULL: - with gil: - raise RuntimeError('Function "cuGraphExecEventRecordNodeSetEvent" not found') - err = ( __cuGraphExecEventRecordNodeSetEvent)(hGraphExec, hNode, event) - return err -{{endif}} - -{{if 'cuGraphExecEventWaitNodeSetEvent' in found_functions}} - -cdef CUresult _cuGraphExecEventWaitNodeSetEvent(CUgraphExec hGraphExec, CUgraphNode hNode, CUevent event) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGraphExecEventWaitNodeSetEvent - cuPythonInit() - if __cuGraphExecEventWaitNodeSetEvent == NULL: - with gil: - raise RuntimeError('Function "cuGraphExecEventWaitNodeSetEvent" not found') - err = ( __cuGraphExecEventWaitNodeSetEvent)(hGraphExec, hNode, event) - return err -{{endif}} - -{{if 'cuGraphExecExternalSemaphoresSignalNodeSetParams' in found_functions}} - -cdef CUresult _cuGraphExecExternalSemaphoresSignalNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_EXT_SEM_SIGNAL_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGraphExecExternalSemaphoresSignalNodeSetParams - cuPythonInit() - if __cuGraphExecExternalSemaphoresSignalNodeSetParams == NULL: - with gil: - raise RuntimeError('Function "cuGraphExecExternalSemaphoresSignalNodeSetParams" not found') - err = ( __cuGraphExecExternalSemaphoresSignalNodeSetParams)(hGraphExec, hNode, nodeParams) - return err -{{endif}} - -{{if 'cuGraphExecExternalSemaphoresWaitNodeSetParams' in found_functions}} - -cdef CUresult _cuGraphExecExternalSemaphoresWaitNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_EXT_SEM_WAIT_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGraphExecExternalSemaphoresWaitNodeSetParams - cuPythonInit() - if __cuGraphExecExternalSemaphoresWaitNodeSetParams == NULL: - with gil: - raise RuntimeError('Function "cuGraphExecExternalSemaphoresWaitNodeSetParams" not found') - err = ( __cuGraphExecExternalSemaphoresWaitNodeSetParams)(hGraphExec, hNode, nodeParams) - return err -{{endif}} - -{{if 'cuGraphNodeSetEnabled' in found_functions}} - -cdef CUresult _cuGraphNodeSetEnabled(CUgraphExec hGraphExec, CUgraphNode hNode, unsigned int isEnabled) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGraphNodeSetEnabled - cuPythonInit() - if __cuGraphNodeSetEnabled == NULL: - with gil: - raise RuntimeError('Function "cuGraphNodeSetEnabled" not found') - err = ( __cuGraphNodeSetEnabled)(hGraphExec, hNode, isEnabled) - return err -{{endif}} - -{{if 'cuGraphNodeGetEnabled' in found_functions}} - -cdef CUresult _cuGraphNodeGetEnabled(CUgraphExec hGraphExec, CUgraphNode hNode, unsigned int* isEnabled) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGraphNodeGetEnabled - cuPythonInit() - if __cuGraphNodeGetEnabled == NULL: - with gil: - raise RuntimeError('Function "cuGraphNodeGetEnabled" not found') - err = ( __cuGraphNodeGetEnabled)(hGraphExec, hNode, isEnabled) - return err -{{endif}} - -{{if 'cuGraphUpload' in found_functions}} - -cdef CUresult _cuGraphUpload(CUgraphExec hGraphExec, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGraphUpload - cuPythonInit() - if __cuGraphUpload == NULL: - with gil: - raise RuntimeError('Function "cuGraphUpload" not found') - err = ( __cuGraphUpload)(hGraphExec, hStream) - return err -{{endif}} - -{{if 'cuGraphLaunch' in found_functions}} - -cdef CUresult _cuGraphLaunch(CUgraphExec hGraphExec, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGraphLaunch - cuPythonInit() - if __cuGraphLaunch == NULL: - with gil: - raise RuntimeError('Function "cuGraphLaunch" not found') - err = ( __cuGraphLaunch)(hGraphExec, hStream) - return err -{{endif}} - -{{if 'cuGraphExecDestroy' in found_functions}} - -cdef CUresult _cuGraphExecDestroy(CUgraphExec hGraphExec) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGraphExecDestroy - cuPythonInit() - if __cuGraphExecDestroy == NULL: - with gil: - raise RuntimeError('Function "cuGraphExecDestroy" not found') - err = ( __cuGraphExecDestroy)(hGraphExec) - return err -{{endif}} - -{{if 'cuGraphDestroy' in found_functions}} - -cdef CUresult _cuGraphDestroy(CUgraph hGraph) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGraphDestroy - cuPythonInit() - if __cuGraphDestroy == NULL: - with gil: - raise RuntimeError('Function "cuGraphDestroy" not found') - err = ( __cuGraphDestroy)(hGraph) - return err -{{endif}} - -{{if 'cuGraphExecUpdate_v2' in found_functions}} - -cdef CUresult _cuGraphExecUpdate_v2(CUgraphExec hGraphExec, CUgraph hGraph, CUgraphExecUpdateResultInfo* resultInfo) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGraphExecUpdate_v2 - cuPythonInit() - if __cuGraphExecUpdate_v2 == NULL: - with gil: - raise RuntimeError('Function "cuGraphExecUpdate_v2" not found') - err = ( __cuGraphExecUpdate_v2)(hGraphExec, hGraph, resultInfo) - return err -{{endif}} - -{{if 'cuGraphKernelNodeCopyAttributes' in found_functions}} - -cdef CUresult _cuGraphKernelNodeCopyAttributes(CUgraphNode dst, CUgraphNode src) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGraphKernelNodeCopyAttributes - cuPythonInit() - if __cuGraphKernelNodeCopyAttributes == NULL: - with gil: - raise RuntimeError('Function "cuGraphKernelNodeCopyAttributes" not found') - err = ( __cuGraphKernelNodeCopyAttributes)(dst, src) - return err -{{endif}} - -{{if 'cuGraphKernelNodeGetAttribute' in found_functions}} - -cdef CUresult _cuGraphKernelNodeGetAttribute(CUgraphNode hNode, CUkernelNodeAttrID attr, CUkernelNodeAttrValue* value_out) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGraphKernelNodeGetAttribute - cuPythonInit() - if __cuGraphKernelNodeGetAttribute == NULL: - with gil: - raise RuntimeError('Function "cuGraphKernelNodeGetAttribute" not found') - err = ( __cuGraphKernelNodeGetAttribute)(hNode, attr, value_out) - return err -{{endif}} - -{{if 'cuGraphKernelNodeSetAttribute' in found_functions}} - -cdef CUresult _cuGraphKernelNodeSetAttribute(CUgraphNode hNode, CUkernelNodeAttrID attr, const CUkernelNodeAttrValue* value) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGraphKernelNodeSetAttribute - cuPythonInit() - if __cuGraphKernelNodeSetAttribute == NULL: - with gil: - raise RuntimeError('Function "cuGraphKernelNodeSetAttribute" not found') - err = ( __cuGraphKernelNodeSetAttribute)(hNode, attr, value) - return err -{{endif}} - -{{if 'cuGraphDebugDotPrint' in found_functions}} - -cdef CUresult _cuGraphDebugDotPrint(CUgraph hGraph, const char* path, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGraphDebugDotPrint - cuPythonInit() - if __cuGraphDebugDotPrint == NULL: - with gil: - raise RuntimeError('Function "cuGraphDebugDotPrint" not found') - err = ( __cuGraphDebugDotPrint)(hGraph, path, flags) - return err -{{endif}} - -{{if 'cuUserObjectCreate' in found_functions}} - -cdef CUresult _cuUserObjectCreate(CUuserObject* object_out, void* ptr, CUhostFn destroy, unsigned int initialRefcount, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuUserObjectCreate - cuPythonInit() - if __cuUserObjectCreate == NULL: - with gil: - raise RuntimeError('Function "cuUserObjectCreate" not found') - err = ( __cuUserObjectCreate)(object_out, ptr, destroy, initialRefcount, flags) - return err -{{endif}} - -{{if 'cuUserObjectRetain' in found_functions}} - -cdef CUresult _cuUserObjectRetain(CUuserObject object, unsigned int count) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuUserObjectRetain - cuPythonInit() - if __cuUserObjectRetain == NULL: - with gil: - raise RuntimeError('Function "cuUserObjectRetain" not found') - err = ( __cuUserObjectRetain)(object, count) - return err -{{endif}} - -{{if 'cuUserObjectRelease' in found_functions}} - -cdef CUresult _cuUserObjectRelease(CUuserObject object, unsigned int count) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuUserObjectRelease - cuPythonInit() - if __cuUserObjectRelease == NULL: - with gil: - raise RuntimeError('Function "cuUserObjectRelease" not found') - err = ( __cuUserObjectRelease)(object, count) - return err -{{endif}} - -{{if 'cuGraphRetainUserObject' in found_functions}} - -cdef CUresult _cuGraphRetainUserObject(CUgraph graph, CUuserObject object, unsigned int count, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGraphRetainUserObject - cuPythonInit() - if __cuGraphRetainUserObject == NULL: - with gil: - raise RuntimeError('Function "cuGraphRetainUserObject" not found') - err = ( __cuGraphRetainUserObject)(graph, object, count, flags) - return err -{{endif}} - -{{if 'cuGraphReleaseUserObject' in found_functions}} - -cdef CUresult _cuGraphReleaseUserObject(CUgraph graph, CUuserObject object, unsigned int count) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGraphReleaseUserObject - cuPythonInit() - if __cuGraphReleaseUserObject == NULL: - with gil: - raise RuntimeError('Function "cuGraphReleaseUserObject" not found') - err = ( __cuGraphReleaseUserObject)(graph, object, count) - return err -{{endif}} - -{{if 'cuGraphAddNode_v2' in found_functions}} - -cdef CUresult _cuGraphAddNode_v2(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, const CUgraphEdgeData* dependencyData, size_t numDependencies, CUgraphNodeParams* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGraphAddNode_v2 - cuPythonInit() - if __cuGraphAddNode_v2 == NULL: - with gil: - raise RuntimeError('Function "cuGraphAddNode_v2" not found') - err = ( __cuGraphAddNode_v2)(phGraphNode, hGraph, dependencies, dependencyData, numDependencies, nodeParams) - return err -{{endif}} - -{{if 'cuGraphNodeSetParams' in found_functions}} - -cdef CUresult _cuGraphNodeSetParams(CUgraphNode hNode, CUgraphNodeParams* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGraphNodeSetParams - cuPythonInit() - if __cuGraphNodeSetParams == NULL: - with gil: - raise RuntimeError('Function "cuGraphNodeSetParams" not found') - err = ( __cuGraphNodeSetParams)(hNode, nodeParams) - return err -{{endif}} - -{{if 'cuGraphNodeGetParams' in found_functions}} - -cdef CUresult _cuGraphNodeGetParams(CUgraphNode hNode, CUgraphNodeParams* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGraphNodeGetParams - cuPythonInit() - if __cuGraphNodeGetParams == NULL: - with gil: - raise RuntimeError('Function "cuGraphNodeGetParams" not found') - err = ( __cuGraphNodeGetParams)(hNode, nodeParams) - return err -{{endif}} - -{{if 'cuGraphExecNodeSetParams' in found_functions}} - -cdef CUresult _cuGraphExecNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, CUgraphNodeParams* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGraphExecNodeSetParams - cuPythonInit() - if __cuGraphExecNodeSetParams == NULL: - with gil: - raise RuntimeError('Function "cuGraphExecNodeSetParams" not found') - err = ( __cuGraphExecNodeSetParams)(hGraphExec, hNode, nodeParams) - return err -{{endif}} - -{{if 'cuGraphConditionalHandleCreate' in found_functions}} - -cdef CUresult _cuGraphConditionalHandleCreate(CUgraphConditionalHandle* pHandle_out, CUgraph hGraph, CUcontext ctx, unsigned int defaultLaunchValue, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGraphConditionalHandleCreate - cuPythonInit() - if __cuGraphConditionalHandleCreate == NULL: - with gil: - raise RuntimeError('Function "cuGraphConditionalHandleCreate" not found') - err = ( __cuGraphConditionalHandleCreate)(pHandle_out, hGraph, ctx, defaultLaunchValue, flags) - return err -{{endif}} - -{{if 'cuOccupancyMaxActiveBlocksPerMultiprocessor' in found_functions}} - -cdef CUresult _cuOccupancyMaxActiveBlocksPerMultiprocessor(int* numBlocks, CUfunction func, int blockSize, size_t dynamicSMemSize) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuOccupancyMaxActiveBlocksPerMultiprocessor - cuPythonInit() - if __cuOccupancyMaxActiveBlocksPerMultiprocessor == NULL: - with gil: - raise RuntimeError('Function "cuOccupancyMaxActiveBlocksPerMultiprocessor" not found') - err = ( __cuOccupancyMaxActiveBlocksPerMultiprocessor)(numBlocks, func, blockSize, dynamicSMemSize) - return err -{{endif}} - -{{if 'cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags' in found_functions}} - -cdef CUresult _cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(int* numBlocks, CUfunction func, int blockSize, size_t dynamicSMemSize, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags - cuPythonInit() - if __cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags == NULL: - with gil: - raise RuntimeError('Function "cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags" not found') - err = ( __cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags)(numBlocks, func, blockSize, dynamicSMemSize, flags) - return err -{{endif}} - -{{if 'cuOccupancyMaxPotentialBlockSize' in found_functions}} - -cdef CUresult _cuOccupancyMaxPotentialBlockSize(int* minGridSize, int* blockSize, CUfunction func, CUoccupancyB2DSize blockSizeToDynamicSMemSize, size_t dynamicSMemSize, int blockSizeLimit) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuOccupancyMaxPotentialBlockSize - cuPythonInit() - if __cuOccupancyMaxPotentialBlockSize == NULL: - with gil: - raise RuntimeError('Function "cuOccupancyMaxPotentialBlockSize" not found') - err = ( __cuOccupancyMaxPotentialBlockSize)(minGridSize, blockSize, func, blockSizeToDynamicSMemSize, dynamicSMemSize, blockSizeLimit) - return err -{{endif}} - -{{if 'cuOccupancyMaxPotentialBlockSizeWithFlags' in found_functions}} - -cdef CUresult _cuOccupancyMaxPotentialBlockSizeWithFlags(int* minGridSize, int* blockSize, CUfunction func, CUoccupancyB2DSize blockSizeToDynamicSMemSize, size_t dynamicSMemSize, int blockSizeLimit, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuOccupancyMaxPotentialBlockSizeWithFlags - cuPythonInit() - if __cuOccupancyMaxPotentialBlockSizeWithFlags == NULL: - with gil: - raise RuntimeError('Function "cuOccupancyMaxPotentialBlockSizeWithFlags" not found') - err = ( __cuOccupancyMaxPotentialBlockSizeWithFlags)(minGridSize, blockSize, func, blockSizeToDynamicSMemSize, dynamicSMemSize, blockSizeLimit, flags) - return err -{{endif}} - -{{if 'cuOccupancyAvailableDynamicSMemPerBlock' in found_functions}} - -cdef CUresult _cuOccupancyAvailableDynamicSMemPerBlock(size_t* dynamicSmemSize, CUfunction func, int numBlocks, int blockSize) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuOccupancyAvailableDynamicSMemPerBlock - cuPythonInit() - if __cuOccupancyAvailableDynamicSMemPerBlock == NULL: - with gil: - raise RuntimeError('Function "cuOccupancyAvailableDynamicSMemPerBlock" not found') - err = ( __cuOccupancyAvailableDynamicSMemPerBlock)(dynamicSmemSize, func, numBlocks, blockSize) - return err -{{endif}} - -{{if 'cuOccupancyMaxPotentialClusterSize' in found_functions}} - -cdef CUresult _cuOccupancyMaxPotentialClusterSize(int* clusterSize, CUfunction func, const CUlaunchConfig* config) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuOccupancyMaxPotentialClusterSize - cuPythonInit() - if __cuOccupancyMaxPotentialClusterSize == NULL: - with gil: - raise RuntimeError('Function "cuOccupancyMaxPotentialClusterSize" not found') - err = ( __cuOccupancyMaxPotentialClusterSize)(clusterSize, func, config) - return err -{{endif}} - -{{if 'cuOccupancyMaxActiveClusters' in found_functions}} - -cdef CUresult _cuOccupancyMaxActiveClusters(int* numClusters, CUfunction func, const CUlaunchConfig* config) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuOccupancyMaxActiveClusters - cuPythonInit() - if __cuOccupancyMaxActiveClusters == NULL: - with gil: - raise RuntimeError('Function "cuOccupancyMaxActiveClusters" not found') - err = ( __cuOccupancyMaxActiveClusters)(numClusters, func, config) - return err -{{endif}} - -{{if 'cuTexRefSetArray' in found_functions}} - -cdef CUresult _cuTexRefSetArray(CUtexref hTexRef, CUarray hArray, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuTexRefSetArray - cuPythonInit() - if __cuTexRefSetArray == NULL: - with gil: - raise RuntimeError('Function "cuTexRefSetArray" not found') - err = ( __cuTexRefSetArray)(hTexRef, hArray, Flags) - return err -{{endif}} - -{{if 'cuTexRefSetMipmappedArray' in found_functions}} - -cdef CUresult _cuTexRefSetMipmappedArray(CUtexref hTexRef, CUmipmappedArray hMipmappedArray, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuTexRefSetMipmappedArray - cuPythonInit() - if __cuTexRefSetMipmappedArray == NULL: - with gil: - raise RuntimeError('Function "cuTexRefSetMipmappedArray" not found') - err = ( __cuTexRefSetMipmappedArray)(hTexRef, hMipmappedArray, Flags) - return err -{{endif}} - -{{if 'cuTexRefSetAddress_v2' in found_functions}} - -cdef CUresult _cuTexRefSetAddress_v2(size_t* ByteOffset, CUtexref hTexRef, CUdeviceptr dptr, size_t numbytes) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuTexRefSetAddress_v2 - cuPythonInit() - if __cuTexRefSetAddress_v2 == NULL: - with gil: - raise RuntimeError('Function "cuTexRefSetAddress_v2" not found') - err = ( __cuTexRefSetAddress_v2)(ByteOffset, hTexRef, dptr, numbytes) - return err -{{endif}} - -{{if 'cuTexRefSetAddress2D_v3' in found_functions}} - -cdef CUresult _cuTexRefSetAddress2D_v3(CUtexref hTexRef, const CUDA_ARRAY_DESCRIPTOR* desc, CUdeviceptr dptr, size_t Pitch) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuTexRefSetAddress2D_v3 - cuPythonInit() - if __cuTexRefSetAddress2D_v3 == NULL: - with gil: - raise RuntimeError('Function "cuTexRefSetAddress2D_v3" not found') - err = ( __cuTexRefSetAddress2D_v3)(hTexRef, desc, dptr, Pitch) - return err -{{endif}} - -{{if 'cuTexRefSetFormat' in found_functions}} - -cdef CUresult _cuTexRefSetFormat(CUtexref hTexRef, CUarray_format fmt, int NumPackedComponents) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuTexRefSetFormat - cuPythonInit() - if __cuTexRefSetFormat == NULL: - with gil: - raise RuntimeError('Function "cuTexRefSetFormat" not found') - err = ( __cuTexRefSetFormat)(hTexRef, fmt, NumPackedComponents) - return err -{{endif}} - -{{if 'cuTexRefSetAddressMode' in found_functions}} - -cdef CUresult _cuTexRefSetAddressMode(CUtexref hTexRef, int dim, CUaddress_mode am) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuTexRefSetAddressMode - cuPythonInit() - if __cuTexRefSetAddressMode == NULL: - with gil: - raise RuntimeError('Function "cuTexRefSetAddressMode" not found') - err = ( __cuTexRefSetAddressMode)(hTexRef, dim, am) - return err -{{endif}} - -{{if 'cuTexRefSetFilterMode' in found_functions}} - -cdef CUresult _cuTexRefSetFilterMode(CUtexref hTexRef, CUfilter_mode fm) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuTexRefSetFilterMode - cuPythonInit() - if __cuTexRefSetFilterMode == NULL: - with gil: - raise RuntimeError('Function "cuTexRefSetFilterMode" not found') - err = ( __cuTexRefSetFilterMode)(hTexRef, fm) - return err -{{endif}} - -{{if 'cuTexRefSetMipmapFilterMode' in found_functions}} - -cdef CUresult _cuTexRefSetMipmapFilterMode(CUtexref hTexRef, CUfilter_mode fm) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuTexRefSetMipmapFilterMode - cuPythonInit() - if __cuTexRefSetMipmapFilterMode == NULL: - with gil: - raise RuntimeError('Function "cuTexRefSetMipmapFilterMode" not found') - err = ( __cuTexRefSetMipmapFilterMode)(hTexRef, fm) - return err -{{endif}} - -{{if 'cuTexRefSetMipmapLevelBias' in found_functions}} - -cdef CUresult _cuTexRefSetMipmapLevelBias(CUtexref hTexRef, float bias) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuTexRefSetMipmapLevelBias - cuPythonInit() - if __cuTexRefSetMipmapLevelBias == NULL: - with gil: - raise RuntimeError('Function "cuTexRefSetMipmapLevelBias" not found') - err = ( __cuTexRefSetMipmapLevelBias)(hTexRef, bias) - return err -{{endif}} - -{{if 'cuTexRefSetMipmapLevelClamp' in found_functions}} - -cdef CUresult _cuTexRefSetMipmapLevelClamp(CUtexref hTexRef, float minMipmapLevelClamp, float maxMipmapLevelClamp) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuTexRefSetMipmapLevelClamp - cuPythonInit() - if __cuTexRefSetMipmapLevelClamp == NULL: - with gil: - raise RuntimeError('Function "cuTexRefSetMipmapLevelClamp" not found') - err = ( __cuTexRefSetMipmapLevelClamp)(hTexRef, minMipmapLevelClamp, maxMipmapLevelClamp) - return err -{{endif}} - -{{if 'cuTexRefSetMaxAnisotropy' in found_functions}} - -cdef CUresult _cuTexRefSetMaxAnisotropy(CUtexref hTexRef, unsigned int maxAniso) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuTexRefSetMaxAnisotropy - cuPythonInit() - if __cuTexRefSetMaxAnisotropy == NULL: - with gil: - raise RuntimeError('Function "cuTexRefSetMaxAnisotropy" not found') - err = ( __cuTexRefSetMaxAnisotropy)(hTexRef, maxAniso) - return err -{{endif}} - -{{if 'cuTexRefSetBorderColor' in found_functions}} - -cdef CUresult _cuTexRefSetBorderColor(CUtexref hTexRef, float* pBorderColor) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuTexRefSetBorderColor - cuPythonInit() - if __cuTexRefSetBorderColor == NULL: - with gil: - raise RuntimeError('Function "cuTexRefSetBorderColor" not found') - err = ( __cuTexRefSetBorderColor)(hTexRef, pBorderColor) - return err -{{endif}} - -{{if 'cuTexRefSetFlags' in found_functions}} - -cdef CUresult _cuTexRefSetFlags(CUtexref hTexRef, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuTexRefSetFlags - cuPythonInit() - if __cuTexRefSetFlags == NULL: - with gil: - raise RuntimeError('Function "cuTexRefSetFlags" not found') - err = ( __cuTexRefSetFlags)(hTexRef, Flags) - return err -{{endif}} - -{{if 'cuTexRefGetAddress_v2' in found_functions}} - -cdef CUresult _cuTexRefGetAddress_v2(CUdeviceptr* pdptr, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuTexRefGetAddress_v2 - cuPythonInit() - if __cuTexRefGetAddress_v2 == NULL: - with gil: - raise RuntimeError('Function "cuTexRefGetAddress_v2" not found') - err = ( __cuTexRefGetAddress_v2)(pdptr, hTexRef) - return err -{{endif}} - -{{if 'cuTexRefGetArray' in found_functions}} - -cdef CUresult _cuTexRefGetArray(CUarray* phArray, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuTexRefGetArray - cuPythonInit() - if __cuTexRefGetArray == NULL: - with gil: - raise RuntimeError('Function "cuTexRefGetArray" not found') - err = ( __cuTexRefGetArray)(phArray, hTexRef) - return err -{{endif}} - -{{if 'cuTexRefGetMipmappedArray' in found_functions}} - -cdef CUresult _cuTexRefGetMipmappedArray(CUmipmappedArray* phMipmappedArray, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuTexRefGetMipmappedArray - cuPythonInit() - if __cuTexRefGetMipmappedArray == NULL: - with gil: - raise RuntimeError('Function "cuTexRefGetMipmappedArray" not found') - err = ( __cuTexRefGetMipmappedArray)(phMipmappedArray, hTexRef) - return err -{{endif}} - -{{if 'cuTexRefGetAddressMode' in found_functions}} - -cdef CUresult _cuTexRefGetAddressMode(CUaddress_mode* pam, CUtexref hTexRef, int dim) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuTexRefGetAddressMode - cuPythonInit() - if __cuTexRefGetAddressMode == NULL: - with gil: - raise RuntimeError('Function "cuTexRefGetAddressMode" not found') - err = ( __cuTexRefGetAddressMode)(pam, hTexRef, dim) - return err -{{endif}} - -{{if 'cuTexRefGetFilterMode' in found_functions}} - -cdef CUresult _cuTexRefGetFilterMode(CUfilter_mode* pfm, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuTexRefGetFilterMode - cuPythonInit() - if __cuTexRefGetFilterMode == NULL: - with gil: - raise RuntimeError('Function "cuTexRefGetFilterMode" not found') - err = ( __cuTexRefGetFilterMode)(pfm, hTexRef) - return err -{{endif}} - -{{if 'cuTexRefGetFormat' in found_functions}} - -cdef CUresult _cuTexRefGetFormat(CUarray_format* pFormat, int* pNumChannels, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuTexRefGetFormat - cuPythonInit() - if __cuTexRefGetFormat == NULL: - with gil: - raise RuntimeError('Function "cuTexRefGetFormat" not found') - err = ( __cuTexRefGetFormat)(pFormat, pNumChannels, hTexRef) - return err -{{endif}} - -{{if 'cuTexRefGetMipmapFilterMode' in found_functions}} - -cdef CUresult _cuTexRefGetMipmapFilterMode(CUfilter_mode* pfm, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuTexRefGetMipmapFilterMode - cuPythonInit() - if __cuTexRefGetMipmapFilterMode == NULL: - with gil: - raise RuntimeError('Function "cuTexRefGetMipmapFilterMode" not found') - err = ( __cuTexRefGetMipmapFilterMode)(pfm, hTexRef) - return err -{{endif}} - -{{if 'cuTexRefGetMipmapLevelBias' in found_functions}} - -cdef CUresult _cuTexRefGetMipmapLevelBias(float* pbias, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuTexRefGetMipmapLevelBias - cuPythonInit() - if __cuTexRefGetMipmapLevelBias == NULL: - with gil: - raise RuntimeError('Function "cuTexRefGetMipmapLevelBias" not found') - err = ( __cuTexRefGetMipmapLevelBias)(pbias, hTexRef) - return err -{{endif}} - -{{if 'cuTexRefGetMipmapLevelClamp' in found_functions}} - -cdef CUresult _cuTexRefGetMipmapLevelClamp(float* pminMipmapLevelClamp, float* pmaxMipmapLevelClamp, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuTexRefGetMipmapLevelClamp - cuPythonInit() - if __cuTexRefGetMipmapLevelClamp == NULL: - with gil: - raise RuntimeError('Function "cuTexRefGetMipmapLevelClamp" not found') - err = ( __cuTexRefGetMipmapLevelClamp)(pminMipmapLevelClamp, pmaxMipmapLevelClamp, hTexRef) - return err -{{endif}} - -{{if 'cuTexRefGetMaxAnisotropy' in found_functions}} - -cdef CUresult _cuTexRefGetMaxAnisotropy(int* pmaxAniso, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuTexRefGetMaxAnisotropy - cuPythonInit() - if __cuTexRefGetMaxAnisotropy == NULL: - with gil: - raise RuntimeError('Function "cuTexRefGetMaxAnisotropy" not found') - err = ( __cuTexRefGetMaxAnisotropy)(pmaxAniso, hTexRef) - return err -{{endif}} - -{{if 'cuTexRefGetBorderColor' in found_functions}} - -cdef CUresult _cuTexRefGetBorderColor(float* pBorderColor, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuTexRefGetBorderColor - cuPythonInit() - if __cuTexRefGetBorderColor == NULL: - with gil: - raise RuntimeError('Function "cuTexRefGetBorderColor" not found') - err = ( __cuTexRefGetBorderColor)(pBorderColor, hTexRef) - return err -{{endif}} - -{{if 'cuTexRefGetFlags' in found_functions}} - -cdef CUresult _cuTexRefGetFlags(unsigned int* pFlags, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuTexRefGetFlags - cuPythonInit() - if __cuTexRefGetFlags == NULL: - with gil: - raise RuntimeError('Function "cuTexRefGetFlags" not found') - err = ( __cuTexRefGetFlags)(pFlags, hTexRef) - return err -{{endif}} - -{{if 'cuTexRefCreate' in found_functions}} - -cdef CUresult _cuTexRefCreate(CUtexref* pTexRef) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuTexRefCreate - cuPythonInit() - if __cuTexRefCreate == NULL: - with gil: - raise RuntimeError('Function "cuTexRefCreate" not found') - err = ( __cuTexRefCreate)(pTexRef) - return err -{{endif}} - -{{if 'cuTexRefDestroy' in found_functions}} - -cdef CUresult _cuTexRefDestroy(CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuTexRefDestroy - cuPythonInit() - if __cuTexRefDestroy == NULL: - with gil: - raise RuntimeError('Function "cuTexRefDestroy" not found') - err = ( __cuTexRefDestroy)(hTexRef) - return err -{{endif}} - -{{if 'cuSurfRefSetArray' in found_functions}} - -cdef CUresult _cuSurfRefSetArray(CUsurfref hSurfRef, CUarray hArray, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuSurfRefSetArray - cuPythonInit() - if __cuSurfRefSetArray == NULL: - with gil: - raise RuntimeError('Function "cuSurfRefSetArray" not found') - err = ( __cuSurfRefSetArray)(hSurfRef, hArray, Flags) - return err -{{endif}} - -{{if 'cuSurfRefGetArray' in found_functions}} - -cdef CUresult _cuSurfRefGetArray(CUarray* phArray, CUsurfref hSurfRef) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuSurfRefGetArray - cuPythonInit() - if __cuSurfRefGetArray == NULL: - with gil: - raise RuntimeError('Function "cuSurfRefGetArray" not found') - err = ( __cuSurfRefGetArray)(phArray, hSurfRef) - return err -{{endif}} - -{{if 'cuTexObjectCreate' in found_functions}} - -cdef CUresult _cuTexObjectCreate(CUtexObject* pTexObject, const CUDA_RESOURCE_DESC* pResDesc, const CUDA_TEXTURE_DESC* pTexDesc, const CUDA_RESOURCE_VIEW_DESC* pResViewDesc) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuTexObjectCreate - cuPythonInit() - if __cuTexObjectCreate == NULL: - with gil: - raise RuntimeError('Function "cuTexObjectCreate" not found') - err = ( __cuTexObjectCreate)(pTexObject, pResDesc, pTexDesc, pResViewDesc) - return err -{{endif}} - -{{if 'cuTexObjectDestroy' in found_functions}} - -cdef CUresult _cuTexObjectDestroy(CUtexObject texObject) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuTexObjectDestroy - cuPythonInit() - if __cuTexObjectDestroy == NULL: - with gil: - raise RuntimeError('Function "cuTexObjectDestroy" not found') - err = ( __cuTexObjectDestroy)(texObject) - return err -{{endif}} - -{{if 'cuTexObjectGetResourceDesc' in found_functions}} - -cdef CUresult _cuTexObjectGetResourceDesc(CUDA_RESOURCE_DESC* pResDesc, CUtexObject texObject) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuTexObjectGetResourceDesc - cuPythonInit() - if __cuTexObjectGetResourceDesc == NULL: - with gil: - raise RuntimeError('Function "cuTexObjectGetResourceDesc" not found') - err = ( __cuTexObjectGetResourceDesc)(pResDesc, texObject) - return err -{{endif}} - -{{if 'cuTexObjectGetTextureDesc' in found_functions}} - -cdef CUresult _cuTexObjectGetTextureDesc(CUDA_TEXTURE_DESC* pTexDesc, CUtexObject texObject) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuTexObjectGetTextureDesc - cuPythonInit() - if __cuTexObjectGetTextureDesc == NULL: - with gil: - raise RuntimeError('Function "cuTexObjectGetTextureDesc" not found') - err = ( __cuTexObjectGetTextureDesc)(pTexDesc, texObject) - return err -{{endif}} - -{{if 'cuTexObjectGetResourceViewDesc' in found_functions}} - -cdef CUresult _cuTexObjectGetResourceViewDesc(CUDA_RESOURCE_VIEW_DESC* pResViewDesc, CUtexObject texObject) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuTexObjectGetResourceViewDesc - cuPythonInit() - if __cuTexObjectGetResourceViewDesc == NULL: - with gil: - raise RuntimeError('Function "cuTexObjectGetResourceViewDesc" not found') - err = ( __cuTexObjectGetResourceViewDesc)(pResViewDesc, texObject) - return err -{{endif}} - -{{if 'cuSurfObjectCreate' in found_functions}} - -cdef CUresult _cuSurfObjectCreate(CUsurfObject* pSurfObject, const CUDA_RESOURCE_DESC* pResDesc) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuSurfObjectCreate - cuPythonInit() - if __cuSurfObjectCreate == NULL: - with gil: - raise RuntimeError('Function "cuSurfObjectCreate" not found') - err = ( __cuSurfObjectCreate)(pSurfObject, pResDesc) - return err -{{endif}} - -{{if 'cuSurfObjectDestroy' in found_functions}} - -cdef CUresult _cuSurfObjectDestroy(CUsurfObject surfObject) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuSurfObjectDestroy - cuPythonInit() - if __cuSurfObjectDestroy == NULL: - with gil: - raise RuntimeError('Function "cuSurfObjectDestroy" not found') - err = ( __cuSurfObjectDestroy)(surfObject) - return err -{{endif}} - -{{if 'cuSurfObjectGetResourceDesc' in found_functions}} - -cdef CUresult _cuSurfObjectGetResourceDesc(CUDA_RESOURCE_DESC* pResDesc, CUsurfObject surfObject) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuSurfObjectGetResourceDesc - cuPythonInit() - if __cuSurfObjectGetResourceDesc == NULL: - with gil: - raise RuntimeError('Function "cuSurfObjectGetResourceDesc" not found') - err = ( __cuSurfObjectGetResourceDesc)(pResDesc, surfObject) - return err -{{endif}} - -{{if 'cuTensorMapEncodeTiled' in found_functions}} - -cdef CUresult _cuTensorMapEncodeTiled(CUtensorMap* tensorMap, CUtensorMapDataType tensorDataType, cuuint32_t tensorRank, void* globalAddress, const cuuint64_t* globalDim, const cuuint64_t* globalStrides, const cuuint32_t* boxDim, const cuuint32_t* elementStrides, CUtensorMapInterleave interleave, CUtensorMapSwizzle swizzle, CUtensorMapL2promotion l2Promotion, CUtensorMapFloatOOBfill oobFill) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuTensorMapEncodeTiled - cuPythonInit() - if __cuTensorMapEncodeTiled == NULL: - with gil: - raise RuntimeError('Function "cuTensorMapEncodeTiled" not found') - err = ( __cuTensorMapEncodeTiled)(tensorMap, tensorDataType, tensorRank, globalAddress, globalDim, globalStrides, boxDim, elementStrides, interleave, swizzle, l2Promotion, oobFill) - return err -{{endif}} - -{{if 'cuTensorMapEncodeIm2col' in found_functions}} - -cdef CUresult _cuTensorMapEncodeIm2col(CUtensorMap* tensorMap, CUtensorMapDataType tensorDataType, cuuint32_t tensorRank, void* globalAddress, const cuuint64_t* globalDim, const cuuint64_t* globalStrides, const int* pixelBoxLowerCorner, const int* pixelBoxUpperCorner, cuuint32_t channelsPerPixel, cuuint32_t pixelsPerColumn, const cuuint32_t* elementStrides, CUtensorMapInterleave interleave, CUtensorMapSwizzle swizzle, CUtensorMapL2promotion l2Promotion, CUtensorMapFloatOOBfill oobFill) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuTensorMapEncodeIm2col - cuPythonInit() - if __cuTensorMapEncodeIm2col == NULL: - with gil: - raise RuntimeError('Function "cuTensorMapEncodeIm2col" not found') - err = ( __cuTensorMapEncodeIm2col)(tensorMap, tensorDataType, tensorRank, globalAddress, globalDim, globalStrides, pixelBoxLowerCorner, pixelBoxUpperCorner, channelsPerPixel, pixelsPerColumn, elementStrides, interleave, swizzle, l2Promotion, oobFill) - return err -{{endif}} - -{{if 'cuTensorMapEncodeIm2colWide' in found_functions}} - -cdef CUresult _cuTensorMapEncodeIm2colWide(CUtensorMap* tensorMap, CUtensorMapDataType tensorDataType, cuuint32_t tensorRank, void* globalAddress, const cuuint64_t* globalDim, const cuuint64_t* globalStrides, int pixelBoxLowerCornerWidth, int pixelBoxUpperCornerWidth, cuuint32_t channelsPerPixel, cuuint32_t pixelsPerColumn, const cuuint32_t* elementStrides, CUtensorMapInterleave interleave, CUtensorMapIm2ColWideMode mode, CUtensorMapSwizzle swizzle, CUtensorMapL2promotion l2Promotion, CUtensorMapFloatOOBfill oobFill) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuTensorMapEncodeIm2colWide - cuPythonInit() - if __cuTensorMapEncodeIm2colWide == NULL: - with gil: - raise RuntimeError('Function "cuTensorMapEncodeIm2colWide" not found') - err = ( __cuTensorMapEncodeIm2colWide)(tensorMap, tensorDataType, tensorRank, globalAddress, globalDim, globalStrides, pixelBoxLowerCornerWidth, pixelBoxUpperCornerWidth, channelsPerPixel, pixelsPerColumn, elementStrides, interleave, mode, swizzle, l2Promotion, oobFill) - return err -{{endif}} - -{{if 'cuTensorMapReplaceAddress' in found_functions}} - -cdef CUresult _cuTensorMapReplaceAddress(CUtensorMap* tensorMap, void* globalAddress) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuTensorMapReplaceAddress - cuPythonInit() - if __cuTensorMapReplaceAddress == NULL: - with gil: - raise RuntimeError('Function "cuTensorMapReplaceAddress" not found') - err = ( __cuTensorMapReplaceAddress)(tensorMap, globalAddress) - return err -{{endif}} - -{{if 'cuDeviceCanAccessPeer' in found_functions}} - -cdef CUresult _cuDeviceCanAccessPeer(int* canAccessPeer, CUdevice dev, CUdevice peerDev) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuDeviceCanAccessPeer - cuPythonInit() - if __cuDeviceCanAccessPeer == NULL: - with gil: - raise RuntimeError('Function "cuDeviceCanAccessPeer" not found') - err = ( __cuDeviceCanAccessPeer)(canAccessPeer, dev, peerDev) - return err -{{endif}} - -{{if 'cuCtxEnablePeerAccess' in found_functions}} - -cdef CUresult _cuCtxEnablePeerAccess(CUcontext peerContext, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuCtxEnablePeerAccess - cuPythonInit() - if __cuCtxEnablePeerAccess == NULL: - with gil: - raise RuntimeError('Function "cuCtxEnablePeerAccess" not found') - err = ( __cuCtxEnablePeerAccess)(peerContext, Flags) - return err -{{endif}} - -{{if 'cuCtxDisablePeerAccess' in found_functions}} - -cdef CUresult _cuCtxDisablePeerAccess(CUcontext peerContext) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuCtxDisablePeerAccess - cuPythonInit() - if __cuCtxDisablePeerAccess == NULL: - with gil: - raise RuntimeError('Function "cuCtxDisablePeerAccess" not found') - err = ( __cuCtxDisablePeerAccess)(peerContext) - return err -{{endif}} - -{{if 'cuDeviceGetP2PAttribute' in found_functions}} - -cdef CUresult _cuDeviceGetP2PAttribute(int* value, CUdevice_P2PAttribute attrib, CUdevice srcDevice, CUdevice dstDevice) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuDeviceGetP2PAttribute - cuPythonInit() - if __cuDeviceGetP2PAttribute == NULL: - with gil: - raise RuntimeError('Function "cuDeviceGetP2PAttribute" not found') - err = ( __cuDeviceGetP2PAttribute)(value, attrib, srcDevice, dstDevice) - return err -{{endif}} - -{{if 'cuDeviceGetP2PAtomicCapabilities' in found_functions}} - -cdef CUresult _cuDeviceGetP2PAtomicCapabilities(unsigned int* capabilities, const CUatomicOperation* operations, unsigned int count, CUdevice srcDevice, CUdevice dstDevice) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuDeviceGetP2PAtomicCapabilities - cuPythonInit() - if __cuDeviceGetP2PAtomicCapabilities == NULL: - with gil: - raise RuntimeError('Function "cuDeviceGetP2PAtomicCapabilities" not found') - err = ( __cuDeviceGetP2PAtomicCapabilities)(capabilities, operations, count, srcDevice, dstDevice) - return err -{{endif}} - -{{if 'cuGraphicsUnregisterResource' in found_functions}} - -cdef CUresult _cuGraphicsUnregisterResource(CUgraphicsResource resource) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGraphicsUnregisterResource - cuPythonInit() - if __cuGraphicsUnregisterResource == NULL: - with gil: - raise RuntimeError('Function "cuGraphicsUnregisterResource" not found') - err = ( __cuGraphicsUnregisterResource)(resource) - return err -{{endif}} - -{{if 'cuGraphicsSubResourceGetMappedArray' in found_functions}} - -cdef CUresult _cuGraphicsSubResourceGetMappedArray(CUarray* pArray, CUgraphicsResource resource, unsigned int arrayIndex, unsigned int mipLevel) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGraphicsSubResourceGetMappedArray - cuPythonInit() - if __cuGraphicsSubResourceGetMappedArray == NULL: - with gil: - raise RuntimeError('Function "cuGraphicsSubResourceGetMappedArray" not found') - err = ( __cuGraphicsSubResourceGetMappedArray)(pArray, resource, arrayIndex, mipLevel) - return err -{{endif}} - -{{if 'cuGraphicsResourceGetMappedMipmappedArray' in found_functions}} - -cdef CUresult _cuGraphicsResourceGetMappedMipmappedArray(CUmipmappedArray* pMipmappedArray, CUgraphicsResource resource) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGraphicsResourceGetMappedMipmappedArray - cuPythonInit() - if __cuGraphicsResourceGetMappedMipmappedArray == NULL: - with gil: - raise RuntimeError('Function "cuGraphicsResourceGetMappedMipmappedArray" not found') - err = ( __cuGraphicsResourceGetMappedMipmappedArray)(pMipmappedArray, resource) - return err -{{endif}} - -{{if 'cuGraphicsResourceGetMappedPointer_v2' in found_functions}} - -cdef CUresult _cuGraphicsResourceGetMappedPointer_v2(CUdeviceptr* pDevPtr, size_t* pSize, CUgraphicsResource resource) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGraphicsResourceGetMappedPointer_v2 - cuPythonInit() - if __cuGraphicsResourceGetMappedPointer_v2 == NULL: - with gil: - raise RuntimeError('Function "cuGraphicsResourceGetMappedPointer_v2" not found') - err = ( __cuGraphicsResourceGetMappedPointer_v2)(pDevPtr, pSize, resource) - return err -{{endif}} - -{{if 'cuGraphicsResourceSetMapFlags_v2' in found_functions}} - -cdef CUresult _cuGraphicsResourceSetMapFlags_v2(CUgraphicsResource resource, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGraphicsResourceSetMapFlags_v2 - cuPythonInit() - if __cuGraphicsResourceSetMapFlags_v2 == NULL: - with gil: - raise RuntimeError('Function "cuGraphicsResourceSetMapFlags_v2" not found') - err = ( __cuGraphicsResourceSetMapFlags_v2)(resource, flags) - return err -{{endif}} - -{{if 'cuGraphicsMapResources' in found_functions}} - -cdef CUresult _cuGraphicsMapResources(unsigned int count, CUgraphicsResource* resources, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGraphicsMapResources - cuPythonInit() - if __cuGraphicsMapResources == NULL: - with gil: - raise RuntimeError('Function "cuGraphicsMapResources" not found') - err = ( __cuGraphicsMapResources)(count, resources, hStream) - return err -{{endif}} - -{{if 'cuGraphicsUnmapResources' in found_functions}} - -cdef CUresult _cuGraphicsUnmapResources(unsigned int count, CUgraphicsResource* resources, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGraphicsUnmapResources - cuPythonInit() - if __cuGraphicsUnmapResources == NULL: - with gil: - raise RuntimeError('Function "cuGraphicsUnmapResources" not found') - err = ( __cuGraphicsUnmapResources)(count, resources, hStream) - return err -{{endif}} - -{{if 'cuGetProcAddress_v2' in found_functions}} - -cdef CUresult _cuGetProcAddress_v2(const char* symbol, void** pfn, int cudaVersion, cuuint64_t flags, CUdriverProcAddressQueryResult* symbolStatus) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGetProcAddress_v2 - cuPythonInit() - if __cuGetProcAddress_v2 == NULL: - with gil: - raise RuntimeError('Function "cuGetProcAddress_v2" not found') - err = ( __cuGetProcAddress_v2)(symbol, pfn, cudaVersion, flags, symbolStatus) - return err -{{endif}} - -{{if 'cuCoredumpGetAttribute' in found_functions}} - -cdef CUresult _cuCoredumpGetAttribute(CUcoredumpSettings attrib, void* value, size_t* size) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuCoredumpGetAttribute - cuPythonInit() - if __cuCoredumpGetAttribute == NULL: - with gil: - raise RuntimeError('Function "cuCoredumpGetAttribute" not found') - err = ( __cuCoredumpGetAttribute)(attrib, value, size) - return err -{{endif}} - -{{if 'cuCoredumpGetAttributeGlobal' in found_functions}} - -cdef CUresult _cuCoredumpGetAttributeGlobal(CUcoredumpSettings attrib, void* value, size_t* size) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuCoredumpGetAttributeGlobal - cuPythonInit() - if __cuCoredumpGetAttributeGlobal == NULL: - with gil: - raise RuntimeError('Function "cuCoredumpGetAttributeGlobal" not found') - err = ( __cuCoredumpGetAttributeGlobal)(attrib, value, size) - return err -{{endif}} - -{{if 'cuCoredumpSetAttribute' in found_functions}} - -cdef CUresult _cuCoredumpSetAttribute(CUcoredumpSettings attrib, void* value, size_t* size) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuCoredumpSetAttribute - cuPythonInit() - if __cuCoredumpSetAttribute == NULL: - with gil: - raise RuntimeError('Function "cuCoredumpSetAttribute" not found') - err = ( __cuCoredumpSetAttribute)(attrib, value, size) - return err -{{endif}} - -{{if 'cuCoredumpSetAttributeGlobal' in found_functions}} - -cdef CUresult _cuCoredumpSetAttributeGlobal(CUcoredumpSettings attrib, void* value, size_t* size) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuCoredumpSetAttributeGlobal - cuPythonInit() - if __cuCoredumpSetAttributeGlobal == NULL: - with gil: - raise RuntimeError('Function "cuCoredumpSetAttributeGlobal" not found') - err = ( __cuCoredumpSetAttributeGlobal)(attrib, value, size) - return err -{{endif}} - -{{if 'cuCoredumpRegisterStartCallback' in found_functions}} - -cdef CUresult _cuCoredumpRegisterStartCallback(CUcoredumpStatusCallback callback, void* userData, CUcoredumpCallbackHandle* callbackOut) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuCoredumpRegisterStartCallback - cuPythonInit() - if __cuCoredumpRegisterStartCallback == NULL: - with gil: - raise RuntimeError('Function "cuCoredumpRegisterStartCallback" not found') - err = ( __cuCoredumpRegisterStartCallback)(callback, userData, callbackOut) - return err -{{endif}} - -{{if 'cuCoredumpRegisterCompleteCallback' in found_functions}} - -cdef CUresult _cuCoredumpRegisterCompleteCallback(CUcoredumpStatusCallback callback, void* userData, CUcoredumpCallbackHandle* callbackOut) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuCoredumpRegisterCompleteCallback - cuPythonInit() - if __cuCoredumpRegisterCompleteCallback == NULL: - with gil: - raise RuntimeError('Function "cuCoredumpRegisterCompleteCallback" not found') - err = ( __cuCoredumpRegisterCompleteCallback)(callback, userData, callbackOut) - return err -{{endif}} - -{{if 'cuCoredumpDeregisterStartCallback' in found_functions}} - -cdef CUresult _cuCoredumpDeregisterStartCallback(CUcoredumpCallbackHandle callback) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuCoredumpDeregisterStartCallback - cuPythonInit() - if __cuCoredumpDeregisterStartCallback == NULL: - with gil: - raise RuntimeError('Function "cuCoredumpDeregisterStartCallback" not found') - err = ( __cuCoredumpDeregisterStartCallback)(callback) - return err -{{endif}} - -{{if 'cuCoredumpDeregisterCompleteCallback' in found_functions}} - -cdef CUresult _cuCoredumpDeregisterCompleteCallback(CUcoredumpCallbackHandle callback) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuCoredumpDeregisterCompleteCallback - cuPythonInit() - if __cuCoredumpDeregisterCompleteCallback == NULL: - with gil: - raise RuntimeError('Function "cuCoredumpDeregisterCompleteCallback" not found') - err = ( __cuCoredumpDeregisterCompleteCallback)(callback) - return err -{{endif}} - -{{if 'cuGetExportTable' in found_functions}} - -cdef CUresult _cuGetExportTable(const void** ppExportTable, const CUuuid* pExportTableId) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGetExportTable - cuPythonInit() - if __cuGetExportTable == NULL: - with gil: - raise RuntimeError('Function "cuGetExportTable" not found') - err = ( __cuGetExportTable)(ppExportTable, pExportTableId) - return err -{{endif}} - -{{if 'cuGreenCtxCreate' in found_functions}} - -cdef CUresult _cuGreenCtxCreate(CUgreenCtx* phCtx, CUdevResourceDesc desc, CUdevice dev, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGreenCtxCreate - cuPythonInit() - if __cuGreenCtxCreate == NULL: - with gil: - raise RuntimeError('Function "cuGreenCtxCreate" not found') - err = ( __cuGreenCtxCreate)(phCtx, desc, dev, flags) - return err -{{endif}} - -{{if 'cuGreenCtxDestroy' in found_functions}} - -cdef CUresult _cuGreenCtxDestroy(CUgreenCtx hCtx) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGreenCtxDestroy - cuPythonInit() - if __cuGreenCtxDestroy == NULL: - with gil: - raise RuntimeError('Function "cuGreenCtxDestroy" not found') - err = ( __cuGreenCtxDestroy)(hCtx) - return err -{{endif}} - -{{if 'cuCtxFromGreenCtx' in found_functions}} - -cdef CUresult _cuCtxFromGreenCtx(CUcontext* pContext, CUgreenCtx hCtx) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuCtxFromGreenCtx - cuPythonInit() - if __cuCtxFromGreenCtx == NULL: - with gil: - raise RuntimeError('Function "cuCtxFromGreenCtx" not found') - err = ( __cuCtxFromGreenCtx)(pContext, hCtx) - return err -{{endif}} - -{{if 'cuDeviceGetDevResource' in found_functions}} - -cdef CUresult _cuDeviceGetDevResource(CUdevice device, CUdevResource* resource, CUdevResourceType typename) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuDeviceGetDevResource - cuPythonInit() - if __cuDeviceGetDevResource == NULL: - with gil: - raise RuntimeError('Function "cuDeviceGetDevResource" not found') - err = ( __cuDeviceGetDevResource)(device, resource, typename) - return err -{{endif}} - -{{if 'cuCtxGetDevResource' in found_functions}} - -cdef CUresult _cuCtxGetDevResource(CUcontext hCtx, CUdevResource* resource, CUdevResourceType typename) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuCtxGetDevResource - cuPythonInit() - if __cuCtxGetDevResource == NULL: - with gil: - raise RuntimeError('Function "cuCtxGetDevResource" not found') - err = ( __cuCtxGetDevResource)(hCtx, resource, typename) - return err -{{endif}} - -{{if 'cuGreenCtxGetDevResource' in found_functions}} - -cdef CUresult _cuGreenCtxGetDevResource(CUgreenCtx hCtx, CUdevResource* resource, CUdevResourceType typename) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGreenCtxGetDevResource - cuPythonInit() - if __cuGreenCtxGetDevResource == NULL: - with gil: - raise RuntimeError('Function "cuGreenCtxGetDevResource" not found') - err = ( __cuGreenCtxGetDevResource)(hCtx, resource, typename) - return err -{{endif}} - -{{if 'cuDevSmResourceSplitByCount' in found_functions}} - -cdef CUresult _cuDevSmResourceSplitByCount(CUdevResource* result, unsigned int* nbGroups, const CUdevResource* input, CUdevResource* remainder, unsigned int flags, unsigned int minCount) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuDevSmResourceSplitByCount - cuPythonInit() - if __cuDevSmResourceSplitByCount == NULL: - with gil: - raise RuntimeError('Function "cuDevSmResourceSplitByCount" not found') - err = ( __cuDevSmResourceSplitByCount)(result, nbGroups, input, remainder, flags, minCount) - return err -{{endif}} - -{{if 'cuDevSmResourceSplit' in found_functions}} - -cdef CUresult _cuDevSmResourceSplit(CUdevResource* result, unsigned int nbGroups, const CUdevResource* input, CUdevResource* remainder, unsigned int flags, CU_DEV_SM_RESOURCE_GROUP_PARAMS* groupParams) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuDevSmResourceSplit - cuPythonInit() - if __cuDevSmResourceSplit == NULL: - with gil: - raise RuntimeError('Function "cuDevSmResourceSplit" not found') - err = ( __cuDevSmResourceSplit)(result, nbGroups, input, remainder, flags, groupParams) - return err -{{endif}} - -{{if 'cuDevResourceGenerateDesc' in found_functions}} - -cdef CUresult _cuDevResourceGenerateDesc(CUdevResourceDesc* phDesc, CUdevResource* resources, unsigned int nbResources) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuDevResourceGenerateDesc - cuPythonInit() - if __cuDevResourceGenerateDesc == NULL: - with gil: - raise RuntimeError('Function "cuDevResourceGenerateDesc" not found') - err = ( __cuDevResourceGenerateDesc)(phDesc, resources, nbResources) - return err -{{endif}} - -{{if 'cuGreenCtxRecordEvent' in found_functions}} - -cdef CUresult _cuGreenCtxRecordEvent(CUgreenCtx hCtx, CUevent hEvent) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGreenCtxRecordEvent - cuPythonInit() - if __cuGreenCtxRecordEvent == NULL: - with gil: - raise RuntimeError('Function "cuGreenCtxRecordEvent" not found') - err = ( __cuGreenCtxRecordEvent)(hCtx, hEvent) - return err -{{endif}} - -{{if 'cuGreenCtxWaitEvent' in found_functions}} - -cdef CUresult _cuGreenCtxWaitEvent(CUgreenCtx hCtx, CUevent hEvent) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGreenCtxWaitEvent - cuPythonInit() - if __cuGreenCtxWaitEvent == NULL: - with gil: - raise RuntimeError('Function "cuGreenCtxWaitEvent" not found') - err = ( __cuGreenCtxWaitEvent)(hCtx, hEvent) - return err -{{endif}} - -{{if 'cuStreamGetGreenCtx' in found_functions}} - -cdef CUresult _cuStreamGetGreenCtx(CUstream hStream, CUgreenCtx* phCtx) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuStreamGetGreenCtx - cuPythonInit() - if __cuStreamGetGreenCtx == NULL: - with gil: - raise RuntimeError('Function "cuStreamGetGreenCtx" not found') - err = ( __cuStreamGetGreenCtx)(hStream, phCtx) - return err -{{endif}} - -{{if 'cuGreenCtxStreamCreate' in found_functions}} - -cdef CUresult _cuGreenCtxStreamCreate(CUstream* phStream, CUgreenCtx greenCtx, unsigned int flags, int priority) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGreenCtxStreamCreate - cuPythonInit() - if __cuGreenCtxStreamCreate == NULL: - with gil: - raise RuntimeError('Function "cuGreenCtxStreamCreate" not found') - err = ( __cuGreenCtxStreamCreate)(phStream, greenCtx, flags, priority) - return err -{{endif}} - -{{if 'cuGreenCtxGetId' in found_functions}} - -cdef CUresult _cuGreenCtxGetId(CUgreenCtx greenCtx, unsigned long long* greenCtxId) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGreenCtxGetId - cuPythonInit() - if __cuGreenCtxGetId == NULL: - with gil: - raise RuntimeError('Function "cuGreenCtxGetId" not found') - err = ( __cuGreenCtxGetId)(greenCtx, greenCtxId) - return err -{{endif}} - -{{if 'cuStreamGetDevResource' in found_functions}} - -cdef CUresult _cuStreamGetDevResource(CUstream hStream, CUdevResource* resource, CUdevResourceType typename) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuStreamGetDevResource - cuPythonInit() - if __cuStreamGetDevResource == NULL: - with gil: - raise RuntimeError('Function "cuStreamGetDevResource" not found') - err = ( __cuStreamGetDevResource)(hStream, resource, typename) - return err -{{endif}} - -{{if 'cuLogsRegisterCallback' in found_functions}} - -cdef CUresult _cuLogsRegisterCallback(CUlogsCallback callbackFunc, void* userData, CUlogsCallbackHandle* callback_out) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuLogsRegisterCallback - cuPythonInit() - if __cuLogsRegisterCallback == NULL: - with gil: - raise RuntimeError('Function "cuLogsRegisterCallback" not found') - err = ( __cuLogsRegisterCallback)(callbackFunc, userData, callback_out) - return err -{{endif}} - -{{if 'cuLogsUnregisterCallback' in found_functions}} - -cdef CUresult _cuLogsUnregisterCallback(CUlogsCallbackHandle callback) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuLogsUnregisterCallback - cuPythonInit() - if __cuLogsUnregisterCallback == NULL: - with gil: - raise RuntimeError('Function "cuLogsUnregisterCallback" not found') - err = ( __cuLogsUnregisterCallback)(callback) - return err -{{endif}} - -{{if 'cuLogsCurrent' in found_functions}} - -cdef CUresult _cuLogsCurrent(CUlogIterator* iterator_out, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuLogsCurrent - cuPythonInit() - if __cuLogsCurrent == NULL: - with gil: - raise RuntimeError('Function "cuLogsCurrent" not found') - err = ( __cuLogsCurrent)(iterator_out, flags) - return err -{{endif}} - -{{if 'cuLogsDumpToFile' in found_functions}} - -cdef CUresult _cuLogsDumpToFile(CUlogIterator* iterator, const char* pathToFile, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuLogsDumpToFile - cuPythonInit() - if __cuLogsDumpToFile == NULL: - with gil: - raise RuntimeError('Function "cuLogsDumpToFile" not found') - err = ( __cuLogsDumpToFile)(iterator, pathToFile, flags) - return err -{{endif}} - -{{if 'cuLogsDumpToMemory' in found_functions}} - -cdef CUresult _cuLogsDumpToMemory(CUlogIterator* iterator, char* buffer, size_t* size, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuLogsDumpToMemory - cuPythonInit() - if __cuLogsDumpToMemory == NULL: - with gil: - raise RuntimeError('Function "cuLogsDumpToMemory" not found') - err = ( __cuLogsDumpToMemory)(iterator, buffer, size, flags) - return err -{{endif}} - -{{if 'cuCheckpointProcessGetRestoreThreadId' in found_functions}} - -cdef CUresult _cuCheckpointProcessGetRestoreThreadId(int pid, int* tid) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuCheckpointProcessGetRestoreThreadId - cuPythonInit() - if __cuCheckpointProcessGetRestoreThreadId == NULL: - with gil: - raise RuntimeError('Function "cuCheckpointProcessGetRestoreThreadId" not found') - err = ( __cuCheckpointProcessGetRestoreThreadId)(pid, tid) - return err -{{endif}} - -{{if 'cuCheckpointProcessGetState' in found_functions}} - -cdef CUresult _cuCheckpointProcessGetState(int pid, CUprocessState* state) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuCheckpointProcessGetState - cuPythonInit() - if __cuCheckpointProcessGetState == NULL: - with gil: - raise RuntimeError('Function "cuCheckpointProcessGetState" not found') - err = ( __cuCheckpointProcessGetState)(pid, state) - return err -{{endif}} - -{{if 'cuCheckpointProcessLock' in found_functions}} - -cdef CUresult _cuCheckpointProcessLock(int pid, CUcheckpointLockArgs* args) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuCheckpointProcessLock - cuPythonInit() - if __cuCheckpointProcessLock == NULL: - with gil: - raise RuntimeError('Function "cuCheckpointProcessLock" not found') - err = ( __cuCheckpointProcessLock)(pid, args) - return err -{{endif}} - -{{if 'cuCheckpointProcessCheckpoint' in found_functions}} - -cdef CUresult _cuCheckpointProcessCheckpoint(int pid, CUcheckpointCheckpointArgs* args) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuCheckpointProcessCheckpoint - cuPythonInit() - if __cuCheckpointProcessCheckpoint == NULL: - with gil: - raise RuntimeError('Function "cuCheckpointProcessCheckpoint" not found') - err = ( __cuCheckpointProcessCheckpoint)(pid, args) - return err -{{endif}} - -{{if 'cuCheckpointProcessRestore' in found_functions}} - -cdef CUresult _cuCheckpointProcessRestore(int pid, CUcheckpointRestoreArgs* args) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuCheckpointProcessRestore - cuPythonInit() - if __cuCheckpointProcessRestore == NULL: - with gil: - raise RuntimeError('Function "cuCheckpointProcessRestore" not found') - err = ( __cuCheckpointProcessRestore)(pid, args) - return err -{{endif}} - -{{if 'cuCheckpointProcessUnlock' in found_functions}} - -cdef CUresult _cuCheckpointProcessUnlock(int pid, CUcheckpointUnlockArgs* args) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuCheckpointProcessUnlock - cuPythonInit() - if __cuCheckpointProcessUnlock == NULL: - with gil: - raise RuntimeError('Function "cuCheckpointProcessUnlock" not found') - err = ( __cuCheckpointProcessUnlock)(pid, args) - return err -{{endif}} - -{{if 'cuProfilerStart' in found_functions}} - -cdef CUresult _cuProfilerStart() except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuProfilerStart - cuPythonInit() - if __cuProfilerStart == NULL: - with gil: - raise RuntimeError('Function "cuProfilerStart" not found') - err = ( __cuProfilerStart)() - return err -{{endif}} - -{{if 'cuProfilerStop' in found_functions}} - -cdef CUresult _cuProfilerStop() except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuProfilerStop - cuPythonInit() - if __cuProfilerStop == NULL: - with gil: - raise RuntimeError('Function "cuProfilerStop" not found') - err = ( __cuProfilerStop)() - return err -{{endif}} - -{{if True}} - -cdef CUresult _cuGraphicsEGLRegisterImage(CUgraphicsResource* pCudaResource, EGLImageKHR image, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGraphicsEGLRegisterImage - cuPythonInit() - if __cuGraphicsEGLRegisterImage == NULL: - with gil: - raise RuntimeError('Function "cuGraphicsEGLRegisterImage" not found') - err = ( __cuGraphicsEGLRegisterImage)(pCudaResource, image, flags) - return err -{{endif}} - -{{if True}} - -cdef CUresult _cuEGLStreamConsumerConnect(CUeglStreamConnection* conn, EGLStreamKHR stream) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuEGLStreamConsumerConnect - cuPythonInit() - if __cuEGLStreamConsumerConnect == NULL: - with gil: - raise RuntimeError('Function "cuEGLStreamConsumerConnect" not found') - err = ( __cuEGLStreamConsumerConnect)(conn, stream) - return err -{{endif}} - -{{if True}} - -cdef CUresult _cuEGLStreamConsumerConnectWithFlags(CUeglStreamConnection* conn, EGLStreamKHR stream, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuEGLStreamConsumerConnectWithFlags - cuPythonInit() - if __cuEGLStreamConsumerConnectWithFlags == NULL: - with gil: - raise RuntimeError('Function "cuEGLStreamConsumerConnectWithFlags" not found') - err = ( __cuEGLStreamConsumerConnectWithFlags)(conn, stream, flags) - return err -{{endif}} - -{{if True}} - -cdef CUresult _cuEGLStreamConsumerDisconnect(CUeglStreamConnection* conn) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuEGLStreamConsumerDisconnect - cuPythonInit() - if __cuEGLStreamConsumerDisconnect == NULL: - with gil: - raise RuntimeError('Function "cuEGLStreamConsumerDisconnect" not found') - err = ( __cuEGLStreamConsumerDisconnect)(conn) - return err -{{endif}} - -{{if True}} - -cdef CUresult _cuEGLStreamConsumerAcquireFrame(CUeglStreamConnection* conn, CUgraphicsResource* pCudaResource, CUstream* pStream, unsigned int timeout) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuEGLStreamConsumerAcquireFrame - cuPythonInit() - if __cuEGLStreamConsumerAcquireFrame == NULL: - with gil: - raise RuntimeError('Function "cuEGLStreamConsumerAcquireFrame" not found') - err = ( __cuEGLStreamConsumerAcquireFrame)(conn, pCudaResource, pStream, timeout) - return err -{{endif}} - -{{if True}} - -cdef CUresult _cuEGLStreamConsumerReleaseFrame(CUeglStreamConnection* conn, CUgraphicsResource pCudaResource, CUstream* pStream) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuEGLStreamConsumerReleaseFrame - cuPythonInit() - if __cuEGLStreamConsumerReleaseFrame == NULL: - with gil: - raise RuntimeError('Function "cuEGLStreamConsumerReleaseFrame" not found') - err = ( __cuEGLStreamConsumerReleaseFrame)(conn, pCudaResource, pStream) - return err -{{endif}} - -{{if True}} - -cdef CUresult _cuEGLStreamProducerConnect(CUeglStreamConnection* conn, EGLStreamKHR stream, EGLint width, EGLint height) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuEGLStreamProducerConnect - cuPythonInit() - if __cuEGLStreamProducerConnect == NULL: - with gil: - raise RuntimeError('Function "cuEGLStreamProducerConnect" not found') - err = ( __cuEGLStreamProducerConnect)(conn, stream, width, height) - return err -{{endif}} - -{{if True}} - -cdef CUresult _cuEGLStreamProducerDisconnect(CUeglStreamConnection* conn) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuEGLStreamProducerDisconnect - cuPythonInit() - if __cuEGLStreamProducerDisconnect == NULL: - with gil: - raise RuntimeError('Function "cuEGLStreamProducerDisconnect" not found') - err = ( __cuEGLStreamProducerDisconnect)(conn) - return err -{{endif}} - -{{if True}} - -cdef CUresult _cuEGLStreamProducerPresentFrame(CUeglStreamConnection* conn, CUeglFrame eglframe, CUstream* pStream) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuEGLStreamProducerPresentFrame - cuPythonInit() - if __cuEGLStreamProducerPresentFrame == NULL: - with gil: - raise RuntimeError('Function "cuEGLStreamProducerPresentFrame" not found') - err = ( __cuEGLStreamProducerPresentFrame)(conn, eglframe, pStream) - return err -{{endif}} - -{{if True}} - -cdef CUresult _cuEGLStreamProducerReturnFrame(CUeglStreamConnection* conn, CUeglFrame* eglframe, CUstream* pStream) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuEGLStreamProducerReturnFrame - cuPythonInit() - if __cuEGLStreamProducerReturnFrame == NULL: - with gil: - raise RuntimeError('Function "cuEGLStreamProducerReturnFrame" not found') - err = ( __cuEGLStreamProducerReturnFrame)(conn, eglframe, pStream) - return err -{{endif}} - -{{if True}} - -cdef CUresult _cuGraphicsResourceGetMappedEglFrame(CUeglFrame* eglFrame, CUgraphicsResource resource, unsigned int index, unsigned int mipLevel) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGraphicsResourceGetMappedEglFrame - cuPythonInit() - if __cuGraphicsResourceGetMappedEglFrame == NULL: - with gil: - raise RuntimeError('Function "cuGraphicsResourceGetMappedEglFrame" not found') - err = ( __cuGraphicsResourceGetMappedEglFrame)(eglFrame, resource, index, mipLevel) - return err -{{endif}} - -{{if True}} - -cdef CUresult _cuEventCreateFromEGLSync(CUevent* phEvent, EGLSyncKHR eglSync, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuEventCreateFromEGLSync - cuPythonInit() - if __cuEventCreateFromEGLSync == NULL: - with gil: - raise RuntimeError('Function "cuEventCreateFromEGLSync" not found') - err = ( __cuEventCreateFromEGLSync)(phEvent, eglSync, flags) - return err -{{endif}} - -{{if True}} - -cdef CUresult _cuGraphicsGLRegisterBuffer(CUgraphicsResource* pCudaResource, GLuint buffer, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGraphicsGLRegisterBuffer - cuPythonInit() - if __cuGraphicsGLRegisterBuffer == NULL: - with gil: - raise RuntimeError('Function "cuGraphicsGLRegisterBuffer" not found') - err = ( __cuGraphicsGLRegisterBuffer)(pCudaResource, buffer, Flags) - return err -{{endif}} - -{{if True}} - -cdef CUresult _cuGraphicsGLRegisterImage(CUgraphicsResource* pCudaResource, GLuint image, GLenum target, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGraphicsGLRegisterImage - cuPythonInit() - if __cuGraphicsGLRegisterImage == NULL: - with gil: - raise RuntimeError('Function "cuGraphicsGLRegisterImage" not found') - err = ( __cuGraphicsGLRegisterImage)(pCudaResource, image, target, Flags) - return err -{{endif}} - -{{if True}} - -cdef CUresult _cuGLGetDevices_v2(unsigned int* pCudaDeviceCount, CUdevice* pCudaDevices, unsigned int cudaDeviceCount, CUGLDeviceList deviceList) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGLGetDevices_v2 - cuPythonInit() - if __cuGLGetDevices_v2 == NULL: - with gil: - raise RuntimeError('Function "cuGLGetDevices_v2" not found') - err = ( __cuGLGetDevices_v2)(pCudaDeviceCount, pCudaDevices, cudaDeviceCount, deviceList) - return err -{{endif}} - -{{if True}} - -cdef CUresult _cuVDPAUGetDevice(CUdevice* pDevice, VdpDevice vdpDevice, VdpGetProcAddress* vdpGetProcAddress) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuVDPAUGetDevice - cuPythonInit() - if __cuVDPAUGetDevice == NULL: - with gil: - raise RuntimeError('Function "cuVDPAUGetDevice" not found') - err = ( __cuVDPAUGetDevice)(pDevice, vdpDevice, vdpGetProcAddress) - return err -{{endif}} - -{{if True}} - -cdef CUresult _cuVDPAUCtxCreate_v2(CUcontext* pCtx, unsigned int flags, CUdevice device, VdpDevice vdpDevice, VdpGetProcAddress* vdpGetProcAddress) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuVDPAUCtxCreate_v2 - cuPythonInit() - if __cuVDPAUCtxCreate_v2 == NULL: - with gil: - raise RuntimeError('Function "cuVDPAUCtxCreate_v2" not found') - err = ( __cuVDPAUCtxCreate_v2)(pCtx, flags, device, vdpDevice, vdpGetProcAddress) - return err -{{endif}} - -{{if True}} - -cdef CUresult _cuGraphicsVDPAURegisterVideoSurface(CUgraphicsResource* pCudaResource, VdpVideoSurface vdpSurface, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGraphicsVDPAURegisterVideoSurface - cuPythonInit() - if __cuGraphicsVDPAURegisterVideoSurface == NULL: - with gil: - raise RuntimeError('Function "cuGraphicsVDPAURegisterVideoSurface" not found') - err = ( __cuGraphicsVDPAURegisterVideoSurface)(pCudaResource, vdpSurface, flags) - return err -{{endif}} - -{{if True}} - -cdef CUresult _cuGraphicsVDPAURegisterOutputSurface(CUgraphicsResource* pCudaResource, VdpOutputSurface vdpSurface, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil: - global __cuGraphicsVDPAURegisterOutputSurface - cuPythonInit() - if __cuGraphicsVDPAURegisterOutputSurface == NULL: - with gil: - raise RuntimeError('Function "cuGraphicsVDPAURegisterOutputSurface" not found') - err = ( __cuGraphicsVDPAURegisterOutputSurface)(pCudaResource, vdpSurface, flags) - return err -{{endif}} - -cdef dict func_ptrs = None - -cpdef dict _inspect_function_pointers(): - global func_ptrs - if func_ptrs is not None: - return func_ptrs - - cuPythonInit() - cdef dict data = {} - - {{if 'cuGetErrorString' in found_functions}} - global __cuGetErrorString - data["__cuGetErrorString"] = __cuGetErrorString - {{else}} - data["__cuGetErrorString"] = 0 - {{endif}} - - {{if 'cuGetErrorName' in found_functions}} - global __cuGetErrorName - data["__cuGetErrorName"] = __cuGetErrorName - {{else}} - data["__cuGetErrorName"] = 0 - {{endif}} - - {{if 'cuInit' in found_functions}} - global __cuInit - data["__cuInit"] = __cuInit - {{else}} - data["__cuInit"] = 0 - {{endif}} - - {{if 'cuDriverGetVersion' in found_functions}} - global __cuDriverGetVersion - data["__cuDriverGetVersion"] = __cuDriverGetVersion - {{else}} - data["__cuDriverGetVersion"] = 0 - {{endif}} - - {{if 'cuDeviceGet' in found_functions}} - global __cuDeviceGet - data["__cuDeviceGet"] = __cuDeviceGet - {{else}} - data["__cuDeviceGet"] = 0 - {{endif}} - - {{if 'cuDeviceGetCount' in found_functions}} - global __cuDeviceGetCount - data["__cuDeviceGetCount"] = __cuDeviceGetCount - {{else}} - data["__cuDeviceGetCount"] = 0 - {{endif}} - - {{if 'cuDeviceGetName' in found_functions}} - global __cuDeviceGetName - data["__cuDeviceGetName"] = __cuDeviceGetName - {{else}} - data["__cuDeviceGetName"] = 0 - {{endif}} - - {{if 'cuDeviceGetUuid_v2' in found_functions}} - global __cuDeviceGetUuid_v2 - data["__cuDeviceGetUuid_v2"] = __cuDeviceGetUuid_v2 - {{else}} - data["__cuDeviceGetUuid_v2"] = 0 - {{endif}} - - {{if 'cuDeviceGetLuid' in found_functions}} - global __cuDeviceGetLuid - data["__cuDeviceGetLuid"] = __cuDeviceGetLuid - {{else}} - data["__cuDeviceGetLuid"] = 0 - {{endif}} - - {{if 'cuDeviceTotalMem_v2' in found_functions}} - global __cuDeviceTotalMem_v2 - data["__cuDeviceTotalMem_v2"] = __cuDeviceTotalMem_v2 - {{else}} - data["__cuDeviceTotalMem_v2"] = 0 - {{endif}} - - {{if 'cuDeviceGetTexture1DLinearMaxWidth' in found_functions}} - global __cuDeviceGetTexture1DLinearMaxWidth - data["__cuDeviceGetTexture1DLinearMaxWidth"] = __cuDeviceGetTexture1DLinearMaxWidth - {{else}} - data["__cuDeviceGetTexture1DLinearMaxWidth"] = 0 - {{endif}} - - {{if 'cuDeviceGetAttribute' in found_functions}} - global __cuDeviceGetAttribute - data["__cuDeviceGetAttribute"] = __cuDeviceGetAttribute - {{else}} - data["__cuDeviceGetAttribute"] = 0 - {{endif}} - - {{if 'cuDeviceGetHostAtomicCapabilities' in found_functions}} - global __cuDeviceGetHostAtomicCapabilities - data["__cuDeviceGetHostAtomicCapabilities"] = __cuDeviceGetHostAtomicCapabilities - {{else}} - data["__cuDeviceGetHostAtomicCapabilities"] = 0 - {{endif}} - - {{if 'cuDeviceGetNvSciSyncAttributes' in found_functions}} - global __cuDeviceGetNvSciSyncAttributes - data["__cuDeviceGetNvSciSyncAttributes"] = __cuDeviceGetNvSciSyncAttributes - {{else}} - data["__cuDeviceGetNvSciSyncAttributes"] = 0 - {{endif}} - - {{if 'cuDeviceSetMemPool' in found_functions}} - global __cuDeviceSetMemPool - data["__cuDeviceSetMemPool"] = __cuDeviceSetMemPool - {{else}} - data["__cuDeviceSetMemPool"] = 0 - {{endif}} - - {{if 'cuDeviceGetMemPool' in found_functions}} - global __cuDeviceGetMemPool - data["__cuDeviceGetMemPool"] = __cuDeviceGetMemPool - {{else}} - data["__cuDeviceGetMemPool"] = 0 - {{endif}} - - {{if 'cuDeviceGetDefaultMemPool' in found_functions}} - global __cuDeviceGetDefaultMemPool - data["__cuDeviceGetDefaultMemPool"] = __cuDeviceGetDefaultMemPool - {{else}} - data["__cuDeviceGetDefaultMemPool"] = 0 - {{endif}} - - {{if 'cuDeviceGetExecAffinitySupport' in found_functions}} - global __cuDeviceGetExecAffinitySupport - data["__cuDeviceGetExecAffinitySupport"] = __cuDeviceGetExecAffinitySupport - {{else}} - data["__cuDeviceGetExecAffinitySupport"] = 0 - {{endif}} - - {{if 'cuFlushGPUDirectRDMAWrites' in found_functions}} - global __cuFlushGPUDirectRDMAWrites - data["__cuFlushGPUDirectRDMAWrites"] = __cuFlushGPUDirectRDMAWrites - {{else}} - data["__cuFlushGPUDirectRDMAWrites"] = 0 - {{endif}} - - {{if 'cuDeviceGetProperties' in found_functions}} - global __cuDeviceGetProperties - data["__cuDeviceGetProperties"] = __cuDeviceGetProperties - {{else}} - data["__cuDeviceGetProperties"] = 0 - {{endif}} - - {{if 'cuDeviceComputeCapability' in found_functions}} - global __cuDeviceComputeCapability - data["__cuDeviceComputeCapability"] = __cuDeviceComputeCapability - {{else}} - data["__cuDeviceComputeCapability"] = 0 - {{endif}} - - {{if 'cuDevicePrimaryCtxRetain' in found_functions}} - global __cuDevicePrimaryCtxRetain - data["__cuDevicePrimaryCtxRetain"] = __cuDevicePrimaryCtxRetain - {{else}} - data["__cuDevicePrimaryCtxRetain"] = 0 - {{endif}} - - {{if 'cuDevicePrimaryCtxRelease_v2' in found_functions}} - global __cuDevicePrimaryCtxRelease_v2 - data["__cuDevicePrimaryCtxRelease_v2"] = __cuDevicePrimaryCtxRelease_v2 - {{else}} - data["__cuDevicePrimaryCtxRelease_v2"] = 0 - {{endif}} - - {{if 'cuDevicePrimaryCtxSetFlags_v2' in found_functions}} - global __cuDevicePrimaryCtxSetFlags_v2 - data["__cuDevicePrimaryCtxSetFlags_v2"] = __cuDevicePrimaryCtxSetFlags_v2 - {{else}} - data["__cuDevicePrimaryCtxSetFlags_v2"] = 0 - {{endif}} - - {{if 'cuDevicePrimaryCtxGetState' in found_functions}} - global __cuDevicePrimaryCtxGetState - data["__cuDevicePrimaryCtxGetState"] = __cuDevicePrimaryCtxGetState - {{else}} - data["__cuDevicePrimaryCtxGetState"] = 0 - {{endif}} - - {{if 'cuDevicePrimaryCtxReset_v2' in found_functions}} - global __cuDevicePrimaryCtxReset_v2 - data["__cuDevicePrimaryCtxReset_v2"] = __cuDevicePrimaryCtxReset_v2 - {{else}} - data["__cuDevicePrimaryCtxReset_v2"] = 0 - {{endif}} - - {{if 'cuCtxCreate_v4' in found_functions}} - global __cuCtxCreate_v4 - data["__cuCtxCreate_v4"] = __cuCtxCreate_v4 - {{else}} - data["__cuCtxCreate_v4"] = 0 - {{endif}} - - {{if 'cuCtxDestroy_v2' in found_functions}} - global __cuCtxDestroy_v2 - data["__cuCtxDestroy_v2"] = __cuCtxDestroy_v2 - {{else}} - data["__cuCtxDestroy_v2"] = 0 - {{endif}} - - {{if 'cuCtxPushCurrent_v2' in found_functions}} - global __cuCtxPushCurrent_v2 - data["__cuCtxPushCurrent_v2"] = __cuCtxPushCurrent_v2 - {{else}} - data["__cuCtxPushCurrent_v2"] = 0 - {{endif}} - - {{if 'cuCtxPopCurrent_v2' in found_functions}} - global __cuCtxPopCurrent_v2 - data["__cuCtxPopCurrent_v2"] = __cuCtxPopCurrent_v2 - {{else}} - data["__cuCtxPopCurrent_v2"] = 0 - {{endif}} - - {{if 'cuCtxSetCurrent' in found_functions}} - global __cuCtxSetCurrent - data["__cuCtxSetCurrent"] = __cuCtxSetCurrent - {{else}} - data["__cuCtxSetCurrent"] = 0 - {{endif}} - - {{if 'cuCtxGetCurrent' in found_functions}} - global __cuCtxGetCurrent - data["__cuCtxGetCurrent"] = __cuCtxGetCurrent - {{else}} - data["__cuCtxGetCurrent"] = 0 - {{endif}} - - {{if 'cuCtxGetDevice' in found_functions}} - global __cuCtxGetDevice - data["__cuCtxGetDevice"] = __cuCtxGetDevice - {{else}} - data["__cuCtxGetDevice"] = 0 - {{endif}} - - {{if 'cuCtxGetDevice_v2' in found_functions}} - global __cuCtxGetDevice_v2 - data["__cuCtxGetDevice_v2"] = __cuCtxGetDevice_v2 - {{else}} - data["__cuCtxGetDevice_v2"] = 0 - {{endif}} - - {{if 'cuCtxGetFlags' in found_functions}} - global __cuCtxGetFlags - data["__cuCtxGetFlags"] = __cuCtxGetFlags - {{else}} - data["__cuCtxGetFlags"] = 0 - {{endif}} - - {{if 'cuCtxSetFlags' in found_functions}} - global __cuCtxSetFlags - data["__cuCtxSetFlags"] = __cuCtxSetFlags - {{else}} - data["__cuCtxSetFlags"] = 0 - {{endif}} - - {{if 'cuCtxGetId' in found_functions}} - global __cuCtxGetId - data["__cuCtxGetId"] = __cuCtxGetId - {{else}} - data["__cuCtxGetId"] = 0 - {{endif}} - - {{if 'cuCtxSynchronize' in found_functions}} - global __cuCtxSynchronize - data["__cuCtxSynchronize"] = __cuCtxSynchronize - {{else}} - data["__cuCtxSynchronize"] = 0 - {{endif}} - - {{if 'cuCtxSynchronize_v2' in found_functions}} - global __cuCtxSynchronize_v2 - data["__cuCtxSynchronize_v2"] = __cuCtxSynchronize_v2 - {{else}} - data["__cuCtxSynchronize_v2"] = 0 - {{endif}} - - {{if 'cuCtxSetLimit' in found_functions}} - global __cuCtxSetLimit - data["__cuCtxSetLimit"] = __cuCtxSetLimit - {{else}} - data["__cuCtxSetLimit"] = 0 - {{endif}} - - {{if 'cuCtxGetLimit' in found_functions}} - global __cuCtxGetLimit - data["__cuCtxGetLimit"] = __cuCtxGetLimit - {{else}} - data["__cuCtxGetLimit"] = 0 - {{endif}} - - {{if 'cuCtxGetCacheConfig' in found_functions}} - global __cuCtxGetCacheConfig - data["__cuCtxGetCacheConfig"] = __cuCtxGetCacheConfig - {{else}} - data["__cuCtxGetCacheConfig"] = 0 - {{endif}} - - {{if 'cuCtxSetCacheConfig' in found_functions}} - global __cuCtxSetCacheConfig - data["__cuCtxSetCacheConfig"] = __cuCtxSetCacheConfig - {{else}} - data["__cuCtxSetCacheConfig"] = 0 - {{endif}} - - {{if 'cuCtxGetApiVersion' in found_functions}} - global __cuCtxGetApiVersion - data["__cuCtxGetApiVersion"] = __cuCtxGetApiVersion - {{else}} - data["__cuCtxGetApiVersion"] = 0 - {{endif}} - - {{if 'cuCtxGetStreamPriorityRange' in found_functions}} - global __cuCtxGetStreamPriorityRange - data["__cuCtxGetStreamPriorityRange"] = __cuCtxGetStreamPriorityRange - {{else}} - data["__cuCtxGetStreamPriorityRange"] = 0 - {{endif}} - - {{if 'cuCtxResetPersistingL2Cache' in found_functions}} - global __cuCtxResetPersistingL2Cache - data["__cuCtxResetPersistingL2Cache"] = __cuCtxResetPersistingL2Cache - {{else}} - data["__cuCtxResetPersistingL2Cache"] = 0 - {{endif}} - - {{if 'cuCtxGetExecAffinity' in found_functions}} - global __cuCtxGetExecAffinity - data["__cuCtxGetExecAffinity"] = __cuCtxGetExecAffinity - {{else}} - data["__cuCtxGetExecAffinity"] = 0 - {{endif}} - - {{if 'cuCtxRecordEvent' in found_functions}} - global __cuCtxRecordEvent - data["__cuCtxRecordEvent"] = __cuCtxRecordEvent - {{else}} - data["__cuCtxRecordEvent"] = 0 - {{endif}} - - {{if 'cuCtxWaitEvent' in found_functions}} - global __cuCtxWaitEvent - data["__cuCtxWaitEvent"] = __cuCtxWaitEvent - {{else}} - data["__cuCtxWaitEvent"] = 0 - {{endif}} - - {{if 'cuCtxAttach' in found_functions}} - global __cuCtxAttach - data["__cuCtxAttach"] = __cuCtxAttach - {{else}} - data["__cuCtxAttach"] = 0 - {{endif}} - - {{if 'cuCtxDetach' in found_functions}} - global __cuCtxDetach - data["__cuCtxDetach"] = __cuCtxDetach - {{else}} - data["__cuCtxDetach"] = 0 - {{endif}} - - {{if 'cuCtxGetSharedMemConfig' in found_functions}} - global __cuCtxGetSharedMemConfig - data["__cuCtxGetSharedMemConfig"] = __cuCtxGetSharedMemConfig - {{else}} - data["__cuCtxGetSharedMemConfig"] = 0 - {{endif}} - - {{if 'cuCtxSetSharedMemConfig' in found_functions}} - global __cuCtxSetSharedMemConfig - data["__cuCtxSetSharedMemConfig"] = __cuCtxSetSharedMemConfig - {{else}} - data["__cuCtxSetSharedMemConfig"] = 0 - {{endif}} - - {{if 'cuModuleLoad' in found_functions}} - global __cuModuleLoad - data["__cuModuleLoad"] = __cuModuleLoad - {{else}} - data["__cuModuleLoad"] = 0 - {{endif}} - - {{if 'cuModuleLoadData' in found_functions}} - global __cuModuleLoadData - data["__cuModuleLoadData"] = __cuModuleLoadData - {{else}} - data["__cuModuleLoadData"] = 0 - {{endif}} - - {{if 'cuModuleLoadDataEx' in found_functions}} - global __cuModuleLoadDataEx - data["__cuModuleLoadDataEx"] = __cuModuleLoadDataEx - {{else}} - data["__cuModuleLoadDataEx"] = 0 - {{endif}} - - {{if 'cuModuleLoadFatBinary' in found_functions}} - global __cuModuleLoadFatBinary - data["__cuModuleLoadFatBinary"] = __cuModuleLoadFatBinary - {{else}} - data["__cuModuleLoadFatBinary"] = 0 - {{endif}} - - {{if 'cuModuleUnload' in found_functions}} - global __cuModuleUnload - data["__cuModuleUnload"] = __cuModuleUnload - {{else}} - data["__cuModuleUnload"] = 0 - {{endif}} - - {{if 'cuModuleGetLoadingMode' in found_functions}} - global __cuModuleGetLoadingMode - data["__cuModuleGetLoadingMode"] = __cuModuleGetLoadingMode - {{else}} - data["__cuModuleGetLoadingMode"] = 0 - {{endif}} - - {{if 'cuModuleGetFunction' in found_functions}} - global __cuModuleGetFunction - data["__cuModuleGetFunction"] = __cuModuleGetFunction - {{else}} - data["__cuModuleGetFunction"] = 0 - {{endif}} - - {{if 'cuModuleGetFunctionCount' in found_functions}} - global __cuModuleGetFunctionCount - data["__cuModuleGetFunctionCount"] = __cuModuleGetFunctionCount - {{else}} - data["__cuModuleGetFunctionCount"] = 0 - {{endif}} - - {{if 'cuModuleEnumerateFunctions' in found_functions}} - global __cuModuleEnumerateFunctions - data["__cuModuleEnumerateFunctions"] = __cuModuleEnumerateFunctions - {{else}} - data["__cuModuleEnumerateFunctions"] = 0 - {{endif}} - - {{if 'cuModuleGetGlobal_v2' in found_functions}} - global __cuModuleGetGlobal_v2 - data["__cuModuleGetGlobal_v2"] = __cuModuleGetGlobal_v2 - {{else}} - data["__cuModuleGetGlobal_v2"] = 0 - {{endif}} - - {{if 'cuLinkCreate_v2' in found_functions}} - global __cuLinkCreate_v2 - data["__cuLinkCreate_v2"] = __cuLinkCreate_v2 - {{else}} - data["__cuLinkCreate_v2"] = 0 - {{endif}} - - {{if 'cuLinkAddData_v2' in found_functions}} - global __cuLinkAddData_v2 - data["__cuLinkAddData_v2"] = __cuLinkAddData_v2 - {{else}} - data["__cuLinkAddData_v2"] = 0 - {{endif}} - - {{if 'cuLinkAddFile_v2' in found_functions}} - global __cuLinkAddFile_v2 - data["__cuLinkAddFile_v2"] = __cuLinkAddFile_v2 - {{else}} - data["__cuLinkAddFile_v2"] = 0 - {{endif}} - - {{if 'cuLinkComplete' in found_functions}} - global __cuLinkComplete - data["__cuLinkComplete"] = __cuLinkComplete - {{else}} - data["__cuLinkComplete"] = 0 - {{endif}} - - {{if 'cuLinkDestroy' in found_functions}} - global __cuLinkDestroy - data["__cuLinkDestroy"] = __cuLinkDestroy - {{else}} - data["__cuLinkDestroy"] = 0 - {{endif}} - - {{if 'cuModuleGetTexRef' in found_functions}} - global __cuModuleGetTexRef - data["__cuModuleGetTexRef"] = __cuModuleGetTexRef - {{else}} - data["__cuModuleGetTexRef"] = 0 - {{endif}} - - {{if 'cuModuleGetSurfRef' in found_functions}} - global __cuModuleGetSurfRef - data["__cuModuleGetSurfRef"] = __cuModuleGetSurfRef - {{else}} - data["__cuModuleGetSurfRef"] = 0 - {{endif}} - - {{if 'cuLibraryLoadData' in found_functions}} - global __cuLibraryLoadData - data["__cuLibraryLoadData"] = __cuLibraryLoadData - {{else}} - data["__cuLibraryLoadData"] = 0 - {{endif}} - - {{if 'cuLibraryLoadFromFile' in found_functions}} - global __cuLibraryLoadFromFile - data["__cuLibraryLoadFromFile"] = __cuLibraryLoadFromFile - {{else}} - data["__cuLibraryLoadFromFile"] = 0 - {{endif}} - - {{if 'cuLibraryUnload' in found_functions}} - global __cuLibraryUnload - data["__cuLibraryUnload"] = __cuLibraryUnload - {{else}} - data["__cuLibraryUnload"] = 0 - {{endif}} - - {{if 'cuLibraryGetKernel' in found_functions}} - global __cuLibraryGetKernel - data["__cuLibraryGetKernel"] = __cuLibraryGetKernel - {{else}} - data["__cuLibraryGetKernel"] = 0 - {{endif}} - - {{if 'cuLibraryGetKernelCount' in found_functions}} - global __cuLibraryGetKernelCount - data["__cuLibraryGetKernelCount"] = __cuLibraryGetKernelCount - {{else}} - data["__cuLibraryGetKernelCount"] = 0 - {{endif}} - - {{if 'cuLibraryEnumerateKernels' in found_functions}} - global __cuLibraryEnumerateKernels - data["__cuLibraryEnumerateKernels"] = __cuLibraryEnumerateKernels - {{else}} - data["__cuLibraryEnumerateKernels"] = 0 - {{endif}} - - {{if 'cuLibraryGetModule' in found_functions}} - global __cuLibraryGetModule - data["__cuLibraryGetModule"] = __cuLibraryGetModule - {{else}} - data["__cuLibraryGetModule"] = 0 - {{endif}} - - {{if 'cuKernelGetFunction' in found_functions}} - global __cuKernelGetFunction - data["__cuKernelGetFunction"] = __cuKernelGetFunction - {{else}} - data["__cuKernelGetFunction"] = 0 - {{endif}} - - {{if 'cuKernelGetLibrary' in found_functions}} - global __cuKernelGetLibrary - data["__cuKernelGetLibrary"] = __cuKernelGetLibrary - {{else}} - data["__cuKernelGetLibrary"] = 0 - {{endif}} - - {{if 'cuLibraryGetGlobal' in found_functions}} - global __cuLibraryGetGlobal - data["__cuLibraryGetGlobal"] = __cuLibraryGetGlobal - {{else}} - data["__cuLibraryGetGlobal"] = 0 - {{endif}} - - {{if 'cuLibraryGetManaged' in found_functions}} - global __cuLibraryGetManaged - data["__cuLibraryGetManaged"] = __cuLibraryGetManaged - {{else}} - data["__cuLibraryGetManaged"] = 0 - {{endif}} - - {{if 'cuLibraryGetUnifiedFunction' in found_functions}} - global __cuLibraryGetUnifiedFunction - data["__cuLibraryGetUnifiedFunction"] = __cuLibraryGetUnifiedFunction - {{else}} - data["__cuLibraryGetUnifiedFunction"] = 0 - {{endif}} - - {{if 'cuKernelGetAttribute' in found_functions}} - global __cuKernelGetAttribute - data["__cuKernelGetAttribute"] = __cuKernelGetAttribute - {{else}} - data["__cuKernelGetAttribute"] = 0 - {{endif}} - - {{if 'cuKernelSetAttribute' in found_functions}} - global __cuKernelSetAttribute - data["__cuKernelSetAttribute"] = __cuKernelSetAttribute - {{else}} - data["__cuKernelSetAttribute"] = 0 - {{endif}} - - {{if 'cuKernelSetCacheConfig' in found_functions}} - global __cuKernelSetCacheConfig - data["__cuKernelSetCacheConfig"] = __cuKernelSetCacheConfig - {{else}} - data["__cuKernelSetCacheConfig"] = 0 - {{endif}} - - {{if 'cuKernelGetName' in found_functions}} - global __cuKernelGetName - data["__cuKernelGetName"] = __cuKernelGetName - {{else}} - data["__cuKernelGetName"] = 0 - {{endif}} - - {{if 'cuKernelGetParamInfo' in found_functions}} - global __cuKernelGetParamInfo - data["__cuKernelGetParamInfo"] = __cuKernelGetParamInfo - {{else}} - data["__cuKernelGetParamInfo"] = 0 - {{endif}} - - {{if 'cuKernelGetParamCount' in found_functions}} - global __cuKernelGetParamCount - data["__cuKernelGetParamCount"] = __cuKernelGetParamCount - {{else}} - data["__cuKernelGetParamCount"] = 0 - {{endif}} - - {{if 'cuMemGetInfo_v2' in found_functions}} - global __cuMemGetInfo_v2 - data["__cuMemGetInfo_v2"] = __cuMemGetInfo_v2 - {{else}} - data["__cuMemGetInfo_v2"] = 0 - {{endif}} - - {{if 'cuMemAlloc_v2' in found_functions}} - global __cuMemAlloc_v2 - data["__cuMemAlloc_v2"] = __cuMemAlloc_v2 - {{else}} - data["__cuMemAlloc_v2"] = 0 - {{endif}} - - {{if 'cuMemAllocPitch_v2' in found_functions}} - global __cuMemAllocPitch_v2 - data["__cuMemAllocPitch_v2"] = __cuMemAllocPitch_v2 - {{else}} - data["__cuMemAllocPitch_v2"] = 0 - {{endif}} - - {{if 'cuMemFree_v2' in found_functions}} - global __cuMemFree_v2 - data["__cuMemFree_v2"] = __cuMemFree_v2 - {{else}} - data["__cuMemFree_v2"] = 0 - {{endif}} - - {{if 'cuMemGetAddressRange_v2' in found_functions}} - global __cuMemGetAddressRange_v2 - data["__cuMemGetAddressRange_v2"] = __cuMemGetAddressRange_v2 - {{else}} - data["__cuMemGetAddressRange_v2"] = 0 - {{endif}} - - {{if 'cuMemAllocHost_v2' in found_functions}} - global __cuMemAllocHost_v2 - data["__cuMemAllocHost_v2"] = __cuMemAllocHost_v2 - {{else}} - data["__cuMemAllocHost_v2"] = 0 - {{endif}} - - {{if 'cuMemFreeHost' in found_functions}} - global __cuMemFreeHost - data["__cuMemFreeHost"] = __cuMemFreeHost - {{else}} - data["__cuMemFreeHost"] = 0 - {{endif}} - - {{if 'cuMemHostAlloc' in found_functions}} - global __cuMemHostAlloc - data["__cuMemHostAlloc"] = __cuMemHostAlloc - {{else}} - data["__cuMemHostAlloc"] = 0 - {{endif}} - - {{if 'cuMemHostGetDevicePointer_v2' in found_functions}} - global __cuMemHostGetDevicePointer_v2 - data["__cuMemHostGetDevicePointer_v2"] = __cuMemHostGetDevicePointer_v2 - {{else}} - data["__cuMemHostGetDevicePointer_v2"] = 0 - {{endif}} - - {{if 'cuMemHostGetFlags' in found_functions}} - global __cuMemHostGetFlags - data["__cuMemHostGetFlags"] = __cuMemHostGetFlags - {{else}} - data["__cuMemHostGetFlags"] = 0 - {{endif}} - - {{if 'cuMemAllocManaged' in found_functions}} - global __cuMemAllocManaged - data["__cuMemAllocManaged"] = __cuMemAllocManaged - {{else}} - data["__cuMemAllocManaged"] = 0 - {{endif}} - - {{if 'cuDeviceRegisterAsyncNotification' in found_functions}} - global __cuDeviceRegisterAsyncNotification - data["__cuDeviceRegisterAsyncNotification"] = __cuDeviceRegisterAsyncNotification - {{else}} - data["__cuDeviceRegisterAsyncNotification"] = 0 - {{endif}} - - {{if 'cuDeviceUnregisterAsyncNotification' in found_functions}} - global __cuDeviceUnregisterAsyncNotification - data["__cuDeviceUnregisterAsyncNotification"] = __cuDeviceUnregisterAsyncNotification - {{else}} - data["__cuDeviceUnregisterAsyncNotification"] = 0 - {{endif}} - - {{if 'cuDeviceGetByPCIBusId' in found_functions}} - global __cuDeviceGetByPCIBusId - data["__cuDeviceGetByPCIBusId"] = __cuDeviceGetByPCIBusId - {{else}} - data["__cuDeviceGetByPCIBusId"] = 0 - {{endif}} - - {{if 'cuDeviceGetPCIBusId' in found_functions}} - global __cuDeviceGetPCIBusId - data["__cuDeviceGetPCIBusId"] = __cuDeviceGetPCIBusId - {{else}} - data["__cuDeviceGetPCIBusId"] = 0 - {{endif}} - - {{if 'cuIpcGetEventHandle' in found_functions}} - global __cuIpcGetEventHandle - data["__cuIpcGetEventHandle"] = __cuIpcGetEventHandle - {{else}} - data["__cuIpcGetEventHandle"] = 0 - {{endif}} - - {{if 'cuIpcOpenEventHandle' in found_functions}} - global __cuIpcOpenEventHandle - data["__cuIpcOpenEventHandle"] = __cuIpcOpenEventHandle - {{else}} - data["__cuIpcOpenEventHandle"] = 0 - {{endif}} - - {{if 'cuIpcGetMemHandle' in found_functions}} - global __cuIpcGetMemHandle - data["__cuIpcGetMemHandle"] = __cuIpcGetMemHandle - {{else}} - data["__cuIpcGetMemHandle"] = 0 - {{endif}} - - {{if 'cuIpcOpenMemHandle_v2' in found_functions}} - global __cuIpcOpenMemHandle_v2 - data["__cuIpcOpenMemHandle_v2"] = __cuIpcOpenMemHandle_v2 - {{else}} - data["__cuIpcOpenMemHandle_v2"] = 0 - {{endif}} - - {{if 'cuIpcCloseMemHandle' in found_functions}} - global __cuIpcCloseMemHandle - data["__cuIpcCloseMemHandle"] = __cuIpcCloseMemHandle - {{else}} - data["__cuIpcCloseMemHandle"] = 0 - {{endif}} - - {{if 'cuMemHostRegister_v2' in found_functions}} - global __cuMemHostRegister_v2 - data["__cuMemHostRegister_v2"] = __cuMemHostRegister_v2 - {{else}} - data["__cuMemHostRegister_v2"] = 0 - {{endif}} - - {{if 'cuMemHostUnregister' in found_functions}} - global __cuMemHostUnregister - data["__cuMemHostUnregister"] = __cuMemHostUnregister - {{else}} - data["__cuMemHostUnregister"] = 0 - {{endif}} - - {{if 'cuMemcpy' in found_functions}} - global __cuMemcpy - data["__cuMemcpy"] = __cuMemcpy - {{else}} - data["__cuMemcpy"] = 0 - {{endif}} - - {{if 'cuMemcpyPeer' in found_functions}} - global __cuMemcpyPeer - data["__cuMemcpyPeer"] = __cuMemcpyPeer - {{else}} - data["__cuMemcpyPeer"] = 0 - {{endif}} - - {{if 'cuMemcpyHtoD_v2' in found_functions}} - global __cuMemcpyHtoD_v2 - data["__cuMemcpyHtoD_v2"] = __cuMemcpyHtoD_v2 - {{else}} - data["__cuMemcpyHtoD_v2"] = 0 - {{endif}} - - {{if 'cuMemcpyDtoH_v2' in found_functions}} - global __cuMemcpyDtoH_v2 - data["__cuMemcpyDtoH_v2"] = __cuMemcpyDtoH_v2 - {{else}} - data["__cuMemcpyDtoH_v2"] = 0 - {{endif}} - - {{if 'cuMemcpyDtoD_v2' in found_functions}} - global __cuMemcpyDtoD_v2 - data["__cuMemcpyDtoD_v2"] = __cuMemcpyDtoD_v2 - {{else}} - data["__cuMemcpyDtoD_v2"] = 0 - {{endif}} - - {{if 'cuMemcpyDtoA_v2' in found_functions}} - global __cuMemcpyDtoA_v2 - data["__cuMemcpyDtoA_v2"] = __cuMemcpyDtoA_v2 - {{else}} - data["__cuMemcpyDtoA_v2"] = 0 - {{endif}} - - {{if 'cuMemcpyAtoD_v2' in found_functions}} - global __cuMemcpyAtoD_v2 - data["__cuMemcpyAtoD_v2"] = __cuMemcpyAtoD_v2 - {{else}} - data["__cuMemcpyAtoD_v2"] = 0 - {{endif}} - - {{if 'cuMemcpyHtoA_v2' in found_functions}} - global __cuMemcpyHtoA_v2 - data["__cuMemcpyHtoA_v2"] = __cuMemcpyHtoA_v2 - {{else}} - data["__cuMemcpyHtoA_v2"] = 0 - {{endif}} - - {{if 'cuMemcpyAtoH_v2' in found_functions}} - global __cuMemcpyAtoH_v2 - data["__cuMemcpyAtoH_v2"] = __cuMemcpyAtoH_v2 - {{else}} - data["__cuMemcpyAtoH_v2"] = 0 - {{endif}} - - {{if 'cuMemcpyAtoA_v2' in found_functions}} - global __cuMemcpyAtoA_v2 - data["__cuMemcpyAtoA_v2"] = __cuMemcpyAtoA_v2 - {{else}} - data["__cuMemcpyAtoA_v2"] = 0 - {{endif}} - - {{if 'cuMemcpy2D_v2' in found_functions}} - global __cuMemcpy2D_v2 - data["__cuMemcpy2D_v2"] = __cuMemcpy2D_v2 - {{else}} - data["__cuMemcpy2D_v2"] = 0 - {{endif}} - - {{if 'cuMemcpy2DUnaligned_v2' in found_functions}} - global __cuMemcpy2DUnaligned_v2 - data["__cuMemcpy2DUnaligned_v2"] = __cuMemcpy2DUnaligned_v2 - {{else}} - data["__cuMemcpy2DUnaligned_v2"] = 0 - {{endif}} - - {{if 'cuMemcpy3D_v2' in found_functions}} - global __cuMemcpy3D_v2 - data["__cuMemcpy3D_v2"] = __cuMemcpy3D_v2 - {{else}} - data["__cuMemcpy3D_v2"] = 0 - {{endif}} - - {{if 'cuMemcpy3DPeer' in found_functions}} - global __cuMemcpy3DPeer - data["__cuMemcpy3DPeer"] = __cuMemcpy3DPeer - {{else}} - data["__cuMemcpy3DPeer"] = 0 - {{endif}} - - {{if 'cuMemcpyAsync' in found_functions}} - global __cuMemcpyAsync - data["__cuMemcpyAsync"] = __cuMemcpyAsync - {{else}} - data["__cuMemcpyAsync"] = 0 - {{endif}} - - {{if 'cuMemcpyPeerAsync' in found_functions}} - global __cuMemcpyPeerAsync - data["__cuMemcpyPeerAsync"] = __cuMemcpyPeerAsync - {{else}} - data["__cuMemcpyPeerAsync"] = 0 - {{endif}} - - {{if 'cuMemcpyHtoDAsync_v2' in found_functions}} - global __cuMemcpyHtoDAsync_v2 - data["__cuMemcpyHtoDAsync_v2"] = __cuMemcpyHtoDAsync_v2 - {{else}} - data["__cuMemcpyHtoDAsync_v2"] = 0 - {{endif}} - - {{if 'cuMemcpyDtoHAsync_v2' in found_functions}} - global __cuMemcpyDtoHAsync_v2 - data["__cuMemcpyDtoHAsync_v2"] = __cuMemcpyDtoHAsync_v2 - {{else}} - data["__cuMemcpyDtoHAsync_v2"] = 0 - {{endif}} - - {{if 'cuMemcpyDtoDAsync_v2' in found_functions}} - global __cuMemcpyDtoDAsync_v2 - data["__cuMemcpyDtoDAsync_v2"] = __cuMemcpyDtoDAsync_v2 - {{else}} - data["__cuMemcpyDtoDAsync_v2"] = 0 - {{endif}} - - {{if 'cuMemcpyHtoAAsync_v2' in found_functions}} - global __cuMemcpyHtoAAsync_v2 - data["__cuMemcpyHtoAAsync_v2"] = __cuMemcpyHtoAAsync_v2 - {{else}} - data["__cuMemcpyHtoAAsync_v2"] = 0 - {{endif}} - - {{if 'cuMemcpyAtoHAsync_v2' in found_functions}} - global __cuMemcpyAtoHAsync_v2 - data["__cuMemcpyAtoHAsync_v2"] = __cuMemcpyAtoHAsync_v2 - {{else}} - data["__cuMemcpyAtoHAsync_v2"] = 0 - {{endif}} - - {{if 'cuMemcpy2DAsync_v2' in found_functions}} - global __cuMemcpy2DAsync_v2 - data["__cuMemcpy2DAsync_v2"] = __cuMemcpy2DAsync_v2 - {{else}} - data["__cuMemcpy2DAsync_v2"] = 0 - {{endif}} - - {{if 'cuMemcpy3DAsync_v2' in found_functions}} - global __cuMemcpy3DAsync_v2 - data["__cuMemcpy3DAsync_v2"] = __cuMemcpy3DAsync_v2 - {{else}} - data["__cuMemcpy3DAsync_v2"] = 0 - {{endif}} - - {{if 'cuMemcpy3DPeerAsync' in found_functions}} - global __cuMemcpy3DPeerAsync - data["__cuMemcpy3DPeerAsync"] = __cuMemcpy3DPeerAsync - {{else}} - data["__cuMemcpy3DPeerAsync"] = 0 - {{endif}} - - {{if 'cuMemcpyBatchAsync_v2' in found_functions}} - global __cuMemcpyBatchAsync_v2 - data["__cuMemcpyBatchAsync_v2"] = __cuMemcpyBatchAsync_v2 - {{else}} - data["__cuMemcpyBatchAsync_v2"] = 0 - {{endif}} - - {{if 'cuMemcpy3DBatchAsync_v2' in found_functions}} - global __cuMemcpy3DBatchAsync_v2 - data["__cuMemcpy3DBatchAsync_v2"] = __cuMemcpy3DBatchAsync_v2 - {{else}} - data["__cuMemcpy3DBatchAsync_v2"] = 0 - {{endif}} - - {{if 'cuMemcpyWithAttributesAsync' in found_functions}} - global __cuMemcpyWithAttributesAsync - data["__cuMemcpyWithAttributesAsync"] = __cuMemcpyWithAttributesAsync - {{else}} - data["__cuMemcpyWithAttributesAsync"] = 0 - {{endif}} - - {{if 'cuMemcpy3DWithAttributesAsync' in found_functions}} - global __cuMemcpy3DWithAttributesAsync - data["__cuMemcpy3DWithAttributesAsync"] = __cuMemcpy3DWithAttributesAsync - {{else}} - data["__cuMemcpy3DWithAttributesAsync"] = 0 - {{endif}} - - {{if 'cuMemsetD8_v2' in found_functions}} - global __cuMemsetD8_v2 - data["__cuMemsetD8_v2"] = __cuMemsetD8_v2 - {{else}} - data["__cuMemsetD8_v2"] = 0 - {{endif}} - - {{if 'cuMemsetD16_v2' in found_functions}} - global __cuMemsetD16_v2 - data["__cuMemsetD16_v2"] = __cuMemsetD16_v2 - {{else}} - data["__cuMemsetD16_v2"] = 0 - {{endif}} - - {{if 'cuMemsetD32_v2' in found_functions}} - global __cuMemsetD32_v2 - data["__cuMemsetD32_v2"] = __cuMemsetD32_v2 - {{else}} - data["__cuMemsetD32_v2"] = 0 - {{endif}} - - {{if 'cuMemsetD2D8_v2' in found_functions}} - global __cuMemsetD2D8_v2 - data["__cuMemsetD2D8_v2"] = __cuMemsetD2D8_v2 - {{else}} - data["__cuMemsetD2D8_v2"] = 0 - {{endif}} - - {{if 'cuMemsetD2D16_v2' in found_functions}} - global __cuMemsetD2D16_v2 - data["__cuMemsetD2D16_v2"] = __cuMemsetD2D16_v2 - {{else}} - data["__cuMemsetD2D16_v2"] = 0 - {{endif}} - - {{if 'cuMemsetD2D32_v2' in found_functions}} - global __cuMemsetD2D32_v2 - data["__cuMemsetD2D32_v2"] = __cuMemsetD2D32_v2 - {{else}} - data["__cuMemsetD2D32_v2"] = 0 - {{endif}} - - {{if 'cuMemsetD8Async' in found_functions}} - global __cuMemsetD8Async - data["__cuMemsetD8Async"] = __cuMemsetD8Async - {{else}} - data["__cuMemsetD8Async"] = 0 - {{endif}} - - {{if 'cuMemsetD16Async' in found_functions}} - global __cuMemsetD16Async - data["__cuMemsetD16Async"] = __cuMemsetD16Async - {{else}} - data["__cuMemsetD16Async"] = 0 - {{endif}} - - {{if 'cuMemsetD32Async' in found_functions}} - global __cuMemsetD32Async - data["__cuMemsetD32Async"] = __cuMemsetD32Async - {{else}} - data["__cuMemsetD32Async"] = 0 - {{endif}} - - {{if 'cuMemsetD2D8Async' in found_functions}} - global __cuMemsetD2D8Async - data["__cuMemsetD2D8Async"] = __cuMemsetD2D8Async - {{else}} - data["__cuMemsetD2D8Async"] = 0 - {{endif}} - - {{if 'cuMemsetD2D16Async' in found_functions}} - global __cuMemsetD2D16Async - data["__cuMemsetD2D16Async"] = __cuMemsetD2D16Async - {{else}} - data["__cuMemsetD2D16Async"] = 0 - {{endif}} - - {{if 'cuMemsetD2D32Async' in found_functions}} - global __cuMemsetD2D32Async - data["__cuMemsetD2D32Async"] = __cuMemsetD2D32Async - {{else}} - data["__cuMemsetD2D32Async"] = 0 - {{endif}} - - {{if 'cuArrayCreate_v2' in found_functions}} - global __cuArrayCreate_v2 - data["__cuArrayCreate_v2"] = __cuArrayCreate_v2 - {{else}} - data["__cuArrayCreate_v2"] = 0 - {{endif}} - - {{if 'cuArrayGetDescriptor_v2' in found_functions}} - global __cuArrayGetDescriptor_v2 - data["__cuArrayGetDescriptor_v2"] = __cuArrayGetDescriptor_v2 - {{else}} - data["__cuArrayGetDescriptor_v2"] = 0 - {{endif}} - - {{if 'cuArrayGetSparseProperties' in found_functions}} - global __cuArrayGetSparseProperties - data["__cuArrayGetSparseProperties"] = __cuArrayGetSparseProperties - {{else}} - data["__cuArrayGetSparseProperties"] = 0 - {{endif}} - - {{if 'cuMipmappedArrayGetSparseProperties' in found_functions}} - global __cuMipmappedArrayGetSparseProperties - data["__cuMipmappedArrayGetSparseProperties"] = __cuMipmappedArrayGetSparseProperties - {{else}} - data["__cuMipmappedArrayGetSparseProperties"] = 0 - {{endif}} - - {{if 'cuArrayGetMemoryRequirements' in found_functions}} - global __cuArrayGetMemoryRequirements - data["__cuArrayGetMemoryRequirements"] = __cuArrayGetMemoryRequirements - {{else}} - data["__cuArrayGetMemoryRequirements"] = 0 - {{endif}} - - {{if 'cuMipmappedArrayGetMemoryRequirements' in found_functions}} - global __cuMipmappedArrayGetMemoryRequirements - data["__cuMipmappedArrayGetMemoryRequirements"] = __cuMipmappedArrayGetMemoryRequirements - {{else}} - data["__cuMipmappedArrayGetMemoryRequirements"] = 0 - {{endif}} - - {{if 'cuArrayGetPlane' in found_functions}} - global __cuArrayGetPlane - data["__cuArrayGetPlane"] = __cuArrayGetPlane - {{else}} - data["__cuArrayGetPlane"] = 0 - {{endif}} - - {{if 'cuArrayDestroy' in found_functions}} - global __cuArrayDestroy - data["__cuArrayDestroy"] = __cuArrayDestroy - {{else}} - data["__cuArrayDestroy"] = 0 - {{endif}} - - {{if 'cuArray3DCreate_v2' in found_functions}} - global __cuArray3DCreate_v2 - data["__cuArray3DCreate_v2"] = __cuArray3DCreate_v2 - {{else}} - data["__cuArray3DCreate_v2"] = 0 - {{endif}} - - {{if 'cuArray3DGetDescriptor_v2' in found_functions}} - global __cuArray3DGetDescriptor_v2 - data["__cuArray3DGetDescriptor_v2"] = __cuArray3DGetDescriptor_v2 - {{else}} - data["__cuArray3DGetDescriptor_v2"] = 0 - {{endif}} - - {{if 'cuMipmappedArrayCreate' in found_functions}} - global __cuMipmappedArrayCreate - data["__cuMipmappedArrayCreate"] = __cuMipmappedArrayCreate - {{else}} - data["__cuMipmappedArrayCreate"] = 0 - {{endif}} - - {{if 'cuMipmappedArrayGetLevel' in found_functions}} - global __cuMipmappedArrayGetLevel - data["__cuMipmappedArrayGetLevel"] = __cuMipmappedArrayGetLevel - {{else}} - data["__cuMipmappedArrayGetLevel"] = 0 - {{endif}} - - {{if 'cuMipmappedArrayDestroy' in found_functions}} - global __cuMipmappedArrayDestroy - data["__cuMipmappedArrayDestroy"] = __cuMipmappedArrayDestroy - {{else}} - data["__cuMipmappedArrayDestroy"] = 0 - {{endif}} - - {{if 'cuMemGetHandleForAddressRange' in found_functions}} - global __cuMemGetHandleForAddressRange - data["__cuMemGetHandleForAddressRange"] = __cuMemGetHandleForAddressRange - {{else}} - data["__cuMemGetHandleForAddressRange"] = 0 - {{endif}} - - {{if 'cuMemBatchDecompressAsync' in found_functions}} - global __cuMemBatchDecompressAsync - data["__cuMemBatchDecompressAsync"] = __cuMemBatchDecompressAsync - {{else}} - data["__cuMemBatchDecompressAsync"] = 0 - {{endif}} - - {{if 'cuMemAddressReserve' in found_functions}} - global __cuMemAddressReserve - data["__cuMemAddressReserve"] = __cuMemAddressReserve - {{else}} - data["__cuMemAddressReserve"] = 0 - {{endif}} - - {{if 'cuMemAddressFree' in found_functions}} - global __cuMemAddressFree - data["__cuMemAddressFree"] = __cuMemAddressFree - {{else}} - data["__cuMemAddressFree"] = 0 - {{endif}} - - {{if 'cuMemCreate' in found_functions}} - global __cuMemCreate - data["__cuMemCreate"] = __cuMemCreate - {{else}} - data["__cuMemCreate"] = 0 - {{endif}} - - {{if 'cuMemRelease' in found_functions}} - global __cuMemRelease - data["__cuMemRelease"] = __cuMemRelease - {{else}} - data["__cuMemRelease"] = 0 - {{endif}} - - {{if 'cuMemMap' in found_functions}} - global __cuMemMap - data["__cuMemMap"] = __cuMemMap - {{else}} - data["__cuMemMap"] = 0 - {{endif}} - - {{if 'cuMemMapArrayAsync' in found_functions}} - global __cuMemMapArrayAsync - data["__cuMemMapArrayAsync"] = __cuMemMapArrayAsync - {{else}} - data["__cuMemMapArrayAsync"] = 0 - {{endif}} - - {{if 'cuMemUnmap' in found_functions}} - global __cuMemUnmap - data["__cuMemUnmap"] = __cuMemUnmap - {{else}} - data["__cuMemUnmap"] = 0 - {{endif}} - - {{if 'cuMemSetAccess' in found_functions}} - global __cuMemSetAccess - data["__cuMemSetAccess"] = __cuMemSetAccess - {{else}} - data["__cuMemSetAccess"] = 0 - {{endif}} - - {{if 'cuMemGetAccess' in found_functions}} - global __cuMemGetAccess - data["__cuMemGetAccess"] = __cuMemGetAccess - {{else}} - data["__cuMemGetAccess"] = 0 - {{endif}} - - {{if 'cuMemExportToShareableHandle' in found_functions}} - global __cuMemExportToShareableHandle - data["__cuMemExportToShareableHandle"] = __cuMemExportToShareableHandle - {{else}} - data["__cuMemExportToShareableHandle"] = 0 - {{endif}} - - {{if 'cuMemImportFromShareableHandle' in found_functions}} - global __cuMemImportFromShareableHandle - data["__cuMemImportFromShareableHandle"] = __cuMemImportFromShareableHandle - {{else}} - data["__cuMemImportFromShareableHandle"] = 0 - {{endif}} - - {{if 'cuMemGetAllocationGranularity' in found_functions}} - global __cuMemGetAllocationGranularity - data["__cuMemGetAllocationGranularity"] = __cuMemGetAllocationGranularity - {{else}} - data["__cuMemGetAllocationGranularity"] = 0 - {{endif}} - - {{if 'cuMemGetAllocationPropertiesFromHandle' in found_functions}} - global __cuMemGetAllocationPropertiesFromHandle - data["__cuMemGetAllocationPropertiesFromHandle"] = __cuMemGetAllocationPropertiesFromHandle - {{else}} - data["__cuMemGetAllocationPropertiesFromHandle"] = 0 - {{endif}} - - {{if 'cuMemRetainAllocationHandle' in found_functions}} - global __cuMemRetainAllocationHandle - data["__cuMemRetainAllocationHandle"] = __cuMemRetainAllocationHandle - {{else}} - data["__cuMemRetainAllocationHandle"] = 0 - {{endif}} - - {{if 'cuMemFreeAsync' in found_functions}} - global __cuMemFreeAsync - data["__cuMemFreeAsync"] = __cuMemFreeAsync - {{else}} - data["__cuMemFreeAsync"] = 0 - {{endif}} - - {{if 'cuMemAllocAsync' in found_functions}} - global __cuMemAllocAsync - data["__cuMemAllocAsync"] = __cuMemAllocAsync - {{else}} - data["__cuMemAllocAsync"] = 0 - {{endif}} - - {{if 'cuMemPoolTrimTo' in found_functions}} - global __cuMemPoolTrimTo - data["__cuMemPoolTrimTo"] = __cuMemPoolTrimTo - {{else}} - data["__cuMemPoolTrimTo"] = 0 - {{endif}} - - {{if 'cuMemPoolSetAttribute' in found_functions}} - global __cuMemPoolSetAttribute - data["__cuMemPoolSetAttribute"] = __cuMemPoolSetAttribute - {{else}} - data["__cuMemPoolSetAttribute"] = 0 - {{endif}} - - {{if 'cuMemPoolGetAttribute' in found_functions}} - global __cuMemPoolGetAttribute - data["__cuMemPoolGetAttribute"] = __cuMemPoolGetAttribute - {{else}} - data["__cuMemPoolGetAttribute"] = 0 - {{endif}} - - {{if 'cuMemPoolSetAccess' in found_functions}} - global __cuMemPoolSetAccess - data["__cuMemPoolSetAccess"] = __cuMemPoolSetAccess - {{else}} - data["__cuMemPoolSetAccess"] = 0 - {{endif}} - - {{if 'cuMemPoolGetAccess' in found_functions}} - global __cuMemPoolGetAccess - data["__cuMemPoolGetAccess"] = __cuMemPoolGetAccess - {{else}} - data["__cuMemPoolGetAccess"] = 0 - {{endif}} - - {{if 'cuMemPoolCreate' in found_functions}} - global __cuMemPoolCreate - data["__cuMemPoolCreate"] = __cuMemPoolCreate - {{else}} - data["__cuMemPoolCreate"] = 0 - {{endif}} - - {{if 'cuMemPoolDestroy' in found_functions}} - global __cuMemPoolDestroy - data["__cuMemPoolDestroy"] = __cuMemPoolDestroy - {{else}} - data["__cuMemPoolDestroy"] = 0 - {{endif}} - - {{if 'cuMemGetDefaultMemPool' in found_functions}} - global __cuMemGetDefaultMemPool - data["__cuMemGetDefaultMemPool"] = __cuMemGetDefaultMemPool - {{else}} - data["__cuMemGetDefaultMemPool"] = 0 - {{endif}} - - {{if 'cuMemGetMemPool' in found_functions}} - global __cuMemGetMemPool - data["__cuMemGetMemPool"] = __cuMemGetMemPool - {{else}} - data["__cuMemGetMemPool"] = 0 - {{endif}} - - {{if 'cuMemSetMemPool' in found_functions}} - global __cuMemSetMemPool - data["__cuMemSetMemPool"] = __cuMemSetMemPool - {{else}} - data["__cuMemSetMemPool"] = 0 - {{endif}} - - {{if 'cuMemAllocFromPoolAsync' in found_functions}} - global __cuMemAllocFromPoolAsync - data["__cuMemAllocFromPoolAsync"] = __cuMemAllocFromPoolAsync - {{else}} - data["__cuMemAllocFromPoolAsync"] = 0 - {{endif}} - - {{if 'cuMemPoolExportToShareableHandle' in found_functions}} - global __cuMemPoolExportToShareableHandle - data["__cuMemPoolExportToShareableHandle"] = __cuMemPoolExportToShareableHandle - {{else}} - data["__cuMemPoolExportToShareableHandle"] = 0 - {{endif}} - - {{if 'cuMemPoolImportFromShareableHandle' in found_functions}} - global __cuMemPoolImportFromShareableHandle - data["__cuMemPoolImportFromShareableHandle"] = __cuMemPoolImportFromShareableHandle - {{else}} - data["__cuMemPoolImportFromShareableHandle"] = 0 - {{endif}} - - {{if 'cuMemPoolExportPointer' in found_functions}} - global __cuMemPoolExportPointer - data["__cuMemPoolExportPointer"] = __cuMemPoolExportPointer - {{else}} - data["__cuMemPoolExportPointer"] = 0 - {{endif}} - - {{if 'cuMemPoolImportPointer' in found_functions}} - global __cuMemPoolImportPointer - data["__cuMemPoolImportPointer"] = __cuMemPoolImportPointer - {{else}} - data["__cuMemPoolImportPointer"] = 0 - {{endif}} - - {{if 'cuMulticastCreate' in found_functions}} - global __cuMulticastCreate - data["__cuMulticastCreate"] = __cuMulticastCreate - {{else}} - data["__cuMulticastCreate"] = 0 - {{endif}} - - {{if 'cuMulticastAddDevice' in found_functions}} - global __cuMulticastAddDevice - data["__cuMulticastAddDevice"] = __cuMulticastAddDevice - {{else}} - data["__cuMulticastAddDevice"] = 0 - {{endif}} - - {{if 'cuMulticastBindMem' in found_functions}} - global __cuMulticastBindMem - data["__cuMulticastBindMem"] = __cuMulticastBindMem - {{else}} - data["__cuMulticastBindMem"] = 0 - {{endif}} - - {{if 'cuMulticastBindMem_v2' in found_functions}} - global __cuMulticastBindMem_v2 - data["__cuMulticastBindMem_v2"] = __cuMulticastBindMem_v2 - {{else}} - data["__cuMulticastBindMem_v2"] = 0 - {{endif}} - - {{if 'cuMulticastBindAddr' in found_functions}} - global __cuMulticastBindAddr - data["__cuMulticastBindAddr"] = __cuMulticastBindAddr - {{else}} - data["__cuMulticastBindAddr"] = 0 - {{endif}} - - {{if 'cuMulticastBindAddr_v2' in found_functions}} - global __cuMulticastBindAddr_v2 - data["__cuMulticastBindAddr_v2"] = __cuMulticastBindAddr_v2 - {{else}} - data["__cuMulticastBindAddr_v2"] = 0 - {{endif}} - - {{if 'cuMulticastUnbind' in found_functions}} - global __cuMulticastUnbind - data["__cuMulticastUnbind"] = __cuMulticastUnbind - {{else}} - data["__cuMulticastUnbind"] = 0 - {{endif}} - - {{if 'cuMulticastGetGranularity' in found_functions}} - global __cuMulticastGetGranularity - data["__cuMulticastGetGranularity"] = __cuMulticastGetGranularity - {{else}} - data["__cuMulticastGetGranularity"] = 0 - {{endif}} - - {{if 'cuPointerGetAttribute' in found_functions}} - global __cuPointerGetAttribute - data["__cuPointerGetAttribute"] = __cuPointerGetAttribute - {{else}} - data["__cuPointerGetAttribute"] = 0 - {{endif}} - - {{if 'cuMemPrefetchAsync_v2' in found_functions}} - global __cuMemPrefetchAsync_v2 - data["__cuMemPrefetchAsync_v2"] = __cuMemPrefetchAsync_v2 - {{else}} - data["__cuMemPrefetchAsync_v2"] = 0 - {{endif}} - - {{if 'cuMemAdvise_v2' in found_functions}} - global __cuMemAdvise_v2 - data["__cuMemAdvise_v2"] = __cuMemAdvise_v2 - {{else}} - data["__cuMemAdvise_v2"] = 0 - {{endif}} - - {{if 'cuMemPrefetchBatchAsync' in found_functions}} - global __cuMemPrefetchBatchAsync - data["__cuMemPrefetchBatchAsync"] = __cuMemPrefetchBatchAsync - {{else}} - data["__cuMemPrefetchBatchAsync"] = 0 - {{endif}} - - {{if 'cuMemDiscardBatchAsync' in found_functions}} - global __cuMemDiscardBatchAsync - data["__cuMemDiscardBatchAsync"] = __cuMemDiscardBatchAsync - {{else}} - data["__cuMemDiscardBatchAsync"] = 0 - {{endif}} - - {{if 'cuMemDiscardAndPrefetchBatchAsync' in found_functions}} - global __cuMemDiscardAndPrefetchBatchAsync - data["__cuMemDiscardAndPrefetchBatchAsync"] = __cuMemDiscardAndPrefetchBatchAsync - {{else}} - data["__cuMemDiscardAndPrefetchBatchAsync"] = 0 - {{endif}} - - {{if 'cuMemRangeGetAttribute' in found_functions}} - global __cuMemRangeGetAttribute - data["__cuMemRangeGetAttribute"] = __cuMemRangeGetAttribute - {{else}} - data["__cuMemRangeGetAttribute"] = 0 - {{endif}} - - {{if 'cuMemRangeGetAttributes' in found_functions}} - global __cuMemRangeGetAttributes - data["__cuMemRangeGetAttributes"] = __cuMemRangeGetAttributes - {{else}} - data["__cuMemRangeGetAttributes"] = 0 - {{endif}} - - {{if 'cuPointerSetAttribute' in found_functions}} - global __cuPointerSetAttribute - data["__cuPointerSetAttribute"] = __cuPointerSetAttribute - {{else}} - data["__cuPointerSetAttribute"] = 0 - {{endif}} - - {{if 'cuPointerGetAttributes' in found_functions}} - global __cuPointerGetAttributes - data["__cuPointerGetAttributes"] = __cuPointerGetAttributes - {{else}} - data["__cuPointerGetAttributes"] = 0 - {{endif}} - - {{if 'cuStreamCreate' in found_functions}} - global __cuStreamCreate - data["__cuStreamCreate"] = __cuStreamCreate - {{else}} - data["__cuStreamCreate"] = 0 - {{endif}} - - {{if 'cuStreamCreateWithPriority' in found_functions}} - global __cuStreamCreateWithPriority - data["__cuStreamCreateWithPriority"] = __cuStreamCreateWithPriority - {{else}} - data["__cuStreamCreateWithPriority"] = 0 - {{endif}} - - {{if 'cuStreamBeginCaptureToCig' in found_functions}} - global __cuStreamBeginCaptureToCig - data["__cuStreamBeginCaptureToCig"] = __cuStreamBeginCaptureToCig - {{else}} - data["__cuStreamBeginCaptureToCig"] = 0 - {{endif}} - - {{if 'cuStreamEndCaptureToCig' in found_functions}} - global __cuStreamEndCaptureToCig - data["__cuStreamEndCaptureToCig"] = __cuStreamEndCaptureToCig - {{else}} - data["__cuStreamEndCaptureToCig"] = 0 - {{endif}} - - {{if 'cuStreamGetPriority' in found_functions}} - global __cuStreamGetPriority - data["__cuStreamGetPriority"] = __cuStreamGetPriority - {{else}} - data["__cuStreamGetPriority"] = 0 - {{endif}} - - {{if 'cuStreamGetDevice' in found_functions}} - global __cuStreamGetDevice - data["__cuStreamGetDevice"] = __cuStreamGetDevice - {{else}} - data["__cuStreamGetDevice"] = 0 - {{endif}} - - {{if 'cuStreamGetFlags' in found_functions}} - global __cuStreamGetFlags - data["__cuStreamGetFlags"] = __cuStreamGetFlags - {{else}} - data["__cuStreamGetFlags"] = 0 - {{endif}} - - {{if 'cuStreamGetId' in found_functions}} - global __cuStreamGetId - data["__cuStreamGetId"] = __cuStreamGetId - {{else}} - data["__cuStreamGetId"] = 0 - {{endif}} - - {{if 'cuStreamGetCtx' in found_functions}} - global __cuStreamGetCtx - data["__cuStreamGetCtx"] = __cuStreamGetCtx - {{else}} - data["__cuStreamGetCtx"] = 0 - {{endif}} - - {{if 'cuStreamGetCtx_v2' in found_functions}} - global __cuStreamGetCtx_v2 - data["__cuStreamGetCtx_v2"] = __cuStreamGetCtx_v2 - {{else}} - data["__cuStreamGetCtx_v2"] = 0 - {{endif}} - - {{if 'cuStreamWaitEvent' in found_functions}} - global __cuStreamWaitEvent - data["__cuStreamWaitEvent"] = __cuStreamWaitEvent - {{else}} - data["__cuStreamWaitEvent"] = 0 - {{endif}} - - {{if 'cuStreamAddCallback' in found_functions}} - global __cuStreamAddCallback - data["__cuStreamAddCallback"] = __cuStreamAddCallback - {{else}} - data["__cuStreamAddCallback"] = 0 - {{endif}} - - {{if 'cuStreamBeginCapture_v2' in found_functions}} - global __cuStreamBeginCapture_v2 - data["__cuStreamBeginCapture_v2"] = __cuStreamBeginCapture_v2 - {{else}} - data["__cuStreamBeginCapture_v2"] = 0 - {{endif}} - - {{if 'cuStreamBeginCaptureToGraph' in found_functions}} - global __cuStreamBeginCaptureToGraph - data["__cuStreamBeginCaptureToGraph"] = __cuStreamBeginCaptureToGraph - {{else}} - data["__cuStreamBeginCaptureToGraph"] = 0 - {{endif}} - - {{if 'cuThreadExchangeStreamCaptureMode' in found_functions}} - global __cuThreadExchangeStreamCaptureMode - data["__cuThreadExchangeStreamCaptureMode"] = __cuThreadExchangeStreamCaptureMode - {{else}} - data["__cuThreadExchangeStreamCaptureMode"] = 0 - {{endif}} - - {{if 'cuStreamEndCapture' in found_functions}} - global __cuStreamEndCapture - data["__cuStreamEndCapture"] = __cuStreamEndCapture - {{else}} - data["__cuStreamEndCapture"] = 0 - {{endif}} - - {{if 'cuStreamIsCapturing' in found_functions}} - global __cuStreamIsCapturing - data["__cuStreamIsCapturing"] = __cuStreamIsCapturing - {{else}} - data["__cuStreamIsCapturing"] = 0 - {{endif}} - - {{if 'cuStreamGetCaptureInfo_v3' in found_functions}} - global __cuStreamGetCaptureInfo_v3 - data["__cuStreamGetCaptureInfo_v3"] = __cuStreamGetCaptureInfo_v3 - {{else}} - data["__cuStreamGetCaptureInfo_v3"] = 0 - {{endif}} - - {{if 'cuStreamUpdateCaptureDependencies_v2' in found_functions}} - global __cuStreamUpdateCaptureDependencies_v2 - data["__cuStreamUpdateCaptureDependencies_v2"] = __cuStreamUpdateCaptureDependencies_v2 - {{else}} - data["__cuStreamUpdateCaptureDependencies_v2"] = 0 - {{endif}} - - {{if 'cuStreamAttachMemAsync' in found_functions}} - global __cuStreamAttachMemAsync - data["__cuStreamAttachMemAsync"] = __cuStreamAttachMemAsync - {{else}} - data["__cuStreamAttachMemAsync"] = 0 - {{endif}} - - {{if 'cuStreamQuery' in found_functions}} - global __cuStreamQuery - data["__cuStreamQuery"] = __cuStreamQuery - {{else}} - data["__cuStreamQuery"] = 0 - {{endif}} - - {{if 'cuStreamSynchronize' in found_functions}} - global __cuStreamSynchronize - data["__cuStreamSynchronize"] = __cuStreamSynchronize - {{else}} - data["__cuStreamSynchronize"] = 0 - {{endif}} - - {{if 'cuStreamDestroy_v2' in found_functions}} - global __cuStreamDestroy_v2 - data["__cuStreamDestroy_v2"] = __cuStreamDestroy_v2 - {{else}} - data["__cuStreamDestroy_v2"] = 0 - {{endif}} - - {{if 'cuStreamCopyAttributes' in found_functions}} - global __cuStreamCopyAttributes - data["__cuStreamCopyAttributes"] = __cuStreamCopyAttributes - {{else}} - data["__cuStreamCopyAttributes"] = 0 - {{endif}} - - {{if 'cuStreamGetAttribute' in found_functions}} - global __cuStreamGetAttribute - data["__cuStreamGetAttribute"] = __cuStreamGetAttribute - {{else}} - data["__cuStreamGetAttribute"] = 0 - {{endif}} - - {{if 'cuStreamSetAttribute' in found_functions}} - global __cuStreamSetAttribute - data["__cuStreamSetAttribute"] = __cuStreamSetAttribute - {{else}} - data["__cuStreamSetAttribute"] = 0 - {{endif}} - - {{if 'cuEventCreate' in found_functions}} - global __cuEventCreate - data["__cuEventCreate"] = __cuEventCreate - {{else}} - data["__cuEventCreate"] = 0 - {{endif}} - - {{if 'cuEventRecord' in found_functions}} - global __cuEventRecord - data["__cuEventRecord"] = __cuEventRecord - {{else}} - data["__cuEventRecord"] = 0 - {{endif}} - - {{if 'cuEventRecordWithFlags' in found_functions}} - global __cuEventRecordWithFlags - data["__cuEventRecordWithFlags"] = __cuEventRecordWithFlags - {{else}} - data["__cuEventRecordWithFlags"] = 0 - {{endif}} - - {{if 'cuEventQuery' in found_functions}} - global __cuEventQuery - data["__cuEventQuery"] = __cuEventQuery - {{else}} - data["__cuEventQuery"] = 0 - {{endif}} - - {{if 'cuEventSynchronize' in found_functions}} - global __cuEventSynchronize - data["__cuEventSynchronize"] = __cuEventSynchronize - {{else}} - data["__cuEventSynchronize"] = 0 - {{endif}} - - {{if 'cuEventDestroy_v2' in found_functions}} - global __cuEventDestroy_v2 - data["__cuEventDestroy_v2"] = __cuEventDestroy_v2 - {{else}} - data["__cuEventDestroy_v2"] = 0 - {{endif}} - - {{if 'cuEventElapsedTime_v2' in found_functions}} - global __cuEventElapsedTime_v2 - data["__cuEventElapsedTime_v2"] = __cuEventElapsedTime_v2 - {{else}} - data["__cuEventElapsedTime_v2"] = 0 - {{endif}} - - {{if 'cuImportExternalMemory' in found_functions}} - global __cuImportExternalMemory - data["__cuImportExternalMemory"] = __cuImportExternalMemory - {{else}} - data["__cuImportExternalMemory"] = 0 - {{endif}} - - {{if 'cuExternalMemoryGetMappedBuffer' in found_functions}} - global __cuExternalMemoryGetMappedBuffer - data["__cuExternalMemoryGetMappedBuffer"] = __cuExternalMemoryGetMappedBuffer - {{else}} - data["__cuExternalMemoryGetMappedBuffer"] = 0 - {{endif}} - - {{if 'cuExternalMemoryGetMappedMipmappedArray' in found_functions}} - global __cuExternalMemoryGetMappedMipmappedArray - data["__cuExternalMemoryGetMappedMipmappedArray"] = __cuExternalMemoryGetMappedMipmappedArray - {{else}} - data["__cuExternalMemoryGetMappedMipmappedArray"] = 0 - {{endif}} - - {{if 'cuDestroyExternalMemory' in found_functions}} - global __cuDestroyExternalMemory - data["__cuDestroyExternalMemory"] = __cuDestroyExternalMemory - {{else}} - data["__cuDestroyExternalMemory"] = 0 - {{endif}} - - {{if 'cuImportExternalSemaphore' in found_functions}} - global __cuImportExternalSemaphore - data["__cuImportExternalSemaphore"] = __cuImportExternalSemaphore - {{else}} - data["__cuImportExternalSemaphore"] = 0 - {{endif}} - - {{if 'cuSignalExternalSemaphoresAsync' in found_functions}} - global __cuSignalExternalSemaphoresAsync - data["__cuSignalExternalSemaphoresAsync"] = __cuSignalExternalSemaphoresAsync - {{else}} - data["__cuSignalExternalSemaphoresAsync"] = 0 - {{endif}} - - {{if 'cuWaitExternalSemaphoresAsync' in found_functions}} - global __cuWaitExternalSemaphoresAsync - data["__cuWaitExternalSemaphoresAsync"] = __cuWaitExternalSemaphoresAsync - {{else}} - data["__cuWaitExternalSemaphoresAsync"] = 0 - {{endif}} - - {{if 'cuDestroyExternalSemaphore' in found_functions}} - global __cuDestroyExternalSemaphore - data["__cuDestroyExternalSemaphore"] = __cuDestroyExternalSemaphore - {{else}} - data["__cuDestroyExternalSemaphore"] = 0 - {{endif}} - - {{if 'cuStreamWaitValue32_v2' in found_functions}} - global __cuStreamWaitValue32_v2 - data["__cuStreamWaitValue32_v2"] = __cuStreamWaitValue32_v2 - {{else}} - data["__cuStreamWaitValue32_v2"] = 0 - {{endif}} - - {{if 'cuStreamWaitValue64_v2' in found_functions}} - global __cuStreamWaitValue64_v2 - data["__cuStreamWaitValue64_v2"] = __cuStreamWaitValue64_v2 - {{else}} - data["__cuStreamWaitValue64_v2"] = 0 - {{endif}} - - {{if 'cuStreamWriteValue32_v2' in found_functions}} - global __cuStreamWriteValue32_v2 - data["__cuStreamWriteValue32_v2"] = __cuStreamWriteValue32_v2 - {{else}} - data["__cuStreamWriteValue32_v2"] = 0 - {{endif}} - - {{if 'cuStreamWriteValue64_v2' in found_functions}} - global __cuStreamWriteValue64_v2 - data["__cuStreamWriteValue64_v2"] = __cuStreamWriteValue64_v2 - {{else}} - data["__cuStreamWriteValue64_v2"] = 0 - {{endif}} - - {{if 'cuStreamBatchMemOp_v2' in found_functions}} - global __cuStreamBatchMemOp_v2 - data["__cuStreamBatchMemOp_v2"] = __cuStreamBatchMemOp_v2 - {{else}} - data["__cuStreamBatchMemOp_v2"] = 0 - {{endif}} - - {{if 'cuFuncGetAttribute' in found_functions}} - global __cuFuncGetAttribute - data["__cuFuncGetAttribute"] = __cuFuncGetAttribute - {{else}} - data["__cuFuncGetAttribute"] = 0 - {{endif}} - - {{if 'cuFuncSetAttribute' in found_functions}} - global __cuFuncSetAttribute - data["__cuFuncSetAttribute"] = __cuFuncSetAttribute - {{else}} - data["__cuFuncSetAttribute"] = 0 - {{endif}} - - {{if 'cuFuncSetCacheConfig' in found_functions}} - global __cuFuncSetCacheConfig - data["__cuFuncSetCacheConfig"] = __cuFuncSetCacheConfig - {{else}} - data["__cuFuncSetCacheConfig"] = 0 - {{endif}} - - {{if 'cuFuncGetModule' in found_functions}} - global __cuFuncGetModule - data["__cuFuncGetModule"] = __cuFuncGetModule - {{else}} - data["__cuFuncGetModule"] = 0 - {{endif}} - - {{if 'cuFuncGetName' in found_functions}} - global __cuFuncGetName - data["__cuFuncGetName"] = __cuFuncGetName - {{else}} - data["__cuFuncGetName"] = 0 - {{endif}} - - {{if 'cuFuncGetParamInfo' in found_functions}} - global __cuFuncGetParamInfo - data["__cuFuncGetParamInfo"] = __cuFuncGetParamInfo - {{else}} - data["__cuFuncGetParamInfo"] = 0 - {{endif}} - - {{if 'cuFuncGetParamCount' in found_functions}} - global __cuFuncGetParamCount - data["__cuFuncGetParamCount"] = __cuFuncGetParamCount - {{else}} - data["__cuFuncGetParamCount"] = 0 - {{endif}} - - {{if 'cuFuncIsLoaded' in found_functions}} - global __cuFuncIsLoaded - data["__cuFuncIsLoaded"] = __cuFuncIsLoaded - {{else}} - data["__cuFuncIsLoaded"] = 0 - {{endif}} - - {{if 'cuFuncLoad' in found_functions}} - global __cuFuncLoad - data["__cuFuncLoad"] = __cuFuncLoad - {{else}} - data["__cuFuncLoad"] = 0 - {{endif}} - - {{if 'cuLaunchKernel' in found_functions}} - global __cuLaunchKernel - data["__cuLaunchKernel"] = __cuLaunchKernel - {{else}} - data["__cuLaunchKernel"] = 0 - {{endif}} - - {{if 'cuLaunchKernelEx' in found_functions}} - global __cuLaunchKernelEx - data["__cuLaunchKernelEx"] = __cuLaunchKernelEx - {{else}} - data["__cuLaunchKernelEx"] = 0 - {{endif}} - - {{if 'cuLaunchCooperativeKernel' in found_functions}} - global __cuLaunchCooperativeKernel - data["__cuLaunchCooperativeKernel"] = __cuLaunchCooperativeKernel - {{else}} - data["__cuLaunchCooperativeKernel"] = 0 - {{endif}} - - {{if 'cuLaunchCooperativeKernelMultiDevice' in found_functions}} - global __cuLaunchCooperativeKernelMultiDevice - data["__cuLaunchCooperativeKernelMultiDevice"] = __cuLaunchCooperativeKernelMultiDevice - {{else}} - data["__cuLaunchCooperativeKernelMultiDevice"] = 0 - {{endif}} - - {{if 'cuLaunchHostFunc' in found_functions}} - global __cuLaunchHostFunc - data["__cuLaunchHostFunc"] = __cuLaunchHostFunc - {{else}} - data["__cuLaunchHostFunc"] = 0 - {{endif}} - - {{if 'cuLaunchHostFunc_v2' in found_functions}} - global __cuLaunchHostFunc_v2 - data["__cuLaunchHostFunc_v2"] = __cuLaunchHostFunc_v2 - {{else}} - data["__cuLaunchHostFunc_v2"] = 0 - {{endif}} - - {{if 'cuFuncSetBlockShape' in found_functions}} - global __cuFuncSetBlockShape - data["__cuFuncSetBlockShape"] = __cuFuncSetBlockShape - {{else}} - data["__cuFuncSetBlockShape"] = 0 - {{endif}} - - {{if 'cuFuncSetSharedSize' in found_functions}} - global __cuFuncSetSharedSize - data["__cuFuncSetSharedSize"] = __cuFuncSetSharedSize - {{else}} - data["__cuFuncSetSharedSize"] = 0 - {{endif}} - - {{if 'cuParamSetSize' in found_functions}} - global __cuParamSetSize - data["__cuParamSetSize"] = __cuParamSetSize - {{else}} - data["__cuParamSetSize"] = 0 - {{endif}} - - {{if 'cuParamSeti' in found_functions}} - global __cuParamSeti - data["__cuParamSeti"] = __cuParamSeti - {{else}} - data["__cuParamSeti"] = 0 - {{endif}} - - {{if 'cuParamSetf' in found_functions}} - global __cuParamSetf - data["__cuParamSetf"] = __cuParamSetf - {{else}} - data["__cuParamSetf"] = 0 - {{endif}} - - {{if 'cuParamSetv' in found_functions}} - global __cuParamSetv - data["__cuParamSetv"] = __cuParamSetv - {{else}} - data["__cuParamSetv"] = 0 - {{endif}} - - {{if 'cuLaunch' in found_functions}} - global __cuLaunch - data["__cuLaunch"] = __cuLaunch - {{else}} - data["__cuLaunch"] = 0 - {{endif}} - - {{if 'cuLaunchGrid' in found_functions}} - global __cuLaunchGrid - data["__cuLaunchGrid"] = __cuLaunchGrid - {{else}} - data["__cuLaunchGrid"] = 0 - {{endif}} - - {{if 'cuLaunchGridAsync' in found_functions}} - global __cuLaunchGridAsync - data["__cuLaunchGridAsync"] = __cuLaunchGridAsync - {{else}} - data["__cuLaunchGridAsync"] = 0 - {{endif}} - - {{if 'cuParamSetTexRef' in found_functions}} - global __cuParamSetTexRef - data["__cuParamSetTexRef"] = __cuParamSetTexRef - {{else}} - data["__cuParamSetTexRef"] = 0 - {{endif}} - - {{if 'cuFuncSetSharedMemConfig' in found_functions}} - global __cuFuncSetSharedMemConfig - data["__cuFuncSetSharedMemConfig"] = __cuFuncSetSharedMemConfig - {{else}} - data["__cuFuncSetSharedMemConfig"] = 0 - {{endif}} - - {{if 'cuGraphCreate' in found_functions}} - global __cuGraphCreate - data["__cuGraphCreate"] = __cuGraphCreate - {{else}} - data["__cuGraphCreate"] = 0 - {{endif}} - - {{if 'cuGraphAddKernelNode_v2' in found_functions}} - global __cuGraphAddKernelNode_v2 - data["__cuGraphAddKernelNode_v2"] = __cuGraphAddKernelNode_v2 - {{else}} - data["__cuGraphAddKernelNode_v2"] = 0 - {{endif}} - - {{if 'cuGraphKernelNodeGetParams_v2' in found_functions}} - global __cuGraphKernelNodeGetParams_v2 - data["__cuGraphKernelNodeGetParams_v2"] = __cuGraphKernelNodeGetParams_v2 - {{else}} - data["__cuGraphKernelNodeGetParams_v2"] = 0 - {{endif}} - - {{if 'cuGraphKernelNodeSetParams_v2' in found_functions}} - global __cuGraphKernelNodeSetParams_v2 - data["__cuGraphKernelNodeSetParams_v2"] = __cuGraphKernelNodeSetParams_v2 - {{else}} - data["__cuGraphKernelNodeSetParams_v2"] = 0 - {{endif}} - - {{if 'cuGraphAddMemcpyNode' in found_functions}} - global __cuGraphAddMemcpyNode - data["__cuGraphAddMemcpyNode"] = __cuGraphAddMemcpyNode - {{else}} - data["__cuGraphAddMemcpyNode"] = 0 - {{endif}} - - {{if 'cuGraphMemcpyNodeGetParams' in found_functions}} - global __cuGraphMemcpyNodeGetParams - data["__cuGraphMemcpyNodeGetParams"] = __cuGraphMemcpyNodeGetParams - {{else}} - data["__cuGraphMemcpyNodeGetParams"] = 0 - {{endif}} - - {{if 'cuGraphMemcpyNodeSetParams' in found_functions}} - global __cuGraphMemcpyNodeSetParams - data["__cuGraphMemcpyNodeSetParams"] = __cuGraphMemcpyNodeSetParams - {{else}} - data["__cuGraphMemcpyNodeSetParams"] = 0 - {{endif}} - - {{if 'cuGraphAddMemsetNode' in found_functions}} - global __cuGraphAddMemsetNode - data["__cuGraphAddMemsetNode"] = __cuGraphAddMemsetNode - {{else}} - data["__cuGraphAddMemsetNode"] = 0 - {{endif}} - - {{if 'cuGraphMemsetNodeGetParams' in found_functions}} - global __cuGraphMemsetNodeGetParams - data["__cuGraphMemsetNodeGetParams"] = __cuGraphMemsetNodeGetParams - {{else}} - data["__cuGraphMemsetNodeGetParams"] = 0 - {{endif}} - - {{if 'cuGraphMemsetNodeSetParams' in found_functions}} - global __cuGraphMemsetNodeSetParams - data["__cuGraphMemsetNodeSetParams"] = __cuGraphMemsetNodeSetParams - {{else}} - data["__cuGraphMemsetNodeSetParams"] = 0 - {{endif}} - - {{if 'cuGraphAddHostNode' in found_functions}} - global __cuGraphAddHostNode - data["__cuGraphAddHostNode"] = __cuGraphAddHostNode - {{else}} - data["__cuGraphAddHostNode"] = 0 - {{endif}} - - {{if 'cuGraphHostNodeGetParams' in found_functions}} - global __cuGraphHostNodeGetParams - data["__cuGraphHostNodeGetParams"] = __cuGraphHostNodeGetParams - {{else}} - data["__cuGraphHostNodeGetParams"] = 0 - {{endif}} - - {{if 'cuGraphHostNodeSetParams' in found_functions}} - global __cuGraphHostNodeSetParams - data["__cuGraphHostNodeSetParams"] = __cuGraphHostNodeSetParams - {{else}} - data["__cuGraphHostNodeSetParams"] = 0 - {{endif}} - - {{if 'cuGraphAddChildGraphNode' in found_functions}} - global __cuGraphAddChildGraphNode - data["__cuGraphAddChildGraphNode"] = __cuGraphAddChildGraphNode - {{else}} - data["__cuGraphAddChildGraphNode"] = 0 - {{endif}} - - {{if 'cuGraphChildGraphNodeGetGraph' in found_functions}} - global __cuGraphChildGraphNodeGetGraph - data["__cuGraphChildGraphNodeGetGraph"] = __cuGraphChildGraphNodeGetGraph - {{else}} - data["__cuGraphChildGraphNodeGetGraph"] = 0 - {{endif}} - - {{if 'cuGraphAddEmptyNode' in found_functions}} - global __cuGraphAddEmptyNode - data["__cuGraphAddEmptyNode"] = __cuGraphAddEmptyNode - {{else}} - data["__cuGraphAddEmptyNode"] = 0 - {{endif}} - - {{if 'cuGraphAddEventRecordNode' in found_functions}} - global __cuGraphAddEventRecordNode - data["__cuGraphAddEventRecordNode"] = __cuGraphAddEventRecordNode - {{else}} - data["__cuGraphAddEventRecordNode"] = 0 - {{endif}} - - {{if 'cuGraphEventRecordNodeGetEvent' in found_functions}} - global __cuGraphEventRecordNodeGetEvent - data["__cuGraphEventRecordNodeGetEvent"] = __cuGraphEventRecordNodeGetEvent - {{else}} - data["__cuGraphEventRecordNodeGetEvent"] = 0 - {{endif}} - - {{if 'cuGraphEventRecordNodeSetEvent' in found_functions}} - global __cuGraphEventRecordNodeSetEvent - data["__cuGraphEventRecordNodeSetEvent"] = __cuGraphEventRecordNodeSetEvent - {{else}} - data["__cuGraphEventRecordNodeSetEvent"] = 0 - {{endif}} - - {{if 'cuGraphAddEventWaitNode' in found_functions}} - global __cuGraphAddEventWaitNode - data["__cuGraphAddEventWaitNode"] = __cuGraphAddEventWaitNode - {{else}} - data["__cuGraphAddEventWaitNode"] = 0 - {{endif}} - - {{if 'cuGraphEventWaitNodeGetEvent' in found_functions}} - global __cuGraphEventWaitNodeGetEvent - data["__cuGraphEventWaitNodeGetEvent"] = __cuGraphEventWaitNodeGetEvent - {{else}} - data["__cuGraphEventWaitNodeGetEvent"] = 0 - {{endif}} - - {{if 'cuGraphEventWaitNodeSetEvent' in found_functions}} - global __cuGraphEventWaitNodeSetEvent - data["__cuGraphEventWaitNodeSetEvent"] = __cuGraphEventWaitNodeSetEvent - {{else}} - data["__cuGraphEventWaitNodeSetEvent"] = 0 - {{endif}} - - {{if 'cuGraphAddExternalSemaphoresSignalNode' in found_functions}} - global __cuGraphAddExternalSemaphoresSignalNode - data["__cuGraphAddExternalSemaphoresSignalNode"] = __cuGraphAddExternalSemaphoresSignalNode - {{else}} - data["__cuGraphAddExternalSemaphoresSignalNode"] = 0 - {{endif}} - - {{if 'cuGraphExternalSemaphoresSignalNodeGetParams' in found_functions}} - global __cuGraphExternalSemaphoresSignalNodeGetParams - data["__cuGraphExternalSemaphoresSignalNodeGetParams"] = __cuGraphExternalSemaphoresSignalNodeGetParams - {{else}} - data["__cuGraphExternalSemaphoresSignalNodeGetParams"] = 0 - {{endif}} - - {{if 'cuGraphExternalSemaphoresSignalNodeSetParams' in found_functions}} - global __cuGraphExternalSemaphoresSignalNodeSetParams - data["__cuGraphExternalSemaphoresSignalNodeSetParams"] = __cuGraphExternalSemaphoresSignalNodeSetParams - {{else}} - data["__cuGraphExternalSemaphoresSignalNodeSetParams"] = 0 - {{endif}} - - {{if 'cuGraphAddExternalSemaphoresWaitNode' in found_functions}} - global __cuGraphAddExternalSemaphoresWaitNode - data["__cuGraphAddExternalSemaphoresWaitNode"] = __cuGraphAddExternalSemaphoresWaitNode - {{else}} - data["__cuGraphAddExternalSemaphoresWaitNode"] = 0 - {{endif}} - - {{if 'cuGraphExternalSemaphoresWaitNodeGetParams' in found_functions}} - global __cuGraphExternalSemaphoresWaitNodeGetParams - data["__cuGraphExternalSemaphoresWaitNodeGetParams"] = __cuGraphExternalSemaphoresWaitNodeGetParams - {{else}} - data["__cuGraphExternalSemaphoresWaitNodeGetParams"] = 0 - {{endif}} - - {{if 'cuGraphExternalSemaphoresWaitNodeSetParams' in found_functions}} - global __cuGraphExternalSemaphoresWaitNodeSetParams - data["__cuGraphExternalSemaphoresWaitNodeSetParams"] = __cuGraphExternalSemaphoresWaitNodeSetParams - {{else}} - data["__cuGraphExternalSemaphoresWaitNodeSetParams"] = 0 - {{endif}} - - {{if 'cuGraphAddBatchMemOpNode' in found_functions}} - global __cuGraphAddBatchMemOpNode - data["__cuGraphAddBatchMemOpNode"] = __cuGraphAddBatchMemOpNode - {{else}} - data["__cuGraphAddBatchMemOpNode"] = 0 - {{endif}} - - {{if 'cuGraphBatchMemOpNodeGetParams' in found_functions}} - global __cuGraphBatchMemOpNodeGetParams - data["__cuGraphBatchMemOpNodeGetParams"] = __cuGraphBatchMemOpNodeGetParams - {{else}} - data["__cuGraphBatchMemOpNodeGetParams"] = 0 - {{endif}} - - {{if 'cuGraphBatchMemOpNodeSetParams' in found_functions}} - global __cuGraphBatchMemOpNodeSetParams - data["__cuGraphBatchMemOpNodeSetParams"] = __cuGraphBatchMemOpNodeSetParams - {{else}} - data["__cuGraphBatchMemOpNodeSetParams"] = 0 - {{endif}} - - {{if 'cuGraphExecBatchMemOpNodeSetParams' in found_functions}} - global __cuGraphExecBatchMemOpNodeSetParams - data["__cuGraphExecBatchMemOpNodeSetParams"] = __cuGraphExecBatchMemOpNodeSetParams - {{else}} - data["__cuGraphExecBatchMemOpNodeSetParams"] = 0 - {{endif}} - - {{if 'cuGraphAddMemAllocNode' in found_functions}} - global __cuGraphAddMemAllocNode - data["__cuGraphAddMemAllocNode"] = __cuGraphAddMemAllocNode - {{else}} - data["__cuGraphAddMemAllocNode"] = 0 - {{endif}} - - {{if 'cuGraphMemAllocNodeGetParams' in found_functions}} - global __cuGraphMemAllocNodeGetParams - data["__cuGraphMemAllocNodeGetParams"] = __cuGraphMemAllocNodeGetParams - {{else}} - data["__cuGraphMemAllocNodeGetParams"] = 0 - {{endif}} - - {{if 'cuGraphAddMemFreeNode' in found_functions}} - global __cuGraphAddMemFreeNode - data["__cuGraphAddMemFreeNode"] = __cuGraphAddMemFreeNode - {{else}} - data["__cuGraphAddMemFreeNode"] = 0 - {{endif}} - - {{if 'cuGraphMemFreeNodeGetParams' in found_functions}} - global __cuGraphMemFreeNodeGetParams - data["__cuGraphMemFreeNodeGetParams"] = __cuGraphMemFreeNodeGetParams - {{else}} - data["__cuGraphMemFreeNodeGetParams"] = 0 - {{endif}} - - {{if 'cuDeviceGraphMemTrim' in found_functions}} - global __cuDeviceGraphMemTrim - data["__cuDeviceGraphMemTrim"] = __cuDeviceGraphMemTrim - {{else}} - data["__cuDeviceGraphMemTrim"] = 0 - {{endif}} - - {{if 'cuDeviceGetGraphMemAttribute' in found_functions}} - global __cuDeviceGetGraphMemAttribute - data["__cuDeviceGetGraphMemAttribute"] = __cuDeviceGetGraphMemAttribute - {{else}} - data["__cuDeviceGetGraphMemAttribute"] = 0 - {{endif}} - - {{if 'cuDeviceSetGraphMemAttribute' in found_functions}} - global __cuDeviceSetGraphMemAttribute - data["__cuDeviceSetGraphMemAttribute"] = __cuDeviceSetGraphMemAttribute - {{else}} - data["__cuDeviceSetGraphMemAttribute"] = 0 - {{endif}} - - {{if 'cuGraphClone' in found_functions}} - global __cuGraphClone - data["__cuGraphClone"] = __cuGraphClone - {{else}} - data["__cuGraphClone"] = 0 - {{endif}} - - {{if 'cuGraphNodeFindInClone' in found_functions}} - global __cuGraphNodeFindInClone - data["__cuGraphNodeFindInClone"] = __cuGraphNodeFindInClone - {{else}} - data["__cuGraphNodeFindInClone"] = 0 - {{endif}} - - {{if 'cuGraphNodeGetType' in found_functions}} - global __cuGraphNodeGetType - data["__cuGraphNodeGetType"] = __cuGraphNodeGetType - {{else}} - data["__cuGraphNodeGetType"] = 0 - {{endif}} - - {{if 'cuGraphNodeGetContainingGraph' in found_functions}} - global __cuGraphNodeGetContainingGraph - data["__cuGraphNodeGetContainingGraph"] = __cuGraphNodeGetContainingGraph - {{else}} - data["__cuGraphNodeGetContainingGraph"] = 0 - {{endif}} - - {{if 'cuGraphNodeGetLocalId' in found_functions}} - global __cuGraphNodeGetLocalId - data["__cuGraphNodeGetLocalId"] = __cuGraphNodeGetLocalId - {{else}} - data["__cuGraphNodeGetLocalId"] = 0 - {{endif}} - - {{if 'cuGraphNodeGetToolsId' in found_functions}} - global __cuGraphNodeGetToolsId - data["__cuGraphNodeGetToolsId"] = __cuGraphNodeGetToolsId - {{else}} - data["__cuGraphNodeGetToolsId"] = 0 - {{endif}} - - {{if 'cuGraphGetId' in found_functions}} - global __cuGraphGetId - data["__cuGraphGetId"] = __cuGraphGetId - {{else}} - data["__cuGraphGetId"] = 0 - {{endif}} - - {{if 'cuGraphExecGetId' in found_functions}} - global __cuGraphExecGetId - data["__cuGraphExecGetId"] = __cuGraphExecGetId - {{else}} - data["__cuGraphExecGetId"] = 0 - {{endif}} - - {{if 'cuGraphGetNodes' in found_functions}} - global __cuGraphGetNodes - data["__cuGraphGetNodes"] = __cuGraphGetNodes - {{else}} - data["__cuGraphGetNodes"] = 0 - {{endif}} - - {{if 'cuGraphGetRootNodes' in found_functions}} - global __cuGraphGetRootNodes - data["__cuGraphGetRootNodes"] = __cuGraphGetRootNodes - {{else}} - data["__cuGraphGetRootNodes"] = 0 - {{endif}} - - {{if 'cuGraphGetEdges_v2' in found_functions}} - global __cuGraphGetEdges_v2 - data["__cuGraphGetEdges_v2"] = __cuGraphGetEdges_v2 - {{else}} - data["__cuGraphGetEdges_v2"] = 0 - {{endif}} - - {{if 'cuGraphNodeGetDependencies_v2' in found_functions}} - global __cuGraphNodeGetDependencies_v2 - data["__cuGraphNodeGetDependencies_v2"] = __cuGraphNodeGetDependencies_v2 - {{else}} - data["__cuGraphNodeGetDependencies_v2"] = 0 - {{endif}} - - {{if 'cuGraphNodeGetDependentNodes_v2' in found_functions}} - global __cuGraphNodeGetDependentNodes_v2 - data["__cuGraphNodeGetDependentNodes_v2"] = __cuGraphNodeGetDependentNodes_v2 - {{else}} - data["__cuGraphNodeGetDependentNodes_v2"] = 0 - {{endif}} - - {{if 'cuGraphAddDependencies_v2' in found_functions}} - global __cuGraphAddDependencies_v2 - data["__cuGraphAddDependencies_v2"] = __cuGraphAddDependencies_v2 - {{else}} - data["__cuGraphAddDependencies_v2"] = 0 - {{endif}} - - {{if 'cuGraphRemoveDependencies_v2' in found_functions}} - global __cuGraphRemoveDependencies_v2 - data["__cuGraphRemoveDependencies_v2"] = __cuGraphRemoveDependencies_v2 - {{else}} - data["__cuGraphRemoveDependencies_v2"] = 0 - {{endif}} - - {{if 'cuGraphDestroyNode' in found_functions}} - global __cuGraphDestroyNode - data["__cuGraphDestroyNode"] = __cuGraphDestroyNode - {{else}} - data["__cuGraphDestroyNode"] = 0 - {{endif}} - - {{if 'cuGraphInstantiateWithFlags' in found_functions}} - global __cuGraphInstantiateWithFlags - data["__cuGraphInstantiateWithFlags"] = __cuGraphInstantiateWithFlags - {{else}} - data["__cuGraphInstantiateWithFlags"] = 0 - {{endif}} - - {{if 'cuGraphInstantiateWithParams' in found_functions}} - global __cuGraphInstantiateWithParams - data["__cuGraphInstantiateWithParams"] = __cuGraphInstantiateWithParams - {{else}} - data["__cuGraphInstantiateWithParams"] = 0 - {{endif}} - - {{if 'cuGraphExecGetFlags' in found_functions}} - global __cuGraphExecGetFlags - data["__cuGraphExecGetFlags"] = __cuGraphExecGetFlags - {{else}} - data["__cuGraphExecGetFlags"] = 0 - {{endif}} - - {{if 'cuGraphExecKernelNodeSetParams_v2' in found_functions}} - global __cuGraphExecKernelNodeSetParams_v2 - data["__cuGraphExecKernelNodeSetParams_v2"] = __cuGraphExecKernelNodeSetParams_v2 - {{else}} - data["__cuGraphExecKernelNodeSetParams_v2"] = 0 - {{endif}} - - {{if 'cuGraphExecMemcpyNodeSetParams' in found_functions}} - global __cuGraphExecMemcpyNodeSetParams - data["__cuGraphExecMemcpyNodeSetParams"] = __cuGraphExecMemcpyNodeSetParams - {{else}} - data["__cuGraphExecMemcpyNodeSetParams"] = 0 - {{endif}} - - {{if 'cuGraphExecMemsetNodeSetParams' in found_functions}} - global __cuGraphExecMemsetNodeSetParams - data["__cuGraphExecMemsetNodeSetParams"] = __cuGraphExecMemsetNodeSetParams - {{else}} - data["__cuGraphExecMemsetNodeSetParams"] = 0 - {{endif}} - - {{if 'cuGraphExecHostNodeSetParams' in found_functions}} - global __cuGraphExecHostNodeSetParams - data["__cuGraphExecHostNodeSetParams"] = __cuGraphExecHostNodeSetParams - {{else}} - data["__cuGraphExecHostNodeSetParams"] = 0 - {{endif}} - - {{if 'cuGraphExecChildGraphNodeSetParams' in found_functions}} - global __cuGraphExecChildGraphNodeSetParams - data["__cuGraphExecChildGraphNodeSetParams"] = __cuGraphExecChildGraphNodeSetParams - {{else}} - data["__cuGraphExecChildGraphNodeSetParams"] = 0 - {{endif}} - - {{if 'cuGraphExecEventRecordNodeSetEvent' in found_functions}} - global __cuGraphExecEventRecordNodeSetEvent - data["__cuGraphExecEventRecordNodeSetEvent"] = __cuGraphExecEventRecordNodeSetEvent - {{else}} - data["__cuGraphExecEventRecordNodeSetEvent"] = 0 - {{endif}} - - {{if 'cuGraphExecEventWaitNodeSetEvent' in found_functions}} - global __cuGraphExecEventWaitNodeSetEvent - data["__cuGraphExecEventWaitNodeSetEvent"] = __cuGraphExecEventWaitNodeSetEvent - {{else}} - data["__cuGraphExecEventWaitNodeSetEvent"] = 0 - {{endif}} - - {{if 'cuGraphExecExternalSemaphoresSignalNodeSetParams' in found_functions}} - global __cuGraphExecExternalSemaphoresSignalNodeSetParams - data["__cuGraphExecExternalSemaphoresSignalNodeSetParams"] = __cuGraphExecExternalSemaphoresSignalNodeSetParams - {{else}} - data["__cuGraphExecExternalSemaphoresSignalNodeSetParams"] = 0 - {{endif}} - - {{if 'cuGraphExecExternalSemaphoresWaitNodeSetParams' in found_functions}} - global __cuGraphExecExternalSemaphoresWaitNodeSetParams - data["__cuGraphExecExternalSemaphoresWaitNodeSetParams"] = __cuGraphExecExternalSemaphoresWaitNodeSetParams - {{else}} - data["__cuGraphExecExternalSemaphoresWaitNodeSetParams"] = 0 - {{endif}} - - {{if 'cuGraphNodeSetEnabled' in found_functions}} - global __cuGraphNodeSetEnabled - data["__cuGraphNodeSetEnabled"] = __cuGraphNodeSetEnabled - {{else}} - data["__cuGraphNodeSetEnabled"] = 0 - {{endif}} - - {{if 'cuGraphNodeGetEnabled' in found_functions}} - global __cuGraphNodeGetEnabled - data["__cuGraphNodeGetEnabled"] = __cuGraphNodeGetEnabled - {{else}} - data["__cuGraphNodeGetEnabled"] = 0 - {{endif}} - - {{if 'cuGraphUpload' in found_functions}} - global __cuGraphUpload - data["__cuGraphUpload"] = __cuGraphUpload - {{else}} - data["__cuGraphUpload"] = 0 - {{endif}} - - {{if 'cuGraphLaunch' in found_functions}} - global __cuGraphLaunch - data["__cuGraphLaunch"] = __cuGraphLaunch - {{else}} - data["__cuGraphLaunch"] = 0 - {{endif}} - - {{if 'cuGraphExecDestroy' in found_functions}} - global __cuGraphExecDestroy - data["__cuGraphExecDestroy"] = __cuGraphExecDestroy - {{else}} - data["__cuGraphExecDestroy"] = 0 - {{endif}} - - {{if 'cuGraphDestroy' in found_functions}} - global __cuGraphDestroy - data["__cuGraphDestroy"] = __cuGraphDestroy - {{else}} - data["__cuGraphDestroy"] = 0 - {{endif}} - - {{if 'cuGraphExecUpdate_v2' in found_functions}} - global __cuGraphExecUpdate_v2 - data["__cuGraphExecUpdate_v2"] = __cuGraphExecUpdate_v2 - {{else}} - data["__cuGraphExecUpdate_v2"] = 0 - {{endif}} - - {{if 'cuGraphKernelNodeCopyAttributes' in found_functions}} - global __cuGraphKernelNodeCopyAttributes - data["__cuGraphKernelNodeCopyAttributes"] = __cuGraphKernelNodeCopyAttributes - {{else}} - data["__cuGraphKernelNodeCopyAttributes"] = 0 - {{endif}} - - {{if 'cuGraphKernelNodeGetAttribute' in found_functions}} - global __cuGraphKernelNodeGetAttribute - data["__cuGraphKernelNodeGetAttribute"] = __cuGraphKernelNodeGetAttribute - {{else}} - data["__cuGraphKernelNodeGetAttribute"] = 0 - {{endif}} - - {{if 'cuGraphKernelNodeSetAttribute' in found_functions}} - global __cuGraphKernelNodeSetAttribute - data["__cuGraphKernelNodeSetAttribute"] = __cuGraphKernelNodeSetAttribute - {{else}} - data["__cuGraphKernelNodeSetAttribute"] = 0 - {{endif}} - - {{if 'cuGraphDebugDotPrint' in found_functions}} - global __cuGraphDebugDotPrint - data["__cuGraphDebugDotPrint"] = __cuGraphDebugDotPrint - {{else}} - data["__cuGraphDebugDotPrint"] = 0 - {{endif}} - - {{if 'cuUserObjectCreate' in found_functions}} - global __cuUserObjectCreate - data["__cuUserObjectCreate"] = __cuUserObjectCreate - {{else}} - data["__cuUserObjectCreate"] = 0 - {{endif}} - - {{if 'cuUserObjectRetain' in found_functions}} - global __cuUserObjectRetain - data["__cuUserObjectRetain"] = __cuUserObjectRetain - {{else}} - data["__cuUserObjectRetain"] = 0 - {{endif}} - - {{if 'cuUserObjectRelease' in found_functions}} - global __cuUserObjectRelease - data["__cuUserObjectRelease"] = __cuUserObjectRelease - {{else}} - data["__cuUserObjectRelease"] = 0 - {{endif}} - - {{if 'cuGraphRetainUserObject' in found_functions}} - global __cuGraphRetainUserObject - data["__cuGraphRetainUserObject"] = __cuGraphRetainUserObject - {{else}} - data["__cuGraphRetainUserObject"] = 0 - {{endif}} - - {{if 'cuGraphReleaseUserObject' in found_functions}} - global __cuGraphReleaseUserObject - data["__cuGraphReleaseUserObject"] = __cuGraphReleaseUserObject - {{else}} - data["__cuGraphReleaseUserObject"] = 0 - {{endif}} - - {{if 'cuGraphAddNode_v2' in found_functions}} - global __cuGraphAddNode_v2 - data["__cuGraphAddNode_v2"] = __cuGraphAddNode_v2 - {{else}} - data["__cuGraphAddNode_v2"] = 0 - {{endif}} - - {{if 'cuGraphNodeSetParams' in found_functions}} - global __cuGraphNodeSetParams - data["__cuGraphNodeSetParams"] = __cuGraphNodeSetParams - {{else}} - data["__cuGraphNodeSetParams"] = 0 - {{endif}} - - {{if 'cuGraphNodeGetParams' in found_functions}} - global __cuGraphNodeGetParams - data["__cuGraphNodeGetParams"] = __cuGraphNodeGetParams - {{else}} - data["__cuGraphNodeGetParams"] = 0 - {{endif}} - - {{if 'cuGraphExecNodeSetParams' in found_functions}} - global __cuGraphExecNodeSetParams - data["__cuGraphExecNodeSetParams"] = __cuGraphExecNodeSetParams - {{else}} - data["__cuGraphExecNodeSetParams"] = 0 - {{endif}} - - {{if 'cuGraphConditionalHandleCreate' in found_functions}} - global __cuGraphConditionalHandleCreate - data["__cuGraphConditionalHandleCreate"] = __cuGraphConditionalHandleCreate - {{else}} - data["__cuGraphConditionalHandleCreate"] = 0 - {{endif}} - - {{if 'cuOccupancyMaxActiveBlocksPerMultiprocessor' in found_functions}} - global __cuOccupancyMaxActiveBlocksPerMultiprocessor - data["__cuOccupancyMaxActiveBlocksPerMultiprocessor"] = __cuOccupancyMaxActiveBlocksPerMultiprocessor - {{else}} - data["__cuOccupancyMaxActiveBlocksPerMultiprocessor"] = 0 - {{endif}} - - {{if 'cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags' in found_functions}} - global __cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags - data["__cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags"] = __cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags - {{else}} - data["__cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags"] = 0 - {{endif}} - - {{if 'cuOccupancyMaxPotentialBlockSize' in found_functions}} - global __cuOccupancyMaxPotentialBlockSize - data["__cuOccupancyMaxPotentialBlockSize"] = __cuOccupancyMaxPotentialBlockSize - {{else}} - data["__cuOccupancyMaxPotentialBlockSize"] = 0 - {{endif}} - - {{if 'cuOccupancyMaxPotentialBlockSizeWithFlags' in found_functions}} - global __cuOccupancyMaxPotentialBlockSizeWithFlags - data["__cuOccupancyMaxPotentialBlockSizeWithFlags"] = __cuOccupancyMaxPotentialBlockSizeWithFlags - {{else}} - data["__cuOccupancyMaxPotentialBlockSizeWithFlags"] = 0 - {{endif}} - - {{if 'cuOccupancyAvailableDynamicSMemPerBlock' in found_functions}} - global __cuOccupancyAvailableDynamicSMemPerBlock - data["__cuOccupancyAvailableDynamicSMemPerBlock"] = __cuOccupancyAvailableDynamicSMemPerBlock - {{else}} - data["__cuOccupancyAvailableDynamicSMemPerBlock"] = 0 - {{endif}} - - {{if 'cuOccupancyMaxPotentialClusterSize' in found_functions}} - global __cuOccupancyMaxPotentialClusterSize - data["__cuOccupancyMaxPotentialClusterSize"] = __cuOccupancyMaxPotentialClusterSize - {{else}} - data["__cuOccupancyMaxPotentialClusterSize"] = 0 - {{endif}} - - {{if 'cuOccupancyMaxActiveClusters' in found_functions}} - global __cuOccupancyMaxActiveClusters - data["__cuOccupancyMaxActiveClusters"] = __cuOccupancyMaxActiveClusters - {{else}} - data["__cuOccupancyMaxActiveClusters"] = 0 - {{endif}} - - {{if 'cuTexRefSetArray' in found_functions}} - global __cuTexRefSetArray - data["__cuTexRefSetArray"] = __cuTexRefSetArray - {{else}} - data["__cuTexRefSetArray"] = 0 - {{endif}} - - {{if 'cuTexRefSetMipmappedArray' in found_functions}} - global __cuTexRefSetMipmappedArray - data["__cuTexRefSetMipmappedArray"] = __cuTexRefSetMipmappedArray - {{else}} - data["__cuTexRefSetMipmappedArray"] = 0 - {{endif}} - - {{if 'cuTexRefSetAddress_v2' in found_functions}} - global __cuTexRefSetAddress_v2 - data["__cuTexRefSetAddress_v2"] = __cuTexRefSetAddress_v2 - {{else}} - data["__cuTexRefSetAddress_v2"] = 0 - {{endif}} - - {{if 'cuTexRefSetAddress2D_v3' in found_functions}} - global __cuTexRefSetAddress2D_v3 - data["__cuTexRefSetAddress2D_v3"] = __cuTexRefSetAddress2D_v3 - {{else}} - data["__cuTexRefSetAddress2D_v3"] = 0 - {{endif}} - - {{if 'cuTexRefSetFormat' in found_functions}} - global __cuTexRefSetFormat - data["__cuTexRefSetFormat"] = __cuTexRefSetFormat - {{else}} - data["__cuTexRefSetFormat"] = 0 - {{endif}} - - {{if 'cuTexRefSetAddressMode' in found_functions}} - global __cuTexRefSetAddressMode - data["__cuTexRefSetAddressMode"] = __cuTexRefSetAddressMode - {{else}} - data["__cuTexRefSetAddressMode"] = 0 - {{endif}} - - {{if 'cuTexRefSetFilterMode' in found_functions}} - global __cuTexRefSetFilterMode - data["__cuTexRefSetFilterMode"] = __cuTexRefSetFilterMode - {{else}} - data["__cuTexRefSetFilterMode"] = 0 - {{endif}} - - {{if 'cuTexRefSetMipmapFilterMode' in found_functions}} - global __cuTexRefSetMipmapFilterMode - data["__cuTexRefSetMipmapFilterMode"] = __cuTexRefSetMipmapFilterMode - {{else}} - data["__cuTexRefSetMipmapFilterMode"] = 0 - {{endif}} - - {{if 'cuTexRefSetMipmapLevelBias' in found_functions}} - global __cuTexRefSetMipmapLevelBias - data["__cuTexRefSetMipmapLevelBias"] = __cuTexRefSetMipmapLevelBias - {{else}} - data["__cuTexRefSetMipmapLevelBias"] = 0 - {{endif}} - - {{if 'cuTexRefSetMipmapLevelClamp' in found_functions}} - global __cuTexRefSetMipmapLevelClamp - data["__cuTexRefSetMipmapLevelClamp"] = __cuTexRefSetMipmapLevelClamp - {{else}} - data["__cuTexRefSetMipmapLevelClamp"] = 0 - {{endif}} - - {{if 'cuTexRefSetMaxAnisotropy' in found_functions}} - global __cuTexRefSetMaxAnisotropy - data["__cuTexRefSetMaxAnisotropy"] = __cuTexRefSetMaxAnisotropy - {{else}} - data["__cuTexRefSetMaxAnisotropy"] = 0 - {{endif}} - - {{if 'cuTexRefSetBorderColor' in found_functions}} - global __cuTexRefSetBorderColor - data["__cuTexRefSetBorderColor"] = __cuTexRefSetBorderColor - {{else}} - data["__cuTexRefSetBorderColor"] = 0 - {{endif}} - - {{if 'cuTexRefSetFlags' in found_functions}} - global __cuTexRefSetFlags - data["__cuTexRefSetFlags"] = __cuTexRefSetFlags - {{else}} - data["__cuTexRefSetFlags"] = 0 - {{endif}} - - {{if 'cuTexRefGetAddress_v2' in found_functions}} - global __cuTexRefGetAddress_v2 - data["__cuTexRefGetAddress_v2"] = __cuTexRefGetAddress_v2 - {{else}} - data["__cuTexRefGetAddress_v2"] = 0 - {{endif}} - - {{if 'cuTexRefGetArray' in found_functions}} - global __cuTexRefGetArray - data["__cuTexRefGetArray"] = __cuTexRefGetArray - {{else}} - data["__cuTexRefGetArray"] = 0 - {{endif}} - - {{if 'cuTexRefGetMipmappedArray' in found_functions}} - global __cuTexRefGetMipmappedArray - data["__cuTexRefGetMipmappedArray"] = __cuTexRefGetMipmappedArray - {{else}} - data["__cuTexRefGetMipmappedArray"] = 0 - {{endif}} - - {{if 'cuTexRefGetAddressMode' in found_functions}} - global __cuTexRefGetAddressMode - data["__cuTexRefGetAddressMode"] = __cuTexRefGetAddressMode - {{else}} - data["__cuTexRefGetAddressMode"] = 0 - {{endif}} - - {{if 'cuTexRefGetFilterMode' in found_functions}} - global __cuTexRefGetFilterMode - data["__cuTexRefGetFilterMode"] = __cuTexRefGetFilterMode - {{else}} - data["__cuTexRefGetFilterMode"] = 0 - {{endif}} - - {{if 'cuTexRefGetFormat' in found_functions}} - global __cuTexRefGetFormat - data["__cuTexRefGetFormat"] = __cuTexRefGetFormat - {{else}} - data["__cuTexRefGetFormat"] = 0 - {{endif}} - - {{if 'cuTexRefGetMipmapFilterMode' in found_functions}} - global __cuTexRefGetMipmapFilterMode - data["__cuTexRefGetMipmapFilterMode"] = __cuTexRefGetMipmapFilterMode - {{else}} - data["__cuTexRefGetMipmapFilterMode"] = 0 - {{endif}} - - {{if 'cuTexRefGetMipmapLevelBias' in found_functions}} - global __cuTexRefGetMipmapLevelBias - data["__cuTexRefGetMipmapLevelBias"] = __cuTexRefGetMipmapLevelBias - {{else}} - data["__cuTexRefGetMipmapLevelBias"] = 0 - {{endif}} - - {{if 'cuTexRefGetMipmapLevelClamp' in found_functions}} - global __cuTexRefGetMipmapLevelClamp - data["__cuTexRefGetMipmapLevelClamp"] = __cuTexRefGetMipmapLevelClamp - {{else}} - data["__cuTexRefGetMipmapLevelClamp"] = 0 - {{endif}} - - {{if 'cuTexRefGetMaxAnisotropy' in found_functions}} - global __cuTexRefGetMaxAnisotropy - data["__cuTexRefGetMaxAnisotropy"] = __cuTexRefGetMaxAnisotropy - {{else}} - data["__cuTexRefGetMaxAnisotropy"] = 0 - {{endif}} - - {{if 'cuTexRefGetBorderColor' in found_functions}} - global __cuTexRefGetBorderColor - data["__cuTexRefGetBorderColor"] = __cuTexRefGetBorderColor - {{else}} - data["__cuTexRefGetBorderColor"] = 0 - {{endif}} - - {{if 'cuTexRefGetFlags' in found_functions}} - global __cuTexRefGetFlags - data["__cuTexRefGetFlags"] = __cuTexRefGetFlags - {{else}} - data["__cuTexRefGetFlags"] = 0 - {{endif}} - - {{if 'cuTexRefCreate' in found_functions}} - global __cuTexRefCreate - data["__cuTexRefCreate"] = __cuTexRefCreate - {{else}} - data["__cuTexRefCreate"] = 0 - {{endif}} - - {{if 'cuTexRefDestroy' in found_functions}} - global __cuTexRefDestroy - data["__cuTexRefDestroy"] = __cuTexRefDestroy - {{else}} - data["__cuTexRefDestroy"] = 0 - {{endif}} - - {{if 'cuSurfRefSetArray' in found_functions}} - global __cuSurfRefSetArray - data["__cuSurfRefSetArray"] = __cuSurfRefSetArray - {{else}} - data["__cuSurfRefSetArray"] = 0 - {{endif}} - - {{if 'cuSurfRefGetArray' in found_functions}} - global __cuSurfRefGetArray - data["__cuSurfRefGetArray"] = __cuSurfRefGetArray - {{else}} - data["__cuSurfRefGetArray"] = 0 - {{endif}} - - {{if 'cuTexObjectCreate' in found_functions}} - global __cuTexObjectCreate - data["__cuTexObjectCreate"] = __cuTexObjectCreate - {{else}} - data["__cuTexObjectCreate"] = 0 - {{endif}} - - {{if 'cuTexObjectDestroy' in found_functions}} - global __cuTexObjectDestroy - data["__cuTexObjectDestroy"] = __cuTexObjectDestroy - {{else}} - data["__cuTexObjectDestroy"] = 0 - {{endif}} - - {{if 'cuTexObjectGetResourceDesc' in found_functions}} - global __cuTexObjectGetResourceDesc - data["__cuTexObjectGetResourceDesc"] = __cuTexObjectGetResourceDesc - {{else}} - data["__cuTexObjectGetResourceDesc"] = 0 - {{endif}} - - {{if 'cuTexObjectGetTextureDesc' in found_functions}} - global __cuTexObjectGetTextureDesc - data["__cuTexObjectGetTextureDesc"] = __cuTexObjectGetTextureDesc - {{else}} - data["__cuTexObjectGetTextureDesc"] = 0 - {{endif}} - - {{if 'cuTexObjectGetResourceViewDesc' in found_functions}} - global __cuTexObjectGetResourceViewDesc - data["__cuTexObjectGetResourceViewDesc"] = __cuTexObjectGetResourceViewDesc - {{else}} - data["__cuTexObjectGetResourceViewDesc"] = 0 - {{endif}} - - {{if 'cuSurfObjectCreate' in found_functions}} - global __cuSurfObjectCreate - data["__cuSurfObjectCreate"] = __cuSurfObjectCreate - {{else}} - data["__cuSurfObjectCreate"] = 0 - {{endif}} - - {{if 'cuSurfObjectDestroy' in found_functions}} - global __cuSurfObjectDestroy - data["__cuSurfObjectDestroy"] = __cuSurfObjectDestroy - {{else}} - data["__cuSurfObjectDestroy"] = 0 - {{endif}} - - {{if 'cuSurfObjectGetResourceDesc' in found_functions}} - global __cuSurfObjectGetResourceDesc - data["__cuSurfObjectGetResourceDesc"] = __cuSurfObjectGetResourceDesc - {{else}} - data["__cuSurfObjectGetResourceDesc"] = 0 - {{endif}} - - {{if 'cuTensorMapEncodeTiled' in found_functions}} - global __cuTensorMapEncodeTiled - data["__cuTensorMapEncodeTiled"] = __cuTensorMapEncodeTiled - {{else}} - data["__cuTensorMapEncodeTiled"] = 0 - {{endif}} - - {{if 'cuTensorMapEncodeIm2col' in found_functions}} - global __cuTensorMapEncodeIm2col - data["__cuTensorMapEncodeIm2col"] = __cuTensorMapEncodeIm2col - {{else}} - data["__cuTensorMapEncodeIm2col"] = 0 - {{endif}} - - {{if 'cuTensorMapEncodeIm2colWide' in found_functions}} - global __cuTensorMapEncodeIm2colWide - data["__cuTensorMapEncodeIm2colWide"] = __cuTensorMapEncodeIm2colWide - {{else}} - data["__cuTensorMapEncodeIm2colWide"] = 0 - {{endif}} - - {{if 'cuTensorMapReplaceAddress' in found_functions}} - global __cuTensorMapReplaceAddress - data["__cuTensorMapReplaceAddress"] = __cuTensorMapReplaceAddress - {{else}} - data["__cuTensorMapReplaceAddress"] = 0 - {{endif}} - - {{if 'cuDeviceCanAccessPeer' in found_functions}} - global __cuDeviceCanAccessPeer - data["__cuDeviceCanAccessPeer"] = __cuDeviceCanAccessPeer - {{else}} - data["__cuDeviceCanAccessPeer"] = 0 - {{endif}} - - {{if 'cuCtxEnablePeerAccess' in found_functions}} - global __cuCtxEnablePeerAccess - data["__cuCtxEnablePeerAccess"] = __cuCtxEnablePeerAccess - {{else}} - data["__cuCtxEnablePeerAccess"] = 0 - {{endif}} - - {{if 'cuCtxDisablePeerAccess' in found_functions}} - global __cuCtxDisablePeerAccess - data["__cuCtxDisablePeerAccess"] = __cuCtxDisablePeerAccess - {{else}} - data["__cuCtxDisablePeerAccess"] = 0 - {{endif}} - - {{if 'cuDeviceGetP2PAttribute' in found_functions}} - global __cuDeviceGetP2PAttribute - data["__cuDeviceGetP2PAttribute"] = __cuDeviceGetP2PAttribute - {{else}} - data["__cuDeviceGetP2PAttribute"] = 0 - {{endif}} - - {{if 'cuDeviceGetP2PAtomicCapabilities' in found_functions}} - global __cuDeviceGetP2PAtomicCapabilities - data["__cuDeviceGetP2PAtomicCapabilities"] = __cuDeviceGetP2PAtomicCapabilities - {{else}} - data["__cuDeviceGetP2PAtomicCapabilities"] = 0 - {{endif}} - - {{if 'cuGraphicsUnregisterResource' in found_functions}} - global __cuGraphicsUnregisterResource - data["__cuGraphicsUnregisterResource"] = __cuGraphicsUnregisterResource - {{else}} - data["__cuGraphicsUnregisterResource"] = 0 - {{endif}} - - {{if 'cuGraphicsSubResourceGetMappedArray' in found_functions}} - global __cuGraphicsSubResourceGetMappedArray - data["__cuGraphicsSubResourceGetMappedArray"] = __cuGraphicsSubResourceGetMappedArray - {{else}} - data["__cuGraphicsSubResourceGetMappedArray"] = 0 - {{endif}} - - {{if 'cuGraphicsResourceGetMappedMipmappedArray' in found_functions}} - global __cuGraphicsResourceGetMappedMipmappedArray - data["__cuGraphicsResourceGetMappedMipmappedArray"] = __cuGraphicsResourceGetMappedMipmappedArray - {{else}} - data["__cuGraphicsResourceGetMappedMipmappedArray"] = 0 - {{endif}} - - {{if 'cuGraphicsResourceGetMappedPointer_v2' in found_functions}} - global __cuGraphicsResourceGetMappedPointer_v2 - data["__cuGraphicsResourceGetMappedPointer_v2"] = __cuGraphicsResourceGetMappedPointer_v2 - {{else}} - data["__cuGraphicsResourceGetMappedPointer_v2"] = 0 - {{endif}} - - {{if 'cuGraphicsResourceSetMapFlags_v2' in found_functions}} - global __cuGraphicsResourceSetMapFlags_v2 - data["__cuGraphicsResourceSetMapFlags_v2"] = __cuGraphicsResourceSetMapFlags_v2 - {{else}} - data["__cuGraphicsResourceSetMapFlags_v2"] = 0 - {{endif}} - - {{if 'cuGraphicsMapResources' in found_functions}} - global __cuGraphicsMapResources - data["__cuGraphicsMapResources"] = __cuGraphicsMapResources - {{else}} - data["__cuGraphicsMapResources"] = 0 - {{endif}} - - {{if 'cuGraphicsUnmapResources' in found_functions}} - global __cuGraphicsUnmapResources - data["__cuGraphicsUnmapResources"] = __cuGraphicsUnmapResources - {{else}} - data["__cuGraphicsUnmapResources"] = 0 - {{endif}} - - {{if 'cuGetProcAddress_v2' in found_functions}} - global __cuGetProcAddress_v2 - data["__cuGetProcAddress_v2"] = __cuGetProcAddress_v2 - {{else}} - data["__cuGetProcAddress_v2"] = 0 - {{endif}} - - {{if 'cuCoredumpGetAttribute' in found_functions}} - global __cuCoredumpGetAttribute - data["__cuCoredumpGetAttribute"] = __cuCoredumpGetAttribute - {{else}} - data["__cuCoredumpGetAttribute"] = 0 - {{endif}} - - {{if 'cuCoredumpGetAttributeGlobal' in found_functions}} - global __cuCoredumpGetAttributeGlobal - data["__cuCoredumpGetAttributeGlobal"] = __cuCoredumpGetAttributeGlobal - {{else}} - data["__cuCoredumpGetAttributeGlobal"] = 0 - {{endif}} - - {{if 'cuCoredumpSetAttribute' in found_functions}} - global __cuCoredumpSetAttribute - data["__cuCoredumpSetAttribute"] = __cuCoredumpSetAttribute - {{else}} - data["__cuCoredumpSetAttribute"] = 0 - {{endif}} - - {{if 'cuCoredumpSetAttributeGlobal' in found_functions}} - global __cuCoredumpSetAttributeGlobal - data["__cuCoredumpSetAttributeGlobal"] = __cuCoredumpSetAttributeGlobal - {{else}} - data["__cuCoredumpSetAttributeGlobal"] = 0 - {{endif}} - - {{if 'cuCoredumpRegisterStartCallback' in found_functions}} - global __cuCoredumpRegisterStartCallback - data["__cuCoredumpRegisterStartCallback"] = __cuCoredumpRegisterStartCallback - {{else}} - data["__cuCoredumpRegisterStartCallback"] = 0 - {{endif}} - - {{if 'cuCoredumpRegisterCompleteCallback' in found_functions}} - global __cuCoredumpRegisterCompleteCallback - data["__cuCoredumpRegisterCompleteCallback"] = __cuCoredumpRegisterCompleteCallback - {{else}} - data["__cuCoredumpRegisterCompleteCallback"] = 0 - {{endif}} - - {{if 'cuCoredumpDeregisterStartCallback' in found_functions}} - global __cuCoredumpDeregisterStartCallback - data["__cuCoredumpDeregisterStartCallback"] = __cuCoredumpDeregisterStartCallback - {{else}} - data["__cuCoredumpDeregisterStartCallback"] = 0 - {{endif}} - - {{if 'cuCoredumpDeregisterCompleteCallback' in found_functions}} - global __cuCoredumpDeregisterCompleteCallback - data["__cuCoredumpDeregisterCompleteCallback"] = __cuCoredumpDeregisterCompleteCallback - {{else}} - data["__cuCoredumpDeregisterCompleteCallback"] = 0 - {{endif}} - - {{if 'cuGetExportTable' in found_functions}} - global __cuGetExportTable - data["__cuGetExportTable"] = __cuGetExportTable - {{else}} - data["__cuGetExportTable"] = 0 - {{endif}} - - {{if 'cuGreenCtxCreate' in found_functions}} - global __cuGreenCtxCreate - data["__cuGreenCtxCreate"] = __cuGreenCtxCreate - {{else}} - data["__cuGreenCtxCreate"] = 0 - {{endif}} - - {{if 'cuGreenCtxDestroy' in found_functions}} - global __cuGreenCtxDestroy - data["__cuGreenCtxDestroy"] = __cuGreenCtxDestroy - {{else}} - data["__cuGreenCtxDestroy"] = 0 - {{endif}} - - {{if 'cuCtxFromGreenCtx' in found_functions}} - global __cuCtxFromGreenCtx - data["__cuCtxFromGreenCtx"] = __cuCtxFromGreenCtx - {{else}} - data["__cuCtxFromGreenCtx"] = 0 - {{endif}} - - {{if 'cuDeviceGetDevResource' in found_functions}} - global __cuDeviceGetDevResource - data["__cuDeviceGetDevResource"] = __cuDeviceGetDevResource - {{else}} - data["__cuDeviceGetDevResource"] = 0 - {{endif}} - - {{if 'cuCtxGetDevResource' in found_functions}} - global __cuCtxGetDevResource - data["__cuCtxGetDevResource"] = __cuCtxGetDevResource - {{else}} - data["__cuCtxGetDevResource"] = 0 - {{endif}} - - {{if 'cuGreenCtxGetDevResource' in found_functions}} - global __cuGreenCtxGetDevResource - data["__cuGreenCtxGetDevResource"] = __cuGreenCtxGetDevResource - {{else}} - data["__cuGreenCtxGetDevResource"] = 0 - {{endif}} - - {{if 'cuDevSmResourceSplitByCount' in found_functions}} - global __cuDevSmResourceSplitByCount - data["__cuDevSmResourceSplitByCount"] = __cuDevSmResourceSplitByCount - {{else}} - data["__cuDevSmResourceSplitByCount"] = 0 - {{endif}} - - {{if 'cuDevSmResourceSplit' in found_functions}} - global __cuDevSmResourceSplit - data["__cuDevSmResourceSplit"] = __cuDevSmResourceSplit - {{else}} - data["__cuDevSmResourceSplit"] = 0 - {{endif}} - - {{if 'cuDevResourceGenerateDesc' in found_functions}} - global __cuDevResourceGenerateDesc - data["__cuDevResourceGenerateDesc"] = __cuDevResourceGenerateDesc - {{else}} - data["__cuDevResourceGenerateDesc"] = 0 - {{endif}} - - {{if 'cuGreenCtxRecordEvent' in found_functions}} - global __cuGreenCtxRecordEvent - data["__cuGreenCtxRecordEvent"] = __cuGreenCtxRecordEvent - {{else}} - data["__cuGreenCtxRecordEvent"] = 0 - {{endif}} - - {{if 'cuGreenCtxWaitEvent' in found_functions}} - global __cuGreenCtxWaitEvent - data["__cuGreenCtxWaitEvent"] = __cuGreenCtxWaitEvent - {{else}} - data["__cuGreenCtxWaitEvent"] = 0 - {{endif}} - - {{if 'cuStreamGetGreenCtx' in found_functions}} - global __cuStreamGetGreenCtx - data["__cuStreamGetGreenCtx"] = __cuStreamGetGreenCtx - {{else}} - data["__cuStreamGetGreenCtx"] = 0 - {{endif}} - - {{if 'cuGreenCtxStreamCreate' in found_functions}} - global __cuGreenCtxStreamCreate - data["__cuGreenCtxStreamCreate"] = __cuGreenCtxStreamCreate - {{else}} - data["__cuGreenCtxStreamCreate"] = 0 - {{endif}} - - {{if 'cuGreenCtxGetId' in found_functions}} - global __cuGreenCtxGetId - data["__cuGreenCtxGetId"] = __cuGreenCtxGetId - {{else}} - data["__cuGreenCtxGetId"] = 0 - {{endif}} - - {{if 'cuStreamGetDevResource' in found_functions}} - global __cuStreamGetDevResource - data["__cuStreamGetDevResource"] = __cuStreamGetDevResource - {{else}} - data["__cuStreamGetDevResource"] = 0 - {{endif}} - - {{if 'cuLogsRegisterCallback' in found_functions}} - global __cuLogsRegisterCallback - data["__cuLogsRegisterCallback"] = __cuLogsRegisterCallback - {{else}} - data["__cuLogsRegisterCallback"] = 0 - {{endif}} - - {{if 'cuLogsUnregisterCallback' in found_functions}} - global __cuLogsUnregisterCallback - data["__cuLogsUnregisterCallback"] = __cuLogsUnregisterCallback - {{else}} - data["__cuLogsUnregisterCallback"] = 0 - {{endif}} - - {{if 'cuLogsCurrent' in found_functions}} - global __cuLogsCurrent - data["__cuLogsCurrent"] = __cuLogsCurrent - {{else}} - data["__cuLogsCurrent"] = 0 - {{endif}} - - {{if 'cuLogsDumpToFile' in found_functions}} - global __cuLogsDumpToFile - data["__cuLogsDumpToFile"] = __cuLogsDumpToFile - {{else}} - data["__cuLogsDumpToFile"] = 0 - {{endif}} - - {{if 'cuLogsDumpToMemory' in found_functions}} - global __cuLogsDumpToMemory - data["__cuLogsDumpToMemory"] = __cuLogsDumpToMemory - {{else}} - data["__cuLogsDumpToMemory"] = 0 - {{endif}} - - {{if 'cuCheckpointProcessGetRestoreThreadId' in found_functions}} - global __cuCheckpointProcessGetRestoreThreadId - data["__cuCheckpointProcessGetRestoreThreadId"] = __cuCheckpointProcessGetRestoreThreadId - {{else}} - data["__cuCheckpointProcessGetRestoreThreadId"] = 0 - {{endif}} - - {{if 'cuCheckpointProcessGetState' in found_functions}} - global __cuCheckpointProcessGetState - data["__cuCheckpointProcessGetState"] = __cuCheckpointProcessGetState - {{else}} - data["__cuCheckpointProcessGetState"] = 0 - {{endif}} - - {{if 'cuCheckpointProcessLock' in found_functions}} - global __cuCheckpointProcessLock - data["__cuCheckpointProcessLock"] = __cuCheckpointProcessLock - {{else}} - data["__cuCheckpointProcessLock"] = 0 - {{endif}} - - {{if 'cuCheckpointProcessCheckpoint' in found_functions}} - global __cuCheckpointProcessCheckpoint - data["__cuCheckpointProcessCheckpoint"] = __cuCheckpointProcessCheckpoint - {{else}} - data["__cuCheckpointProcessCheckpoint"] = 0 - {{endif}} - - {{if 'cuCheckpointProcessRestore' in found_functions}} - global __cuCheckpointProcessRestore - data["__cuCheckpointProcessRestore"] = __cuCheckpointProcessRestore - {{else}} - data["__cuCheckpointProcessRestore"] = 0 - {{endif}} - - {{if 'cuCheckpointProcessUnlock' in found_functions}} - global __cuCheckpointProcessUnlock - data["__cuCheckpointProcessUnlock"] = __cuCheckpointProcessUnlock - {{else}} - data["__cuCheckpointProcessUnlock"] = 0 - {{endif}} - - {{if 'cuProfilerStart' in found_functions}} - global __cuProfilerStart - data["__cuProfilerStart"] = __cuProfilerStart - {{else}} - data["__cuProfilerStart"] = 0 - {{endif}} - - {{if 'cuProfilerStop' in found_functions}} - global __cuProfilerStop - data["__cuProfilerStop"] = __cuProfilerStop - {{else}} - data["__cuProfilerStop"] = 0 - {{endif}} - - {{if True}} - global __cuGraphicsEGLRegisterImage - data["__cuGraphicsEGLRegisterImage"] = __cuGraphicsEGLRegisterImage - {{else}} - data["__cuGraphicsEGLRegisterImage"] = 0 - {{endif}} - - {{if True}} - global __cuEGLStreamConsumerConnect - data["__cuEGLStreamConsumerConnect"] = __cuEGLStreamConsumerConnect - {{else}} - data["__cuEGLStreamConsumerConnect"] = 0 - {{endif}} - - {{if True}} - global __cuEGLStreamConsumerConnectWithFlags - data["__cuEGLStreamConsumerConnectWithFlags"] = __cuEGLStreamConsumerConnectWithFlags - {{else}} - data["__cuEGLStreamConsumerConnectWithFlags"] = 0 - {{endif}} - - {{if True}} - global __cuEGLStreamConsumerDisconnect - data["__cuEGLStreamConsumerDisconnect"] = __cuEGLStreamConsumerDisconnect - {{else}} - data["__cuEGLStreamConsumerDisconnect"] = 0 - {{endif}} - - {{if True}} - global __cuEGLStreamConsumerAcquireFrame - data["__cuEGLStreamConsumerAcquireFrame"] = __cuEGLStreamConsumerAcquireFrame - {{else}} - data["__cuEGLStreamConsumerAcquireFrame"] = 0 - {{endif}} - - {{if True}} - global __cuEGLStreamConsumerReleaseFrame - data["__cuEGLStreamConsumerReleaseFrame"] = __cuEGLStreamConsumerReleaseFrame - {{else}} - data["__cuEGLStreamConsumerReleaseFrame"] = 0 - {{endif}} - - {{if True}} - global __cuEGLStreamProducerConnect - data["__cuEGLStreamProducerConnect"] = __cuEGLStreamProducerConnect - {{else}} - data["__cuEGLStreamProducerConnect"] = 0 - {{endif}} - - {{if True}} - global __cuEGLStreamProducerDisconnect - data["__cuEGLStreamProducerDisconnect"] = __cuEGLStreamProducerDisconnect - {{else}} - data["__cuEGLStreamProducerDisconnect"] = 0 - {{endif}} - - {{if True}} - global __cuEGLStreamProducerPresentFrame - data["__cuEGLStreamProducerPresentFrame"] = __cuEGLStreamProducerPresentFrame - {{else}} - data["__cuEGLStreamProducerPresentFrame"] = 0 - {{endif}} - - {{if True}} - global __cuEGLStreamProducerReturnFrame - data["__cuEGLStreamProducerReturnFrame"] = __cuEGLStreamProducerReturnFrame - {{else}} - data["__cuEGLStreamProducerReturnFrame"] = 0 - {{endif}} - - {{if True}} - global __cuGraphicsResourceGetMappedEglFrame - data["__cuGraphicsResourceGetMappedEglFrame"] = __cuGraphicsResourceGetMappedEglFrame - {{else}} - data["__cuGraphicsResourceGetMappedEglFrame"] = 0 - {{endif}} - - {{if True}} - global __cuEventCreateFromEGLSync - data["__cuEventCreateFromEGLSync"] = __cuEventCreateFromEGLSync - {{else}} - data["__cuEventCreateFromEGLSync"] = 0 - {{endif}} - - {{if True}} - global __cuGraphicsGLRegisterBuffer - data["__cuGraphicsGLRegisterBuffer"] = __cuGraphicsGLRegisterBuffer - {{else}} - data["__cuGraphicsGLRegisterBuffer"] = 0 - {{endif}} - - {{if True}} - global __cuGraphicsGLRegisterImage - data["__cuGraphicsGLRegisterImage"] = __cuGraphicsGLRegisterImage - {{else}} - data["__cuGraphicsGLRegisterImage"] = 0 - {{endif}} - - {{if True}} - global __cuGLGetDevices_v2 - data["__cuGLGetDevices_v2"] = __cuGLGetDevices_v2 - {{else}} - data["__cuGLGetDevices_v2"] = 0 - {{endif}} - - {{if True}} - global __cuVDPAUGetDevice - data["__cuVDPAUGetDevice"] = __cuVDPAUGetDevice - {{else}} - data["__cuVDPAUGetDevice"] = 0 - {{endif}} - - {{if True}} - global __cuVDPAUCtxCreate_v2 - data["__cuVDPAUCtxCreate_v2"] = __cuVDPAUCtxCreate_v2 - {{else}} - data["__cuVDPAUCtxCreate_v2"] = 0 - {{endif}} - - {{if True}} - global __cuGraphicsVDPAURegisterVideoSurface - data["__cuGraphicsVDPAURegisterVideoSurface"] = __cuGraphicsVDPAURegisterVideoSurface - {{else}} - data["__cuGraphicsVDPAURegisterVideoSurface"] = 0 - {{endif}} - - {{if True}} - global __cuGraphicsVDPAURegisterOutputSurface - data["__cuGraphicsVDPAURegisterOutputSurface"] = __cuGraphicsVDPAURegisterOutputSurface - {{else}} - data["__cuGraphicsVDPAURegisterOutputSurface"] = 0 - {{endif}} - - func_ptrs = data - return data - -cpdef _inspect_function_pointer(str name): - global func_ptrs - if func_ptrs is None: - func_ptrs = _inspect_function_pointers() - return func_ptrs[name] diff --git a/cuda_bindings/cuda/bindings/_bindings/loader.cpp b/cuda_bindings/cuda/bindings/_bindings/loader.cpp deleted file mode 100644 index a692eddc931..00000000000 --- a/cuda_bindings/cuda/bindings/_bindings/loader.cpp +++ /dev/null @@ -1,350 +0,0 @@ -// SPDX-FileCopyrightText: Copyright (c) 2021-2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved. -// SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE - -#include -#include -#include -#include "loader.h" - -#define DXCORE_MAX_PATH 260 - -#if defined(_WIN32) -#include "windows.h" -#define _getAddr GetProcAddress -#define _Handle HMODULE -static const size_t sysrootName64_length = (sizeof("System32") - 1); -static const char* sysrootName64 = "System32"; -static const size_t libcudaName64_length = (sizeof("\\nvcuda64.dll") - 1); -static const char* libcudaName64 = "\\nvcuda64.dll"; -static const size_t sysrootNameX86_length = (sizeof("SysWOW64") - 1); -static const char* sysrootNameX86 = "SysWOW64"; -static const size_t libcudaNameX86_length = (sizeof("\\nvcuda32.dll") - 1); -static const char* libcudaNameX86 = "\\nvcuda32.dll"; -static size_t sysrootName_length = NULL; -static const char* sysrootName = NULL; - -#else -#include -#include -#define _getAddr dlsym -#define _Handle void* -static const size_t libcudaNameLinux_length = (sizeof("/libcuda.so.1.1") - 1); -static const char* libcudaNameLinux = "/libcuda.so.1.1"; -#endif -static size_t libcudaName_length = 0; -static const char* libcudaName = NULL; - -struct dxcore_enumAdapters2; -struct dxcore_queryAdapterInfo; - -typedef int (*pfnDxcoreEnumAdapters2)(const dxcore_enumAdapters2 *pParams); -typedef int (*pfnDxcoreQueryAdapterInfo)(const dxcore_queryAdapterInfo *pParams); - -struct dxcore_lib { - _Handle hDxcoreLib; - pfnDxcoreEnumAdapters2 pDxcoreEnumAdapters2; - pfnDxcoreQueryAdapterInfo pDxcoreQueryAdapterInfo; -}; - -struct dxcore_luid -{ - unsigned int lowPart; - int highPart; -}; - -struct dxcore_adapterInfo -{ - unsigned int hAdapter; - struct dxcore_luid AdapterLuid; - unsigned int NumOfSources; - unsigned int bPresentMoveRegionsPreferred; -}; - -struct dxcore_enumAdapters2 -{ - unsigned int NumAdapters; - struct dxcore_adapterInfo *pAdapters; -}; - -enum dxcore_kmtqueryAdapterInfoType -{ - DXCORE_QUERYDRIVERVERSION = 13, - DXCORE_QUERYREGISTRY = 48, -}; - -enum dxcore_queryregistry_type { - DXCORE_QUERYREGISTRY_DRIVERSTOREPATH = 2, -}; - -enum dxcore_queryregistry_status { - DXCORE_QUERYREGISTRY_STATUS_SUCCESS = 0, - DXCORE_QUERYREGISTRY_STATUS_BUFFER_OVERFLOW = 1, - DXCORE_QUERYREGISTRY_STATUS_FAIL = 2, -}; - -struct dxcore_queryregistry_info { - enum dxcore_queryregistry_type QueryType; - unsigned int QueryFlags; - wchar_t ValueName[DXCORE_MAX_PATH]; - unsigned int ValueType; - unsigned int PhysicalAdapterIndex; - unsigned int OutputValueSize; - enum dxcore_queryregistry_status Status; - union { - unsigned long long OutputQword; - wchar_t Output; - }; -}; - -struct dxcore_queryAdapterInfo -{ - unsigned int hAdapter; - enum dxcore_kmtqueryAdapterInfoType Type; - void *pPrivateDriverData; - unsigned int PrivateDriverDataSize; -}; - -static int dxcore_query_adapter_info_helper(struct dxcore_lib* pLib, - unsigned int hAdapter, - enum dxcore_kmtqueryAdapterInfoType type, - void* pPrivateDriverDate, - unsigned int privateDriverDataSize) -{ - struct dxcore_queryAdapterInfo queryAdapterInfo = {}; - - queryAdapterInfo.hAdapter = hAdapter; - queryAdapterInfo.Type = type; - queryAdapterInfo.pPrivateDriverData = pPrivateDriverDate; - queryAdapterInfo.PrivateDriverDataSize = privateDriverDataSize; - - return pLib->pDxcoreQueryAdapterInfo(&queryAdapterInfo); -} - -static int dxcore_query_adapter_wddm_version(struct dxcore_lib* pLib, unsigned int hAdapter, unsigned int* version) -{ - return dxcore_query_adapter_info_helper(pLib, - hAdapter, - DXCORE_QUERYDRIVERVERSION, - (void*)version, - (unsigned int)sizeof(*version)); -} - -static int dxcore_query_adapter_driverstore_path(struct dxcore_lib* pLib, unsigned int hAdapter, char** ppDriverStorePath) -{ - struct dxcore_queryregistry_info params = {}; - struct dxcore_queryregistry_info* pValue = NULL; - wchar_t* pOutput; - size_t outputSizeInBytes; - size_t outputSize; - - // 1. Fetch output size - params.QueryType = DXCORE_QUERYREGISTRY_DRIVERSTOREPATH; - - if (dxcore_query_adapter_info_helper(pLib, - hAdapter, - DXCORE_QUERYREGISTRY, - (void*)¶ms, - (unsigned int)sizeof(struct dxcore_queryregistry_info))) - { - return (-1); - } - - if (params.OutputValueSize > DXCORE_MAX_PATH * sizeof(wchar_t)) { - return (-1); - } - - outputSizeInBytes = (size_t)params.OutputValueSize; - outputSize = outputSizeInBytes / sizeof(wchar_t); - - // 2. Retrieve output - pValue = (struct dxcore_queryregistry_info*)calloc(sizeof(struct dxcore_queryregistry_info) + outputSizeInBytes + sizeof(wchar_t), 1); - if (!pValue) { - return (-1); - } - - pValue->QueryType = DXCORE_QUERYREGISTRY_DRIVERSTOREPATH; - pValue->OutputValueSize = (unsigned int)outputSizeInBytes; - - if (dxcore_query_adapter_info_helper(pLib, - hAdapter, - DXCORE_QUERYREGISTRY, - (void*)pValue, - (unsigned int)(sizeof(struct dxcore_queryregistry_info) + outputSizeInBytes))) - { - free(pValue); - return (-1); - } - pOutput = (wchar_t*)(&pValue->Output); - - // Make sure no matter what happened the wchar_t string is null terminated - pOutput[outputSize] = L'\0'; - - // Convert the output into a regular c string - *ppDriverStorePath = (char*)calloc(outputSize + 1, sizeof(char)); - if (!*ppDriverStorePath) { - free(pValue); - return (-1); - } - wcstombs(*ppDriverStorePath, pOutput, outputSize); - - free(pValue); - - return 0; -} - -static char* replaceSystemPath(char* path) -{ - char *replacedPath = (char*)calloc(DXCORE_MAX_PATH + 1, sizeof(char)); - -#if defined(_WIN32) - wchar_t *systemPath = (wchar_t*)calloc(DXCORE_MAX_PATH + 1, sizeof(wchar_t)); - // Get system root path - if (GetSystemDirectoryW(systemPath, DXCORE_MAX_PATH) == 0) { - free(replacedPath); - free(systemPath); - return NULL; - } - wcstombs(replacedPath, systemPath, DXCORE_MAX_PATH); - free(systemPath); - - // Replace the /SystemRoot/ part of the registry-obtained path with - // the actual system root path from above - char* sysrootPath = strstr(path, sysrootName); - strncat(replacedPath, sysrootPath + sysrootName_length, DXCORE_MAX_PATH - strlen(replacedPath)); -#else - strncat(replacedPath, path, DXCORE_MAX_PATH); -#endif - - // Append nvcuda dll - if (libcudaName_length < DXCORE_MAX_PATH - strlen(replacedPath)) { - strncat(replacedPath, libcudaName, libcudaName_length); - } - else { - strncat(replacedPath, libcudaName, DXCORE_MAX_PATH - strlen(replacedPath)); - } - - return replacedPath; -} - -static int dxcore_check_adapter(struct dxcore_lib *pLib, char *libPath, struct dxcore_adapterInfo *pAdapterInfo) -{ - unsigned int wddmVersion = 0; - char* driverStorePath = NULL; - - if (dxcore_query_adapter_wddm_version(pLib, pAdapterInfo->hAdapter, &wddmVersion)) { - return 1; - } - - if (wddmVersion < 2500) { - return 1; - } - - if (dxcore_query_adapter_driverstore_path(pLib, pAdapterInfo->hAdapter, &driverStorePath)) { - return 1; - } - - // Replace with valid path - char* replacedPath = replaceSystemPath(driverStorePath); - if (!replacedPath) { - free(driverStorePath); - free(replacedPath); - return 1; - } - - // Does file exist? -#if defined(_WIN32) - if (GetFileAttributes(replacedPath) == INVALID_FILE_ATTRIBUTES) { - free(driverStorePath); - free(replacedPath); - return 1; - } -#else - if (access(replacedPath, F_OK) < 0) { - free(driverStorePath); - free(replacedPath); - return 1; - } -#endif - - memcpy(libPath, replacedPath, DXCORE_MAX_PATH); - free(driverStorePath); - free(replacedPath); - - return 0; -} - -static int dxcore_enum_adapters(struct dxcore_lib *pLib, char *libPath) -{ - struct dxcore_enumAdapters2 params = {0}; - unsigned int adapterIndex = 0; - - if (pLib->pDxcoreEnumAdapters2(¶ms)) { - return 1; - } - params.pAdapters = (dxcore_adapterInfo*)calloc(params.NumAdapters, sizeof(struct dxcore_adapterInfo)); - if (pLib->pDxcoreEnumAdapters2(¶ms)) { - free(params.pAdapters); - return 1; - } - - for (adapterIndex = 0; adapterIndex < params.NumAdapters; adapterIndex++) { - if (!dxcore_check_adapter(pLib, libPath, ¶ms.pAdapters[adapterIndex])) { - free(params.pAdapters); - return 0; - } - } - - free(params.pAdapters); - return 1; -} - -int getCUDALibraryPath(char *libPath, bool isBit64) -{ - struct dxcore_lib lib = {0}; - - if (!libPath) { - return 1; - } - - // Configure paths based on app's bit configuration -#if defined(_WIN32) - if (isBit64) { - sysrootName_length = sysrootName64_length; - sysrootName = sysrootName64; - libcudaName_length = libcudaName64_length; - libcudaName = libcudaName64; - } - else { - sysrootName_length = sysrootNameX86_length; - sysrootName = sysrootNameX86; - libcudaName_length = libcudaNameX86_length; - libcudaName = libcudaNameX86; - } -#else - libcudaName_length = libcudaNameLinux_length; - libcudaName = libcudaNameLinux; -#endif - -#if defined(_WIN32) - lib.hDxcoreLib = LoadLibraryExW(L"gdi32.dll", NULL, LOAD_LIBRARY_SEARCH_SYSTEM32); -#else - lib.hDxcoreLib = dlopen("libdxcore.so", RTLD_LAZY); -#endif - if (!lib.hDxcoreLib) { - return 1; - } - - lib.pDxcoreEnumAdapters2 = (pfnDxcoreEnumAdapters2)_getAddr(lib.hDxcoreLib, "D3DKMTEnumAdapters2"); - if (!lib.pDxcoreEnumAdapters2) { - return 1; - } - lib.pDxcoreQueryAdapterInfo = (pfnDxcoreQueryAdapterInfo)_getAddr(lib.hDxcoreLib, "D3DKMTQueryAdapterInfo"); - if (!lib.pDxcoreQueryAdapterInfo) { - return 1; - } - - if (dxcore_enum_adapters(&lib, libPath)) { - return 1; - } - return 0; -} diff --git a/cuda_bindings/cuda/bindings/_bindings/loader.h b/cuda_bindings/cuda/bindings/_bindings/loader.h deleted file mode 100644 index 2411037b032..00000000000 --- a/cuda_bindings/cuda/bindings/_bindings/loader.h +++ /dev/null @@ -1,9 +0,0 @@ -// SPDX-FileCopyrightText: Copyright (c) 2021-2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved. -// SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE -// -// Please refer to the NVIDIA end user license agreement (EULA) associated -// with this source code for terms and conditions that govern your use of -// this software. Any use, reproduction, disclosure, or distribution of -// this software and related documentation outside the terms of the EULA -// is strictly prohibited. -int getCUDALibraryPath(char *libPath, bool isBit64); diff --git a/cuda_bindings/cuda/bindings/_bindings/loader.pxd b/cuda_bindings/cuda/bindings/_bindings/loader.pxd deleted file mode 100644 index 805b849cc66..00000000000 --- a/cuda_bindings/cuda/bindings/_bindings/loader.pxd +++ /dev/null @@ -1,5 +0,0 @@ -# SPDX-FileCopyrightText: Copyright (c) 2021-2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved. -# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE - -cdef extern from "loader.h": - int getCUDALibraryPath(char *libPath, bint isBit64) diff --git a/cuda_bindings/cuda/bindings/_internal/driver.pxd b/cuda_bindings/cuda/bindings/_internal/driver.pxd new file mode 100644 index 00000000000..47f4109ab9e --- /dev/null +++ b/cuda_bindings/cuda/bindings/_internal/driver.pxd @@ -0,0 +1,514 @@ +# 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.2.0, generator version 0.3.1.dev1630+gadce055ea.d20260422. Do not modify it directly. + +from ..cydriver cimport * + + +############################################################################### +# Wrapper functions +############################################################################### + +cdef CUresult _cuGetErrorString(CUresult error, const char** pStr) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGetErrorName(CUresult error, const char** pStr) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuInit(unsigned int Flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuDriverGetVersion(int* driverVersion) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuDeviceGet(CUdevice* device, int ordinal) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuDeviceGetCount(int* count) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuDeviceGetName(char* name, int len, CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuDeviceGetUuid_v2(CUuuid* uuid, CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuDeviceGetLuid(char* luid, unsigned int* deviceNodeMask, CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuDeviceTotalMem_v2(size_t* bytes, CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuDeviceGetTexture1DLinearMaxWidth(size_t* maxWidthInElements, CUarray_format format, unsigned numChannels, CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuDeviceGetAttribute(int* pi, CUdevice_attribute attrib, CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuDeviceGetNvSciSyncAttributes(void* nvSciSyncAttrList, CUdevice dev, int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuDeviceSetMemPool(CUdevice dev, CUmemoryPool pool) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuDeviceGetMemPool(CUmemoryPool* pool, CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuDeviceGetDefaultMemPool(CUmemoryPool* pool_out, CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuDeviceGetExecAffinitySupport(int* pi, CUexecAffinityType type, CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuFlushGPUDirectRDMAWrites(CUflushGPUDirectRDMAWritesTarget target, CUflushGPUDirectRDMAWritesScope scope) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuDeviceGetProperties(CUdevprop* prop, CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuDeviceComputeCapability(int* major, int* minor, CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuDevicePrimaryCtxRetain(CUcontext* pctx, CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuDevicePrimaryCtxRelease_v2(CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuDevicePrimaryCtxSetFlags_v2(CUdevice dev, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuDevicePrimaryCtxGetState(CUdevice dev, unsigned int* flags, int* active) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuDevicePrimaryCtxReset_v2(CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuCtxCreate_v4(CUcontext* pctx, CUctxCreateParams* ctxCreateParams, unsigned int flags, CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuCtxDestroy_v2(CUcontext ctx) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuCtxPushCurrent_v2(CUcontext ctx) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuCtxPopCurrent_v2(CUcontext* pctx) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuCtxSetCurrent(CUcontext ctx) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuCtxGetCurrent(CUcontext* pctx) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuCtxGetDevice(CUdevice* device) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuCtxGetFlags(unsigned int* flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuCtxSetFlags(unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuCtxGetId(CUcontext ctx, unsigned long long* ctxId) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuCtxSynchronize() except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuCtxSetLimit(CUlimit limit, size_t value) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuCtxGetLimit(size_t* pvalue, CUlimit limit) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuCtxGetCacheConfig(CUfunc_cache* pconfig) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuCtxSetCacheConfig(CUfunc_cache config) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuCtxGetApiVersion(CUcontext ctx, unsigned int* version) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuCtxGetStreamPriorityRange(int* leastPriority, int* greatestPriority) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuCtxResetPersistingL2Cache() except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuCtxGetExecAffinity(CUexecAffinityParam* pExecAffinity, CUexecAffinityType type) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuCtxRecordEvent(CUcontext hCtx, CUevent hEvent) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuCtxWaitEvent(CUcontext hCtx, CUevent hEvent) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuCtxAttach(CUcontext* pctx, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuCtxDetach(CUcontext ctx) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuCtxGetSharedMemConfig(CUsharedconfig* pConfig) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuCtxSetSharedMemConfig(CUsharedconfig config) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuModuleLoad(CUmodule* module, const char* fname) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuModuleLoadData(CUmodule* module, const void* image) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuModuleLoadDataEx(CUmodule* module, const void* image, unsigned int numOptions, CUjit_option* options, void** optionValues) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuModuleLoadFatBinary(CUmodule* module, const void* fatCubin) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuModuleUnload(CUmodule hmod) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuModuleGetLoadingMode(CUmoduleLoadingMode* mode) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuModuleGetFunction(CUfunction* hfunc, CUmodule hmod, const char* name) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuModuleGetFunctionCount(unsigned int* count, CUmodule mod) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuModuleEnumerateFunctions(CUfunction* functions, unsigned int numFunctions, CUmodule mod) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuModuleGetGlobal_v2(CUdeviceptr* dptr, size_t* bytes, CUmodule hmod, const char* name) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuLinkCreate_v2(unsigned int numOptions, CUjit_option* options, void** optionValues, CUlinkState* stateOut) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuLinkAddData_v2(CUlinkState state, CUjitInputType type, void* data, size_t size, const char* name, unsigned int numOptions, CUjit_option* options, void** optionValues) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuLinkAddFile_v2(CUlinkState state, CUjitInputType type, const char* path, unsigned int numOptions, CUjit_option* options, void** optionValues) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuLinkComplete(CUlinkState state, void** cubinOut, size_t* sizeOut) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuLinkDestroy(CUlinkState state) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuModuleGetTexRef(CUtexref* pTexRef, CUmodule hmod, const char* name) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuModuleGetSurfRef(CUsurfref* pSurfRef, CUmodule hmod, const char* name) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuLibraryLoadData(CUlibrary* library, const void* code, CUjit_option* jitOptions, void** jitOptionsValues, unsigned int numJitOptions, CUlibraryOption* libraryOptions, void** libraryOptionValues, unsigned int numLibraryOptions) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuLibraryLoadFromFile(CUlibrary* library, const char* fileName, CUjit_option* jitOptions, void** jitOptionsValues, unsigned int numJitOptions, CUlibraryOption* libraryOptions, void** libraryOptionValues, unsigned int numLibraryOptions) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuLibraryUnload(CUlibrary library) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuLibraryGetKernel(CUkernel* pKernel, CUlibrary library, const char* name) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuLibraryGetKernelCount(unsigned int* count, CUlibrary lib) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuLibraryEnumerateKernels(CUkernel* kernels, unsigned int numKernels, CUlibrary lib) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuLibraryGetModule(CUmodule* pMod, CUlibrary library) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuKernelGetFunction(CUfunction* pFunc, CUkernel kernel) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuKernelGetLibrary(CUlibrary* pLib, CUkernel kernel) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuLibraryGetGlobal(CUdeviceptr* dptr, size_t* bytes, CUlibrary library, const char* name) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuLibraryGetManaged(CUdeviceptr* dptr, size_t* bytes, CUlibrary library, const char* name) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuLibraryGetUnifiedFunction(void** fptr, CUlibrary library, const char* symbol) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuKernelGetAttribute(int* pi, CUfunction_attribute attrib, CUkernel kernel, CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuKernelSetAttribute(CUfunction_attribute attrib, int val, CUkernel kernel, CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuKernelSetCacheConfig(CUkernel kernel, CUfunc_cache config, CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuKernelGetName(const char** name, CUkernel hfunc) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuKernelGetParamInfo(CUkernel kernel, size_t paramIndex, size_t* paramOffset, size_t* paramSize) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMemGetInfo_v2(size_t* free, size_t* total) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMemAlloc_v2(CUdeviceptr* dptr, size_t bytesize) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMemAllocPitch_v2(CUdeviceptr* dptr, size_t* pPitch, size_t WidthInBytes, size_t Height, unsigned int ElementSizeBytes) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMemFree_v2(CUdeviceptr dptr) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMemGetAddressRange_v2(CUdeviceptr* pbase, size_t* psize, CUdeviceptr dptr) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMemAllocHost_v2(void** pp, size_t bytesize) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMemFreeHost(void* p) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMemHostAlloc(void** pp, size_t bytesize, unsigned int Flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMemHostGetDevicePointer_v2(CUdeviceptr* pdptr, void* p, unsigned int Flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMemHostGetFlags(unsigned int* pFlags, void* p) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMemAllocManaged(CUdeviceptr* dptr, size_t bytesize, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuDeviceRegisterAsyncNotification(CUdevice device, CUasyncCallback callbackFunc, void* userData, CUasyncCallbackHandle* callback) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuDeviceUnregisterAsyncNotification(CUdevice device, CUasyncCallbackHandle callback) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuDeviceGetByPCIBusId(CUdevice* dev, const char* pciBusId) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuDeviceGetPCIBusId(char* pciBusId, int len, CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuIpcGetEventHandle(CUipcEventHandle* pHandle, CUevent event) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuIpcOpenEventHandle(CUevent* phEvent, CUipcEventHandle handle) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuIpcGetMemHandle(CUipcMemHandle* pHandle, CUdeviceptr dptr) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuIpcOpenMemHandle_v2(CUdeviceptr* pdptr, CUipcMemHandle handle, unsigned int Flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuIpcCloseMemHandle(CUdeviceptr dptr) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMemHostRegister_v2(void* p, size_t bytesize, unsigned int Flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMemHostUnregister(void* p) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMemcpy(CUdeviceptr dst, CUdeviceptr src, size_t ByteCount) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMemcpyPeer(CUdeviceptr dstDevice, CUcontext dstContext, CUdeviceptr srcDevice, CUcontext srcContext, size_t ByteCount) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMemcpyHtoD_v2(CUdeviceptr dstDevice, const void* srcHost, size_t ByteCount) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMemcpyDtoH_v2(void* dstHost, CUdeviceptr srcDevice, size_t ByteCount) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMemcpyDtoD_v2(CUdeviceptr dstDevice, CUdeviceptr srcDevice, size_t ByteCount) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMemcpyDtoA_v2(CUarray dstArray, size_t dstOffset, CUdeviceptr srcDevice, size_t ByteCount) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMemcpyAtoD_v2(CUdeviceptr dstDevice, CUarray srcArray, size_t srcOffset, size_t ByteCount) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMemcpyHtoA_v2(CUarray dstArray, size_t dstOffset, const void* srcHost, size_t ByteCount) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMemcpyAtoH_v2(void* dstHost, CUarray srcArray, size_t srcOffset, size_t ByteCount) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMemcpyAtoA_v2(CUarray dstArray, size_t dstOffset, CUarray srcArray, size_t srcOffset, size_t ByteCount) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMemcpy2D_v2(const CUDA_MEMCPY2D* pCopy) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMemcpy2DUnaligned_v2(const CUDA_MEMCPY2D* pCopy) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMemcpy3D_v2(const CUDA_MEMCPY3D* pCopy) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMemcpy3DPeer(const CUDA_MEMCPY3D_PEER* pCopy) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMemcpyAsync(CUdeviceptr dst, CUdeviceptr src, size_t ByteCount, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMemcpyPeerAsync(CUdeviceptr dstDevice, CUcontext dstContext, CUdeviceptr srcDevice, CUcontext srcContext, size_t ByteCount, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMemcpyHtoDAsync_v2(CUdeviceptr dstDevice, const void* srcHost, size_t ByteCount, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMemcpyDtoHAsync_v2(void* dstHost, CUdeviceptr srcDevice, size_t ByteCount, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMemcpyDtoDAsync_v2(CUdeviceptr dstDevice, CUdeviceptr srcDevice, size_t ByteCount, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMemcpyHtoAAsync_v2(CUarray dstArray, size_t dstOffset, const void* srcHost, size_t ByteCount, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMemcpyAtoHAsync_v2(void* dstHost, CUarray srcArray, size_t srcOffset, size_t ByteCount, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMemcpy2DAsync_v2(const CUDA_MEMCPY2D* pCopy, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMemcpy3DAsync_v2(const CUDA_MEMCPY3D* pCopy, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMemcpy3DPeerAsync(const CUDA_MEMCPY3D_PEER* pCopy, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMemsetD8_v2(CUdeviceptr dstDevice, unsigned char uc, size_t N) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMemsetD16_v2(CUdeviceptr dstDevice, unsigned short us, size_t N) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMemsetD32_v2(CUdeviceptr dstDevice, unsigned int ui, size_t N) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMemsetD2D8_v2(CUdeviceptr dstDevice, size_t dstPitch, unsigned char uc, size_t Width, size_t Height) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMemsetD2D16_v2(CUdeviceptr dstDevice, size_t dstPitch, unsigned short us, size_t Width, size_t Height) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMemsetD2D32_v2(CUdeviceptr dstDevice, size_t dstPitch, unsigned int ui, size_t Width, size_t Height) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMemsetD8Async(CUdeviceptr dstDevice, unsigned char uc, size_t N, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMemsetD16Async(CUdeviceptr dstDevice, unsigned short us, size_t N, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMemsetD32Async(CUdeviceptr dstDevice, unsigned int ui, size_t N, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMemsetD2D8Async(CUdeviceptr dstDevice, size_t dstPitch, unsigned char uc, size_t Width, size_t Height, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMemsetD2D16Async(CUdeviceptr dstDevice, size_t dstPitch, unsigned short us, size_t Width, size_t Height, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMemsetD2D32Async(CUdeviceptr dstDevice, size_t dstPitch, unsigned int ui, size_t Width, size_t Height, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuArrayCreate_v2(CUarray* pHandle, const CUDA_ARRAY_DESCRIPTOR* pAllocateArray) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuArrayGetDescriptor_v2(CUDA_ARRAY_DESCRIPTOR* pArrayDescriptor, CUarray hArray) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuArrayGetSparseProperties(CUDA_ARRAY_SPARSE_PROPERTIES* sparseProperties, CUarray array) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMipmappedArrayGetSparseProperties(CUDA_ARRAY_SPARSE_PROPERTIES* sparseProperties, CUmipmappedArray mipmap) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuArrayGetMemoryRequirements(CUDA_ARRAY_MEMORY_REQUIREMENTS* memoryRequirements, CUarray array, CUdevice device) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMipmappedArrayGetMemoryRequirements(CUDA_ARRAY_MEMORY_REQUIREMENTS* memoryRequirements, CUmipmappedArray mipmap, CUdevice device) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuArrayGetPlane(CUarray* pPlaneArray, CUarray hArray, unsigned int planeIdx) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuArrayDestroy(CUarray hArray) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuArray3DCreate_v2(CUarray* pHandle, const CUDA_ARRAY3D_DESCRIPTOR* pAllocateArray) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuArray3DGetDescriptor_v2(CUDA_ARRAY3D_DESCRIPTOR* pArrayDescriptor, CUarray hArray) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMipmappedArrayCreate(CUmipmappedArray* pHandle, const CUDA_ARRAY3D_DESCRIPTOR* pMipmappedArrayDesc, unsigned int numMipmapLevels) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMipmappedArrayGetLevel(CUarray* pLevelArray, CUmipmappedArray hMipmappedArray, unsigned int level) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMipmappedArrayDestroy(CUmipmappedArray hMipmappedArray) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMemGetHandleForAddressRange(void* handle, CUdeviceptr dptr, size_t size, CUmemRangeHandleType handleType, unsigned long long flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMemBatchDecompressAsync(CUmemDecompressParams* paramsArray, size_t count, unsigned int flags, size_t* errorIndex, CUstream stream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMemAddressReserve(CUdeviceptr* ptr, size_t size, size_t alignment, CUdeviceptr addr, unsigned long long flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMemAddressFree(CUdeviceptr ptr, size_t size) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMemCreate(CUmemGenericAllocationHandle* handle, size_t size, const CUmemAllocationProp* prop, unsigned long long flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMemRelease(CUmemGenericAllocationHandle handle) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMemMap(CUdeviceptr ptr, size_t size, size_t offset, CUmemGenericAllocationHandle handle, unsigned long long flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMemMapArrayAsync(CUarrayMapInfo* mapInfoList, unsigned int count, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMemUnmap(CUdeviceptr ptr, size_t size) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMemSetAccess(CUdeviceptr ptr, size_t size, const CUmemAccessDesc* desc, size_t count) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMemGetAccess(unsigned long long* flags, const CUmemLocation* location, CUdeviceptr ptr) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMemExportToShareableHandle(void* shareableHandle, CUmemGenericAllocationHandle handle, CUmemAllocationHandleType handleType, unsigned long long flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMemImportFromShareableHandle(CUmemGenericAllocationHandle* handle, void* osHandle, CUmemAllocationHandleType shHandleType) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMemGetAllocationGranularity(size_t* granularity, const CUmemAllocationProp* prop, CUmemAllocationGranularity_flags option) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMemGetAllocationPropertiesFromHandle(CUmemAllocationProp* prop, CUmemGenericAllocationHandle handle) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMemRetainAllocationHandle(CUmemGenericAllocationHandle* handle, void* addr) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMemFreeAsync(CUdeviceptr dptr, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMemAllocAsync(CUdeviceptr* dptr, size_t bytesize, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMemPoolTrimTo(CUmemoryPool pool, size_t minBytesToKeep) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMemPoolSetAttribute(CUmemoryPool pool, CUmemPool_attribute attr, void* value) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMemPoolGetAttribute(CUmemoryPool pool, CUmemPool_attribute attr, void* value) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMemPoolSetAccess(CUmemoryPool pool, const CUmemAccessDesc* map, size_t count) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMemPoolGetAccess(CUmemAccess_flags* flags, CUmemoryPool memPool, CUmemLocation* location) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMemPoolCreate(CUmemoryPool* pool, const CUmemPoolProps* poolProps) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMemPoolDestroy(CUmemoryPool pool) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMemAllocFromPoolAsync(CUdeviceptr* dptr, size_t bytesize, CUmemoryPool pool, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMemPoolExportToShareableHandle(void* handle_out, CUmemoryPool pool, CUmemAllocationHandleType handleType, unsigned long long flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMemPoolImportFromShareableHandle(CUmemoryPool* pool_out, void* handle, CUmemAllocationHandleType handleType, unsigned long long flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMemPoolExportPointer(CUmemPoolPtrExportData* shareData_out, CUdeviceptr ptr) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMemPoolImportPointer(CUdeviceptr* ptr_out, CUmemoryPool pool, CUmemPoolPtrExportData* shareData) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMulticastCreate(CUmemGenericAllocationHandle* mcHandle, const CUmulticastObjectProp* prop) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMulticastAddDevice(CUmemGenericAllocationHandle mcHandle, CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMulticastBindMem(CUmemGenericAllocationHandle mcHandle, size_t mcOffset, CUmemGenericAllocationHandle memHandle, size_t memOffset, size_t size, unsigned long long flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMulticastBindAddr(CUmemGenericAllocationHandle mcHandle, size_t mcOffset, CUdeviceptr memptr, size_t size, unsigned long long flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMulticastUnbind(CUmemGenericAllocationHandle mcHandle, CUdevice dev, size_t mcOffset, size_t size) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMulticastGetGranularity(size_t* granularity, const CUmulticastObjectProp* prop, CUmulticastGranularity_flags option) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuPointerGetAttribute(void* data, CUpointer_attribute attribute, CUdeviceptr ptr) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMemPrefetchAsync_v2(CUdeviceptr devPtr, size_t count, CUmemLocation location, unsigned int flags, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMemAdvise_v2(CUdeviceptr devPtr, size_t count, CUmem_advise advice, CUmemLocation location) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMemRangeGetAttribute(void* data, size_t dataSize, CUmem_range_attribute attribute, CUdeviceptr devPtr, size_t count) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMemRangeGetAttributes(void** data, size_t* dataSizes, CUmem_range_attribute* attributes, size_t numAttributes, CUdeviceptr devPtr, size_t count) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuPointerSetAttribute(const void* value, CUpointer_attribute attribute, CUdeviceptr ptr) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuPointerGetAttributes(unsigned int numAttributes, CUpointer_attribute* attributes, void** data, CUdeviceptr ptr) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuStreamCreate(CUstream* phStream, unsigned int Flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuStreamCreateWithPriority(CUstream* phStream, unsigned int flags, int priority) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuStreamGetPriority(CUstream hStream, int* priority) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuStreamGetDevice(CUstream hStream, CUdevice* device) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuStreamGetFlags(CUstream hStream, unsigned int* flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuStreamGetId(CUstream hStream, unsigned long long* streamId) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuStreamGetCtx(CUstream hStream, CUcontext* pctx) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuStreamGetCtx_v2(CUstream hStream, CUcontext* pCtx, CUgreenCtx* pGreenCtx) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuStreamWaitEvent(CUstream hStream, CUevent hEvent, unsigned int Flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuStreamAddCallback(CUstream hStream, CUstreamCallback callback, void* userData, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuStreamBeginCapture_v2(CUstream hStream, CUstreamCaptureMode mode) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuStreamBeginCaptureToGraph(CUstream hStream, CUgraph hGraph, const CUgraphNode* dependencies, const CUgraphEdgeData* dependencyData, size_t numDependencies, CUstreamCaptureMode mode) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuThreadExchangeStreamCaptureMode(CUstreamCaptureMode* mode) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuStreamEndCapture(CUstream hStream, CUgraph* phGraph) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuStreamIsCapturing(CUstream hStream, CUstreamCaptureStatus* captureStatus) except?_CURESULT_INTERNAL_LOADING_ERROR 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?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuStreamUpdateCaptureDependencies_v2(CUstream hStream, CUgraphNode* dependencies, const CUgraphEdgeData* dependencyData, size_t numDependencies, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuStreamAttachMemAsync(CUstream hStream, CUdeviceptr dptr, size_t length, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuStreamQuery(CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuStreamSynchronize(CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuStreamDestroy_v2(CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuStreamCopyAttributes(CUstream dst, CUstream src) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuStreamGetAttribute(CUstream hStream, CUstreamAttrID attr, CUstreamAttrValue* value_out) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuStreamSetAttribute(CUstream hStream, CUstreamAttrID attr, const CUstreamAttrValue* value) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuEventCreate(CUevent* phEvent, unsigned int Flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuEventRecord(CUevent hEvent, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuEventRecordWithFlags(CUevent hEvent, CUstream hStream, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuEventQuery(CUevent hEvent) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuEventSynchronize(CUevent hEvent) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuEventDestroy_v2(CUevent hEvent) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuEventElapsedTime_v2(float* pMilliseconds, CUevent hStart, CUevent hEnd) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuImportExternalMemory(CUexternalMemory* extMem_out, const CUDA_EXTERNAL_MEMORY_HANDLE_DESC* memHandleDesc) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuExternalMemoryGetMappedBuffer(CUdeviceptr* devPtr, CUexternalMemory extMem, const CUDA_EXTERNAL_MEMORY_BUFFER_DESC* bufferDesc) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuExternalMemoryGetMappedMipmappedArray(CUmipmappedArray* mipmap, CUexternalMemory extMem, const CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC* mipmapDesc) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuDestroyExternalMemory(CUexternalMemory extMem) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuImportExternalSemaphore(CUexternalSemaphore* extSem_out, const CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC* semHandleDesc) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuSignalExternalSemaphoresAsync(const CUexternalSemaphore* extSemArray, const CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS* paramsArray, unsigned int numExtSems, CUstream stream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuWaitExternalSemaphoresAsync(const CUexternalSemaphore* extSemArray, const CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS* paramsArray, unsigned int numExtSems, CUstream stream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuDestroyExternalSemaphore(CUexternalSemaphore extSem) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuStreamWaitValue32_v2(CUstream stream, CUdeviceptr addr, cuuint32_t value, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuStreamWaitValue64_v2(CUstream stream, CUdeviceptr addr, cuuint64_t value, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuStreamWriteValue32_v2(CUstream stream, CUdeviceptr addr, cuuint32_t value, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuStreamWriteValue64_v2(CUstream stream, CUdeviceptr addr, cuuint64_t value, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuStreamBatchMemOp_v2(CUstream stream, unsigned int count, CUstreamBatchMemOpParams* paramArray, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuFuncGetAttribute(int* pi, CUfunction_attribute attrib, CUfunction hfunc) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuFuncSetAttribute(CUfunction hfunc, CUfunction_attribute attrib, int value) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuFuncSetCacheConfig(CUfunction hfunc, CUfunc_cache config) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuFuncGetModule(CUmodule* hmod, CUfunction hfunc) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuFuncGetName(const char** name, CUfunction hfunc) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuFuncGetParamInfo(CUfunction func, size_t paramIndex, size_t* paramOffset, size_t* paramSize) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuFuncIsLoaded(CUfunctionLoadingState* state, CUfunction function) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuFuncLoad(CUfunction function) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuLaunchKernel(CUfunction f, unsigned int gridDimX, unsigned int gridDimY, unsigned int gridDimZ, unsigned int blockDimX, unsigned int blockDimY, unsigned int blockDimZ, unsigned int sharedMemBytes, CUstream hStream, void** kernelParams, void** extra) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuLaunchKernelEx(const CUlaunchConfig* config, CUfunction f, void** kernelParams, void** extra) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuLaunchCooperativeKernel(CUfunction f, unsigned int gridDimX, unsigned int gridDimY, unsigned int gridDimZ, unsigned int blockDimX, unsigned int blockDimY, unsigned int blockDimZ, unsigned int sharedMemBytes, CUstream hStream, void** kernelParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuLaunchCooperativeKernelMultiDevice(CUDA_LAUNCH_PARAMS* launchParamsList, unsigned int numDevices, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuLaunchHostFunc(CUstream hStream, CUhostFn fn, void* userData) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuFuncSetBlockShape(CUfunction hfunc, int x, int y, int z) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuFuncSetSharedSize(CUfunction hfunc, unsigned int bytes) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuParamSetSize(CUfunction hfunc, unsigned int numbytes) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuParamSeti(CUfunction hfunc, int offset, unsigned int value) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuParamSetf(CUfunction hfunc, int offset, float value) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuParamSetv(CUfunction hfunc, int offset, void* ptr, unsigned int numbytes) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuLaunch(CUfunction f) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuLaunchGrid(CUfunction f, int grid_width, int grid_height) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuLaunchGridAsync(CUfunction f, int grid_width, int grid_height, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuParamSetTexRef(CUfunction hfunc, int texunit, CUtexref hTexRef) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuFuncSetSharedMemConfig(CUfunction hfunc, CUsharedconfig config) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGraphCreate(CUgraph* phGraph, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGraphAddKernelNode_v2(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, const CUDA_KERNEL_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGraphKernelNodeGetParams_v2(CUgraphNode hNode, CUDA_KERNEL_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGraphKernelNodeSetParams_v2(CUgraphNode hNode, const CUDA_KERNEL_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGraphAddMemcpyNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, const CUDA_MEMCPY3D* copyParams, CUcontext ctx) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGraphMemcpyNodeGetParams(CUgraphNode hNode, CUDA_MEMCPY3D* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGraphMemcpyNodeSetParams(CUgraphNode hNode, const CUDA_MEMCPY3D* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGraphAddMemsetNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, const CUDA_MEMSET_NODE_PARAMS* memsetParams, CUcontext ctx) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGraphMemsetNodeGetParams(CUgraphNode hNode, CUDA_MEMSET_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGraphMemsetNodeSetParams(CUgraphNode hNode, const CUDA_MEMSET_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGraphAddHostNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, const CUDA_HOST_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGraphHostNodeGetParams(CUgraphNode hNode, CUDA_HOST_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGraphHostNodeSetParams(CUgraphNode hNode, const CUDA_HOST_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGraphAddChildGraphNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, CUgraph childGraph) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGraphChildGraphNodeGetGraph(CUgraphNode hNode, CUgraph* phGraph) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGraphAddEmptyNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGraphAddEventRecordNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, CUevent event) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGraphEventRecordNodeGetEvent(CUgraphNode hNode, CUevent* event_out) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGraphEventRecordNodeSetEvent(CUgraphNode hNode, CUevent event) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGraphAddEventWaitNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, CUevent event) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGraphEventWaitNodeGetEvent(CUgraphNode hNode, CUevent* event_out) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGraphEventWaitNodeSetEvent(CUgraphNode hNode, CUevent event) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGraphAddExternalSemaphoresSignalNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, const CUDA_EXT_SEM_SIGNAL_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGraphExternalSemaphoresSignalNodeGetParams(CUgraphNode hNode, CUDA_EXT_SEM_SIGNAL_NODE_PARAMS* params_out) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGraphExternalSemaphoresSignalNodeSetParams(CUgraphNode hNode, const CUDA_EXT_SEM_SIGNAL_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGraphAddExternalSemaphoresWaitNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, const CUDA_EXT_SEM_WAIT_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGraphExternalSemaphoresWaitNodeGetParams(CUgraphNode hNode, CUDA_EXT_SEM_WAIT_NODE_PARAMS* params_out) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGraphExternalSemaphoresWaitNodeSetParams(CUgraphNode hNode, const CUDA_EXT_SEM_WAIT_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGraphAddBatchMemOpNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, const CUDA_BATCH_MEM_OP_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGraphBatchMemOpNodeGetParams(CUgraphNode hNode, CUDA_BATCH_MEM_OP_NODE_PARAMS* nodeParams_out) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGraphBatchMemOpNodeSetParams(CUgraphNode hNode, const CUDA_BATCH_MEM_OP_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGraphExecBatchMemOpNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_BATCH_MEM_OP_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGraphAddMemAllocNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, CUDA_MEM_ALLOC_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGraphMemAllocNodeGetParams(CUgraphNode hNode, CUDA_MEM_ALLOC_NODE_PARAMS* params_out) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGraphAddMemFreeNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, CUdeviceptr dptr) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGraphMemFreeNodeGetParams(CUgraphNode hNode, CUdeviceptr* dptr_out) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuDeviceGraphMemTrim(CUdevice device) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuDeviceGetGraphMemAttribute(CUdevice device, CUgraphMem_attribute attr, void* value) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuDeviceSetGraphMemAttribute(CUdevice device, CUgraphMem_attribute attr, void* value) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGraphClone(CUgraph* phGraphClone, CUgraph originalGraph) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGraphNodeFindInClone(CUgraphNode* phNode, CUgraphNode hOriginalNode, CUgraph hClonedGraph) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGraphNodeGetType(CUgraphNode hNode, CUgraphNodeType* type) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGraphGetNodes(CUgraph hGraph, CUgraphNode* nodes, size_t* numNodes) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGraphGetRootNodes(CUgraph hGraph, CUgraphNode* rootNodes, size_t* numRootNodes) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGraphGetEdges_v2(CUgraph hGraph, CUgraphNode* from_, CUgraphNode* to, CUgraphEdgeData* edgeData, size_t* numEdges) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGraphNodeGetDependencies_v2(CUgraphNode hNode, CUgraphNode* dependencies, CUgraphEdgeData* edgeData, size_t* numDependencies) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGraphNodeGetDependentNodes_v2(CUgraphNode hNode, CUgraphNode* dependentNodes, CUgraphEdgeData* edgeData, size_t* numDependentNodes) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGraphAddDependencies_v2(CUgraph hGraph, const CUgraphNode* from_, const CUgraphNode* to, const CUgraphEdgeData* edgeData, size_t numDependencies) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGraphRemoveDependencies_v2(CUgraph hGraph, const CUgraphNode* from_, const CUgraphNode* to, const CUgraphEdgeData* edgeData, size_t numDependencies) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGraphDestroyNode(CUgraphNode hNode) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGraphInstantiateWithFlags(CUgraphExec* phGraphExec, CUgraph hGraph, unsigned long long flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGraphInstantiateWithParams(CUgraphExec* phGraphExec, CUgraph hGraph, CUDA_GRAPH_INSTANTIATE_PARAMS* instantiateParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGraphExecGetFlags(CUgraphExec hGraphExec, cuuint64_t* flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGraphExecKernelNodeSetParams_v2(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_KERNEL_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGraphExecMemcpyNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_MEMCPY3D* copyParams, CUcontext ctx) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGraphExecMemsetNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_MEMSET_NODE_PARAMS* memsetParams, CUcontext ctx) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGraphExecHostNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_HOST_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGraphExecChildGraphNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, CUgraph childGraph) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGraphExecEventRecordNodeSetEvent(CUgraphExec hGraphExec, CUgraphNode hNode, CUevent event) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGraphExecEventWaitNodeSetEvent(CUgraphExec hGraphExec, CUgraphNode hNode, CUevent event) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGraphExecExternalSemaphoresSignalNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_EXT_SEM_SIGNAL_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGraphExecExternalSemaphoresWaitNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_EXT_SEM_WAIT_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGraphNodeSetEnabled(CUgraphExec hGraphExec, CUgraphNode hNode, unsigned int isEnabled) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGraphNodeGetEnabled(CUgraphExec hGraphExec, CUgraphNode hNode, unsigned int* isEnabled) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGraphUpload(CUgraphExec hGraphExec, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGraphLaunch(CUgraphExec hGraphExec, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGraphExecDestroy(CUgraphExec hGraphExec) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGraphDestroy(CUgraph hGraph) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGraphExecUpdate_v2(CUgraphExec hGraphExec, CUgraph hGraph, CUgraphExecUpdateResultInfo* resultInfo) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGraphKernelNodeCopyAttributes(CUgraphNode dst, CUgraphNode src) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGraphKernelNodeGetAttribute(CUgraphNode hNode, CUkernelNodeAttrID attr, CUkernelNodeAttrValue* value_out) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGraphKernelNodeSetAttribute(CUgraphNode hNode, CUkernelNodeAttrID attr, const CUkernelNodeAttrValue* value) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGraphDebugDotPrint(CUgraph hGraph, const char* path, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuUserObjectCreate(CUuserObject* object_out, void* ptr, CUhostFn destroy, unsigned int initialRefcount, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuUserObjectRetain(CUuserObject object, unsigned int count) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuUserObjectRelease(CUuserObject object, unsigned int count) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGraphRetainUserObject(CUgraph graph, CUuserObject object, unsigned int count, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGraphReleaseUserObject(CUgraph graph, CUuserObject object, unsigned int count) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGraphAddNode_v2(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, const CUgraphEdgeData* dependencyData, size_t numDependencies, CUgraphNodeParams* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGraphNodeSetParams(CUgraphNode hNode, CUgraphNodeParams* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGraphExecNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, CUgraphNodeParams* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGraphConditionalHandleCreate(CUgraphConditionalHandle* pHandle_out, CUgraph hGraph, CUcontext ctx, unsigned int defaultLaunchValue, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuOccupancyMaxActiveBlocksPerMultiprocessor(int* numBlocks, CUfunction func, int blockSize, size_t dynamicSMemSize) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(int* numBlocks, CUfunction func, int blockSize, size_t dynamicSMemSize, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuOccupancyMaxPotentialBlockSize(int* minGridSize, int* blockSize, CUfunction func, CUoccupancyB2DSize blockSizeToDynamicSMemSize, size_t dynamicSMemSize, int blockSizeLimit) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuOccupancyMaxPotentialBlockSizeWithFlags(int* minGridSize, int* blockSize, CUfunction func, CUoccupancyB2DSize blockSizeToDynamicSMemSize, size_t dynamicSMemSize, int blockSizeLimit, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuOccupancyAvailableDynamicSMemPerBlock(size_t* dynamicSmemSize, CUfunction func, int numBlocks, int blockSize) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuOccupancyMaxPotentialClusterSize(int* clusterSize, CUfunction func, const CUlaunchConfig* config) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuOccupancyMaxActiveClusters(int* numClusters, CUfunction func, const CUlaunchConfig* config) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuTexRefSetArray(CUtexref hTexRef, CUarray hArray, unsigned int Flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuTexRefSetMipmappedArray(CUtexref hTexRef, CUmipmappedArray hMipmappedArray, unsigned int Flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuTexRefSetAddress_v2(size_t* ByteOffset, CUtexref hTexRef, CUdeviceptr dptr, size_t bytes) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuTexRefSetAddress2D_v3(CUtexref hTexRef, const CUDA_ARRAY_DESCRIPTOR* desc, CUdeviceptr dptr, size_t Pitch) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuTexRefSetFormat(CUtexref hTexRef, CUarray_format fmt, int NumPackedComponents) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuTexRefSetAddressMode(CUtexref hTexRef, int dim, CUaddress_mode am) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuTexRefSetFilterMode(CUtexref hTexRef, CUfilter_mode fm) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuTexRefSetMipmapFilterMode(CUtexref hTexRef, CUfilter_mode fm) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuTexRefSetMipmapLevelBias(CUtexref hTexRef, float bias) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuTexRefSetMipmapLevelClamp(CUtexref hTexRef, float minMipmapLevelClamp, float maxMipmapLevelClamp) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuTexRefSetMaxAnisotropy(CUtexref hTexRef, unsigned int maxAniso) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuTexRefSetBorderColor(CUtexref hTexRef, float* pBorderColor) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuTexRefSetFlags(CUtexref hTexRef, unsigned int Flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuTexRefGetAddress_v2(CUdeviceptr* pdptr, CUtexref hTexRef) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuTexRefGetArray(CUarray* phArray, CUtexref hTexRef) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuTexRefGetMipmappedArray(CUmipmappedArray* phMipmappedArray, CUtexref hTexRef) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuTexRefGetAddressMode(CUaddress_mode* pam, CUtexref hTexRef, int dim) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuTexRefGetFilterMode(CUfilter_mode* pfm, CUtexref hTexRef) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuTexRefGetFormat(CUarray_format* pFormat, int* pNumChannels, CUtexref hTexRef) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuTexRefGetMipmapFilterMode(CUfilter_mode* pfm, CUtexref hTexRef) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuTexRefGetMipmapLevelBias(float* pbias, CUtexref hTexRef) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuTexRefGetMipmapLevelClamp(float* pminMipmapLevelClamp, float* pmaxMipmapLevelClamp, CUtexref hTexRef) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuTexRefGetMaxAnisotropy(int* pmaxAniso, CUtexref hTexRef) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuTexRefGetBorderColor(float* pBorderColor, CUtexref hTexRef) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuTexRefGetFlags(unsigned int* pFlags, CUtexref hTexRef) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuTexRefCreate(CUtexref* pTexRef) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuTexRefDestroy(CUtexref hTexRef) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuSurfRefSetArray(CUsurfref hSurfRef, CUarray hArray, unsigned int Flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuSurfRefGetArray(CUarray* phArray, CUsurfref hSurfRef) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuTexObjectCreate(CUtexObject* pTexObject, const CUDA_RESOURCE_DESC* pResDesc, const CUDA_TEXTURE_DESC* pTexDesc, const CUDA_RESOURCE_VIEW_DESC* pResViewDesc) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuTexObjectDestroy(CUtexObject texObject) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuTexObjectGetResourceDesc(CUDA_RESOURCE_DESC* pResDesc, CUtexObject texObject) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuTexObjectGetTextureDesc(CUDA_TEXTURE_DESC* pTexDesc, CUtexObject texObject) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuTexObjectGetResourceViewDesc(CUDA_RESOURCE_VIEW_DESC* pResViewDesc, CUtexObject texObject) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuSurfObjectCreate(CUsurfObject* pSurfObject, const CUDA_RESOURCE_DESC* pResDesc) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuSurfObjectDestroy(CUsurfObject surfObject) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuSurfObjectGetResourceDesc(CUDA_RESOURCE_DESC* pResDesc, CUsurfObject surfObject) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuTensorMapEncodeTiled(CUtensorMap* tensorMap, CUtensorMapDataType tensorDataType, cuuint32_t tensorRank, void* globalAddress, const cuuint64_t* globalDim, const cuuint64_t* globalStrides, const cuuint32_t* boxDim, const cuuint32_t* elementStrides, CUtensorMapInterleave interleave, CUtensorMapSwizzle swizzle, CUtensorMapL2promotion l2Promotion, CUtensorMapFloatOOBfill oobFill) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuTensorMapEncodeIm2col(CUtensorMap* tensorMap, CUtensorMapDataType tensorDataType, cuuint32_t tensorRank, void* globalAddress, const cuuint64_t* globalDim, const cuuint64_t* globalStrides, const int* pixelBoxLowerCorner, const int* pixelBoxUpperCorner, cuuint32_t channelsPerPixel, cuuint32_t pixelsPerColumn, const cuuint32_t* elementStrides, CUtensorMapInterleave interleave, CUtensorMapSwizzle swizzle, CUtensorMapL2promotion l2Promotion, CUtensorMapFloatOOBfill oobFill) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuTensorMapEncodeIm2colWide(CUtensorMap* tensorMap, CUtensorMapDataType tensorDataType, cuuint32_t tensorRank, void* globalAddress, const cuuint64_t* globalDim, const cuuint64_t* globalStrides, int pixelBoxLowerCornerWidth, int pixelBoxUpperCornerWidth, cuuint32_t channelsPerPixel, cuuint32_t pixelsPerColumn, const cuuint32_t* elementStrides, CUtensorMapInterleave interleave, CUtensorMapIm2ColWideMode mode, CUtensorMapSwizzle swizzle, CUtensorMapL2promotion l2Promotion, CUtensorMapFloatOOBfill oobFill) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuTensorMapReplaceAddress(CUtensorMap* tensorMap, void* globalAddress) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuDeviceCanAccessPeer(int* canAccessPeer, CUdevice dev, CUdevice peerDev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuCtxEnablePeerAccess(CUcontext peerContext, unsigned int Flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuCtxDisablePeerAccess(CUcontext peerContext) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuDeviceGetP2PAttribute(int* value, CUdevice_P2PAttribute attrib, CUdevice srcDevice, CUdevice dstDevice) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGraphicsUnregisterResource(CUgraphicsResource resource) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGraphicsSubResourceGetMappedArray(CUarray* pArray, CUgraphicsResource resource, unsigned int arrayIndex, unsigned int mipLevel) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGraphicsResourceGetMappedMipmappedArray(CUmipmappedArray* pMipmappedArray, CUgraphicsResource resource) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGraphicsResourceGetMappedPointer_v2(CUdeviceptr* pDevPtr, size_t* pSize, CUgraphicsResource resource) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGraphicsResourceSetMapFlags_v2(CUgraphicsResource resource, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGraphicsMapResources(unsigned int count, CUgraphicsResource* resources, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGraphicsUnmapResources(unsigned int count, CUgraphicsResource* resources, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGetProcAddress_v2(const char* symbol, void** pfn, int cudaVersion, cuuint64_t flags, CUdriverProcAddressQueryResult* symbolStatus) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuCoredumpGetAttribute(CUcoredumpSettings attrib, void* value, size_t* size) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuCoredumpGetAttributeGlobal(CUcoredumpSettings attrib, void* value, size_t* size) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuCoredumpSetAttribute(CUcoredumpSettings attrib, void* value, size_t* size) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuCoredumpSetAttributeGlobal(CUcoredumpSettings attrib, void* value, size_t* size) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGetExportTable(const void** ppExportTable, const CUuuid* pExportTableId) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGreenCtxCreate(CUgreenCtx* phCtx, CUdevResourceDesc desc, CUdevice dev, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGreenCtxDestroy(CUgreenCtx hCtx) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuCtxFromGreenCtx(CUcontext* pContext, CUgreenCtx hCtx) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuDeviceGetDevResource(CUdevice device, CUdevResource* resource, CUdevResourceType type) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuCtxGetDevResource(CUcontext hCtx, CUdevResource* resource, CUdevResourceType type) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGreenCtxGetDevResource(CUgreenCtx hCtx, CUdevResource* resource, CUdevResourceType type) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuDevSmResourceSplitByCount(CUdevResource* result, unsigned int* nbGroups, const CUdevResource* input, CUdevResource* remainder, unsigned int flags, unsigned int minCount) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuDevResourceGenerateDesc(CUdevResourceDesc* phDesc, CUdevResource* resources, unsigned int nbResources) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGreenCtxRecordEvent(CUgreenCtx hCtx, CUevent hEvent) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGreenCtxWaitEvent(CUgreenCtx hCtx, CUevent hEvent) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuStreamGetGreenCtx(CUstream hStream, CUgreenCtx* phCtx) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGreenCtxStreamCreate(CUstream* phStream, CUgreenCtx greenCtx, unsigned int flags, int priority) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuLogsRegisterCallback(CUlogsCallback callbackFunc, void* userData, CUlogsCallbackHandle* callback_out) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuLogsUnregisterCallback(CUlogsCallbackHandle callback) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuLogsCurrent(CUlogIterator* iterator_out, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuLogsDumpToFile(CUlogIterator* iterator, const char* pathToFile, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuLogsDumpToMemory(CUlogIterator* iterator, char* buffer, size_t* size, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuCheckpointProcessGetRestoreThreadId(int pid, int* tid) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuCheckpointProcessGetState(int pid, CUprocessState* state) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuCheckpointProcessLock(int pid, CUcheckpointLockArgs* args) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuCheckpointProcessCheckpoint(int pid, CUcheckpointCheckpointArgs* args) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuCheckpointProcessRestore(int pid, CUcheckpointRestoreArgs* args) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuCheckpointProcessUnlock(int pid, CUcheckpointUnlockArgs* args) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGraphicsEGLRegisterImage(CUgraphicsResource* pCudaResource, EGLImageKHR image, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuEGLStreamConsumerConnect(CUeglStreamConnection* conn, EGLStreamKHR stream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuEGLStreamConsumerConnectWithFlags(CUeglStreamConnection* conn, EGLStreamKHR stream, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuEGLStreamConsumerDisconnect(CUeglStreamConnection* conn) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuEGLStreamConsumerAcquireFrame(CUeglStreamConnection* conn, CUgraphicsResource* pCudaResource, CUstream* pStream, unsigned int timeout) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuEGLStreamConsumerReleaseFrame(CUeglStreamConnection* conn, CUgraphicsResource pCudaResource, CUstream* pStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuEGLStreamProducerConnect(CUeglStreamConnection* conn, EGLStreamKHR stream, EGLint width, EGLint height) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuEGLStreamProducerDisconnect(CUeglStreamConnection* conn) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuEGLStreamProducerPresentFrame(CUeglStreamConnection* conn, CUeglFrame eglframe, CUstream* pStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuEGLStreamProducerReturnFrame(CUeglStreamConnection* conn, CUeglFrame* eglframe, CUstream* pStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGraphicsResourceGetMappedEglFrame(CUeglFrame* eglFrame, CUgraphicsResource resource, unsigned int index, unsigned int mipLevel) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuEventCreateFromEGLSync(CUevent* phEvent, EGLSyncKHR eglSync, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGraphicsGLRegisterBuffer(CUgraphicsResource* pCudaResource, GLuint buffer, unsigned int Flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGraphicsGLRegisterImage(CUgraphicsResource* pCudaResource, GLuint image, GLenum target, unsigned int Flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGLGetDevices_v2(unsigned int* pCudaDeviceCount, CUdevice* pCudaDevices, unsigned int cudaDeviceCount, CUGLDeviceList deviceList) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGLCtxCreate_v2(CUcontext* pCtx, unsigned int Flags, CUdevice device) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGLInit() except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGLRegisterBufferObject(GLuint buffer) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGLMapBufferObject_v2(CUdeviceptr* dptr, size_t* size, GLuint buffer) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGLUnmapBufferObject(GLuint buffer) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGLUnregisterBufferObject(GLuint buffer) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGLSetBufferObjectMapFlags(GLuint buffer, unsigned int Flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGLMapBufferObjectAsync_v2(CUdeviceptr* dptr, size_t* size, GLuint buffer, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGLUnmapBufferObjectAsync(GLuint buffer, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuProfilerInitialize(const char* configFile, const char* outputFile, CUoutput_mode outputMode) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuProfilerStart() except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuProfilerStop() except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuVDPAUGetDevice(CUdevice* pDevice, VdpDevice vdpDevice, VdpGetProcAddress* vdpGetProcAddress) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuVDPAUCtxCreate_v2(CUcontext* pCtx, unsigned int flags, CUdevice device, VdpDevice vdpDevice, VdpGetProcAddress* vdpGetProcAddress) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGraphicsVDPAURegisterVideoSurface(CUgraphicsResource* pCudaResource, VdpVideoSurface vdpSurface, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGraphicsVDPAURegisterOutputSurface(CUgraphicsResource* pCudaResource, VdpOutputSurface vdpSurface, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuDeviceGetHostAtomicCapabilities(unsigned int* capabilities, const CUatomicOperation* operations, unsigned int count, CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuCtxGetDevice_v2(CUdevice* device, CUcontext ctx) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuCtxSynchronize_v2(CUcontext ctx) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMemcpyBatchAsync_v2(CUdeviceptr* dsts, CUdeviceptr* srcs, size_t* sizes, size_t count, CUmemcpyAttributes* attrs, size_t* attrsIdxs, size_t numAttrs, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMemcpy3DBatchAsync_v2(size_t numOps, CUDA_MEMCPY3D_BATCH_OP* opList, unsigned long long flags, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMemGetDefaultMemPool(CUmemoryPool* pool_out, CUmemLocation* location, CUmemAllocationType type) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMemGetMemPool(CUmemoryPool* pool, CUmemLocation* location, CUmemAllocationType type) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMemSetMemPool(CUmemLocation* location, CUmemAllocationType type, CUmemoryPool pool) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMulticastBindMem_v2(CUmemGenericAllocationHandle mcHandle, CUdevice dev, size_t mcOffset, CUmemGenericAllocationHandle memHandle, size_t memOffset, size_t size, unsigned long long flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMulticastBindAddr_v2(CUmemGenericAllocationHandle mcHandle, CUdevice dev, size_t mcOffset, CUdeviceptr memptr, size_t size, unsigned long long flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMemPrefetchBatchAsync(CUdeviceptr* dptrs, size_t* sizes, size_t count, CUmemLocation* prefetchLocs, size_t* prefetchLocIdxs, size_t numPrefetchLocs, unsigned long long flags, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMemDiscardBatchAsync(CUdeviceptr* dptrs, size_t* sizes, size_t count, unsigned long long flags, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMemDiscardAndPrefetchBatchAsync(CUdeviceptr* dptrs, size_t* sizes, size_t count, CUmemLocation* prefetchLocs, size_t* prefetchLocIdxs, size_t numPrefetchLocs, unsigned long long flags, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGraphNodeGetContainingGraph(CUgraphNode hNode, CUgraph* phGraph) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGraphNodeGetLocalId(CUgraphNode hNode, unsigned int* nodeId) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGraphNodeGetToolsId(CUgraphNode hNode, unsigned long long* toolsNodeId) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGraphGetId(CUgraph hGraph, unsigned int* graphId) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGraphExecGetId(CUgraphExec hGraphExec, unsigned int* graphId) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuDeviceGetP2PAtomicCapabilities(unsigned int* capabilities, const CUatomicOperation* operations, unsigned int count, CUdevice srcDevice, CUdevice dstDevice) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuDevSmResourceSplit(CUdevResource* result, unsigned int nbGroups, const CUdevResource* input, CUdevResource* remainder, unsigned int flags, CU_DEV_SM_RESOURCE_GROUP_PARAMS* groupParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGreenCtxGetId(CUgreenCtx greenCtx, unsigned long long* greenCtxId) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuStreamGetDevResource(CUstream hStream, CUdevResource* resource, CUdevResourceType type) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuKernelGetParamCount(CUkernel kernel, size_t* paramCount) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMemcpyWithAttributesAsync(CUdeviceptr dst, CUdeviceptr src, size_t size, CUmemcpyAttributes* attr, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuMemcpy3DWithAttributesAsync(CUDA_MEMCPY3D_BATCH_OP* op, unsigned long long flags, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuStreamBeginCaptureToCig(CUstream hStream, CUstreamCigCaptureParams* streamCigCaptureParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuStreamEndCaptureToCig(CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuFuncGetParamCount(CUfunction func, size_t* paramCount) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuLaunchHostFunc_v2(CUstream hStream, CUhostFn fn, void* userData, unsigned int syncMode) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuGraphNodeGetParams(CUgraphNode hNode, CUgraphNodeParams* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuCoredumpRegisterStartCallback(CUcoredumpStatusCallback callback, void* userData, CUcoredumpCallbackHandle* callbackOut) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuCoredumpRegisterCompleteCallback(CUcoredumpStatusCallback callback, void* userData, CUcoredumpCallbackHandle* callbackOut) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuCoredumpDeregisterStartCallback(CUcoredumpCallbackHandle callback) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult _cuCoredumpDeregisterCompleteCallback(CUcoredumpCallbackHandle callback) except?_CURESULT_INTERNAL_LOADING_ERROR nogil diff --git a/cuda_bindings/cuda/bindings/_internal/driver_linux.pyx b/cuda_bindings/cuda/bindings/_internal/driver_linux.pyx new file mode 100644 index 00000000000..8acaa63b9c5 --- /dev/null +++ b/cuda_bindings/cuda/bindings/_internal/driver_linux.pyx @@ -0,0 +1,8653 @@ +# 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.2.0, generator version 0.3.1.dev1630+gadce055ea.d20260422. Do not modify it directly. + +from libc.stdint cimport intptr_t, uintptr_t + +import os +import threading +from .utils import FunctionNotFoundError, NotSupportedError + +from cuda.pathfinder import load_nvidia_dynamic_lib + + +############################################################################### +# Extern +############################################################################### + +# You must 'from .utils import NotSupportedError' before using this template + +cdef extern from "" nogil: + void* dlopen(const char*, int) + char* dlerror() + void* dlsym(void*, const char*) + int dlclose(void*) + + enum: + RTLD_LAZY + RTLD_NOW + RTLD_GLOBAL + RTLD_LOCAL + + const void* RTLD_DEFAULT 'RTLD_DEFAULT' + +cdef int get_cuda_version(): + cdef void* handle = NULL + cdef int err, driver_ver = 0 + + # Load driver to check version + handle = dlopen('libcuda.so.1', RTLD_NOW | RTLD_GLOBAL) + if handle == NULL: + err_msg = dlerror() + raise NotSupportedError(f'CUDA driver is not found ({err_msg.decode()})') + cuDriverGetVersion = dlsym(handle, "cuDriverGetVersion") + if cuDriverGetVersion == NULL: + raise RuntimeError('Did not find cuDriverGetVersion symbol in libcuda.so.1') + err = (cuDriverGetVersion)(&driver_ver) + if err != 0: + raise RuntimeError(f'cuDriverGetVersion returned error code {err}') + + return driver_ver + + + +############################################################################### +# Wrapper init +############################################################################### + +cdef object __symbol_lock = threading.Lock() +cdef bint __py_driver_init = False + +cdef void* __cuGetErrorString = NULL +cdef void* __cuGetErrorName = NULL +cdef void* __cuInit = NULL +cdef void* __cuDriverGetVersion = NULL +cdef void* __cuDeviceGet = NULL +cdef void* __cuDeviceGetCount = NULL +cdef void* __cuDeviceGetName = NULL +cdef void* __cuDeviceGetUuid_v2 = NULL +cdef void* __cuDeviceGetLuid = NULL +cdef void* __cuDeviceTotalMem_v2 = NULL +cdef void* __cuDeviceGetTexture1DLinearMaxWidth = NULL +cdef void* __cuDeviceGetAttribute = NULL +cdef void* __cuDeviceGetNvSciSyncAttributes = NULL +cdef void* __cuDeviceSetMemPool = NULL +cdef void* __cuDeviceGetMemPool = NULL +cdef void* __cuDeviceGetDefaultMemPool = NULL +cdef void* __cuDeviceGetExecAffinitySupport = NULL +cdef void* __cuFlushGPUDirectRDMAWrites = NULL +cdef void* __cuDeviceGetProperties = NULL +cdef void* __cuDeviceComputeCapability = NULL +cdef void* __cuDevicePrimaryCtxRetain = NULL +cdef void* __cuDevicePrimaryCtxRelease_v2 = NULL +cdef void* __cuDevicePrimaryCtxSetFlags_v2 = NULL +cdef void* __cuDevicePrimaryCtxGetState = NULL +cdef void* __cuDevicePrimaryCtxReset_v2 = NULL +cdef void* __cuCtxCreate_v4 = NULL +cdef void* __cuCtxDestroy_v2 = NULL +cdef void* __cuCtxPushCurrent_v2 = NULL +cdef void* __cuCtxPopCurrent_v2 = NULL +cdef void* __cuCtxSetCurrent = NULL +cdef void* __cuCtxGetCurrent = NULL +cdef void* __cuCtxGetDevice = NULL +cdef void* __cuCtxGetFlags = NULL +cdef void* __cuCtxSetFlags = NULL +cdef void* __cuCtxGetId = NULL +cdef void* __cuCtxSynchronize = NULL +cdef void* __cuCtxSetLimit = NULL +cdef void* __cuCtxGetLimit = NULL +cdef void* __cuCtxGetCacheConfig = NULL +cdef void* __cuCtxSetCacheConfig = NULL +cdef void* __cuCtxGetApiVersion = NULL +cdef void* __cuCtxGetStreamPriorityRange = NULL +cdef void* __cuCtxResetPersistingL2Cache = NULL +cdef void* __cuCtxGetExecAffinity = NULL +cdef void* __cuCtxRecordEvent = NULL +cdef void* __cuCtxWaitEvent = NULL +cdef void* __cuCtxAttach = NULL +cdef void* __cuCtxDetach = NULL +cdef void* __cuCtxGetSharedMemConfig = NULL +cdef void* __cuCtxSetSharedMemConfig = NULL +cdef void* __cuModuleLoad = NULL +cdef void* __cuModuleLoadData = NULL +cdef void* __cuModuleLoadDataEx = NULL +cdef void* __cuModuleLoadFatBinary = NULL +cdef void* __cuModuleUnload = NULL +cdef void* __cuModuleGetLoadingMode = NULL +cdef void* __cuModuleGetFunction = NULL +cdef void* __cuModuleGetFunctionCount = NULL +cdef void* __cuModuleEnumerateFunctions = NULL +cdef void* __cuModuleGetGlobal_v2 = NULL +cdef void* __cuLinkCreate_v2 = NULL +cdef void* __cuLinkAddData_v2 = NULL +cdef void* __cuLinkAddFile_v2 = NULL +cdef void* __cuLinkComplete = NULL +cdef void* __cuLinkDestroy = NULL +cdef void* __cuModuleGetTexRef = NULL +cdef void* __cuModuleGetSurfRef = NULL +cdef void* __cuLibraryLoadData = NULL +cdef void* __cuLibraryLoadFromFile = NULL +cdef void* __cuLibraryUnload = NULL +cdef void* __cuLibraryGetKernel = NULL +cdef void* __cuLibraryGetKernelCount = NULL +cdef void* __cuLibraryEnumerateKernels = NULL +cdef void* __cuLibraryGetModule = NULL +cdef void* __cuKernelGetFunction = NULL +cdef void* __cuKernelGetLibrary = NULL +cdef void* __cuLibraryGetGlobal = NULL +cdef void* __cuLibraryGetManaged = NULL +cdef void* __cuLibraryGetUnifiedFunction = NULL +cdef void* __cuKernelGetAttribute = NULL +cdef void* __cuKernelSetAttribute = NULL +cdef void* __cuKernelSetCacheConfig = NULL +cdef void* __cuKernelGetName = NULL +cdef void* __cuKernelGetParamInfo = NULL +cdef void* __cuMemGetInfo_v2 = NULL +cdef void* __cuMemAlloc_v2 = NULL +cdef void* __cuMemAllocPitch_v2 = NULL +cdef void* __cuMemFree_v2 = NULL +cdef void* __cuMemGetAddressRange_v2 = NULL +cdef void* __cuMemAllocHost_v2 = NULL +cdef void* __cuMemFreeHost = NULL +cdef void* __cuMemHostAlloc = NULL +cdef void* __cuMemHostGetDevicePointer_v2 = NULL +cdef void* __cuMemHostGetFlags = NULL +cdef void* __cuMemAllocManaged = NULL +cdef void* __cuDeviceRegisterAsyncNotification = NULL +cdef void* __cuDeviceUnregisterAsyncNotification = NULL +cdef void* __cuDeviceGetByPCIBusId = NULL +cdef void* __cuDeviceGetPCIBusId = NULL +cdef void* __cuIpcGetEventHandle = NULL +cdef void* __cuIpcOpenEventHandle = NULL +cdef void* __cuIpcGetMemHandle = NULL +cdef void* __cuIpcOpenMemHandle_v2 = NULL +cdef void* __cuIpcCloseMemHandle = NULL +cdef void* __cuMemHostRegister_v2 = NULL +cdef void* __cuMemHostUnregister = NULL +cdef void* __cuMemcpy = NULL +cdef void* __cuMemcpyPeer = NULL +cdef void* __cuMemcpyHtoD_v2 = NULL +cdef void* __cuMemcpyDtoH_v2 = NULL +cdef void* __cuMemcpyDtoD_v2 = NULL +cdef void* __cuMemcpyDtoA_v2 = NULL +cdef void* __cuMemcpyAtoD_v2 = NULL +cdef void* __cuMemcpyHtoA_v2 = NULL +cdef void* __cuMemcpyAtoH_v2 = NULL +cdef void* __cuMemcpyAtoA_v2 = NULL +cdef void* __cuMemcpy2D_v2 = NULL +cdef void* __cuMemcpy2DUnaligned_v2 = NULL +cdef void* __cuMemcpy3D_v2 = NULL +cdef void* __cuMemcpy3DPeer = NULL +cdef void* __cuMemcpyAsync = NULL +cdef void* __cuMemcpyPeerAsync = NULL +cdef void* __cuMemcpyHtoDAsync_v2 = NULL +cdef void* __cuMemcpyDtoHAsync_v2 = NULL +cdef void* __cuMemcpyDtoDAsync_v2 = NULL +cdef void* __cuMemcpyHtoAAsync_v2 = NULL +cdef void* __cuMemcpyAtoHAsync_v2 = NULL +cdef void* __cuMemcpy2DAsync_v2 = NULL +cdef void* __cuMemcpy3DAsync_v2 = NULL +cdef void* __cuMemcpy3DPeerAsync = NULL +cdef void* __cuMemsetD8_v2 = NULL +cdef void* __cuMemsetD16_v2 = NULL +cdef void* __cuMemsetD32_v2 = NULL +cdef void* __cuMemsetD2D8_v2 = NULL +cdef void* __cuMemsetD2D16_v2 = NULL +cdef void* __cuMemsetD2D32_v2 = NULL +cdef void* __cuMemsetD8Async = NULL +cdef void* __cuMemsetD16Async = NULL +cdef void* __cuMemsetD32Async = NULL +cdef void* __cuMemsetD2D8Async = NULL +cdef void* __cuMemsetD2D16Async = NULL +cdef void* __cuMemsetD2D32Async = NULL +cdef void* __cuArrayCreate_v2 = NULL +cdef void* __cuArrayGetDescriptor_v2 = NULL +cdef void* __cuArrayGetSparseProperties = NULL +cdef void* __cuMipmappedArrayGetSparseProperties = NULL +cdef void* __cuArrayGetMemoryRequirements = NULL +cdef void* __cuMipmappedArrayGetMemoryRequirements = NULL +cdef void* __cuArrayGetPlane = NULL +cdef void* __cuArrayDestroy = NULL +cdef void* __cuArray3DCreate_v2 = NULL +cdef void* __cuArray3DGetDescriptor_v2 = NULL +cdef void* __cuMipmappedArrayCreate = NULL +cdef void* __cuMipmappedArrayGetLevel = NULL +cdef void* __cuMipmappedArrayDestroy = NULL +cdef void* __cuMemGetHandleForAddressRange = NULL +cdef void* __cuMemBatchDecompressAsync = NULL +cdef void* __cuMemAddressReserve = NULL +cdef void* __cuMemAddressFree = NULL +cdef void* __cuMemCreate = NULL +cdef void* __cuMemRelease = NULL +cdef void* __cuMemMap = NULL +cdef void* __cuMemMapArrayAsync = NULL +cdef void* __cuMemUnmap = NULL +cdef void* __cuMemSetAccess = NULL +cdef void* __cuMemGetAccess = NULL +cdef void* __cuMemExportToShareableHandle = NULL +cdef void* __cuMemImportFromShareableHandle = NULL +cdef void* __cuMemGetAllocationGranularity = NULL +cdef void* __cuMemGetAllocationPropertiesFromHandle = NULL +cdef void* __cuMemRetainAllocationHandle = NULL +cdef void* __cuMemFreeAsync = NULL +cdef void* __cuMemAllocAsync = NULL +cdef void* __cuMemPoolTrimTo = NULL +cdef void* __cuMemPoolSetAttribute = NULL +cdef void* __cuMemPoolGetAttribute = NULL +cdef void* __cuMemPoolSetAccess = NULL +cdef void* __cuMemPoolGetAccess = NULL +cdef void* __cuMemPoolCreate = NULL +cdef void* __cuMemPoolDestroy = NULL +cdef void* __cuMemAllocFromPoolAsync = NULL +cdef void* __cuMemPoolExportToShareableHandle = NULL +cdef void* __cuMemPoolImportFromShareableHandle = NULL +cdef void* __cuMemPoolExportPointer = NULL +cdef void* __cuMemPoolImportPointer = NULL +cdef void* __cuMulticastCreate = NULL +cdef void* __cuMulticastAddDevice = NULL +cdef void* __cuMulticastBindMem = NULL +cdef void* __cuMulticastBindAddr = NULL +cdef void* __cuMulticastUnbind = NULL +cdef void* __cuMulticastGetGranularity = NULL +cdef void* __cuPointerGetAttribute = NULL +cdef void* __cuMemPrefetchAsync_v2 = NULL +cdef void* __cuMemAdvise_v2 = NULL +cdef void* __cuMemRangeGetAttribute = NULL +cdef void* __cuMemRangeGetAttributes = NULL +cdef void* __cuPointerSetAttribute = NULL +cdef void* __cuPointerGetAttributes = NULL +cdef void* __cuStreamCreate = NULL +cdef void* __cuStreamCreateWithPriority = NULL +cdef void* __cuStreamGetPriority = NULL +cdef void* __cuStreamGetDevice = NULL +cdef void* __cuStreamGetFlags = NULL +cdef void* __cuStreamGetId = NULL +cdef void* __cuStreamGetCtx = NULL +cdef void* __cuStreamGetCtx_v2 = NULL +cdef void* __cuStreamWaitEvent = NULL +cdef void* __cuStreamAddCallback = NULL +cdef void* __cuStreamBeginCapture_v2 = NULL +cdef void* __cuStreamBeginCaptureToGraph = NULL +cdef void* __cuThreadExchangeStreamCaptureMode = NULL +cdef void* __cuStreamEndCapture = NULL +cdef void* __cuStreamIsCapturing = NULL +cdef void* __cuStreamGetCaptureInfo_v3 = NULL +cdef void* __cuStreamUpdateCaptureDependencies_v2 = NULL +cdef void* __cuStreamAttachMemAsync = NULL +cdef void* __cuStreamQuery = NULL +cdef void* __cuStreamSynchronize = NULL +cdef void* __cuStreamDestroy_v2 = NULL +cdef void* __cuStreamCopyAttributes = NULL +cdef void* __cuStreamGetAttribute = NULL +cdef void* __cuStreamSetAttribute = NULL +cdef void* __cuEventCreate = NULL +cdef void* __cuEventRecord = NULL +cdef void* __cuEventRecordWithFlags = NULL +cdef void* __cuEventQuery = NULL +cdef void* __cuEventSynchronize = NULL +cdef void* __cuEventDestroy_v2 = NULL +cdef void* __cuEventElapsedTime_v2 = NULL +cdef void* __cuImportExternalMemory = NULL +cdef void* __cuExternalMemoryGetMappedBuffer = NULL +cdef void* __cuExternalMemoryGetMappedMipmappedArray = NULL +cdef void* __cuDestroyExternalMemory = NULL +cdef void* __cuImportExternalSemaphore = NULL +cdef void* __cuSignalExternalSemaphoresAsync = NULL +cdef void* __cuWaitExternalSemaphoresAsync = NULL +cdef void* __cuDestroyExternalSemaphore = NULL +cdef void* __cuStreamWaitValue32_v2 = NULL +cdef void* __cuStreamWaitValue64_v2 = NULL +cdef void* __cuStreamWriteValue32_v2 = NULL +cdef void* __cuStreamWriteValue64_v2 = NULL +cdef void* __cuStreamBatchMemOp_v2 = NULL +cdef void* __cuFuncGetAttribute = NULL +cdef void* __cuFuncSetAttribute = NULL +cdef void* __cuFuncSetCacheConfig = NULL +cdef void* __cuFuncGetModule = NULL +cdef void* __cuFuncGetName = NULL +cdef void* __cuFuncGetParamInfo = NULL +cdef void* __cuFuncIsLoaded = NULL +cdef void* __cuFuncLoad = NULL +cdef void* __cuLaunchKernel = NULL +cdef void* __cuLaunchKernelEx = NULL +cdef void* __cuLaunchCooperativeKernel = NULL +cdef void* __cuLaunchCooperativeKernelMultiDevice = NULL +cdef void* __cuLaunchHostFunc = NULL +cdef void* __cuFuncSetBlockShape = NULL +cdef void* __cuFuncSetSharedSize = NULL +cdef void* __cuParamSetSize = NULL +cdef void* __cuParamSeti = NULL +cdef void* __cuParamSetf = NULL +cdef void* __cuParamSetv = NULL +cdef void* __cuLaunch = NULL +cdef void* __cuLaunchGrid = NULL +cdef void* __cuLaunchGridAsync = NULL +cdef void* __cuParamSetTexRef = NULL +cdef void* __cuFuncSetSharedMemConfig = NULL +cdef void* __cuGraphCreate = NULL +cdef void* __cuGraphAddKernelNode_v2 = NULL +cdef void* __cuGraphKernelNodeGetParams_v2 = NULL +cdef void* __cuGraphKernelNodeSetParams_v2 = NULL +cdef void* __cuGraphAddMemcpyNode = NULL +cdef void* __cuGraphMemcpyNodeGetParams = NULL +cdef void* __cuGraphMemcpyNodeSetParams = NULL +cdef void* __cuGraphAddMemsetNode = NULL +cdef void* __cuGraphMemsetNodeGetParams = NULL +cdef void* __cuGraphMemsetNodeSetParams = NULL +cdef void* __cuGraphAddHostNode = NULL +cdef void* __cuGraphHostNodeGetParams = NULL +cdef void* __cuGraphHostNodeSetParams = NULL +cdef void* __cuGraphAddChildGraphNode = NULL +cdef void* __cuGraphChildGraphNodeGetGraph = NULL +cdef void* __cuGraphAddEmptyNode = NULL +cdef void* __cuGraphAddEventRecordNode = NULL +cdef void* __cuGraphEventRecordNodeGetEvent = NULL +cdef void* __cuGraphEventRecordNodeSetEvent = NULL +cdef void* __cuGraphAddEventWaitNode = NULL +cdef void* __cuGraphEventWaitNodeGetEvent = NULL +cdef void* __cuGraphEventWaitNodeSetEvent = NULL +cdef void* __cuGraphAddExternalSemaphoresSignalNode = NULL +cdef void* __cuGraphExternalSemaphoresSignalNodeGetParams = NULL +cdef void* __cuGraphExternalSemaphoresSignalNodeSetParams = NULL +cdef void* __cuGraphAddExternalSemaphoresWaitNode = NULL +cdef void* __cuGraphExternalSemaphoresWaitNodeGetParams = NULL +cdef void* __cuGraphExternalSemaphoresWaitNodeSetParams = NULL +cdef void* __cuGraphAddBatchMemOpNode = NULL +cdef void* __cuGraphBatchMemOpNodeGetParams = NULL +cdef void* __cuGraphBatchMemOpNodeSetParams = NULL +cdef void* __cuGraphExecBatchMemOpNodeSetParams = NULL +cdef void* __cuGraphAddMemAllocNode = NULL +cdef void* __cuGraphMemAllocNodeGetParams = NULL +cdef void* __cuGraphAddMemFreeNode = NULL +cdef void* __cuGraphMemFreeNodeGetParams = NULL +cdef void* __cuDeviceGraphMemTrim = NULL +cdef void* __cuDeviceGetGraphMemAttribute = NULL +cdef void* __cuDeviceSetGraphMemAttribute = NULL +cdef void* __cuGraphClone = NULL +cdef void* __cuGraphNodeFindInClone = NULL +cdef void* __cuGraphNodeGetType = NULL +cdef void* __cuGraphGetNodes = NULL +cdef void* __cuGraphGetRootNodes = NULL +cdef void* __cuGraphGetEdges_v2 = NULL +cdef void* __cuGraphNodeGetDependencies_v2 = NULL +cdef void* __cuGraphNodeGetDependentNodes_v2 = NULL +cdef void* __cuGraphAddDependencies_v2 = NULL +cdef void* __cuGraphRemoveDependencies_v2 = NULL +cdef void* __cuGraphDestroyNode = NULL +cdef void* __cuGraphInstantiateWithFlags = NULL +cdef void* __cuGraphInstantiateWithParams = NULL +cdef void* __cuGraphExecGetFlags = NULL +cdef void* __cuGraphExecKernelNodeSetParams_v2 = NULL +cdef void* __cuGraphExecMemcpyNodeSetParams = NULL +cdef void* __cuGraphExecMemsetNodeSetParams = NULL +cdef void* __cuGraphExecHostNodeSetParams = NULL +cdef void* __cuGraphExecChildGraphNodeSetParams = NULL +cdef void* __cuGraphExecEventRecordNodeSetEvent = NULL +cdef void* __cuGraphExecEventWaitNodeSetEvent = NULL +cdef void* __cuGraphExecExternalSemaphoresSignalNodeSetParams = NULL +cdef void* __cuGraphExecExternalSemaphoresWaitNodeSetParams = NULL +cdef void* __cuGraphNodeSetEnabled = NULL +cdef void* __cuGraphNodeGetEnabled = NULL +cdef void* __cuGraphUpload = NULL +cdef void* __cuGraphLaunch = NULL +cdef void* __cuGraphExecDestroy = NULL +cdef void* __cuGraphDestroy = NULL +cdef void* __cuGraphExecUpdate_v2 = NULL +cdef void* __cuGraphKernelNodeCopyAttributes = NULL +cdef void* __cuGraphKernelNodeGetAttribute = NULL +cdef void* __cuGraphKernelNodeSetAttribute = NULL +cdef void* __cuGraphDebugDotPrint = NULL +cdef void* __cuUserObjectCreate = NULL +cdef void* __cuUserObjectRetain = NULL +cdef void* __cuUserObjectRelease = NULL +cdef void* __cuGraphRetainUserObject = NULL +cdef void* __cuGraphReleaseUserObject = NULL +cdef void* __cuGraphAddNode_v2 = NULL +cdef void* __cuGraphNodeSetParams = NULL +cdef void* __cuGraphExecNodeSetParams = NULL +cdef void* __cuGraphConditionalHandleCreate = NULL +cdef void* __cuOccupancyMaxActiveBlocksPerMultiprocessor = NULL +cdef void* __cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags = NULL +cdef void* __cuOccupancyMaxPotentialBlockSize = NULL +cdef void* __cuOccupancyMaxPotentialBlockSizeWithFlags = NULL +cdef void* __cuOccupancyAvailableDynamicSMemPerBlock = NULL +cdef void* __cuOccupancyMaxPotentialClusterSize = NULL +cdef void* __cuOccupancyMaxActiveClusters = NULL +cdef void* __cuTexRefSetArray = NULL +cdef void* __cuTexRefSetMipmappedArray = NULL +cdef void* __cuTexRefSetAddress_v2 = NULL +cdef void* __cuTexRefSetAddress2D_v3 = NULL +cdef void* __cuTexRefSetFormat = NULL +cdef void* __cuTexRefSetAddressMode = NULL +cdef void* __cuTexRefSetFilterMode = NULL +cdef void* __cuTexRefSetMipmapFilterMode = NULL +cdef void* __cuTexRefSetMipmapLevelBias = NULL +cdef void* __cuTexRefSetMipmapLevelClamp = NULL +cdef void* __cuTexRefSetMaxAnisotropy = NULL +cdef void* __cuTexRefSetBorderColor = NULL +cdef void* __cuTexRefSetFlags = NULL +cdef void* __cuTexRefGetAddress_v2 = NULL +cdef void* __cuTexRefGetArray = NULL +cdef void* __cuTexRefGetMipmappedArray = NULL +cdef void* __cuTexRefGetAddressMode = NULL +cdef void* __cuTexRefGetFilterMode = NULL +cdef void* __cuTexRefGetFormat = NULL +cdef void* __cuTexRefGetMipmapFilterMode = NULL +cdef void* __cuTexRefGetMipmapLevelBias = NULL +cdef void* __cuTexRefGetMipmapLevelClamp = NULL +cdef void* __cuTexRefGetMaxAnisotropy = NULL +cdef void* __cuTexRefGetBorderColor = NULL +cdef void* __cuTexRefGetFlags = NULL +cdef void* __cuTexRefCreate = NULL +cdef void* __cuTexRefDestroy = NULL +cdef void* __cuSurfRefSetArray = NULL +cdef void* __cuSurfRefGetArray = NULL +cdef void* __cuTexObjectCreate = NULL +cdef void* __cuTexObjectDestroy = NULL +cdef void* __cuTexObjectGetResourceDesc = NULL +cdef void* __cuTexObjectGetTextureDesc = NULL +cdef void* __cuTexObjectGetResourceViewDesc = NULL +cdef void* __cuSurfObjectCreate = NULL +cdef void* __cuSurfObjectDestroy = NULL +cdef void* __cuSurfObjectGetResourceDesc = NULL +cdef void* __cuTensorMapEncodeTiled = NULL +cdef void* __cuTensorMapEncodeIm2col = NULL +cdef void* __cuTensorMapEncodeIm2colWide = NULL +cdef void* __cuTensorMapReplaceAddress = NULL +cdef void* __cuDeviceCanAccessPeer = NULL +cdef void* __cuCtxEnablePeerAccess = NULL +cdef void* __cuCtxDisablePeerAccess = NULL +cdef void* __cuDeviceGetP2PAttribute = NULL +cdef void* __cuGraphicsUnregisterResource = NULL +cdef void* __cuGraphicsSubResourceGetMappedArray = NULL +cdef void* __cuGraphicsResourceGetMappedMipmappedArray = NULL +cdef void* __cuGraphicsResourceGetMappedPointer_v2 = NULL +cdef void* __cuGraphicsResourceSetMapFlags_v2 = NULL +cdef void* __cuGraphicsMapResources = NULL +cdef void* __cuGraphicsUnmapResources = NULL +cdef void* __cuGetProcAddress_v2 = NULL +cdef void* __cuCoredumpGetAttribute = NULL +cdef void* __cuCoredumpGetAttributeGlobal = NULL +cdef void* __cuCoredumpSetAttribute = NULL +cdef void* __cuCoredumpSetAttributeGlobal = NULL +cdef void* __cuGetExportTable = NULL +cdef void* __cuGreenCtxCreate = NULL +cdef void* __cuGreenCtxDestroy = NULL +cdef void* __cuCtxFromGreenCtx = NULL +cdef void* __cuDeviceGetDevResource = NULL +cdef void* __cuCtxGetDevResource = NULL +cdef void* __cuGreenCtxGetDevResource = NULL +cdef void* __cuDevSmResourceSplitByCount = NULL +cdef void* __cuDevResourceGenerateDesc = NULL +cdef void* __cuGreenCtxRecordEvent = NULL +cdef void* __cuGreenCtxWaitEvent = NULL +cdef void* __cuStreamGetGreenCtx = NULL +cdef void* __cuGreenCtxStreamCreate = NULL +cdef void* __cuLogsRegisterCallback = NULL +cdef void* __cuLogsUnregisterCallback = NULL +cdef void* __cuLogsCurrent = NULL +cdef void* __cuLogsDumpToFile = NULL +cdef void* __cuLogsDumpToMemory = NULL +cdef void* __cuCheckpointProcessGetRestoreThreadId = NULL +cdef void* __cuCheckpointProcessGetState = NULL +cdef void* __cuCheckpointProcessLock = NULL +cdef void* __cuCheckpointProcessCheckpoint = NULL +cdef void* __cuCheckpointProcessRestore = NULL +cdef void* __cuCheckpointProcessUnlock = NULL +cdef void* __cuGraphicsEGLRegisterImage = NULL +cdef void* __cuEGLStreamConsumerConnect = NULL +cdef void* __cuEGLStreamConsumerConnectWithFlags = NULL +cdef void* __cuEGLStreamConsumerDisconnect = NULL +cdef void* __cuEGLStreamConsumerAcquireFrame = NULL +cdef void* __cuEGLStreamConsumerReleaseFrame = NULL +cdef void* __cuEGLStreamProducerConnect = NULL +cdef void* __cuEGLStreamProducerDisconnect = NULL +cdef void* __cuEGLStreamProducerPresentFrame = NULL +cdef void* __cuEGLStreamProducerReturnFrame = NULL +cdef void* __cuGraphicsResourceGetMappedEglFrame = NULL +cdef void* __cuEventCreateFromEGLSync = NULL +cdef void* __cuGraphicsGLRegisterBuffer = NULL +cdef void* __cuGraphicsGLRegisterImage = NULL +cdef void* __cuGLGetDevices_v2 = NULL +cdef void* __cuGLCtxCreate_v2 = NULL +cdef void* __cuGLInit = NULL +cdef void* __cuGLRegisterBufferObject = NULL +cdef void* __cuGLMapBufferObject_v2 = NULL +cdef void* __cuGLUnmapBufferObject = NULL +cdef void* __cuGLUnregisterBufferObject = NULL +cdef void* __cuGLSetBufferObjectMapFlags = NULL +cdef void* __cuGLMapBufferObjectAsync_v2 = NULL +cdef void* __cuGLUnmapBufferObjectAsync = NULL +cdef void* __cuProfilerInitialize = NULL +cdef void* __cuProfilerStart = NULL +cdef void* __cuProfilerStop = NULL +cdef void* __cuVDPAUGetDevice = NULL +cdef void* __cuVDPAUCtxCreate_v2 = NULL +cdef void* __cuGraphicsVDPAURegisterVideoSurface = NULL +cdef void* __cuGraphicsVDPAURegisterOutputSurface = NULL +cdef void* __cuDeviceGetHostAtomicCapabilities = NULL +cdef void* __cuCtxGetDevice_v2 = NULL +cdef void* __cuCtxSynchronize_v2 = NULL +cdef void* __cuMemcpyBatchAsync_v2 = NULL +cdef void* __cuMemcpy3DBatchAsync_v2 = NULL +cdef void* __cuMemGetDefaultMemPool = NULL +cdef void* __cuMemGetMemPool = NULL +cdef void* __cuMemSetMemPool = NULL +cdef void* __cuMulticastBindMem_v2 = NULL +cdef void* __cuMulticastBindAddr_v2 = NULL +cdef void* __cuMemPrefetchBatchAsync = NULL +cdef void* __cuMemDiscardBatchAsync = NULL +cdef void* __cuMemDiscardAndPrefetchBatchAsync = NULL +cdef void* __cuGraphNodeGetContainingGraph = NULL +cdef void* __cuGraphNodeGetLocalId = NULL +cdef void* __cuGraphNodeGetToolsId = NULL +cdef void* __cuGraphGetId = NULL +cdef void* __cuGraphExecGetId = NULL +cdef void* __cuDeviceGetP2PAtomicCapabilities = NULL +cdef void* __cuDevSmResourceSplit = NULL +cdef void* __cuGreenCtxGetId = NULL +cdef void* __cuStreamGetDevResource = NULL +cdef void* __cuKernelGetParamCount = NULL +cdef void* __cuMemcpyWithAttributesAsync = NULL +cdef void* __cuMemcpy3DWithAttributesAsync = NULL +cdef void* __cuStreamBeginCaptureToCig = NULL +cdef void* __cuStreamEndCaptureToCig = NULL +cdef void* __cuFuncGetParamCount = NULL +cdef void* __cuLaunchHostFunc_v2 = NULL +cdef void* __cuGraphNodeGetParams = NULL +cdef void* __cuCoredumpRegisterStartCallback = NULL +cdef void* __cuCoredumpRegisterCompleteCallback = NULL +cdef void* __cuCoredumpDeregisterStartCallback = NULL +cdef void* __cuCoredumpDeregisterCompleteCallback = NULL + + + +cdef void* load_library() except* with gil: + cdef uintptr_t handle = load_nvidia_dynamic_lib("cuda")._handle_uint + return handle + + +ctypedef CUresult (*__cuGetProcAddress_v2_T)(const char*, void**, int, cuuint64_t, CUdriverProcAddressQueryResult*) except?CUDA_ERROR_NOT_FOUND nogil +cdef __cuGetProcAddress_v2_T _F_cuGetProcAddress_v2 = NULL + + +cdef int _init_driver() except -1 nogil: + global __py_driver_init + + cdef void* handle = NULL + cdef int ptds_mode + + with gil, __symbol_lock: + # Recheck the flag after obtaining the locks + if __py_driver_init: + return 0 + + handle = load_library() + if handle == NULL: + raise RuntimeError('Failed to open cuda') + + # Get latest __cuGetProcAddress_v2 + global __cuGetProcAddress_v2 + __cuGetProcAddress_v2 = dlsym(handle, 'cuGetProcAddress_v2') + if __cuGetProcAddress_v2 == NULL: + raise RuntimeError("Failed to get __cuGetProcAddress_v2") + _F_cuGetProcAddress_v2 = <__cuGetProcAddress_v2_T>__cuGetProcAddress_v2 + + if os.getenv('CUDA_PYTHON_CUDA_PER_THREAD_DEFAULT_STREAM', default=0): + ptds_mode = CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM + else: + ptds_mode = CU_GET_PROC_ADDRESS_DEFAULT + + # Load function + global __cuGetErrorString + _F_cuGetProcAddress_v2('cuGetErrorString', &__cuGetErrorString, 6000, ptds_mode, NULL) + + global __cuGetErrorName + _F_cuGetProcAddress_v2('cuGetErrorName', &__cuGetErrorName, 6000, ptds_mode, NULL) + + global __cuInit + _F_cuGetProcAddress_v2('cuInit', &__cuInit, 2000, ptds_mode, NULL) + + global __cuDriverGetVersion + _F_cuGetProcAddress_v2('cuDriverGetVersion', &__cuDriverGetVersion, 2020, ptds_mode, NULL) + + global __cuDeviceGet + _F_cuGetProcAddress_v2('cuDeviceGet', &__cuDeviceGet, 2000, ptds_mode, NULL) + + global __cuDeviceGetCount + _F_cuGetProcAddress_v2('cuDeviceGetCount', &__cuDeviceGetCount, 2000, ptds_mode, NULL) + + global __cuDeviceGetName + _F_cuGetProcAddress_v2('cuDeviceGetName', &__cuDeviceGetName, 2000, ptds_mode, NULL) + + global __cuDeviceGetUuid_v2 + _F_cuGetProcAddress_v2('cuDeviceGetUuid', &__cuDeviceGetUuid_v2, 11040, ptds_mode, NULL) + + global __cuDeviceGetLuid + _F_cuGetProcAddress_v2('cuDeviceGetLuid', &__cuDeviceGetLuid, 10000, ptds_mode, NULL) + + global __cuDeviceTotalMem_v2 + _F_cuGetProcAddress_v2('cuDeviceTotalMem', &__cuDeviceTotalMem_v2, 3020, ptds_mode, NULL) + + global __cuDeviceGetTexture1DLinearMaxWidth + _F_cuGetProcAddress_v2('cuDeviceGetTexture1DLinearMaxWidth', &__cuDeviceGetTexture1DLinearMaxWidth, 11010, ptds_mode, NULL) + + global __cuDeviceGetAttribute + _F_cuGetProcAddress_v2('cuDeviceGetAttribute', &__cuDeviceGetAttribute, 2000, ptds_mode, NULL) + + global __cuDeviceGetNvSciSyncAttributes + _F_cuGetProcAddress_v2('cuDeviceGetNvSciSyncAttributes', &__cuDeviceGetNvSciSyncAttributes, 10020, ptds_mode, NULL) + + global __cuDeviceSetMemPool + _F_cuGetProcAddress_v2('cuDeviceSetMemPool', &__cuDeviceSetMemPool, 11020, ptds_mode, NULL) + + global __cuDeviceGetMemPool + _F_cuGetProcAddress_v2('cuDeviceGetMemPool', &__cuDeviceGetMemPool, 11020, ptds_mode, NULL) + + global __cuDeviceGetDefaultMemPool + _F_cuGetProcAddress_v2('cuDeviceGetDefaultMemPool', &__cuDeviceGetDefaultMemPool, 11020, ptds_mode, NULL) + + global __cuDeviceGetExecAffinitySupport + _F_cuGetProcAddress_v2('cuDeviceGetExecAffinitySupport', &__cuDeviceGetExecAffinitySupport, 11040, ptds_mode, NULL) + + global __cuFlushGPUDirectRDMAWrites + _F_cuGetProcAddress_v2('cuFlushGPUDirectRDMAWrites', &__cuFlushGPUDirectRDMAWrites, 11030, ptds_mode, NULL) + + global __cuDeviceGetProperties + _F_cuGetProcAddress_v2('cuDeviceGetProperties', &__cuDeviceGetProperties, 2000, ptds_mode, NULL) + + global __cuDeviceComputeCapability + _F_cuGetProcAddress_v2('cuDeviceComputeCapability', &__cuDeviceComputeCapability, 2000, ptds_mode, NULL) + + global __cuDevicePrimaryCtxRetain + _F_cuGetProcAddress_v2('cuDevicePrimaryCtxRetain', &__cuDevicePrimaryCtxRetain, 7000, ptds_mode, NULL) + + global __cuDevicePrimaryCtxRelease_v2 + _F_cuGetProcAddress_v2('cuDevicePrimaryCtxRelease', &__cuDevicePrimaryCtxRelease_v2, 11000, ptds_mode, NULL) + + global __cuDevicePrimaryCtxSetFlags_v2 + _F_cuGetProcAddress_v2('cuDevicePrimaryCtxSetFlags', &__cuDevicePrimaryCtxSetFlags_v2, 11000, ptds_mode, NULL) + + global __cuDevicePrimaryCtxGetState + _F_cuGetProcAddress_v2('cuDevicePrimaryCtxGetState', &__cuDevicePrimaryCtxGetState, 7000, ptds_mode, NULL) + + global __cuDevicePrimaryCtxReset_v2 + _F_cuGetProcAddress_v2('cuDevicePrimaryCtxReset', &__cuDevicePrimaryCtxReset_v2, 11000, ptds_mode, NULL) + + global __cuCtxCreate_v4 + _F_cuGetProcAddress_v2('cuCtxCreate', &__cuCtxCreate_v4, 12050, ptds_mode, NULL) + + global __cuCtxDestroy_v2 + _F_cuGetProcAddress_v2('cuCtxDestroy', &__cuCtxDestroy_v2, 4000, ptds_mode, NULL) + + global __cuCtxPushCurrent_v2 + _F_cuGetProcAddress_v2('cuCtxPushCurrent', &__cuCtxPushCurrent_v2, 4000, ptds_mode, NULL) + + global __cuCtxPopCurrent_v2 + _F_cuGetProcAddress_v2('cuCtxPopCurrent', &__cuCtxPopCurrent_v2, 4000, ptds_mode, NULL) + + global __cuCtxSetCurrent + _F_cuGetProcAddress_v2('cuCtxSetCurrent', &__cuCtxSetCurrent, 4000, ptds_mode, NULL) + + global __cuCtxGetCurrent + _F_cuGetProcAddress_v2('cuCtxGetCurrent', &__cuCtxGetCurrent, 4000, ptds_mode, NULL) + + global __cuCtxGetDevice + _F_cuGetProcAddress_v2('cuCtxGetDevice', &__cuCtxGetDevice, 2000, ptds_mode, NULL) + + global __cuCtxGetFlags + _F_cuGetProcAddress_v2('cuCtxGetFlags', &__cuCtxGetFlags, 7000, ptds_mode, NULL) + + global __cuCtxSetFlags + _F_cuGetProcAddress_v2('cuCtxSetFlags', &__cuCtxSetFlags, 12010, ptds_mode, NULL) + + global __cuCtxGetId + _F_cuGetProcAddress_v2('cuCtxGetId', &__cuCtxGetId, 12000, ptds_mode, NULL) + + global __cuCtxSynchronize + _F_cuGetProcAddress_v2('cuCtxSynchronize', &__cuCtxSynchronize, 2000, ptds_mode, NULL) + + global __cuCtxSetLimit + _F_cuGetProcAddress_v2('cuCtxSetLimit', &__cuCtxSetLimit, 3010, ptds_mode, NULL) + + global __cuCtxGetLimit + _F_cuGetProcAddress_v2('cuCtxGetLimit', &__cuCtxGetLimit, 3010, ptds_mode, NULL) + + global __cuCtxGetCacheConfig + _F_cuGetProcAddress_v2('cuCtxGetCacheConfig', &__cuCtxGetCacheConfig, 3020, ptds_mode, NULL) + + global __cuCtxSetCacheConfig + _F_cuGetProcAddress_v2('cuCtxSetCacheConfig', &__cuCtxSetCacheConfig, 3020, ptds_mode, NULL) + + global __cuCtxGetApiVersion + _F_cuGetProcAddress_v2('cuCtxGetApiVersion', &__cuCtxGetApiVersion, 3020, ptds_mode, NULL) + + global __cuCtxGetStreamPriorityRange + _F_cuGetProcAddress_v2('cuCtxGetStreamPriorityRange', &__cuCtxGetStreamPriorityRange, 5050, ptds_mode, NULL) + + global __cuCtxResetPersistingL2Cache + _F_cuGetProcAddress_v2('cuCtxResetPersistingL2Cache', &__cuCtxResetPersistingL2Cache, 11000, ptds_mode, NULL) + + global __cuCtxGetExecAffinity + _F_cuGetProcAddress_v2('cuCtxGetExecAffinity', &__cuCtxGetExecAffinity, 11040, ptds_mode, NULL) + + global __cuCtxRecordEvent + _F_cuGetProcAddress_v2('cuCtxRecordEvent', &__cuCtxRecordEvent, 12050, ptds_mode, NULL) + + global __cuCtxWaitEvent + _F_cuGetProcAddress_v2('cuCtxWaitEvent', &__cuCtxWaitEvent, 12050, ptds_mode, NULL) + + global __cuCtxAttach + _F_cuGetProcAddress_v2('cuCtxAttach', &__cuCtxAttach, 2000, ptds_mode, NULL) + + global __cuCtxDetach + _F_cuGetProcAddress_v2('cuCtxDetach', &__cuCtxDetach, 2000, ptds_mode, NULL) + + global __cuCtxGetSharedMemConfig + _F_cuGetProcAddress_v2('cuCtxGetSharedMemConfig', &__cuCtxGetSharedMemConfig, 4020, ptds_mode, NULL) + + global __cuCtxSetSharedMemConfig + _F_cuGetProcAddress_v2('cuCtxSetSharedMemConfig', &__cuCtxSetSharedMemConfig, 4020, ptds_mode, NULL) + + global __cuModuleLoad + _F_cuGetProcAddress_v2('cuModuleLoad', &__cuModuleLoad, 2000, ptds_mode, NULL) + + global __cuModuleLoadData + _F_cuGetProcAddress_v2('cuModuleLoadData', &__cuModuleLoadData, 2000, ptds_mode, NULL) + + global __cuModuleLoadDataEx + _F_cuGetProcAddress_v2('cuModuleLoadDataEx', &__cuModuleLoadDataEx, 2010, ptds_mode, NULL) + + global __cuModuleLoadFatBinary + _F_cuGetProcAddress_v2('cuModuleLoadFatBinary', &__cuModuleLoadFatBinary, 2000, ptds_mode, NULL) + + global __cuModuleUnload + _F_cuGetProcAddress_v2('cuModuleUnload', &__cuModuleUnload, 2000, ptds_mode, NULL) + + global __cuModuleGetLoadingMode + _F_cuGetProcAddress_v2('cuModuleGetLoadingMode', &__cuModuleGetLoadingMode, 11070, ptds_mode, NULL) + + global __cuModuleGetFunction + _F_cuGetProcAddress_v2('cuModuleGetFunction', &__cuModuleGetFunction, 2000, ptds_mode, NULL) + + global __cuModuleGetFunctionCount + _F_cuGetProcAddress_v2('cuModuleGetFunctionCount', &__cuModuleGetFunctionCount, 12040, ptds_mode, NULL) + + global __cuModuleEnumerateFunctions + _F_cuGetProcAddress_v2('cuModuleEnumerateFunctions', &__cuModuleEnumerateFunctions, 12040, ptds_mode, NULL) + + global __cuModuleGetGlobal_v2 + _F_cuGetProcAddress_v2('cuModuleGetGlobal', &__cuModuleGetGlobal_v2, 3020, ptds_mode, NULL) + + global __cuLinkCreate_v2 + _F_cuGetProcAddress_v2('cuLinkCreate', &__cuLinkCreate_v2, 6050, ptds_mode, NULL) + + global __cuLinkAddData_v2 + _F_cuGetProcAddress_v2('cuLinkAddData', &__cuLinkAddData_v2, 6050, ptds_mode, NULL) + + global __cuLinkAddFile_v2 + _F_cuGetProcAddress_v2('cuLinkAddFile', &__cuLinkAddFile_v2, 6050, ptds_mode, NULL) + + global __cuLinkComplete + _F_cuGetProcAddress_v2('cuLinkComplete', &__cuLinkComplete, 5050, ptds_mode, NULL) + + global __cuLinkDestroy + _F_cuGetProcAddress_v2('cuLinkDestroy', &__cuLinkDestroy, 5050, ptds_mode, NULL) + + global __cuModuleGetTexRef + _F_cuGetProcAddress_v2('cuModuleGetTexRef', &__cuModuleGetTexRef, 2000, ptds_mode, NULL) + + global __cuModuleGetSurfRef + _F_cuGetProcAddress_v2('cuModuleGetSurfRef', &__cuModuleGetSurfRef, 3000, ptds_mode, NULL) + + global __cuLibraryLoadData + _F_cuGetProcAddress_v2('cuLibraryLoadData', &__cuLibraryLoadData, 12000, ptds_mode, NULL) + + global __cuLibraryLoadFromFile + _F_cuGetProcAddress_v2('cuLibraryLoadFromFile', &__cuLibraryLoadFromFile, 12000, ptds_mode, NULL) + + global __cuLibraryUnload + _F_cuGetProcAddress_v2('cuLibraryUnload', &__cuLibraryUnload, 12000, ptds_mode, NULL) + + global __cuLibraryGetKernel + _F_cuGetProcAddress_v2('cuLibraryGetKernel', &__cuLibraryGetKernel, 12000, ptds_mode, NULL) + + global __cuLibraryGetKernelCount + _F_cuGetProcAddress_v2('cuLibraryGetKernelCount', &__cuLibraryGetKernelCount, 12040, ptds_mode, NULL) + + global __cuLibraryEnumerateKernels + _F_cuGetProcAddress_v2('cuLibraryEnumerateKernels', &__cuLibraryEnumerateKernels, 12040, ptds_mode, NULL) + + global __cuLibraryGetModule + _F_cuGetProcAddress_v2('cuLibraryGetModule', &__cuLibraryGetModule, 12000, ptds_mode, NULL) + + global __cuKernelGetFunction + _F_cuGetProcAddress_v2('cuKernelGetFunction', &__cuKernelGetFunction, 12000, ptds_mode, NULL) + + global __cuKernelGetLibrary + _F_cuGetProcAddress_v2('cuKernelGetLibrary', &__cuKernelGetLibrary, 12050, ptds_mode, NULL) + + global __cuLibraryGetGlobal + _F_cuGetProcAddress_v2('cuLibraryGetGlobal', &__cuLibraryGetGlobal, 12000, ptds_mode, NULL) + + global __cuLibraryGetManaged + _F_cuGetProcAddress_v2('cuLibraryGetManaged', &__cuLibraryGetManaged, 12000, ptds_mode, NULL) + + global __cuLibraryGetUnifiedFunction + _F_cuGetProcAddress_v2('cuLibraryGetUnifiedFunction', &__cuLibraryGetUnifiedFunction, 12000, ptds_mode, NULL) + + global __cuKernelGetAttribute + _F_cuGetProcAddress_v2('cuKernelGetAttribute', &__cuKernelGetAttribute, 12000, ptds_mode, NULL) + + global __cuKernelSetAttribute + _F_cuGetProcAddress_v2('cuKernelSetAttribute', &__cuKernelSetAttribute, 12000, ptds_mode, NULL) + + global __cuKernelSetCacheConfig + _F_cuGetProcAddress_v2('cuKernelSetCacheConfig', &__cuKernelSetCacheConfig, 12000, ptds_mode, NULL) + + global __cuKernelGetName + _F_cuGetProcAddress_v2('cuKernelGetName', &__cuKernelGetName, 12030, ptds_mode, NULL) + + global __cuKernelGetParamInfo + _F_cuGetProcAddress_v2('cuKernelGetParamInfo', &__cuKernelGetParamInfo, 12040, ptds_mode, NULL) + + global __cuMemGetInfo_v2 + _F_cuGetProcAddress_v2('cuMemGetInfo', &__cuMemGetInfo_v2, 3020, ptds_mode, NULL) + + global __cuMemAlloc_v2 + _F_cuGetProcAddress_v2('cuMemAlloc', &__cuMemAlloc_v2, 3020, ptds_mode, NULL) + + global __cuMemAllocPitch_v2 + _F_cuGetProcAddress_v2('cuMemAllocPitch', &__cuMemAllocPitch_v2, 3020, ptds_mode, NULL) + + global __cuMemFree_v2 + _F_cuGetProcAddress_v2('cuMemFree', &__cuMemFree_v2, 3020, ptds_mode, NULL) + + global __cuMemGetAddressRange_v2 + _F_cuGetProcAddress_v2('cuMemGetAddressRange', &__cuMemGetAddressRange_v2, 3020, ptds_mode, NULL) + + global __cuMemAllocHost_v2 + _F_cuGetProcAddress_v2('cuMemAllocHost', &__cuMemAllocHost_v2, 3020, ptds_mode, NULL) + + global __cuMemFreeHost + _F_cuGetProcAddress_v2('cuMemFreeHost', &__cuMemFreeHost, 2000, ptds_mode, NULL) + + global __cuMemHostAlloc + _F_cuGetProcAddress_v2('cuMemHostAlloc', &__cuMemHostAlloc, 2020, ptds_mode, NULL) + + global __cuMemHostGetDevicePointer_v2 + _F_cuGetProcAddress_v2('cuMemHostGetDevicePointer', &__cuMemHostGetDevicePointer_v2, 3020, ptds_mode, NULL) + + global __cuMemHostGetFlags + _F_cuGetProcAddress_v2('cuMemHostGetFlags', &__cuMemHostGetFlags, 2030, ptds_mode, NULL) + + global __cuMemAllocManaged + _F_cuGetProcAddress_v2('cuMemAllocManaged', &__cuMemAllocManaged, 6000, ptds_mode, NULL) + + global __cuDeviceRegisterAsyncNotification + _F_cuGetProcAddress_v2('cuDeviceRegisterAsyncNotification', &__cuDeviceRegisterAsyncNotification, 12040, ptds_mode, NULL) + + global __cuDeviceUnregisterAsyncNotification + _F_cuGetProcAddress_v2('cuDeviceUnregisterAsyncNotification', &__cuDeviceUnregisterAsyncNotification, 12040, ptds_mode, NULL) + + global __cuDeviceGetByPCIBusId + _F_cuGetProcAddress_v2('cuDeviceGetByPCIBusId', &__cuDeviceGetByPCIBusId, 4010, ptds_mode, NULL) + + global __cuDeviceGetPCIBusId + _F_cuGetProcAddress_v2('cuDeviceGetPCIBusId', &__cuDeviceGetPCIBusId, 4010, ptds_mode, NULL) + + global __cuIpcGetEventHandle + _F_cuGetProcAddress_v2('cuIpcGetEventHandle', &__cuIpcGetEventHandle, 4010, ptds_mode, NULL) + + global __cuIpcOpenEventHandle + _F_cuGetProcAddress_v2('cuIpcOpenEventHandle', &__cuIpcOpenEventHandle, 4010, ptds_mode, NULL) + + global __cuIpcGetMemHandle + _F_cuGetProcAddress_v2('cuIpcGetMemHandle', &__cuIpcGetMemHandle, 4010, ptds_mode, NULL) + + global __cuIpcOpenMemHandle_v2 + _F_cuGetProcAddress_v2('cuIpcOpenMemHandle', &__cuIpcOpenMemHandle_v2, 11000, ptds_mode, NULL) + + global __cuIpcCloseMemHandle + _F_cuGetProcAddress_v2('cuIpcCloseMemHandle', &__cuIpcCloseMemHandle, 4010, ptds_mode, NULL) + + global __cuMemHostRegister_v2 + _F_cuGetProcAddress_v2('cuMemHostRegister', &__cuMemHostRegister_v2, 6050, ptds_mode, NULL) + + global __cuMemHostUnregister + _F_cuGetProcAddress_v2('cuMemHostUnregister', &__cuMemHostUnregister, 4000, ptds_mode, NULL) + + global __cuMemcpy + _F_cuGetProcAddress_v2('cuMemcpy', &__cuMemcpy, 4000, ptds_mode, NULL) + + global __cuMemcpyPeer + _F_cuGetProcAddress_v2('cuMemcpyPeer', &__cuMemcpyPeer, 4000, ptds_mode, NULL) + + global __cuMemcpyHtoD_v2 + _F_cuGetProcAddress_v2('cuMemcpyHtoD', &__cuMemcpyHtoD_v2, 3020, ptds_mode, NULL) + + global __cuMemcpyDtoH_v2 + _F_cuGetProcAddress_v2('cuMemcpyDtoH', &__cuMemcpyDtoH_v2, 3020, ptds_mode, NULL) + + global __cuMemcpyDtoD_v2 + _F_cuGetProcAddress_v2('cuMemcpyDtoD', &__cuMemcpyDtoD_v2, 3020, ptds_mode, NULL) + + global __cuMemcpyDtoA_v2 + _F_cuGetProcAddress_v2('cuMemcpyDtoA', &__cuMemcpyDtoA_v2, 3020, ptds_mode, NULL) + + global __cuMemcpyAtoD_v2 + _F_cuGetProcAddress_v2('cuMemcpyAtoD', &__cuMemcpyAtoD_v2, 3020, ptds_mode, NULL) + + global __cuMemcpyHtoA_v2 + _F_cuGetProcAddress_v2('cuMemcpyHtoA', &__cuMemcpyHtoA_v2, 3020, ptds_mode, NULL) + + global __cuMemcpyAtoH_v2 + _F_cuGetProcAddress_v2('cuMemcpyAtoH', &__cuMemcpyAtoH_v2, 3020, ptds_mode, NULL) + + global __cuMemcpyAtoA_v2 + _F_cuGetProcAddress_v2('cuMemcpyAtoA', &__cuMemcpyAtoA_v2, 3020, ptds_mode, NULL) + + global __cuMemcpy2D_v2 + _F_cuGetProcAddress_v2('cuMemcpy2D', &__cuMemcpy2D_v2, 3020, ptds_mode, NULL) + + global __cuMemcpy2DUnaligned_v2 + _F_cuGetProcAddress_v2('cuMemcpy2DUnaligned', &__cuMemcpy2DUnaligned_v2, 3020, ptds_mode, NULL) + + global __cuMemcpy3D_v2 + _F_cuGetProcAddress_v2('cuMemcpy3D', &__cuMemcpy3D_v2, 3020, ptds_mode, NULL) + + global __cuMemcpy3DPeer + _F_cuGetProcAddress_v2('cuMemcpy3DPeer', &__cuMemcpy3DPeer, 4000, ptds_mode, NULL) + + global __cuMemcpyAsync + _F_cuGetProcAddress_v2('cuMemcpyAsync', &__cuMemcpyAsync, 4000, ptds_mode, NULL) + + global __cuMemcpyPeerAsync + _F_cuGetProcAddress_v2('cuMemcpyPeerAsync', &__cuMemcpyPeerAsync, 4000, ptds_mode, NULL) + + global __cuMemcpyHtoDAsync_v2 + _F_cuGetProcAddress_v2('cuMemcpyHtoDAsync', &__cuMemcpyHtoDAsync_v2, 3020, ptds_mode, NULL) + + global __cuMemcpyDtoHAsync_v2 + _F_cuGetProcAddress_v2('cuMemcpyDtoHAsync', &__cuMemcpyDtoHAsync_v2, 3020, ptds_mode, NULL) + + global __cuMemcpyDtoDAsync_v2 + _F_cuGetProcAddress_v2('cuMemcpyDtoDAsync', &__cuMemcpyDtoDAsync_v2, 3020, ptds_mode, NULL) + + global __cuMemcpyHtoAAsync_v2 + _F_cuGetProcAddress_v2('cuMemcpyHtoAAsync', &__cuMemcpyHtoAAsync_v2, 3020, ptds_mode, NULL) + + global __cuMemcpyAtoHAsync_v2 + _F_cuGetProcAddress_v2('cuMemcpyAtoHAsync', &__cuMemcpyAtoHAsync_v2, 3020, ptds_mode, NULL) + + global __cuMemcpy2DAsync_v2 + _F_cuGetProcAddress_v2('cuMemcpy2DAsync', &__cuMemcpy2DAsync_v2, 3020, ptds_mode, NULL) + + global __cuMemcpy3DAsync_v2 + _F_cuGetProcAddress_v2('cuMemcpy3DAsync', &__cuMemcpy3DAsync_v2, 3020, ptds_mode, NULL) + + global __cuMemcpy3DPeerAsync + _F_cuGetProcAddress_v2('cuMemcpy3DPeerAsync', &__cuMemcpy3DPeerAsync, 4000, ptds_mode, NULL) + + global __cuMemsetD8_v2 + _F_cuGetProcAddress_v2('cuMemsetD8', &__cuMemsetD8_v2, 3020, ptds_mode, NULL) + + global __cuMemsetD16_v2 + _F_cuGetProcAddress_v2('cuMemsetD16', &__cuMemsetD16_v2, 3020, ptds_mode, NULL) + + global __cuMemsetD32_v2 + _F_cuGetProcAddress_v2('cuMemsetD32', &__cuMemsetD32_v2, 3020, ptds_mode, NULL) + + global __cuMemsetD2D8_v2 + _F_cuGetProcAddress_v2('cuMemsetD2D8', &__cuMemsetD2D8_v2, 3020, ptds_mode, NULL) + + global __cuMemsetD2D16_v2 + _F_cuGetProcAddress_v2('cuMemsetD2D16', &__cuMemsetD2D16_v2, 3020, ptds_mode, NULL) + + global __cuMemsetD2D32_v2 + _F_cuGetProcAddress_v2('cuMemsetD2D32', &__cuMemsetD2D32_v2, 3020, ptds_mode, NULL) + + global __cuMemsetD8Async + _F_cuGetProcAddress_v2('cuMemsetD8Async', &__cuMemsetD8Async, 3020, ptds_mode, NULL) + + global __cuMemsetD16Async + _F_cuGetProcAddress_v2('cuMemsetD16Async', &__cuMemsetD16Async, 3020, ptds_mode, NULL) + + global __cuMemsetD32Async + _F_cuGetProcAddress_v2('cuMemsetD32Async', &__cuMemsetD32Async, 3020, ptds_mode, NULL) + + global __cuMemsetD2D8Async + _F_cuGetProcAddress_v2('cuMemsetD2D8Async', &__cuMemsetD2D8Async, 3020, ptds_mode, NULL) + + global __cuMemsetD2D16Async + _F_cuGetProcAddress_v2('cuMemsetD2D16Async', &__cuMemsetD2D16Async, 3020, ptds_mode, NULL) + + global __cuMemsetD2D32Async + _F_cuGetProcAddress_v2('cuMemsetD2D32Async', &__cuMemsetD2D32Async, 3020, ptds_mode, NULL) + + global __cuArrayCreate_v2 + _F_cuGetProcAddress_v2('cuArrayCreate', &__cuArrayCreate_v2, 3020, ptds_mode, NULL) + + global __cuArrayGetDescriptor_v2 + _F_cuGetProcAddress_v2('cuArrayGetDescriptor', &__cuArrayGetDescriptor_v2, 3020, ptds_mode, NULL) + + global __cuArrayGetSparseProperties + _F_cuGetProcAddress_v2('cuArrayGetSparseProperties', &__cuArrayGetSparseProperties, 11010, ptds_mode, NULL) + + global __cuMipmappedArrayGetSparseProperties + _F_cuGetProcAddress_v2('cuMipmappedArrayGetSparseProperties', &__cuMipmappedArrayGetSparseProperties, 11010, ptds_mode, NULL) + + global __cuArrayGetMemoryRequirements + _F_cuGetProcAddress_v2('cuArrayGetMemoryRequirements', &__cuArrayGetMemoryRequirements, 11060, ptds_mode, NULL) + + global __cuMipmappedArrayGetMemoryRequirements + _F_cuGetProcAddress_v2('cuMipmappedArrayGetMemoryRequirements', &__cuMipmappedArrayGetMemoryRequirements, 11060, ptds_mode, NULL) + + global __cuArrayGetPlane + _F_cuGetProcAddress_v2('cuArrayGetPlane', &__cuArrayGetPlane, 11020, ptds_mode, NULL) + + global __cuArrayDestroy + _F_cuGetProcAddress_v2('cuArrayDestroy', &__cuArrayDestroy, 2000, ptds_mode, NULL) + + global __cuArray3DCreate_v2 + _F_cuGetProcAddress_v2('cuArray3DCreate', &__cuArray3DCreate_v2, 3020, ptds_mode, NULL) + + global __cuArray3DGetDescriptor_v2 + _F_cuGetProcAddress_v2('cuArray3DGetDescriptor', &__cuArray3DGetDescriptor_v2, 3020, ptds_mode, NULL) + + global __cuMipmappedArrayCreate + _F_cuGetProcAddress_v2('cuMipmappedArrayCreate', &__cuMipmappedArrayCreate, 5000, ptds_mode, NULL) + + global __cuMipmappedArrayGetLevel + _F_cuGetProcAddress_v2('cuMipmappedArrayGetLevel', &__cuMipmappedArrayGetLevel, 5000, ptds_mode, NULL) + + global __cuMipmappedArrayDestroy + _F_cuGetProcAddress_v2('cuMipmappedArrayDestroy', &__cuMipmappedArrayDestroy, 5000, ptds_mode, NULL) + + global __cuMemGetHandleForAddressRange + _F_cuGetProcAddress_v2('cuMemGetHandleForAddressRange', &__cuMemGetHandleForAddressRange, 11070, ptds_mode, NULL) + + global __cuMemBatchDecompressAsync + _F_cuGetProcAddress_v2('cuMemBatchDecompressAsync', &__cuMemBatchDecompressAsync, 12060, ptds_mode, NULL) + + global __cuMemAddressReserve + _F_cuGetProcAddress_v2('cuMemAddressReserve', &__cuMemAddressReserve, 10020, ptds_mode, NULL) + + global __cuMemAddressFree + _F_cuGetProcAddress_v2('cuMemAddressFree', &__cuMemAddressFree, 10020, ptds_mode, NULL) + + global __cuMemCreate + _F_cuGetProcAddress_v2('cuMemCreate', &__cuMemCreate, 10020, ptds_mode, NULL) + + global __cuMemRelease + _F_cuGetProcAddress_v2('cuMemRelease', &__cuMemRelease, 10020, ptds_mode, NULL) + + global __cuMemMap + _F_cuGetProcAddress_v2('cuMemMap', &__cuMemMap, 10020, ptds_mode, NULL) + + global __cuMemMapArrayAsync + _F_cuGetProcAddress_v2('cuMemMapArrayAsync', &__cuMemMapArrayAsync, 11010, ptds_mode, NULL) + + global __cuMemUnmap + _F_cuGetProcAddress_v2('cuMemUnmap', &__cuMemUnmap, 10020, ptds_mode, NULL) + + global __cuMemSetAccess + _F_cuGetProcAddress_v2('cuMemSetAccess', &__cuMemSetAccess, 10020, ptds_mode, NULL) + + global __cuMemGetAccess + _F_cuGetProcAddress_v2('cuMemGetAccess', &__cuMemGetAccess, 10020, ptds_mode, NULL) + + global __cuMemExportToShareableHandle + _F_cuGetProcAddress_v2('cuMemExportToShareableHandle', &__cuMemExportToShareableHandle, 10020, ptds_mode, NULL) + + global __cuMemImportFromShareableHandle + _F_cuGetProcAddress_v2('cuMemImportFromShareableHandle', &__cuMemImportFromShareableHandle, 10020, ptds_mode, NULL) + + global __cuMemGetAllocationGranularity + _F_cuGetProcAddress_v2('cuMemGetAllocationGranularity', &__cuMemGetAllocationGranularity, 10020, ptds_mode, NULL) + + global __cuMemGetAllocationPropertiesFromHandle + _F_cuGetProcAddress_v2('cuMemGetAllocationPropertiesFromHandle', &__cuMemGetAllocationPropertiesFromHandle, 10020, ptds_mode, NULL) + + global __cuMemRetainAllocationHandle + _F_cuGetProcAddress_v2('cuMemRetainAllocationHandle', &__cuMemRetainAllocationHandle, 11000, ptds_mode, NULL) + + global __cuMemFreeAsync + _F_cuGetProcAddress_v2('cuMemFreeAsync', &__cuMemFreeAsync, 11020, ptds_mode, NULL) + + global __cuMemAllocAsync + _F_cuGetProcAddress_v2('cuMemAllocAsync', &__cuMemAllocAsync, 11020, ptds_mode, NULL) + + global __cuMemPoolTrimTo + _F_cuGetProcAddress_v2('cuMemPoolTrimTo', &__cuMemPoolTrimTo, 11020, ptds_mode, NULL) + + global __cuMemPoolSetAttribute + _F_cuGetProcAddress_v2('cuMemPoolSetAttribute', &__cuMemPoolSetAttribute, 11020, ptds_mode, NULL) + + global __cuMemPoolGetAttribute + _F_cuGetProcAddress_v2('cuMemPoolGetAttribute', &__cuMemPoolGetAttribute, 11020, ptds_mode, NULL) + + global __cuMemPoolSetAccess + _F_cuGetProcAddress_v2('cuMemPoolSetAccess', &__cuMemPoolSetAccess, 11020, ptds_mode, NULL) + + global __cuMemPoolGetAccess + _F_cuGetProcAddress_v2('cuMemPoolGetAccess', &__cuMemPoolGetAccess, 11020, ptds_mode, NULL) + + global __cuMemPoolCreate + _F_cuGetProcAddress_v2('cuMemPoolCreate', &__cuMemPoolCreate, 11020, ptds_mode, NULL) + + global __cuMemPoolDestroy + _F_cuGetProcAddress_v2('cuMemPoolDestroy', &__cuMemPoolDestroy, 11020, ptds_mode, NULL) + + global __cuMemAllocFromPoolAsync + _F_cuGetProcAddress_v2('cuMemAllocFromPoolAsync', &__cuMemAllocFromPoolAsync, 11020, ptds_mode, NULL) + + global __cuMemPoolExportToShareableHandle + _F_cuGetProcAddress_v2('cuMemPoolExportToShareableHandle', &__cuMemPoolExportToShareableHandle, 11020, ptds_mode, NULL) + + global __cuMemPoolImportFromShareableHandle + _F_cuGetProcAddress_v2('cuMemPoolImportFromShareableHandle', &__cuMemPoolImportFromShareableHandle, 11020, ptds_mode, NULL) + + global __cuMemPoolExportPointer + _F_cuGetProcAddress_v2('cuMemPoolExportPointer', &__cuMemPoolExportPointer, 11020, ptds_mode, NULL) + + global __cuMemPoolImportPointer + _F_cuGetProcAddress_v2('cuMemPoolImportPointer', &__cuMemPoolImportPointer, 11020, ptds_mode, NULL) + + global __cuMulticastCreate + _F_cuGetProcAddress_v2('cuMulticastCreate', &__cuMulticastCreate, 12010, ptds_mode, NULL) + + global __cuMulticastAddDevice + _F_cuGetProcAddress_v2('cuMulticastAddDevice', &__cuMulticastAddDevice, 12010, ptds_mode, NULL) + + global __cuMulticastBindMem + _F_cuGetProcAddress_v2('cuMulticastBindMem', &__cuMulticastBindMem, 12010, ptds_mode, NULL) + + global __cuMulticastBindAddr + _F_cuGetProcAddress_v2('cuMulticastBindAddr', &__cuMulticastBindAddr, 12010, ptds_mode, NULL) + + global __cuMulticastUnbind + _F_cuGetProcAddress_v2('cuMulticastUnbind', &__cuMulticastUnbind, 12010, ptds_mode, NULL) + + global __cuMulticastGetGranularity + _F_cuGetProcAddress_v2('cuMulticastGetGranularity', &__cuMulticastGetGranularity, 12010, ptds_mode, NULL) + + global __cuPointerGetAttribute + _F_cuGetProcAddress_v2('cuPointerGetAttribute', &__cuPointerGetAttribute, 4000, ptds_mode, NULL) + + global __cuMemPrefetchAsync_v2 + _F_cuGetProcAddress_v2('cuMemPrefetchAsync', &__cuMemPrefetchAsync_v2, 12020, ptds_mode, NULL) + + global __cuMemAdvise_v2 + _F_cuGetProcAddress_v2('cuMemAdvise', &__cuMemAdvise_v2, 12020, ptds_mode, NULL) + + global __cuMemRangeGetAttribute + _F_cuGetProcAddress_v2('cuMemRangeGetAttribute', &__cuMemRangeGetAttribute, 8000, ptds_mode, NULL) + + global __cuMemRangeGetAttributes + _F_cuGetProcAddress_v2('cuMemRangeGetAttributes', &__cuMemRangeGetAttributes, 8000, ptds_mode, NULL) + + global __cuPointerSetAttribute + _F_cuGetProcAddress_v2('cuPointerSetAttribute', &__cuPointerSetAttribute, 6000, ptds_mode, NULL) + + global __cuPointerGetAttributes + _F_cuGetProcAddress_v2('cuPointerGetAttributes', &__cuPointerGetAttributes, 7000, ptds_mode, NULL) + + global __cuStreamCreate + _F_cuGetProcAddress_v2('cuStreamCreate', &__cuStreamCreate, 2000, ptds_mode, NULL) + + global __cuStreamCreateWithPriority + _F_cuGetProcAddress_v2('cuStreamCreateWithPriority', &__cuStreamCreateWithPriority, 5050, ptds_mode, NULL) + + global __cuStreamGetPriority + _F_cuGetProcAddress_v2('cuStreamGetPriority', &__cuStreamGetPriority, 5050, ptds_mode, NULL) + + global __cuStreamGetDevice + _F_cuGetProcAddress_v2('cuStreamGetDevice', &__cuStreamGetDevice, 12080, ptds_mode, NULL) + + global __cuStreamGetFlags + _F_cuGetProcAddress_v2('cuStreamGetFlags', &__cuStreamGetFlags, 5050, ptds_mode, NULL) + + global __cuStreamGetId + _F_cuGetProcAddress_v2('cuStreamGetId', &__cuStreamGetId, 12000, ptds_mode, NULL) + + global __cuStreamGetCtx + _F_cuGetProcAddress_v2('cuStreamGetCtx', &__cuStreamGetCtx, 9020, ptds_mode, NULL) + + global __cuStreamGetCtx_v2 + _F_cuGetProcAddress_v2('cuStreamGetCtx_v2', &__cuStreamGetCtx_v2, 12050, ptds_mode, NULL) + + global __cuStreamWaitEvent + _F_cuGetProcAddress_v2('cuStreamWaitEvent', &__cuStreamWaitEvent, 3020, ptds_mode, NULL) + + global __cuStreamAddCallback + _F_cuGetProcAddress_v2('cuStreamAddCallback', &__cuStreamAddCallback, 5000, ptds_mode, NULL) + + global __cuStreamBeginCapture_v2 + _F_cuGetProcAddress_v2('cuStreamBeginCapture', &__cuStreamBeginCapture_v2, 10010, ptds_mode, NULL) + + global __cuStreamBeginCaptureToGraph + _F_cuGetProcAddress_v2('cuStreamBeginCaptureToGraph', &__cuStreamBeginCaptureToGraph, 12030, ptds_mode, NULL) + + global __cuThreadExchangeStreamCaptureMode + _F_cuGetProcAddress_v2('cuThreadExchangeStreamCaptureMode', &__cuThreadExchangeStreamCaptureMode, 10010, ptds_mode, NULL) + + global __cuStreamEndCapture + _F_cuGetProcAddress_v2('cuStreamEndCapture', &__cuStreamEndCapture, 10000, ptds_mode, NULL) + + global __cuStreamIsCapturing + _F_cuGetProcAddress_v2('cuStreamIsCapturing', &__cuStreamIsCapturing, 10000, ptds_mode, NULL) + + global __cuStreamGetCaptureInfo_v3 + _F_cuGetProcAddress_v2('cuStreamGetCaptureInfo', &__cuStreamGetCaptureInfo_v3, 12030, ptds_mode, NULL) + + global __cuStreamUpdateCaptureDependencies_v2 + _F_cuGetProcAddress_v2('cuStreamUpdateCaptureDependencies', &__cuStreamUpdateCaptureDependencies_v2, 12030, ptds_mode, NULL) + + global __cuStreamAttachMemAsync + _F_cuGetProcAddress_v2('cuStreamAttachMemAsync', &__cuStreamAttachMemAsync, 6000, ptds_mode, NULL) + + global __cuStreamQuery + _F_cuGetProcAddress_v2('cuStreamQuery', &__cuStreamQuery, 2000, ptds_mode, NULL) + + global __cuStreamSynchronize + _F_cuGetProcAddress_v2('cuStreamSynchronize', &__cuStreamSynchronize, 2000, ptds_mode, NULL) + + global __cuStreamDestroy_v2 + _F_cuGetProcAddress_v2('cuStreamDestroy', &__cuStreamDestroy_v2, 4000, ptds_mode, NULL) + + global __cuStreamCopyAttributes + _F_cuGetProcAddress_v2('cuStreamCopyAttributes', &__cuStreamCopyAttributes, 11000, ptds_mode, NULL) + + global __cuStreamGetAttribute + _F_cuGetProcAddress_v2('cuStreamGetAttribute', &__cuStreamGetAttribute, 11000, ptds_mode, NULL) + + global __cuStreamSetAttribute + _F_cuGetProcAddress_v2('cuStreamSetAttribute', &__cuStreamSetAttribute, 11000, ptds_mode, NULL) + + global __cuEventCreate + _F_cuGetProcAddress_v2('cuEventCreate', &__cuEventCreate, 2000, ptds_mode, NULL) + + global __cuEventRecord + _F_cuGetProcAddress_v2('cuEventRecord', &__cuEventRecord, 2000, ptds_mode, NULL) + + global __cuEventRecordWithFlags + _F_cuGetProcAddress_v2('cuEventRecordWithFlags', &__cuEventRecordWithFlags, 11010, ptds_mode, NULL) + + global __cuEventQuery + _F_cuGetProcAddress_v2('cuEventQuery', &__cuEventQuery, 2000, ptds_mode, NULL) + + global __cuEventSynchronize + _F_cuGetProcAddress_v2('cuEventSynchronize', &__cuEventSynchronize, 2000, ptds_mode, NULL) + + global __cuEventDestroy_v2 + _F_cuGetProcAddress_v2('cuEventDestroy', &__cuEventDestroy_v2, 4000, ptds_mode, NULL) + + global __cuEventElapsedTime_v2 + _F_cuGetProcAddress_v2('cuEventElapsedTime', &__cuEventElapsedTime_v2, 12080, ptds_mode, NULL) + + global __cuImportExternalMemory + _F_cuGetProcAddress_v2('cuImportExternalMemory', &__cuImportExternalMemory, 10000, ptds_mode, NULL) + + global __cuExternalMemoryGetMappedBuffer + _F_cuGetProcAddress_v2('cuExternalMemoryGetMappedBuffer', &__cuExternalMemoryGetMappedBuffer, 10000, ptds_mode, NULL) + + global __cuExternalMemoryGetMappedMipmappedArray + _F_cuGetProcAddress_v2('cuExternalMemoryGetMappedMipmappedArray', &__cuExternalMemoryGetMappedMipmappedArray, 10000, ptds_mode, NULL) + + global __cuDestroyExternalMemory + _F_cuGetProcAddress_v2('cuDestroyExternalMemory', &__cuDestroyExternalMemory, 10000, ptds_mode, NULL) + + global __cuImportExternalSemaphore + _F_cuGetProcAddress_v2('cuImportExternalSemaphore', &__cuImportExternalSemaphore, 10000, ptds_mode, NULL) + + global __cuSignalExternalSemaphoresAsync + _F_cuGetProcAddress_v2('cuSignalExternalSemaphoresAsync', &__cuSignalExternalSemaphoresAsync, 10000, ptds_mode, NULL) + + global __cuWaitExternalSemaphoresAsync + _F_cuGetProcAddress_v2('cuWaitExternalSemaphoresAsync', &__cuWaitExternalSemaphoresAsync, 10000, ptds_mode, NULL) + + global __cuDestroyExternalSemaphore + _F_cuGetProcAddress_v2('cuDestroyExternalSemaphore', &__cuDestroyExternalSemaphore, 10000, ptds_mode, NULL) + + global __cuStreamWaitValue32_v2 + _F_cuGetProcAddress_v2('cuStreamWaitValue32', &__cuStreamWaitValue32_v2, 11070, ptds_mode, NULL) + + global __cuStreamWaitValue64_v2 + _F_cuGetProcAddress_v2('cuStreamWaitValue64', &__cuStreamWaitValue64_v2, 11070, ptds_mode, NULL) + + global __cuStreamWriteValue32_v2 + _F_cuGetProcAddress_v2('cuStreamWriteValue32', &__cuStreamWriteValue32_v2, 11070, ptds_mode, NULL) + + global __cuStreamWriteValue64_v2 + _F_cuGetProcAddress_v2('cuStreamWriteValue64', &__cuStreamWriteValue64_v2, 11070, ptds_mode, NULL) + + global __cuStreamBatchMemOp_v2 + _F_cuGetProcAddress_v2('cuStreamBatchMemOp', &__cuStreamBatchMemOp_v2, 11070, ptds_mode, NULL) + + global __cuFuncGetAttribute + _F_cuGetProcAddress_v2('cuFuncGetAttribute', &__cuFuncGetAttribute, 2020, ptds_mode, NULL) + + global __cuFuncSetAttribute + _F_cuGetProcAddress_v2('cuFuncSetAttribute', &__cuFuncSetAttribute, 9000, ptds_mode, NULL) + + global __cuFuncSetCacheConfig + _F_cuGetProcAddress_v2('cuFuncSetCacheConfig', &__cuFuncSetCacheConfig, 3000, ptds_mode, NULL) + + global __cuFuncGetModule + _F_cuGetProcAddress_v2('cuFuncGetModule', &__cuFuncGetModule, 11000, ptds_mode, NULL) + + global __cuFuncGetName + _F_cuGetProcAddress_v2('cuFuncGetName', &__cuFuncGetName, 12030, ptds_mode, NULL) + + global __cuFuncGetParamInfo + _F_cuGetProcAddress_v2('cuFuncGetParamInfo', &__cuFuncGetParamInfo, 12040, ptds_mode, NULL) + + global __cuFuncIsLoaded + _F_cuGetProcAddress_v2('cuFuncIsLoaded', &__cuFuncIsLoaded, 12040, ptds_mode, NULL) + + global __cuFuncLoad + _F_cuGetProcAddress_v2('cuFuncLoad', &__cuFuncLoad, 12040, ptds_mode, NULL) + + global __cuLaunchKernel + _F_cuGetProcAddress_v2('cuLaunchKernel', &__cuLaunchKernel, 4000, ptds_mode, NULL) + + global __cuLaunchKernelEx + _F_cuGetProcAddress_v2('cuLaunchKernelEx', &__cuLaunchKernelEx, 11060, ptds_mode, NULL) + + global __cuLaunchCooperativeKernel + _F_cuGetProcAddress_v2('cuLaunchCooperativeKernel', &__cuLaunchCooperativeKernel, 9000, ptds_mode, NULL) + + global __cuLaunchCooperativeKernelMultiDevice + _F_cuGetProcAddress_v2('cuLaunchCooperativeKernelMultiDevice', &__cuLaunchCooperativeKernelMultiDevice, 9000, ptds_mode, NULL) + + global __cuLaunchHostFunc + _F_cuGetProcAddress_v2('cuLaunchHostFunc', &__cuLaunchHostFunc, 10000, ptds_mode, NULL) + + global __cuFuncSetBlockShape + _F_cuGetProcAddress_v2('cuFuncSetBlockShape', &__cuFuncSetBlockShape, 2000, ptds_mode, NULL) + + global __cuFuncSetSharedSize + _F_cuGetProcAddress_v2('cuFuncSetSharedSize', &__cuFuncSetSharedSize, 2000, ptds_mode, NULL) + + global __cuParamSetSize + _F_cuGetProcAddress_v2('cuParamSetSize', &__cuParamSetSize, 2000, ptds_mode, NULL) + + global __cuParamSeti + _F_cuGetProcAddress_v2('cuParamSeti', &__cuParamSeti, 2000, ptds_mode, NULL) + + global __cuParamSetf + _F_cuGetProcAddress_v2('cuParamSetf', &__cuParamSetf, 2000, ptds_mode, NULL) + + global __cuParamSetv + _F_cuGetProcAddress_v2('cuParamSetv', &__cuParamSetv, 2000, ptds_mode, NULL) + + global __cuLaunch + _F_cuGetProcAddress_v2('cuLaunch', &__cuLaunch, 2000, ptds_mode, NULL) + + global __cuLaunchGrid + _F_cuGetProcAddress_v2('cuLaunchGrid', &__cuLaunchGrid, 2000, ptds_mode, NULL) + + global __cuLaunchGridAsync + _F_cuGetProcAddress_v2('cuLaunchGridAsync', &__cuLaunchGridAsync, 2000, ptds_mode, NULL) + + global __cuParamSetTexRef + _F_cuGetProcAddress_v2('cuParamSetTexRef', &__cuParamSetTexRef, 2000, ptds_mode, NULL) + + global __cuFuncSetSharedMemConfig + _F_cuGetProcAddress_v2('cuFuncSetSharedMemConfig', &__cuFuncSetSharedMemConfig, 4020, ptds_mode, NULL) + + global __cuGraphCreate + _F_cuGetProcAddress_v2('cuGraphCreate', &__cuGraphCreate, 10000, ptds_mode, NULL) + + global __cuGraphAddKernelNode_v2 + _F_cuGetProcAddress_v2('cuGraphAddKernelNode', &__cuGraphAddKernelNode_v2, 12000, ptds_mode, NULL) + + global __cuGraphKernelNodeGetParams_v2 + _F_cuGetProcAddress_v2('cuGraphKernelNodeGetParams', &__cuGraphKernelNodeGetParams_v2, 12000, ptds_mode, NULL) + + global __cuGraphKernelNodeSetParams_v2 + _F_cuGetProcAddress_v2('cuGraphKernelNodeSetParams', &__cuGraphKernelNodeSetParams_v2, 12000, ptds_mode, NULL) + + global __cuGraphAddMemcpyNode + _F_cuGetProcAddress_v2('cuGraphAddMemcpyNode', &__cuGraphAddMemcpyNode, 10000, ptds_mode, NULL) + + global __cuGraphMemcpyNodeGetParams + _F_cuGetProcAddress_v2('cuGraphMemcpyNodeGetParams', &__cuGraphMemcpyNodeGetParams, 10000, ptds_mode, NULL) + + global __cuGraphMemcpyNodeSetParams + _F_cuGetProcAddress_v2('cuGraphMemcpyNodeSetParams', &__cuGraphMemcpyNodeSetParams, 10000, ptds_mode, NULL) + + global __cuGraphAddMemsetNode + _F_cuGetProcAddress_v2('cuGraphAddMemsetNode', &__cuGraphAddMemsetNode, 10000, ptds_mode, NULL) + + global __cuGraphMemsetNodeGetParams + _F_cuGetProcAddress_v2('cuGraphMemsetNodeGetParams', &__cuGraphMemsetNodeGetParams, 10000, ptds_mode, NULL) + + global __cuGraphMemsetNodeSetParams + _F_cuGetProcAddress_v2('cuGraphMemsetNodeSetParams', &__cuGraphMemsetNodeSetParams, 10000, ptds_mode, NULL) + + global __cuGraphAddHostNode + _F_cuGetProcAddress_v2('cuGraphAddHostNode', &__cuGraphAddHostNode, 10000, ptds_mode, NULL) + + global __cuGraphHostNodeGetParams + _F_cuGetProcAddress_v2('cuGraphHostNodeGetParams', &__cuGraphHostNodeGetParams, 10000, ptds_mode, NULL) + + global __cuGraphHostNodeSetParams + _F_cuGetProcAddress_v2('cuGraphHostNodeSetParams', &__cuGraphHostNodeSetParams, 10000, ptds_mode, NULL) + + global __cuGraphAddChildGraphNode + _F_cuGetProcAddress_v2('cuGraphAddChildGraphNode', &__cuGraphAddChildGraphNode, 10000, ptds_mode, NULL) + + global __cuGraphChildGraphNodeGetGraph + _F_cuGetProcAddress_v2('cuGraphChildGraphNodeGetGraph', &__cuGraphChildGraphNodeGetGraph, 10000, ptds_mode, NULL) + + global __cuGraphAddEmptyNode + _F_cuGetProcAddress_v2('cuGraphAddEmptyNode', &__cuGraphAddEmptyNode, 10000, ptds_mode, NULL) + + global __cuGraphAddEventRecordNode + _F_cuGetProcAddress_v2('cuGraphAddEventRecordNode', &__cuGraphAddEventRecordNode, 11010, ptds_mode, NULL) + + global __cuGraphEventRecordNodeGetEvent + _F_cuGetProcAddress_v2('cuGraphEventRecordNodeGetEvent', &__cuGraphEventRecordNodeGetEvent, 11010, ptds_mode, NULL) + + global __cuGraphEventRecordNodeSetEvent + _F_cuGetProcAddress_v2('cuGraphEventRecordNodeSetEvent', &__cuGraphEventRecordNodeSetEvent, 11010, ptds_mode, NULL) + + global __cuGraphAddEventWaitNode + _F_cuGetProcAddress_v2('cuGraphAddEventWaitNode', &__cuGraphAddEventWaitNode, 11010, ptds_mode, NULL) + + global __cuGraphEventWaitNodeGetEvent + _F_cuGetProcAddress_v2('cuGraphEventWaitNodeGetEvent', &__cuGraphEventWaitNodeGetEvent, 11010, ptds_mode, NULL) + + global __cuGraphEventWaitNodeSetEvent + _F_cuGetProcAddress_v2('cuGraphEventWaitNodeSetEvent', &__cuGraphEventWaitNodeSetEvent, 11010, ptds_mode, NULL) + + global __cuGraphAddExternalSemaphoresSignalNode + _F_cuGetProcAddress_v2('cuGraphAddExternalSemaphoresSignalNode', &__cuGraphAddExternalSemaphoresSignalNode, 11020, ptds_mode, NULL) + + global __cuGraphExternalSemaphoresSignalNodeGetParams + _F_cuGetProcAddress_v2('cuGraphExternalSemaphoresSignalNodeGetParams', &__cuGraphExternalSemaphoresSignalNodeGetParams, 11020, ptds_mode, NULL) + + global __cuGraphExternalSemaphoresSignalNodeSetParams + _F_cuGetProcAddress_v2('cuGraphExternalSemaphoresSignalNodeSetParams', &__cuGraphExternalSemaphoresSignalNodeSetParams, 11020, ptds_mode, NULL) + + global __cuGraphAddExternalSemaphoresWaitNode + _F_cuGetProcAddress_v2('cuGraphAddExternalSemaphoresWaitNode', &__cuGraphAddExternalSemaphoresWaitNode, 11020, ptds_mode, NULL) + + global __cuGraphExternalSemaphoresWaitNodeGetParams + _F_cuGetProcAddress_v2('cuGraphExternalSemaphoresWaitNodeGetParams', &__cuGraphExternalSemaphoresWaitNodeGetParams, 11020, ptds_mode, NULL) + + global __cuGraphExternalSemaphoresWaitNodeSetParams + _F_cuGetProcAddress_v2('cuGraphExternalSemaphoresWaitNodeSetParams', &__cuGraphExternalSemaphoresWaitNodeSetParams, 11020, ptds_mode, NULL) + + global __cuGraphAddBatchMemOpNode + _F_cuGetProcAddress_v2('cuGraphAddBatchMemOpNode', &__cuGraphAddBatchMemOpNode, 11070, ptds_mode, NULL) + + global __cuGraphBatchMemOpNodeGetParams + _F_cuGetProcAddress_v2('cuGraphBatchMemOpNodeGetParams', &__cuGraphBatchMemOpNodeGetParams, 11070, ptds_mode, NULL) + + global __cuGraphBatchMemOpNodeSetParams + _F_cuGetProcAddress_v2('cuGraphBatchMemOpNodeSetParams', &__cuGraphBatchMemOpNodeSetParams, 11070, ptds_mode, NULL) + + global __cuGraphExecBatchMemOpNodeSetParams + _F_cuGetProcAddress_v2('cuGraphExecBatchMemOpNodeSetParams', &__cuGraphExecBatchMemOpNodeSetParams, 11070, ptds_mode, NULL) + + global __cuGraphAddMemAllocNode + _F_cuGetProcAddress_v2('cuGraphAddMemAllocNode', &__cuGraphAddMemAllocNode, 11040, ptds_mode, NULL) + + global __cuGraphMemAllocNodeGetParams + _F_cuGetProcAddress_v2('cuGraphMemAllocNodeGetParams', &__cuGraphMemAllocNodeGetParams, 11040, ptds_mode, NULL) + + global __cuGraphAddMemFreeNode + _F_cuGetProcAddress_v2('cuGraphAddMemFreeNode', &__cuGraphAddMemFreeNode, 11040, ptds_mode, NULL) + + global __cuGraphMemFreeNodeGetParams + _F_cuGetProcAddress_v2('cuGraphMemFreeNodeGetParams', &__cuGraphMemFreeNodeGetParams, 11040, ptds_mode, NULL) + + global __cuDeviceGraphMemTrim + _F_cuGetProcAddress_v2('cuDeviceGraphMemTrim', &__cuDeviceGraphMemTrim, 11040, ptds_mode, NULL) + + global __cuDeviceGetGraphMemAttribute + _F_cuGetProcAddress_v2('cuDeviceGetGraphMemAttribute', &__cuDeviceGetGraphMemAttribute, 11040, ptds_mode, NULL) + + global __cuDeviceSetGraphMemAttribute + _F_cuGetProcAddress_v2('cuDeviceSetGraphMemAttribute', &__cuDeviceSetGraphMemAttribute, 11040, ptds_mode, NULL) + + global __cuGraphClone + _F_cuGetProcAddress_v2('cuGraphClone', &__cuGraphClone, 10000, ptds_mode, NULL) + + global __cuGraphNodeFindInClone + _F_cuGetProcAddress_v2('cuGraphNodeFindInClone', &__cuGraphNodeFindInClone, 10000, ptds_mode, NULL) + + global __cuGraphNodeGetType + _F_cuGetProcAddress_v2('cuGraphNodeGetType', &__cuGraphNodeGetType, 10000, ptds_mode, NULL) + + global __cuGraphGetNodes + _F_cuGetProcAddress_v2('cuGraphGetNodes', &__cuGraphGetNodes, 10000, ptds_mode, NULL) + + global __cuGraphGetRootNodes + _F_cuGetProcAddress_v2('cuGraphGetRootNodes', &__cuGraphGetRootNodes, 10000, ptds_mode, NULL) + + global __cuGraphGetEdges_v2 + _F_cuGetProcAddress_v2('cuGraphGetEdges', &__cuGraphGetEdges_v2, 12030, ptds_mode, NULL) + + global __cuGraphNodeGetDependencies_v2 + _F_cuGetProcAddress_v2('cuGraphNodeGetDependencies', &__cuGraphNodeGetDependencies_v2, 12030, ptds_mode, NULL) + + global __cuGraphNodeGetDependentNodes_v2 + _F_cuGetProcAddress_v2('cuGraphNodeGetDependentNodes', &__cuGraphNodeGetDependentNodes_v2, 12030, ptds_mode, NULL) + + global __cuGraphAddDependencies_v2 + _F_cuGetProcAddress_v2('cuGraphAddDependencies', &__cuGraphAddDependencies_v2, 12030, ptds_mode, NULL) + + global __cuGraphRemoveDependencies_v2 + _F_cuGetProcAddress_v2('cuGraphRemoveDependencies', &__cuGraphRemoveDependencies_v2, 12030, ptds_mode, NULL) + + global __cuGraphDestroyNode + _F_cuGetProcAddress_v2('cuGraphDestroyNode', &__cuGraphDestroyNode, 10000, ptds_mode, NULL) + + global __cuGraphInstantiateWithFlags + _F_cuGetProcAddress_v2('cuGraphInstantiate', &__cuGraphInstantiateWithFlags, 11040, ptds_mode, NULL) + + global __cuGraphInstantiateWithParams + _F_cuGetProcAddress_v2('cuGraphInstantiateWithParams', &__cuGraphInstantiateWithParams, 12000, ptds_mode, NULL) + + global __cuGraphExecGetFlags + _F_cuGetProcAddress_v2('cuGraphExecGetFlags', &__cuGraphExecGetFlags, 12000, ptds_mode, NULL) + + global __cuGraphExecKernelNodeSetParams_v2 + _F_cuGetProcAddress_v2('cuGraphExecKernelNodeSetParams', &__cuGraphExecKernelNodeSetParams_v2, 12000, ptds_mode, NULL) + + global __cuGraphExecMemcpyNodeSetParams + _F_cuGetProcAddress_v2('cuGraphExecMemcpyNodeSetParams', &__cuGraphExecMemcpyNodeSetParams, 10020, ptds_mode, NULL) + + global __cuGraphExecMemsetNodeSetParams + _F_cuGetProcAddress_v2('cuGraphExecMemsetNodeSetParams', &__cuGraphExecMemsetNodeSetParams, 10020, ptds_mode, NULL) + + global __cuGraphExecHostNodeSetParams + _F_cuGetProcAddress_v2('cuGraphExecHostNodeSetParams', &__cuGraphExecHostNodeSetParams, 10020, ptds_mode, NULL) + + global __cuGraphExecChildGraphNodeSetParams + _F_cuGetProcAddress_v2('cuGraphExecChildGraphNodeSetParams', &__cuGraphExecChildGraphNodeSetParams, 11010, ptds_mode, NULL) + + global __cuGraphExecEventRecordNodeSetEvent + _F_cuGetProcAddress_v2('cuGraphExecEventRecordNodeSetEvent', &__cuGraphExecEventRecordNodeSetEvent, 11010, ptds_mode, NULL) + + global __cuGraphExecEventWaitNodeSetEvent + _F_cuGetProcAddress_v2('cuGraphExecEventWaitNodeSetEvent', &__cuGraphExecEventWaitNodeSetEvent, 11010, ptds_mode, NULL) + + global __cuGraphExecExternalSemaphoresSignalNodeSetParams + _F_cuGetProcAddress_v2('cuGraphExecExternalSemaphoresSignalNodeSetParams', &__cuGraphExecExternalSemaphoresSignalNodeSetParams, 11020, ptds_mode, NULL) + + global __cuGraphExecExternalSemaphoresWaitNodeSetParams + _F_cuGetProcAddress_v2('cuGraphExecExternalSemaphoresWaitNodeSetParams', &__cuGraphExecExternalSemaphoresWaitNodeSetParams, 11020, ptds_mode, NULL) + + global __cuGraphNodeSetEnabled + _F_cuGetProcAddress_v2('cuGraphNodeSetEnabled', &__cuGraphNodeSetEnabled, 11060, ptds_mode, NULL) + + global __cuGraphNodeGetEnabled + _F_cuGetProcAddress_v2('cuGraphNodeGetEnabled', &__cuGraphNodeGetEnabled, 11060, ptds_mode, NULL) + + global __cuGraphUpload + _F_cuGetProcAddress_v2('cuGraphUpload', &__cuGraphUpload, 11010, ptds_mode, NULL) + + global __cuGraphLaunch + _F_cuGetProcAddress_v2('cuGraphLaunch', &__cuGraphLaunch, 10000, ptds_mode, NULL) + + global __cuGraphExecDestroy + _F_cuGetProcAddress_v2('cuGraphExecDestroy', &__cuGraphExecDestroy, 10000, ptds_mode, NULL) + + global __cuGraphDestroy + _F_cuGetProcAddress_v2('cuGraphDestroy', &__cuGraphDestroy, 10000, ptds_mode, NULL) + + global __cuGraphExecUpdate_v2 + _F_cuGetProcAddress_v2('cuGraphExecUpdate', &__cuGraphExecUpdate_v2, 12000, ptds_mode, NULL) + + global __cuGraphKernelNodeCopyAttributes + _F_cuGetProcAddress_v2('cuGraphKernelNodeCopyAttributes', &__cuGraphKernelNodeCopyAttributes, 11000, ptds_mode, NULL) + + global __cuGraphKernelNodeGetAttribute + _F_cuGetProcAddress_v2('cuGraphKernelNodeGetAttribute', &__cuGraphKernelNodeGetAttribute, 11000, ptds_mode, NULL) + + global __cuGraphKernelNodeSetAttribute + _F_cuGetProcAddress_v2('cuGraphKernelNodeSetAttribute', &__cuGraphKernelNodeSetAttribute, 11000, ptds_mode, NULL) + + global __cuGraphDebugDotPrint + _F_cuGetProcAddress_v2('cuGraphDebugDotPrint', &__cuGraphDebugDotPrint, 11030, ptds_mode, NULL) + + global __cuUserObjectCreate + _F_cuGetProcAddress_v2('cuUserObjectCreate', &__cuUserObjectCreate, 11030, ptds_mode, NULL) + + global __cuUserObjectRetain + _F_cuGetProcAddress_v2('cuUserObjectRetain', &__cuUserObjectRetain, 11030, ptds_mode, NULL) + + global __cuUserObjectRelease + _F_cuGetProcAddress_v2('cuUserObjectRelease', &__cuUserObjectRelease, 11030, ptds_mode, NULL) + + global __cuGraphRetainUserObject + _F_cuGetProcAddress_v2('cuGraphRetainUserObject', &__cuGraphRetainUserObject, 11030, ptds_mode, NULL) + + global __cuGraphReleaseUserObject + _F_cuGetProcAddress_v2('cuGraphReleaseUserObject', &__cuGraphReleaseUserObject, 11030, ptds_mode, NULL) + + global __cuGraphAddNode_v2 + _F_cuGetProcAddress_v2('cuGraphAddNode', &__cuGraphAddNode_v2, 12030, ptds_mode, NULL) + + global __cuGraphNodeSetParams + _F_cuGetProcAddress_v2('cuGraphNodeSetParams', &__cuGraphNodeSetParams, 12020, ptds_mode, NULL) + + global __cuGraphExecNodeSetParams + _F_cuGetProcAddress_v2('cuGraphExecNodeSetParams', &__cuGraphExecNodeSetParams, 12020, ptds_mode, NULL) + + global __cuGraphConditionalHandleCreate + _F_cuGetProcAddress_v2('cuGraphConditionalHandleCreate', &__cuGraphConditionalHandleCreate, 12030, ptds_mode, NULL) + + global __cuOccupancyMaxActiveBlocksPerMultiprocessor + _F_cuGetProcAddress_v2('cuOccupancyMaxActiveBlocksPerMultiprocessor', &__cuOccupancyMaxActiveBlocksPerMultiprocessor, 6050, ptds_mode, NULL) + + global __cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags + _F_cuGetProcAddress_v2('cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags', &__cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags, 7000, ptds_mode, NULL) + + global __cuOccupancyMaxPotentialBlockSize + _F_cuGetProcAddress_v2('cuOccupancyMaxPotentialBlockSize', &__cuOccupancyMaxPotentialBlockSize, 6050, ptds_mode, NULL) + + global __cuOccupancyMaxPotentialBlockSizeWithFlags + _F_cuGetProcAddress_v2('cuOccupancyMaxPotentialBlockSizeWithFlags', &__cuOccupancyMaxPotentialBlockSizeWithFlags, 7000, ptds_mode, NULL) + + global __cuOccupancyAvailableDynamicSMemPerBlock + _F_cuGetProcAddress_v2('cuOccupancyAvailableDynamicSMemPerBlock', &__cuOccupancyAvailableDynamicSMemPerBlock, 10020, ptds_mode, NULL) + + global __cuOccupancyMaxPotentialClusterSize + _F_cuGetProcAddress_v2('cuOccupancyMaxPotentialClusterSize', &__cuOccupancyMaxPotentialClusterSize, 11070, ptds_mode, NULL) + + global __cuOccupancyMaxActiveClusters + _F_cuGetProcAddress_v2('cuOccupancyMaxActiveClusters', &__cuOccupancyMaxActiveClusters, 11070, ptds_mode, NULL) + + global __cuTexRefSetArray + _F_cuGetProcAddress_v2('cuTexRefSetArray', &__cuTexRefSetArray, 2000, ptds_mode, NULL) + + global __cuTexRefSetMipmappedArray + _F_cuGetProcAddress_v2('cuTexRefSetMipmappedArray', &__cuTexRefSetMipmappedArray, 5000, ptds_mode, NULL) + + global __cuTexRefSetAddress_v2 + _F_cuGetProcAddress_v2('cuTexRefSetAddress', &__cuTexRefSetAddress_v2, 3020, ptds_mode, NULL) + + global __cuTexRefSetAddress2D_v3 + _F_cuGetProcAddress_v2('cuTexRefSetAddress2D', &__cuTexRefSetAddress2D_v3, 4010, ptds_mode, NULL) + + global __cuTexRefSetFormat + _F_cuGetProcAddress_v2('cuTexRefSetFormat', &__cuTexRefSetFormat, 2000, ptds_mode, NULL) + + global __cuTexRefSetAddressMode + _F_cuGetProcAddress_v2('cuTexRefSetAddressMode', &__cuTexRefSetAddressMode, 2000, ptds_mode, NULL) + + global __cuTexRefSetFilterMode + _F_cuGetProcAddress_v2('cuTexRefSetFilterMode', &__cuTexRefSetFilterMode, 2000, ptds_mode, NULL) + + global __cuTexRefSetMipmapFilterMode + _F_cuGetProcAddress_v2('cuTexRefSetMipmapFilterMode', &__cuTexRefSetMipmapFilterMode, 5000, ptds_mode, NULL) + + global __cuTexRefSetMipmapLevelBias + _F_cuGetProcAddress_v2('cuTexRefSetMipmapLevelBias', &__cuTexRefSetMipmapLevelBias, 5000, ptds_mode, NULL) + + global __cuTexRefSetMipmapLevelClamp + _F_cuGetProcAddress_v2('cuTexRefSetMipmapLevelClamp', &__cuTexRefSetMipmapLevelClamp, 5000, ptds_mode, NULL) + + global __cuTexRefSetMaxAnisotropy + _F_cuGetProcAddress_v2('cuTexRefSetMaxAnisotropy', &__cuTexRefSetMaxAnisotropy, 5000, ptds_mode, NULL) + + global __cuTexRefSetBorderColor + _F_cuGetProcAddress_v2('cuTexRefSetBorderColor', &__cuTexRefSetBorderColor, 8000, ptds_mode, NULL) + + global __cuTexRefSetFlags + _F_cuGetProcAddress_v2('cuTexRefSetFlags', &__cuTexRefSetFlags, 2000, ptds_mode, NULL) + + global __cuTexRefGetAddress_v2 + _F_cuGetProcAddress_v2('cuTexRefGetAddress', &__cuTexRefGetAddress_v2, 3020, ptds_mode, NULL) + + global __cuTexRefGetArray + _F_cuGetProcAddress_v2('cuTexRefGetArray', &__cuTexRefGetArray, 2000, ptds_mode, NULL) + + global __cuTexRefGetMipmappedArray + _F_cuGetProcAddress_v2('cuTexRefGetMipmappedArray', &__cuTexRefGetMipmappedArray, 5000, ptds_mode, NULL) + + global __cuTexRefGetAddressMode + _F_cuGetProcAddress_v2('cuTexRefGetAddressMode', &__cuTexRefGetAddressMode, 2000, ptds_mode, NULL) + + global __cuTexRefGetFilterMode + _F_cuGetProcAddress_v2('cuTexRefGetFilterMode', &__cuTexRefGetFilterMode, 2000, ptds_mode, NULL) + + global __cuTexRefGetFormat + _F_cuGetProcAddress_v2('cuTexRefGetFormat', &__cuTexRefGetFormat, 2000, ptds_mode, NULL) + + global __cuTexRefGetMipmapFilterMode + _F_cuGetProcAddress_v2('cuTexRefGetMipmapFilterMode', &__cuTexRefGetMipmapFilterMode, 5000, ptds_mode, NULL) + + global __cuTexRefGetMipmapLevelBias + _F_cuGetProcAddress_v2('cuTexRefGetMipmapLevelBias', &__cuTexRefGetMipmapLevelBias, 5000, ptds_mode, NULL) + + global __cuTexRefGetMipmapLevelClamp + _F_cuGetProcAddress_v2('cuTexRefGetMipmapLevelClamp', &__cuTexRefGetMipmapLevelClamp, 5000, ptds_mode, NULL) + + global __cuTexRefGetMaxAnisotropy + _F_cuGetProcAddress_v2('cuTexRefGetMaxAnisotropy', &__cuTexRefGetMaxAnisotropy, 5000, ptds_mode, NULL) + + global __cuTexRefGetBorderColor + _F_cuGetProcAddress_v2('cuTexRefGetBorderColor', &__cuTexRefGetBorderColor, 8000, ptds_mode, NULL) + + global __cuTexRefGetFlags + _F_cuGetProcAddress_v2('cuTexRefGetFlags', &__cuTexRefGetFlags, 2000, ptds_mode, NULL) + + global __cuTexRefCreate + _F_cuGetProcAddress_v2('cuTexRefCreate', &__cuTexRefCreate, 2000, ptds_mode, NULL) + + global __cuTexRefDestroy + _F_cuGetProcAddress_v2('cuTexRefDestroy', &__cuTexRefDestroy, 2000, ptds_mode, NULL) + + global __cuSurfRefSetArray + _F_cuGetProcAddress_v2('cuSurfRefSetArray', &__cuSurfRefSetArray, 3000, ptds_mode, NULL) + + global __cuSurfRefGetArray + _F_cuGetProcAddress_v2('cuSurfRefGetArray', &__cuSurfRefGetArray, 3000, ptds_mode, NULL) + + global __cuTexObjectCreate + _F_cuGetProcAddress_v2('cuTexObjectCreate', &__cuTexObjectCreate, 5000, ptds_mode, NULL) + + global __cuTexObjectDestroy + _F_cuGetProcAddress_v2('cuTexObjectDestroy', &__cuTexObjectDestroy, 5000, ptds_mode, NULL) + + global __cuTexObjectGetResourceDesc + _F_cuGetProcAddress_v2('cuTexObjectGetResourceDesc', &__cuTexObjectGetResourceDesc, 5000, ptds_mode, NULL) + + global __cuTexObjectGetTextureDesc + _F_cuGetProcAddress_v2('cuTexObjectGetTextureDesc', &__cuTexObjectGetTextureDesc, 5000, ptds_mode, NULL) + + global __cuTexObjectGetResourceViewDesc + _F_cuGetProcAddress_v2('cuTexObjectGetResourceViewDesc', &__cuTexObjectGetResourceViewDesc, 5000, ptds_mode, NULL) + + global __cuSurfObjectCreate + _F_cuGetProcAddress_v2('cuSurfObjectCreate', &__cuSurfObjectCreate, 5000, ptds_mode, NULL) + + global __cuSurfObjectDestroy + _F_cuGetProcAddress_v2('cuSurfObjectDestroy', &__cuSurfObjectDestroy, 5000, ptds_mode, NULL) + + global __cuSurfObjectGetResourceDesc + _F_cuGetProcAddress_v2('cuSurfObjectGetResourceDesc', &__cuSurfObjectGetResourceDesc, 5000, ptds_mode, NULL) + + global __cuTensorMapEncodeTiled + _F_cuGetProcAddress_v2('cuTensorMapEncodeTiled', &__cuTensorMapEncodeTiled, 12000, ptds_mode, NULL) + + global __cuTensorMapEncodeIm2col + _F_cuGetProcAddress_v2('cuTensorMapEncodeIm2col', &__cuTensorMapEncodeIm2col, 12000, ptds_mode, NULL) + + global __cuTensorMapEncodeIm2colWide + _F_cuGetProcAddress_v2('cuTensorMapEncodeIm2colWide', &__cuTensorMapEncodeIm2colWide, 12080, ptds_mode, NULL) + + global __cuTensorMapReplaceAddress + _F_cuGetProcAddress_v2('cuTensorMapReplaceAddress', &__cuTensorMapReplaceAddress, 12000, ptds_mode, NULL) + + global __cuDeviceCanAccessPeer + _F_cuGetProcAddress_v2('cuDeviceCanAccessPeer', &__cuDeviceCanAccessPeer, 4000, ptds_mode, NULL) + + global __cuCtxEnablePeerAccess + _F_cuGetProcAddress_v2('cuCtxEnablePeerAccess', &__cuCtxEnablePeerAccess, 4000, ptds_mode, NULL) + + global __cuCtxDisablePeerAccess + _F_cuGetProcAddress_v2('cuCtxDisablePeerAccess', &__cuCtxDisablePeerAccess, 4000, ptds_mode, NULL) + + global __cuDeviceGetP2PAttribute + _F_cuGetProcAddress_v2('cuDeviceGetP2PAttribute', &__cuDeviceGetP2PAttribute, 8000, ptds_mode, NULL) + + global __cuGraphicsUnregisterResource + _F_cuGetProcAddress_v2('cuGraphicsUnregisterResource', &__cuGraphicsUnregisterResource, 3000, ptds_mode, NULL) + + global __cuGraphicsSubResourceGetMappedArray + _F_cuGetProcAddress_v2('cuGraphicsSubResourceGetMappedArray', &__cuGraphicsSubResourceGetMappedArray, 3000, ptds_mode, NULL) + + global __cuGraphicsResourceGetMappedMipmappedArray + _F_cuGetProcAddress_v2('cuGraphicsResourceGetMappedMipmappedArray', &__cuGraphicsResourceGetMappedMipmappedArray, 5000, ptds_mode, NULL) + + global __cuGraphicsResourceGetMappedPointer_v2 + _F_cuGetProcAddress_v2('cuGraphicsResourceGetMappedPointer', &__cuGraphicsResourceGetMappedPointer_v2, 3020, ptds_mode, NULL) + + global __cuGraphicsResourceSetMapFlags_v2 + _F_cuGetProcAddress_v2('cuGraphicsResourceSetMapFlags', &__cuGraphicsResourceSetMapFlags_v2, 6050, ptds_mode, NULL) + + global __cuGraphicsMapResources + _F_cuGetProcAddress_v2('cuGraphicsMapResources', &__cuGraphicsMapResources, 3000, ptds_mode, NULL) + + global __cuGraphicsUnmapResources + _F_cuGetProcAddress_v2('cuGraphicsUnmapResources', &__cuGraphicsUnmapResources, 3000, ptds_mode, NULL) + + global __cuGetProcAddress_v2 + _F_cuGetProcAddress_v2('cuGetProcAddress', &__cuGetProcAddress_v2, 12000, ptds_mode, NULL) + + global __cuCoredumpGetAttribute + _F_cuGetProcAddress_v2('cuCoredumpGetAttribute', &__cuCoredumpGetAttribute, 12010, ptds_mode, NULL) + + global __cuCoredumpGetAttributeGlobal + _F_cuGetProcAddress_v2('cuCoredumpGetAttributeGlobal', &__cuCoredumpGetAttributeGlobal, 12010, ptds_mode, NULL) + + global __cuCoredumpSetAttribute + _F_cuGetProcAddress_v2('cuCoredumpSetAttribute', &__cuCoredumpSetAttribute, 12010, ptds_mode, NULL) + + global __cuCoredumpSetAttributeGlobal + _F_cuGetProcAddress_v2('cuCoredumpSetAttributeGlobal', &__cuCoredumpSetAttributeGlobal, 12010, ptds_mode, NULL) + + global __cuGetExportTable + _F_cuGetProcAddress_v2('cuGetExportTable', &__cuGetExportTable, 3000, ptds_mode, NULL) + + global __cuGreenCtxCreate + _F_cuGetProcAddress_v2('cuGreenCtxCreate', &__cuGreenCtxCreate, 12040, ptds_mode, NULL) + + global __cuGreenCtxDestroy + _F_cuGetProcAddress_v2('cuGreenCtxDestroy', &__cuGreenCtxDestroy, 12040, ptds_mode, NULL) + + global __cuCtxFromGreenCtx + _F_cuGetProcAddress_v2('cuCtxFromGreenCtx', &__cuCtxFromGreenCtx, 12040, ptds_mode, NULL) + + global __cuDeviceGetDevResource + _F_cuGetProcAddress_v2('cuDeviceGetDevResource', &__cuDeviceGetDevResource, 12040, ptds_mode, NULL) + + global __cuCtxGetDevResource + _F_cuGetProcAddress_v2('cuCtxGetDevResource', &__cuCtxGetDevResource, 12040, ptds_mode, NULL) + + global __cuGreenCtxGetDevResource + _F_cuGetProcAddress_v2('cuGreenCtxGetDevResource', &__cuGreenCtxGetDevResource, 12040, ptds_mode, NULL) + + global __cuDevSmResourceSplitByCount + _F_cuGetProcAddress_v2('cuDevSmResourceSplitByCount', &__cuDevSmResourceSplitByCount, 12040, ptds_mode, NULL) + + global __cuDevResourceGenerateDesc + _F_cuGetProcAddress_v2('cuDevResourceGenerateDesc', &__cuDevResourceGenerateDesc, 12040, ptds_mode, NULL) + + global __cuGreenCtxRecordEvent + _F_cuGetProcAddress_v2('cuGreenCtxRecordEvent', &__cuGreenCtxRecordEvent, 12040, ptds_mode, NULL) + + global __cuGreenCtxWaitEvent + _F_cuGetProcAddress_v2('cuGreenCtxWaitEvent', &__cuGreenCtxWaitEvent, 12040, ptds_mode, NULL) + + global __cuStreamGetGreenCtx + _F_cuGetProcAddress_v2('cuStreamGetGreenCtx', &__cuStreamGetGreenCtx, 12040, ptds_mode, NULL) + + global __cuGreenCtxStreamCreate + _F_cuGetProcAddress_v2('cuGreenCtxStreamCreate', &__cuGreenCtxStreamCreate, 12050, ptds_mode, NULL) + + global __cuLogsRegisterCallback + _F_cuGetProcAddress_v2('cuLogsRegisterCallback', &__cuLogsRegisterCallback, 12080, ptds_mode, NULL) + + global __cuLogsUnregisterCallback + _F_cuGetProcAddress_v2('cuLogsUnregisterCallback', &__cuLogsUnregisterCallback, 12080, ptds_mode, NULL) + + global __cuLogsCurrent + _F_cuGetProcAddress_v2('cuLogsCurrent', &__cuLogsCurrent, 12080, ptds_mode, NULL) + + global __cuLogsDumpToFile + _F_cuGetProcAddress_v2('cuLogsDumpToFile', &__cuLogsDumpToFile, 12080, ptds_mode, NULL) + + global __cuLogsDumpToMemory + _F_cuGetProcAddress_v2('cuLogsDumpToMemory', &__cuLogsDumpToMemory, 12080, ptds_mode, NULL) + + global __cuCheckpointProcessGetRestoreThreadId + _F_cuGetProcAddress_v2('cuCheckpointProcessGetRestoreThreadId', &__cuCheckpointProcessGetRestoreThreadId, 12080, ptds_mode, NULL) + + global __cuCheckpointProcessGetState + _F_cuGetProcAddress_v2('cuCheckpointProcessGetState', &__cuCheckpointProcessGetState, 12080, ptds_mode, NULL) + + global __cuCheckpointProcessLock + _F_cuGetProcAddress_v2('cuCheckpointProcessLock', &__cuCheckpointProcessLock, 12080, ptds_mode, NULL) + + global __cuCheckpointProcessCheckpoint + _F_cuGetProcAddress_v2('cuCheckpointProcessCheckpoint', &__cuCheckpointProcessCheckpoint, 12080, ptds_mode, NULL) + + global __cuCheckpointProcessRestore + _F_cuGetProcAddress_v2('cuCheckpointProcessRestore', &__cuCheckpointProcessRestore, 12080, ptds_mode, NULL) + + global __cuCheckpointProcessUnlock + _F_cuGetProcAddress_v2('cuCheckpointProcessUnlock', &__cuCheckpointProcessUnlock, 12080, ptds_mode, NULL) + + global __cuGraphicsEGLRegisterImage + _F_cuGetProcAddress_v2('cuGraphicsEGLRegisterImage', &__cuGraphicsEGLRegisterImage, 7000, ptds_mode, NULL) + + global __cuEGLStreamConsumerConnect + _F_cuGetProcAddress_v2('cuEGLStreamConsumerConnect', &__cuEGLStreamConsumerConnect, 7000, ptds_mode, NULL) + + global __cuEGLStreamConsumerConnectWithFlags + _F_cuGetProcAddress_v2('cuEGLStreamConsumerConnectWithFlags', &__cuEGLStreamConsumerConnectWithFlags, 8000, ptds_mode, NULL) + + global __cuEGLStreamConsumerDisconnect + _F_cuGetProcAddress_v2('cuEGLStreamConsumerDisconnect', &__cuEGLStreamConsumerDisconnect, 7000, ptds_mode, NULL) + + global __cuEGLStreamConsumerAcquireFrame + _F_cuGetProcAddress_v2('cuEGLStreamConsumerAcquireFrame', &__cuEGLStreamConsumerAcquireFrame, 7000, ptds_mode, NULL) + + global __cuEGLStreamConsumerReleaseFrame + _F_cuGetProcAddress_v2('cuEGLStreamConsumerReleaseFrame', &__cuEGLStreamConsumerReleaseFrame, 7000, ptds_mode, NULL) + + global __cuEGLStreamProducerConnect + _F_cuGetProcAddress_v2('cuEGLStreamProducerConnect', &__cuEGLStreamProducerConnect, 7000, ptds_mode, NULL) + + global __cuEGLStreamProducerDisconnect + _F_cuGetProcAddress_v2('cuEGLStreamProducerDisconnect', &__cuEGLStreamProducerDisconnect, 7000, ptds_mode, NULL) + + global __cuEGLStreamProducerPresentFrame + _F_cuGetProcAddress_v2('cuEGLStreamProducerPresentFrame', &__cuEGLStreamProducerPresentFrame, 7000, ptds_mode, NULL) + + global __cuEGLStreamProducerReturnFrame + _F_cuGetProcAddress_v2('cuEGLStreamProducerReturnFrame', &__cuEGLStreamProducerReturnFrame, 7000, ptds_mode, NULL) + + global __cuGraphicsResourceGetMappedEglFrame + _F_cuGetProcAddress_v2('cuGraphicsResourceGetMappedEglFrame', &__cuGraphicsResourceGetMappedEglFrame, 7000, ptds_mode, NULL) + + global __cuEventCreateFromEGLSync + _F_cuGetProcAddress_v2('cuEventCreateFromEGLSync', &__cuEventCreateFromEGLSync, 9000, ptds_mode, NULL) + + global __cuGraphicsGLRegisterBuffer + _F_cuGetProcAddress_v2('cuGraphicsGLRegisterBuffer', &__cuGraphicsGLRegisterBuffer, 3000, ptds_mode, NULL) + + global __cuGraphicsGLRegisterImage + _F_cuGetProcAddress_v2('cuGraphicsGLRegisterImage', &__cuGraphicsGLRegisterImage, 3000, ptds_mode, NULL) + + global __cuGLGetDevices_v2 + _F_cuGetProcAddress_v2('cuGLGetDevices', &__cuGLGetDevices_v2, 6050, ptds_mode, NULL) + + global __cuGLCtxCreate_v2 + _F_cuGetProcAddress_v2('cuGLCtxCreate', &__cuGLCtxCreate_v2, 3020, ptds_mode, NULL) + + global __cuGLInit + _F_cuGetProcAddress_v2('cuGLInit', &__cuGLInit, 2000, ptds_mode, NULL) + + global __cuGLRegisterBufferObject + _F_cuGetProcAddress_v2('cuGLRegisterBufferObject', &__cuGLRegisterBufferObject, 2000, ptds_mode, NULL) + + global __cuGLMapBufferObject_v2 + _F_cuGetProcAddress_v2('cuGLMapBufferObject', &__cuGLMapBufferObject_v2, 3020, ptds_mode, NULL) + + global __cuGLUnmapBufferObject + _F_cuGetProcAddress_v2('cuGLUnmapBufferObject', &__cuGLUnmapBufferObject, 2000, ptds_mode, NULL) + + global __cuGLUnregisterBufferObject + _F_cuGetProcAddress_v2('cuGLUnregisterBufferObject', &__cuGLUnregisterBufferObject, 2000, ptds_mode, NULL) + + global __cuGLSetBufferObjectMapFlags + _F_cuGetProcAddress_v2('cuGLSetBufferObjectMapFlags', &__cuGLSetBufferObjectMapFlags, 2030, ptds_mode, NULL) + + global __cuGLMapBufferObjectAsync_v2 + _F_cuGetProcAddress_v2('cuGLMapBufferObjectAsync', &__cuGLMapBufferObjectAsync_v2, 3020, ptds_mode, NULL) + + global __cuGLUnmapBufferObjectAsync + _F_cuGetProcAddress_v2('cuGLUnmapBufferObjectAsync', &__cuGLUnmapBufferObjectAsync, 2030, ptds_mode, NULL) + + global __cuProfilerInitialize + _F_cuGetProcAddress_v2('cuProfilerInitialize', &__cuProfilerInitialize, 4000, ptds_mode, NULL) + + global __cuProfilerStart + _F_cuGetProcAddress_v2('cuProfilerStart', &__cuProfilerStart, 4000, ptds_mode, NULL) + + global __cuProfilerStop + _F_cuGetProcAddress_v2('cuProfilerStop', &__cuProfilerStop, 4000, ptds_mode, NULL) + + global __cuVDPAUGetDevice + _F_cuGetProcAddress_v2('cuVDPAUGetDevice', &__cuVDPAUGetDevice, 3010, ptds_mode, NULL) + + global __cuVDPAUCtxCreate_v2 + _F_cuGetProcAddress_v2('cuVDPAUCtxCreate', &__cuVDPAUCtxCreate_v2, 3020, ptds_mode, NULL) + + global __cuGraphicsVDPAURegisterVideoSurface + _F_cuGetProcAddress_v2('cuGraphicsVDPAURegisterVideoSurface', &__cuGraphicsVDPAURegisterVideoSurface, 3010, ptds_mode, NULL) + + global __cuGraphicsVDPAURegisterOutputSurface + _F_cuGetProcAddress_v2('cuGraphicsVDPAURegisterOutputSurface', &__cuGraphicsVDPAURegisterOutputSurface, 3010, ptds_mode, NULL) + + global __cuDeviceGetHostAtomicCapabilities + _F_cuGetProcAddress_v2('cuDeviceGetHostAtomicCapabilities', &__cuDeviceGetHostAtomicCapabilities, 13010, ptds_mode, NULL) + + global __cuCtxGetDevice_v2 + _F_cuGetProcAddress_v2('cuCtxGetDevice_v2', &__cuCtxGetDevice_v2, 13010, ptds_mode, NULL) + + global __cuCtxSynchronize_v2 + _F_cuGetProcAddress_v2('cuCtxSynchronize_v2', &__cuCtxSynchronize_v2, 13010, ptds_mode, NULL) + + global __cuMemcpyBatchAsync_v2 + _F_cuGetProcAddress_v2('cuMemcpyBatchAsync', &__cuMemcpyBatchAsync_v2, 13010, ptds_mode, NULL) + + global __cuMemcpy3DBatchAsync_v2 + _F_cuGetProcAddress_v2('cuMemcpy3DBatchAsync', &__cuMemcpy3DBatchAsync_v2, 13010, ptds_mode, NULL) + + global __cuMemGetDefaultMemPool + _F_cuGetProcAddress_v2('cuMemGetDefaultMemPool', &__cuMemGetDefaultMemPool, 13010, ptds_mode, NULL) + + global __cuMemGetMemPool + _F_cuGetProcAddress_v2('cuMemGetMemPool', &__cuMemGetMemPool, 13010, ptds_mode, NULL) + + global __cuMemSetMemPool + _F_cuGetProcAddress_v2('cuMemSetMemPool', &__cuMemSetMemPool, 13010, ptds_mode, NULL) + + global __cuMulticastBindMem_v2 + _F_cuGetProcAddress_v2('cuMulticastBindMem_v2', &__cuMulticastBindMem_v2, 13010, ptds_mode, NULL) + + global __cuMulticastBindAddr_v2 + _F_cuGetProcAddress_v2('cuMulticastBindAddr_v2', &__cuMulticastBindAddr_v2, 13010, ptds_mode, NULL) + + global __cuMemPrefetchBatchAsync + _F_cuGetProcAddress_v2('cuMemPrefetchBatchAsync', &__cuMemPrefetchBatchAsync, 13010, ptds_mode, NULL) + + global __cuMemDiscardBatchAsync + _F_cuGetProcAddress_v2('cuMemDiscardBatchAsync', &__cuMemDiscardBatchAsync, 13010, ptds_mode, NULL) + + global __cuMemDiscardAndPrefetchBatchAsync + _F_cuGetProcAddress_v2('cuMemDiscardAndPrefetchBatchAsync', &__cuMemDiscardAndPrefetchBatchAsync, 13010, ptds_mode, NULL) + + global __cuGraphNodeGetContainingGraph + _F_cuGetProcAddress_v2('cuGraphNodeGetContainingGraph', &__cuGraphNodeGetContainingGraph, 13010, ptds_mode, NULL) + + global __cuGraphNodeGetLocalId + _F_cuGetProcAddress_v2('cuGraphNodeGetLocalId', &__cuGraphNodeGetLocalId, 13010, ptds_mode, NULL) + + global __cuGraphNodeGetToolsId + _F_cuGetProcAddress_v2('cuGraphNodeGetToolsId', &__cuGraphNodeGetToolsId, 13010, ptds_mode, NULL) + + global __cuGraphGetId + _F_cuGetProcAddress_v2('cuGraphGetId', &__cuGraphGetId, 13010, ptds_mode, NULL) + + global __cuGraphExecGetId + _F_cuGetProcAddress_v2('cuGraphExecGetId', &__cuGraphExecGetId, 13010, ptds_mode, NULL) + + global __cuDeviceGetP2PAtomicCapabilities + _F_cuGetProcAddress_v2('cuDeviceGetP2PAtomicCapabilities', &__cuDeviceGetP2PAtomicCapabilities, 13010, ptds_mode, NULL) + + global __cuDevSmResourceSplit + _F_cuGetProcAddress_v2('cuDevSmResourceSplit', &__cuDevSmResourceSplit, 13010, ptds_mode, NULL) + + global __cuGreenCtxGetId + _F_cuGetProcAddress_v2('cuGreenCtxGetId', &__cuGreenCtxGetId, 13010, ptds_mode, NULL) + + global __cuStreamGetDevResource + _F_cuGetProcAddress_v2('cuStreamGetDevResource', &__cuStreamGetDevResource, 13010, ptds_mode, NULL) + + global __cuKernelGetParamCount + _F_cuGetProcAddress_v2('cuKernelGetParamCount', &__cuKernelGetParamCount, 13020, ptds_mode, NULL) + + global __cuMemcpyWithAttributesAsync + _F_cuGetProcAddress_v2('cuMemcpyWithAttributesAsync', &__cuMemcpyWithAttributesAsync, 13020, ptds_mode, NULL) + + global __cuMemcpy3DWithAttributesAsync + _F_cuGetProcAddress_v2('cuMemcpy3DWithAttributesAsync', &__cuMemcpy3DWithAttributesAsync, 13020, ptds_mode, NULL) + + global __cuStreamBeginCaptureToCig + _F_cuGetProcAddress_v2('cuStreamBeginCaptureToCig', &__cuStreamBeginCaptureToCig, 13020, ptds_mode, NULL) + + global __cuStreamEndCaptureToCig + _F_cuGetProcAddress_v2('cuStreamEndCaptureToCig', &__cuStreamEndCaptureToCig, 13020, ptds_mode, NULL) + + global __cuFuncGetParamCount + _F_cuGetProcAddress_v2('cuFuncGetParamCount', &__cuFuncGetParamCount, 13020, ptds_mode, NULL) + + global __cuLaunchHostFunc_v2 + _F_cuGetProcAddress_v2('cuLaunchHostFunc_v2', &__cuLaunchHostFunc_v2, 13020, ptds_mode, NULL) + + global __cuGraphNodeGetParams + _F_cuGetProcAddress_v2('cuGraphNodeGetParams', &__cuGraphNodeGetParams, 13020, ptds_mode, NULL) + + global __cuCoredumpRegisterStartCallback + _F_cuGetProcAddress_v2('cuCoredumpRegisterStartCallback', &__cuCoredumpRegisterStartCallback, 13020, ptds_mode, NULL) + + global __cuCoredumpRegisterCompleteCallback + _F_cuGetProcAddress_v2('cuCoredumpRegisterCompleteCallback', &__cuCoredumpRegisterCompleteCallback, 13020, ptds_mode, NULL) + + global __cuCoredumpDeregisterStartCallback + _F_cuGetProcAddress_v2('cuCoredumpDeregisterStartCallback', &__cuCoredumpDeregisterStartCallback, 13020, ptds_mode, NULL) + + global __cuCoredumpDeregisterCompleteCallback + _F_cuGetProcAddress_v2('cuCoredumpDeregisterCompleteCallback', &__cuCoredumpDeregisterCompleteCallback, 13020, ptds_mode, NULL) + + __py_driver_init = True + return 0 + + +cdef inline int _check_or_init_driver() except -1 nogil: + if __py_driver_init: + return 0 + + return _init_driver() + +cdef dict func_ptrs = None + + +cpdef dict _inspect_function_pointers(): + global func_ptrs + if func_ptrs is not None: + return func_ptrs + + _check_or_init_driver() + cdef dict data = {} + + global __cuGetErrorString + data["__cuGetErrorString"] = __cuGetErrorString + + global __cuGetErrorName + data["__cuGetErrorName"] = __cuGetErrorName + + global __cuInit + data["__cuInit"] = __cuInit + + global __cuDriverGetVersion + data["__cuDriverGetVersion"] = __cuDriverGetVersion + + global __cuDeviceGet + data["__cuDeviceGet"] = __cuDeviceGet + + global __cuDeviceGetCount + data["__cuDeviceGetCount"] = __cuDeviceGetCount + + global __cuDeviceGetName + data["__cuDeviceGetName"] = __cuDeviceGetName + + global __cuDeviceGetUuid_v2 + data["__cuDeviceGetUuid_v2"] = __cuDeviceGetUuid_v2 + + global __cuDeviceGetLuid + data["__cuDeviceGetLuid"] = __cuDeviceGetLuid + + global __cuDeviceTotalMem_v2 + data["__cuDeviceTotalMem_v2"] = __cuDeviceTotalMem_v2 + + global __cuDeviceGetTexture1DLinearMaxWidth + data["__cuDeviceGetTexture1DLinearMaxWidth"] = __cuDeviceGetTexture1DLinearMaxWidth + + global __cuDeviceGetAttribute + data["__cuDeviceGetAttribute"] = __cuDeviceGetAttribute + + global __cuDeviceGetNvSciSyncAttributes + data["__cuDeviceGetNvSciSyncAttributes"] = __cuDeviceGetNvSciSyncAttributes + + global __cuDeviceSetMemPool + data["__cuDeviceSetMemPool"] = __cuDeviceSetMemPool + + global __cuDeviceGetMemPool + data["__cuDeviceGetMemPool"] = __cuDeviceGetMemPool + + global __cuDeviceGetDefaultMemPool + data["__cuDeviceGetDefaultMemPool"] = __cuDeviceGetDefaultMemPool + + global __cuDeviceGetExecAffinitySupport + data["__cuDeviceGetExecAffinitySupport"] = __cuDeviceGetExecAffinitySupport + + global __cuFlushGPUDirectRDMAWrites + data["__cuFlushGPUDirectRDMAWrites"] = __cuFlushGPUDirectRDMAWrites + + global __cuDeviceGetProperties + data["__cuDeviceGetProperties"] = __cuDeviceGetProperties + + global __cuDeviceComputeCapability + data["__cuDeviceComputeCapability"] = __cuDeviceComputeCapability + + global __cuDevicePrimaryCtxRetain + data["__cuDevicePrimaryCtxRetain"] = __cuDevicePrimaryCtxRetain + + global __cuDevicePrimaryCtxRelease_v2 + data["__cuDevicePrimaryCtxRelease_v2"] = __cuDevicePrimaryCtxRelease_v2 + + global __cuDevicePrimaryCtxSetFlags_v2 + data["__cuDevicePrimaryCtxSetFlags_v2"] = __cuDevicePrimaryCtxSetFlags_v2 + + global __cuDevicePrimaryCtxGetState + data["__cuDevicePrimaryCtxGetState"] = __cuDevicePrimaryCtxGetState + + global __cuDevicePrimaryCtxReset_v2 + data["__cuDevicePrimaryCtxReset_v2"] = __cuDevicePrimaryCtxReset_v2 + + global __cuCtxCreate_v4 + data["__cuCtxCreate_v4"] = __cuCtxCreate_v4 + + global __cuCtxDestroy_v2 + data["__cuCtxDestroy_v2"] = __cuCtxDestroy_v2 + + global __cuCtxPushCurrent_v2 + data["__cuCtxPushCurrent_v2"] = __cuCtxPushCurrent_v2 + + global __cuCtxPopCurrent_v2 + data["__cuCtxPopCurrent_v2"] = __cuCtxPopCurrent_v2 + + global __cuCtxSetCurrent + data["__cuCtxSetCurrent"] = __cuCtxSetCurrent + + global __cuCtxGetCurrent + data["__cuCtxGetCurrent"] = __cuCtxGetCurrent + + global __cuCtxGetDevice + data["__cuCtxGetDevice"] = __cuCtxGetDevice + + global __cuCtxGetFlags + data["__cuCtxGetFlags"] = __cuCtxGetFlags + + global __cuCtxSetFlags + data["__cuCtxSetFlags"] = __cuCtxSetFlags + + global __cuCtxGetId + data["__cuCtxGetId"] = __cuCtxGetId + + global __cuCtxSynchronize + data["__cuCtxSynchronize"] = __cuCtxSynchronize + + global __cuCtxSetLimit + data["__cuCtxSetLimit"] = __cuCtxSetLimit + + global __cuCtxGetLimit + data["__cuCtxGetLimit"] = __cuCtxGetLimit + + global __cuCtxGetCacheConfig + data["__cuCtxGetCacheConfig"] = __cuCtxGetCacheConfig + + global __cuCtxSetCacheConfig + data["__cuCtxSetCacheConfig"] = __cuCtxSetCacheConfig + + global __cuCtxGetApiVersion + data["__cuCtxGetApiVersion"] = __cuCtxGetApiVersion + + global __cuCtxGetStreamPriorityRange + data["__cuCtxGetStreamPriorityRange"] = __cuCtxGetStreamPriorityRange + + global __cuCtxResetPersistingL2Cache + data["__cuCtxResetPersistingL2Cache"] = __cuCtxResetPersistingL2Cache + + global __cuCtxGetExecAffinity + data["__cuCtxGetExecAffinity"] = __cuCtxGetExecAffinity + + global __cuCtxRecordEvent + data["__cuCtxRecordEvent"] = __cuCtxRecordEvent + + global __cuCtxWaitEvent + data["__cuCtxWaitEvent"] = __cuCtxWaitEvent + + global __cuCtxAttach + data["__cuCtxAttach"] = __cuCtxAttach + + global __cuCtxDetach + data["__cuCtxDetach"] = __cuCtxDetach + + global __cuCtxGetSharedMemConfig + data["__cuCtxGetSharedMemConfig"] = __cuCtxGetSharedMemConfig + + global __cuCtxSetSharedMemConfig + data["__cuCtxSetSharedMemConfig"] = __cuCtxSetSharedMemConfig + + global __cuModuleLoad + data["__cuModuleLoad"] = __cuModuleLoad + + global __cuModuleLoadData + data["__cuModuleLoadData"] = __cuModuleLoadData + + global __cuModuleLoadDataEx + data["__cuModuleLoadDataEx"] = __cuModuleLoadDataEx + + global __cuModuleLoadFatBinary + data["__cuModuleLoadFatBinary"] = __cuModuleLoadFatBinary + + global __cuModuleUnload + data["__cuModuleUnload"] = __cuModuleUnload + + global __cuModuleGetLoadingMode + data["__cuModuleGetLoadingMode"] = __cuModuleGetLoadingMode + + global __cuModuleGetFunction + data["__cuModuleGetFunction"] = __cuModuleGetFunction + + global __cuModuleGetFunctionCount + data["__cuModuleGetFunctionCount"] = __cuModuleGetFunctionCount + + global __cuModuleEnumerateFunctions + data["__cuModuleEnumerateFunctions"] = __cuModuleEnumerateFunctions + + global __cuModuleGetGlobal_v2 + data["__cuModuleGetGlobal_v2"] = __cuModuleGetGlobal_v2 + + global __cuLinkCreate_v2 + data["__cuLinkCreate_v2"] = __cuLinkCreate_v2 + + global __cuLinkAddData_v2 + data["__cuLinkAddData_v2"] = __cuLinkAddData_v2 + + global __cuLinkAddFile_v2 + data["__cuLinkAddFile_v2"] = __cuLinkAddFile_v2 + + global __cuLinkComplete + data["__cuLinkComplete"] = __cuLinkComplete + + global __cuLinkDestroy + data["__cuLinkDestroy"] = __cuLinkDestroy + + global __cuModuleGetTexRef + data["__cuModuleGetTexRef"] = __cuModuleGetTexRef + + global __cuModuleGetSurfRef + data["__cuModuleGetSurfRef"] = __cuModuleGetSurfRef + + global __cuLibraryLoadData + data["__cuLibraryLoadData"] = __cuLibraryLoadData + + global __cuLibraryLoadFromFile + data["__cuLibraryLoadFromFile"] = __cuLibraryLoadFromFile + + global __cuLibraryUnload + data["__cuLibraryUnload"] = __cuLibraryUnload + + global __cuLibraryGetKernel + data["__cuLibraryGetKernel"] = __cuLibraryGetKernel + + global __cuLibraryGetKernelCount + data["__cuLibraryGetKernelCount"] = __cuLibraryGetKernelCount + + global __cuLibraryEnumerateKernels + data["__cuLibraryEnumerateKernels"] = __cuLibraryEnumerateKernels + + global __cuLibraryGetModule + data["__cuLibraryGetModule"] = __cuLibraryGetModule + + global __cuKernelGetFunction + data["__cuKernelGetFunction"] = __cuKernelGetFunction + + global __cuKernelGetLibrary + data["__cuKernelGetLibrary"] = __cuKernelGetLibrary + + global __cuLibraryGetGlobal + data["__cuLibraryGetGlobal"] = __cuLibraryGetGlobal + + global __cuLibraryGetManaged + data["__cuLibraryGetManaged"] = __cuLibraryGetManaged + + global __cuLibraryGetUnifiedFunction + data["__cuLibraryGetUnifiedFunction"] = __cuLibraryGetUnifiedFunction + + global __cuKernelGetAttribute + data["__cuKernelGetAttribute"] = __cuKernelGetAttribute + + global __cuKernelSetAttribute + data["__cuKernelSetAttribute"] = __cuKernelSetAttribute + + global __cuKernelSetCacheConfig + data["__cuKernelSetCacheConfig"] = __cuKernelSetCacheConfig + + global __cuKernelGetName + data["__cuKernelGetName"] = __cuKernelGetName + + global __cuKernelGetParamInfo + data["__cuKernelGetParamInfo"] = __cuKernelGetParamInfo + + global __cuMemGetInfo_v2 + data["__cuMemGetInfo_v2"] = __cuMemGetInfo_v2 + + global __cuMemAlloc_v2 + data["__cuMemAlloc_v2"] = __cuMemAlloc_v2 + + global __cuMemAllocPitch_v2 + data["__cuMemAllocPitch_v2"] = __cuMemAllocPitch_v2 + + global __cuMemFree_v2 + data["__cuMemFree_v2"] = __cuMemFree_v2 + + global __cuMemGetAddressRange_v2 + data["__cuMemGetAddressRange_v2"] = __cuMemGetAddressRange_v2 + + global __cuMemAllocHost_v2 + data["__cuMemAllocHost_v2"] = __cuMemAllocHost_v2 + + global __cuMemFreeHost + data["__cuMemFreeHost"] = __cuMemFreeHost + + global __cuMemHostAlloc + data["__cuMemHostAlloc"] = __cuMemHostAlloc + + global __cuMemHostGetDevicePointer_v2 + data["__cuMemHostGetDevicePointer_v2"] = __cuMemHostGetDevicePointer_v2 + + global __cuMemHostGetFlags + data["__cuMemHostGetFlags"] = __cuMemHostGetFlags + + global __cuMemAllocManaged + data["__cuMemAllocManaged"] = __cuMemAllocManaged + + global __cuDeviceRegisterAsyncNotification + data["__cuDeviceRegisterAsyncNotification"] = __cuDeviceRegisterAsyncNotification + + global __cuDeviceUnregisterAsyncNotification + data["__cuDeviceUnregisterAsyncNotification"] = __cuDeviceUnregisterAsyncNotification + + global __cuDeviceGetByPCIBusId + data["__cuDeviceGetByPCIBusId"] = __cuDeviceGetByPCIBusId + + global __cuDeviceGetPCIBusId + data["__cuDeviceGetPCIBusId"] = __cuDeviceGetPCIBusId + + global __cuIpcGetEventHandle + data["__cuIpcGetEventHandle"] = __cuIpcGetEventHandle + + global __cuIpcOpenEventHandle + data["__cuIpcOpenEventHandle"] = __cuIpcOpenEventHandle + + global __cuIpcGetMemHandle + data["__cuIpcGetMemHandle"] = __cuIpcGetMemHandle + + global __cuIpcOpenMemHandle_v2 + data["__cuIpcOpenMemHandle_v2"] = __cuIpcOpenMemHandle_v2 + + global __cuIpcCloseMemHandle + data["__cuIpcCloseMemHandle"] = __cuIpcCloseMemHandle + + global __cuMemHostRegister_v2 + data["__cuMemHostRegister_v2"] = __cuMemHostRegister_v2 + + global __cuMemHostUnregister + data["__cuMemHostUnregister"] = __cuMemHostUnregister + + global __cuMemcpy + data["__cuMemcpy"] = __cuMemcpy + + global __cuMemcpyPeer + data["__cuMemcpyPeer"] = __cuMemcpyPeer + + global __cuMemcpyHtoD_v2 + data["__cuMemcpyHtoD_v2"] = __cuMemcpyHtoD_v2 + + global __cuMemcpyDtoH_v2 + data["__cuMemcpyDtoH_v2"] = __cuMemcpyDtoH_v2 + + global __cuMemcpyDtoD_v2 + data["__cuMemcpyDtoD_v2"] = __cuMemcpyDtoD_v2 + + global __cuMemcpyDtoA_v2 + data["__cuMemcpyDtoA_v2"] = __cuMemcpyDtoA_v2 + + global __cuMemcpyAtoD_v2 + data["__cuMemcpyAtoD_v2"] = __cuMemcpyAtoD_v2 + + global __cuMemcpyHtoA_v2 + data["__cuMemcpyHtoA_v2"] = __cuMemcpyHtoA_v2 + + global __cuMemcpyAtoH_v2 + data["__cuMemcpyAtoH_v2"] = __cuMemcpyAtoH_v2 + + global __cuMemcpyAtoA_v2 + data["__cuMemcpyAtoA_v2"] = __cuMemcpyAtoA_v2 + + global __cuMemcpy2D_v2 + data["__cuMemcpy2D_v2"] = __cuMemcpy2D_v2 + + global __cuMemcpy2DUnaligned_v2 + data["__cuMemcpy2DUnaligned_v2"] = __cuMemcpy2DUnaligned_v2 + + global __cuMemcpy3D_v2 + data["__cuMemcpy3D_v2"] = __cuMemcpy3D_v2 + + global __cuMemcpy3DPeer + data["__cuMemcpy3DPeer"] = __cuMemcpy3DPeer + + global __cuMemcpyAsync + data["__cuMemcpyAsync"] = __cuMemcpyAsync + + global __cuMemcpyPeerAsync + data["__cuMemcpyPeerAsync"] = __cuMemcpyPeerAsync + + global __cuMemcpyHtoDAsync_v2 + data["__cuMemcpyHtoDAsync_v2"] = __cuMemcpyHtoDAsync_v2 + + global __cuMemcpyDtoHAsync_v2 + data["__cuMemcpyDtoHAsync_v2"] = __cuMemcpyDtoHAsync_v2 + + global __cuMemcpyDtoDAsync_v2 + data["__cuMemcpyDtoDAsync_v2"] = __cuMemcpyDtoDAsync_v2 + + global __cuMemcpyHtoAAsync_v2 + data["__cuMemcpyHtoAAsync_v2"] = __cuMemcpyHtoAAsync_v2 + + global __cuMemcpyAtoHAsync_v2 + data["__cuMemcpyAtoHAsync_v2"] = __cuMemcpyAtoHAsync_v2 + + global __cuMemcpy2DAsync_v2 + data["__cuMemcpy2DAsync_v2"] = __cuMemcpy2DAsync_v2 + + global __cuMemcpy3DAsync_v2 + data["__cuMemcpy3DAsync_v2"] = __cuMemcpy3DAsync_v2 + + global __cuMemcpy3DPeerAsync + data["__cuMemcpy3DPeerAsync"] = __cuMemcpy3DPeerAsync + + global __cuMemsetD8_v2 + data["__cuMemsetD8_v2"] = __cuMemsetD8_v2 + + global __cuMemsetD16_v2 + data["__cuMemsetD16_v2"] = __cuMemsetD16_v2 + + global __cuMemsetD32_v2 + data["__cuMemsetD32_v2"] = __cuMemsetD32_v2 + + global __cuMemsetD2D8_v2 + data["__cuMemsetD2D8_v2"] = __cuMemsetD2D8_v2 + + global __cuMemsetD2D16_v2 + data["__cuMemsetD2D16_v2"] = __cuMemsetD2D16_v2 + + global __cuMemsetD2D32_v2 + data["__cuMemsetD2D32_v2"] = __cuMemsetD2D32_v2 + + global __cuMemsetD8Async + data["__cuMemsetD8Async"] = __cuMemsetD8Async + + global __cuMemsetD16Async + data["__cuMemsetD16Async"] = __cuMemsetD16Async + + global __cuMemsetD32Async + data["__cuMemsetD32Async"] = __cuMemsetD32Async + + global __cuMemsetD2D8Async + data["__cuMemsetD2D8Async"] = __cuMemsetD2D8Async + + global __cuMemsetD2D16Async + data["__cuMemsetD2D16Async"] = __cuMemsetD2D16Async + + global __cuMemsetD2D32Async + data["__cuMemsetD2D32Async"] = __cuMemsetD2D32Async + + global __cuArrayCreate_v2 + data["__cuArrayCreate_v2"] = __cuArrayCreate_v2 + + global __cuArrayGetDescriptor_v2 + data["__cuArrayGetDescriptor_v2"] = __cuArrayGetDescriptor_v2 + + global __cuArrayGetSparseProperties + data["__cuArrayGetSparseProperties"] = __cuArrayGetSparseProperties + + global __cuMipmappedArrayGetSparseProperties + data["__cuMipmappedArrayGetSparseProperties"] = __cuMipmappedArrayGetSparseProperties + + global __cuArrayGetMemoryRequirements + data["__cuArrayGetMemoryRequirements"] = __cuArrayGetMemoryRequirements + + global __cuMipmappedArrayGetMemoryRequirements + data["__cuMipmappedArrayGetMemoryRequirements"] = __cuMipmappedArrayGetMemoryRequirements + + global __cuArrayGetPlane + data["__cuArrayGetPlane"] = __cuArrayGetPlane + + global __cuArrayDestroy + data["__cuArrayDestroy"] = __cuArrayDestroy + + global __cuArray3DCreate_v2 + data["__cuArray3DCreate_v2"] = __cuArray3DCreate_v2 + + global __cuArray3DGetDescriptor_v2 + data["__cuArray3DGetDescriptor_v2"] = __cuArray3DGetDescriptor_v2 + + global __cuMipmappedArrayCreate + data["__cuMipmappedArrayCreate"] = __cuMipmappedArrayCreate + + global __cuMipmappedArrayGetLevel + data["__cuMipmappedArrayGetLevel"] = __cuMipmappedArrayGetLevel + + global __cuMipmappedArrayDestroy + data["__cuMipmappedArrayDestroy"] = __cuMipmappedArrayDestroy + + global __cuMemGetHandleForAddressRange + data["__cuMemGetHandleForAddressRange"] = __cuMemGetHandleForAddressRange + + global __cuMemBatchDecompressAsync + data["__cuMemBatchDecompressAsync"] = __cuMemBatchDecompressAsync + + global __cuMemAddressReserve + data["__cuMemAddressReserve"] = __cuMemAddressReserve + + global __cuMemAddressFree + data["__cuMemAddressFree"] = __cuMemAddressFree + + global __cuMemCreate + data["__cuMemCreate"] = __cuMemCreate + + global __cuMemRelease + data["__cuMemRelease"] = __cuMemRelease + + global __cuMemMap + data["__cuMemMap"] = __cuMemMap + + global __cuMemMapArrayAsync + data["__cuMemMapArrayAsync"] = __cuMemMapArrayAsync + + global __cuMemUnmap + data["__cuMemUnmap"] = __cuMemUnmap + + global __cuMemSetAccess + data["__cuMemSetAccess"] = __cuMemSetAccess + + global __cuMemGetAccess + data["__cuMemGetAccess"] = __cuMemGetAccess + + global __cuMemExportToShareableHandle + data["__cuMemExportToShareableHandle"] = __cuMemExportToShareableHandle + + global __cuMemImportFromShareableHandle + data["__cuMemImportFromShareableHandle"] = __cuMemImportFromShareableHandle + + global __cuMemGetAllocationGranularity + data["__cuMemGetAllocationGranularity"] = __cuMemGetAllocationGranularity + + global __cuMemGetAllocationPropertiesFromHandle + data["__cuMemGetAllocationPropertiesFromHandle"] = __cuMemGetAllocationPropertiesFromHandle + + global __cuMemRetainAllocationHandle + data["__cuMemRetainAllocationHandle"] = __cuMemRetainAllocationHandle + + global __cuMemFreeAsync + data["__cuMemFreeAsync"] = __cuMemFreeAsync + + global __cuMemAllocAsync + data["__cuMemAllocAsync"] = __cuMemAllocAsync + + global __cuMemPoolTrimTo + data["__cuMemPoolTrimTo"] = __cuMemPoolTrimTo + + global __cuMemPoolSetAttribute + data["__cuMemPoolSetAttribute"] = __cuMemPoolSetAttribute + + global __cuMemPoolGetAttribute + data["__cuMemPoolGetAttribute"] = __cuMemPoolGetAttribute + + global __cuMemPoolSetAccess + data["__cuMemPoolSetAccess"] = __cuMemPoolSetAccess + + global __cuMemPoolGetAccess + data["__cuMemPoolGetAccess"] = __cuMemPoolGetAccess + + global __cuMemPoolCreate + data["__cuMemPoolCreate"] = __cuMemPoolCreate + + global __cuMemPoolDestroy + data["__cuMemPoolDestroy"] = __cuMemPoolDestroy + + global __cuMemAllocFromPoolAsync + data["__cuMemAllocFromPoolAsync"] = __cuMemAllocFromPoolAsync + + global __cuMemPoolExportToShareableHandle + data["__cuMemPoolExportToShareableHandle"] = __cuMemPoolExportToShareableHandle + + global __cuMemPoolImportFromShareableHandle + data["__cuMemPoolImportFromShareableHandle"] = __cuMemPoolImportFromShareableHandle + + global __cuMemPoolExportPointer + data["__cuMemPoolExportPointer"] = __cuMemPoolExportPointer + + global __cuMemPoolImportPointer + data["__cuMemPoolImportPointer"] = __cuMemPoolImportPointer + + global __cuMulticastCreate + data["__cuMulticastCreate"] = __cuMulticastCreate + + global __cuMulticastAddDevice + data["__cuMulticastAddDevice"] = __cuMulticastAddDevice + + global __cuMulticastBindMem + data["__cuMulticastBindMem"] = __cuMulticastBindMem + + global __cuMulticastBindAddr + data["__cuMulticastBindAddr"] = __cuMulticastBindAddr + + global __cuMulticastUnbind + data["__cuMulticastUnbind"] = __cuMulticastUnbind + + global __cuMulticastGetGranularity + data["__cuMulticastGetGranularity"] = __cuMulticastGetGranularity + + global __cuPointerGetAttribute + data["__cuPointerGetAttribute"] = __cuPointerGetAttribute + + global __cuMemPrefetchAsync_v2 + data["__cuMemPrefetchAsync_v2"] = __cuMemPrefetchAsync_v2 + + global __cuMemAdvise_v2 + data["__cuMemAdvise_v2"] = __cuMemAdvise_v2 + + global __cuMemRangeGetAttribute + data["__cuMemRangeGetAttribute"] = __cuMemRangeGetAttribute + + global __cuMemRangeGetAttributes + data["__cuMemRangeGetAttributes"] = __cuMemRangeGetAttributes + + global __cuPointerSetAttribute + data["__cuPointerSetAttribute"] = __cuPointerSetAttribute + + global __cuPointerGetAttributes + data["__cuPointerGetAttributes"] = __cuPointerGetAttributes + + global __cuStreamCreate + data["__cuStreamCreate"] = __cuStreamCreate + + global __cuStreamCreateWithPriority + data["__cuStreamCreateWithPriority"] = __cuStreamCreateWithPriority + + global __cuStreamGetPriority + data["__cuStreamGetPriority"] = __cuStreamGetPriority + + global __cuStreamGetDevice + data["__cuStreamGetDevice"] = __cuStreamGetDevice + + global __cuStreamGetFlags + data["__cuStreamGetFlags"] = __cuStreamGetFlags + + global __cuStreamGetId + data["__cuStreamGetId"] = __cuStreamGetId + + global __cuStreamGetCtx + data["__cuStreamGetCtx"] = __cuStreamGetCtx + + global __cuStreamGetCtx_v2 + data["__cuStreamGetCtx_v2"] = __cuStreamGetCtx_v2 + + global __cuStreamWaitEvent + data["__cuStreamWaitEvent"] = __cuStreamWaitEvent + + global __cuStreamAddCallback + data["__cuStreamAddCallback"] = __cuStreamAddCallback + + global __cuStreamBeginCapture_v2 + data["__cuStreamBeginCapture_v2"] = __cuStreamBeginCapture_v2 + + global __cuStreamBeginCaptureToGraph + data["__cuStreamBeginCaptureToGraph"] = __cuStreamBeginCaptureToGraph + + global __cuThreadExchangeStreamCaptureMode + data["__cuThreadExchangeStreamCaptureMode"] = __cuThreadExchangeStreamCaptureMode + + global __cuStreamEndCapture + data["__cuStreamEndCapture"] = __cuStreamEndCapture + + global __cuStreamIsCapturing + data["__cuStreamIsCapturing"] = __cuStreamIsCapturing + + global __cuStreamGetCaptureInfo_v3 + data["__cuStreamGetCaptureInfo_v3"] = __cuStreamGetCaptureInfo_v3 + + global __cuStreamUpdateCaptureDependencies_v2 + data["__cuStreamUpdateCaptureDependencies_v2"] = __cuStreamUpdateCaptureDependencies_v2 + + global __cuStreamAttachMemAsync + data["__cuStreamAttachMemAsync"] = __cuStreamAttachMemAsync + + global __cuStreamQuery + data["__cuStreamQuery"] = __cuStreamQuery + + global __cuStreamSynchronize + data["__cuStreamSynchronize"] = __cuStreamSynchronize + + global __cuStreamDestroy_v2 + data["__cuStreamDestroy_v2"] = __cuStreamDestroy_v2 + + global __cuStreamCopyAttributes + data["__cuStreamCopyAttributes"] = __cuStreamCopyAttributes + + global __cuStreamGetAttribute + data["__cuStreamGetAttribute"] = __cuStreamGetAttribute + + global __cuStreamSetAttribute + data["__cuStreamSetAttribute"] = __cuStreamSetAttribute + + global __cuEventCreate + data["__cuEventCreate"] = __cuEventCreate + + global __cuEventRecord + data["__cuEventRecord"] = __cuEventRecord + + global __cuEventRecordWithFlags + data["__cuEventRecordWithFlags"] = __cuEventRecordWithFlags + + global __cuEventQuery + data["__cuEventQuery"] = __cuEventQuery + + global __cuEventSynchronize + data["__cuEventSynchronize"] = __cuEventSynchronize + + global __cuEventDestroy_v2 + data["__cuEventDestroy_v2"] = __cuEventDestroy_v2 + + global __cuEventElapsedTime_v2 + data["__cuEventElapsedTime_v2"] = __cuEventElapsedTime_v2 + + global __cuImportExternalMemory + data["__cuImportExternalMemory"] = __cuImportExternalMemory + + global __cuExternalMemoryGetMappedBuffer + data["__cuExternalMemoryGetMappedBuffer"] = __cuExternalMemoryGetMappedBuffer + + global __cuExternalMemoryGetMappedMipmappedArray + data["__cuExternalMemoryGetMappedMipmappedArray"] = __cuExternalMemoryGetMappedMipmappedArray + + global __cuDestroyExternalMemory + data["__cuDestroyExternalMemory"] = __cuDestroyExternalMemory + + global __cuImportExternalSemaphore + data["__cuImportExternalSemaphore"] = __cuImportExternalSemaphore + + global __cuSignalExternalSemaphoresAsync + data["__cuSignalExternalSemaphoresAsync"] = __cuSignalExternalSemaphoresAsync + + global __cuWaitExternalSemaphoresAsync + data["__cuWaitExternalSemaphoresAsync"] = __cuWaitExternalSemaphoresAsync + + global __cuDestroyExternalSemaphore + data["__cuDestroyExternalSemaphore"] = __cuDestroyExternalSemaphore + + global __cuStreamWaitValue32_v2 + data["__cuStreamWaitValue32_v2"] = __cuStreamWaitValue32_v2 + + global __cuStreamWaitValue64_v2 + data["__cuStreamWaitValue64_v2"] = __cuStreamWaitValue64_v2 + + global __cuStreamWriteValue32_v2 + data["__cuStreamWriteValue32_v2"] = __cuStreamWriteValue32_v2 + + global __cuStreamWriteValue64_v2 + data["__cuStreamWriteValue64_v2"] = __cuStreamWriteValue64_v2 + + global __cuStreamBatchMemOp_v2 + data["__cuStreamBatchMemOp_v2"] = __cuStreamBatchMemOp_v2 + + global __cuFuncGetAttribute + data["__cuFuncGetAttribute"] = __cuFuncGetAttribute + + global __cuFuncSetAttribute + data["__cuFuncSetAttribute"] = __cuFuncSetAttribute + + global __cuFuncSetCacheConfig + data["__cuFuncSetCacheConfig"] = __cuFuncSetCacheConfig + + global __cuFuncGetModule + data["__cuFuncGetModule"] = __cuFuncGetModule + + global __cuFuncGetName + data["__cuFuncGetName"] = __cuFuncGetName + + global __cuFuncGetParamInfo + data["__cuFuncGetParamInfo"] = __cuFuncGetParamInfo + + global __cuFuncIsLoaded + data["__cuFuncIsLoaded"] = __cuFuncIsLoaded + + global __cuFuncLoad + data["__cuFuncLoad"] = __cuFuncLoad + + global __cuLaunchKernel + data["__cuLaunchKernel"] = __cuLaunchKernel + + global __cuLaunchKernelEx + data["__cuLaunchKernelEx"] = __cuLaunchKernelEx + + global __cuLaunchCooperativeKernel + data["__cuLaunchCooperativeKernel"] = __cuLaunchCooperativeKernel + + global __cuLaunchCooperativeKernelMultiDevice + data["__cuLaunchCooperativeKernelMultiDevice"] = __cuLaunchCooperativeKernelMultiDevice + + global __cuLaunchHostFunc + data["__cuLaunchHostFunc"] = __cuLaunchHostFunc + + global __cuFuncSetBlockShape + data["__cuFuncSetBlockShape"] = __cuFuncSetBlockShape + + global __cuFuncSetSharedSize + data["__cuFuncSetSharedSize"] = __cuFuncSetSharedSize + + global __cuParamSetSize + data["__cuParamSetSize"] = __cuParamSetSize + + global __cuParamSeti + data["__cuParamSeti"] = __cuParamSeti + + global __cuParamSetf + data["__cuParamSetf"] = __cuParamSetf + + global __cuParamSetv + data["__cuParamSetv"] = __cuParamSetv + + global __cuLaunch + data["__cuLaunch"] = __cuLaunch + + global __cuLaunchGrid + data["__cuLaunchGrid"] = __cuLaunchGrid + + global __cuLaunchGridAsync + data["__cuLaunchGridAsync"] = __cuLaunchGridAsync + + global __cuParamSetTexRef + data["__cuParamSetTexRef"] = __cuParamSetTexRef + + global __cuFuncSetSharedMemConfig + data["__cuFuncSetSharedMemConfig"] = __cuFuncSetSharedMemConfig + + global __cuGraphCreate + data["__cuGraphCreate"] = __cuGraphCreate + + global __cuGraphAddKernelNode_v2 + data["__cuGraphAddKernelNode_v2"] = __cuGraphAddKernelNode_v2 + + global __cuGraphKernelNodeGetParams_v2 + data["__cuGraphKernelNodeGetParams_v2"] = __cuGraphKernelNodeGetParams_v2 + + global __cuGraphKernelNodeSetParams_v2 + data["__cuGraphKernelNodeSetParams_v2"] = __cuGraphKernelNodeSetParams_v2 + + global __cuGraphAddMemcpyNode + data["__cuGraphAddMemcpyNode"] = __cuGraphAddMemcpyNode + + global __cuGraphMemcpyNodeGetParams + data["__cuGraphMemcpyNodeGetParams"] = __cuGraphMemcpyNodeGetParams + + global __cuGraphMemcpyNodeSetParams + data["__cuGraphMemcpyNodeSetParams"] = __cuGraphMemcpyNodeSetParams + + global __cuGraphAddMemsetNode + data["__cuGraphAddMemsetNode"] = __cuGraphAddMemsetNode + + global __cuGraphMemsetNodeGetParams + data["__cuGraphMemsetNodeGetParams"] = __cuGraphMemsetNodeGetParams + + global __cuGraphMemsetNodeSetParams + data["__cuGraphMemsetNodeSetParams"] = __cuGraphMemsetNodeSetParams + + global __cuGraphAddHostNode + data["__cuGraphAddHostNode"] = __cuGraphAddHostNode + + global __cuGraphHostNodeGetParams + data["__cuGraphHostNodeGetParams"] = __cuGraphHostNodeGetParams + + global __cuGraphHostNodeSetParams + data["__cuGraphHostNodeSetParams"] = __cuGraphHostNodeSetParams + + global __cuGraphAddChildGraphNode + data["__cuGraphAddChildGraphNode"] = __cuGraphAddChildGraphNode + + global __cuGraphChildGraphNodeGetGraph + data["__cuGraphChildGraphNodeGetGraph"] = __cuGraphChildGraphNodeGetGraph + + global __cuGraphAddEmptyNode + data["__cuGraphAddEmptyNode"] = __cuGraphAddEmptyNode + + global __cuGraphAddEventRecordNode + data["__cuGraphAddEventRecordNode"] = __cuGraphAddEventRecordNode + + global __cuGraphEventRecordNodeGetEvent + data["__cuGraphEventRecordNodeGetEvent"] = __cuGraphEventRecordNodeGetEvent + + global __cuGraphEventRecordNodeSetEvent + data["__cuGraphEventRecordNodeSetEvent"] = __cuGraphEventRecordNodeSetEvent + + global __cuGraphAddEventWaitNode + data["__cuGraphAddEventWaitNode"] = __cuGraphAddEventWaitNode + + global __cuGraphEventWaitNodeGetEvent + data["__cuGraphEventWaitNodeGetEvent"] = __cuGraphEventWaitNodeGetEvent + + global __cuGraphEventWaitNodeSetEvent + data["__cuGraphEventWaitNodeSetEvent"] = __cuGraphEventWaitNodeSetEvent + + global __cuGraphAddExternalSemaphoresSignalNode + data["__cuGraphAddExternalSemaphoresSignalNode"] = __cuGraphAddExternalSemaphoresSignalNode + + global __cuGraphExternalSemaphoresSignalNodeGetParams + data["__cuGraphExternalSemaphoresSignalNodeGetParams"] = __cuGraphExternalSemaphoresSignalNodeGetParams + + global __cuGraphExternalSemaphoresSignalNodeSetParams + data["__cuGraphExternalSemaphoresSignalNodeSetParams"] = __cuGraphExternalSemaphoresSignalNodeSetParams + + global __cuGraphAddExternalSemaphoresWaitNode + data["__cuGraphAddExternalSemaphoresWaitNode"] = __cuGraphAddExternalSemaphoresWaitNode + + global __cuGraphExternalSemaphoresWaitNodeGetParams + data["__cuGraphExternalSemaphoresWaitNodeGetParams"] = __cuGraphExternalSemaphoresWaitNodeGetParams + + global __cuGraphExternalSemaphoresWaitNodeSetParams + data["__cuGraphExternalSemaphoresWaitNodeSetParams"] = __cuGraphExternalSemaphoresWaitNodeSetParams + + global __cuGraphAddBatchMemOpNode + data["__cuGraphAddBatchMemOpNode"] = __cuGraphAddBatchMemOpNode + + global __cuGraphBatchMemOpNodeGetParams + data["__cuGraphBatchMemOpNodeGetParams"] = __cuGraphBatchMemOpNodeGetParams + + global __cuGraphBatchMemOpNodeSetParams + data["__cuGraphBatchMemOpNodeSetParams"] = __cuGraphBatchMemOpNodeSetParams + + global __cuGraphExecBatchMemOpNodeSetParams + data["__cuGraphExecBatchMemOpNodeSetParams"] = __cuGraphExecBatchMemOpNodeSetParams + + global __cuGraphAddMemAllocNode + data["__cuGraphAddMemAllocNode"] = __cuGraphAddMemAllocNode + + global __cuGraphMemAllocNodeGetParams + data["__cuGraphMemAllocNodeGetParams"] = __cuGraphMemAllocNodeGetParams + + global __cuGraphAddMemFreeNode + data["__cuGraphAddMemFreeNode"] = __cuGraphAddMemFreeNode + + global __cuGraphMemFreeNodeGetParams + data["__cuGraphMemFreeNodeGetParams"] = __cuGraphMemFreeNodeGetParams + + global __cuDeviceGraphMemTrim + data["__cuDeviceGraphMemTrim"] = __cuDeviceGraphMemTrim + + global __cuDeviceGetGraphMemAttribute + data["__cuDeviceGetGraphMemAttribute"] = __cuDeviceGetGraphMemAttribute + + global __cuDeviceSetGraphMemAttribute + data["__cuDeviceSetGraphMemAttribute"] = __cuDeviceSetGraphMemAttribute + + global __cuGraphClone + data["__cuGraphClone"] = __cuGraphClone + + global __cuGraphNodeFindInClone + data["__cuGraphNodeFindInClone"] = __cuGraphNodeFindInClone + + global __cuGraphNodeGetType + data["__cuGraphNodeGetType"] = __cuGraphNodeGetType + + global __cuGraphGetNodes + data["__cuGraphGetNodes"] = __cuGraphGetNodes + + global __cuGraphGetRootNodes + data["__cuGraphGetRootNodes"] = __cuGraphGetRootNodes + + global __cuGraphGetEdges_v2 + data["__cuGraphGetEdges_v2"] = __cuGraphGetEdges_v2 + + global __cuGraphNodeGetDependencies_v2 + data["__cuGraphNodeGetDependencies_v2"] = __cuGraphNodeGetDependencies_v2 + + global __cuGraphNodeGetDependentNodes_v2 + data["__cuGraphNodeGetDependentNodes_v2"] = __cuGraphNodeGetDependentNodes_v2 + + global __cuGraphAddDependencies_v2 + data["__cuGraphAddDependencies_v2"] = __cuGraphAddDependencies_v2 + + global __cuGraphRemoveDependencies_v2 + data["__cuGraphRemoveDependencies_v2"] = __cuGraphRemoveDependencies_v2 + + global __cuGraphDestroyNode + data["__cuGraphDestroyNode"] = __cuGraphDestroyNode + + global __cuGraphInstantiateWithFlags + data["__cuGraphInstantiateWithFlags"] = __cuGraphInstantiateWithFlags + + global __cuGraphInstantiateWithParams + data["__cuGraphInstantiateWithParams"] = __cuGraphInstantiateWithParams + + global __cuGraphExecGetFlags + data["__cuGraphExecGetFlags"] = __cuGraphExecGetFlags + + global __cuGraphExecKernelNodeSetParams_v2 + data["__cuGraphExecKernelNodeSetParams_v2"] = __cuGraphExecKernelNodeSetParams_v2 + + global __cuGraphExecMemcpyNodeSetParams + data["__cuGraphExecMemcpyNodeSetParams"] = __cuGraphExecMemcpyNodeSetParams + + global __cuGraphExecMemsetNodeSetParams + data["__cuGraphExecMemsetNodeSetParams"] = __cuGraphExecMemsetNodeSetParams + + global __cuGraphExecHostNodeSetParams + data["__cuGraphExecHostNodeSetParams"] = __cuGraphExecHostNodeSetParams + + global __cuGraphExecChildGraphNodeSetParams + data["__cuGraphExecChildGraphNodeSetParams"] = __cuGraphExecChildGraphNodeSetParams + + global __cuGraphExecEventRecordNodeSetEvent + data["__cuGraphExecEventRecordNodeSetEvent"] = __cuGraphExecEventRecordNodeSetEvent + + global __cuGraphExecEventWaitNodeSetEvent + data["__cuGraphExecEventWaitNodeSetEvent"] = __cuGraphExecEventWaitNodeSetEvent + + global __cuGraphExecExternalSemaphoresSignalNodeSetParams + data["__cuGraphExecExternalSemaphoresSignalNodeSetParams"] = __cuGraphExecExternalSemaphoresSignalNodeSetParams + + global __cuGraphExecExternalSemaphoresWaitNodeSetParams + data["__cuGraphExecExternalSemaphoresWaitNodeSetParams"] = __cuGraphExecExternalSemaphoresWaitNodeSetParams + + global __cuGraphNodeSetEnabled + data["__cuGraphNodeSetEnabled"] = __cuGraphNodeSetEnabled + + global __cuGraphNodeGetEnabled + data["__cuGraphNodeGetEnabled"] = __cuGraphNodeGetEnabled + + global __cuGraphUpload + data["__cuGraphUpload"] = __cuGraphUpload + + global __cuGraphLaunch + data["__cuGraphLaunch"] = __cuGraphLaunch + + global __cuGraphExecDestroy + data["__cuGraphExecDestroy"] = __cuGraphExecDestroy + + global __cuGraphDestroy + data["__cuGraphDestroy"] = __cuGraphDestroy + + global __cuGraphExecUpdate_v2 + data["__cuGraphExecUpdate_v2"] = __cuGraphExecUpdate_v2 + + global __cuGraphKernelNodeCopyAttributes + data["__cuGraphKernelNodeCopyAttributes"] = __cuGraphKernelNodeCopyAttributes + + global __cuGraphKernelNodeGetAttribute + data["__cuGraphKernelNodeGetAttribute"] = __cuGraphKernelNodeGetAttribute + + global __cuGraphKernelNodeSetAttribute + data["__cuGraphKernelNodeSetAttribute"] = __cuGraphKernelNodeSetAttribute + + global __cuGraphDebugDotPrint + data["__cuGraphDebugDotPrint"] = __cuGraphDebugDotPrint + + global __cuUserObjectCreate + data["__cuUserObjectCreate"] = __cuUserObjectCreate + + global __cuUserObjectRetain + data["__cuUserObjectRetain"] = __cuUserObjectRetain + + global __cuUserObjectRelease + data["__cuUserObjectRelease"] = __cuUserObjectRelease + + global __cuGraphRetainUserObject + data["__cuGraphRetainUserObject"] = __cuGraphRetainUserObject + + global __cuGraphReleaseUserObject + data["__cuGraphReleaseUserObject"] = __cuGraphReleaseUserObject + + global __cuGraphAddNode_v2 + data["__cuGraphAddNode_v2"] = __cuGraphAddNode_v2 + + global __cuGraphNodeSetParams + data["__cuGraphNodeSetParams"] = __cuGraphNodeSetParams + + global __cuGraphExecNodeSetParams + data["__cuGraphExecNodeSetParams"] = __cuGraphExecNodeSetParams + + global __cuGraphConditionalHandleCreate + data["__cuGraphConditionalHandleCreate"] = __cuGraphConditionalHandleCreate + + global __cuOccupancyMaxActiveBlocksPerMultiprocessor + data["__cuOccupancyMaxActiveBlocksPerMultiprocessor"] = __cuOccupancyMaxActiveBlocksPerMultiprocessor + + global __cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags + data["__cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags"] = __cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags + + global __cuOccupancyMaxPotentialBlockSize + data["__cuOccupancyMaxPotentialBlockSize"] = __cuOccupancyMaxPotentialBlockSize + + global __cuOccupancyMaxPotentialBlockSizeWithFlags + data["__cuOccupancyMaxPotentialBlockSizeWithFlags"] = __cuOccupancyMaxPotentialBlockSizeWithFlags + + global __cuOccupancyAvailableDynamicSMemPerBlock + data["__cuOccupancyAvailableDynamicSMemPerBlock"] = __cuOccupancyAvailableDynamicSMemPerBlock + + global __cuOccupancyMaxPotentialClusterSize + data["__cuOccupancyMaxPotentialClusterSize"] = __cuOccupancyMaxPotentialClusterSize + + global __cuOccupancyMaxActiveClusters + data["__cuOccupancyMaxActiveClusters"] = __cuOccupancyMaxActiveClusters + + global __cuTexRefSetArray + data["__cuTexRefSetArray"] = __cuTexRefSetArray + + global __cuTexRefSetMipmappedArray + data["__cuTexRefSetMipmappedArray"] = __cuTexRefSetMipmappedArray + + global __cuTexRefSetAddress_v2 + data["__cuTexRefSetAddress_v2"] = __cuTexRefSetAddress_v2 + + global __cuTexRefSetAddress2D_v3 + data["__cuTexRefSetAddress2D_v3"] = __cuTexRefSetAddress2D_v3 + + global __cuTexRefSetFormat + data["__cuTexRefSetFormat"] = __cuTexRefSetFormat + + global __cuTexRefSetAddressMode + data["__cuTexRefSetAddressMode"] = __cuTexRefSetAddressMode + + global __cuTexRefSetFilterMode + data["__cuTexRefSetFilterMode"] = __cuTexRefSetFilterMode + + global __cuTexRefSetMipmapFilterMode + data["__cuTexRefSetMipmapFilterMode"] = __cuTexRefSetMipmapFilterMode + + global __cuTexRefSetMipmapLevelBias + data["__cuTexRefSetMipmapLevelBias"] = __cuTexRefSetMipmapLevelBias + + global __cuTexRefSetMipmapLevelClamp + data["__cuTexRefSetMipmapLevelClamp"] = __cuTexRefSetMipmapLevelClamp + + global __cuTexRefSetMaxAnisotropy + data["__cuTexRefSetMaxAnisotropy"] = __cuTexRefSetMaxAnisotropy + + global __cuTexRefSetBorderColor + data["__cuTexRefSetBorderColor"] = __cuTexRefSetBorderColor + + global __cuTexRefSetFlags + data["__cuTexRefSetFlags"] = __cuTexRefSetFlags + + global __cuTexRefGetAddress_v2 + data["__cuTexRefGetAddress_v2"] = __cuTexRefGetAddress_v2 + + global __cuTexRefGetArray + data["__cuTexRefGetArray"] = __cuTexRefGetArray + + global __cuTexRefGetMipmappedArray + data["__cuTexRefGetMipmappedArray"] = __cuTexRefGetMipmappedArray + + global __cuTexRefGetAddressMode + data["__cuTexRefGetAddressMode"] = __cuTexRefGetAddressMode + + global __cuTexRefGetFilterMode + data["__cuTexRefGetFilterMode"] = __cuTexRefGetFilterMode + + global __cuTexRefGetFormat + data["__cuTexRefGetFormat"] = __cuTexRefGetFormat + + global __cuTexRefGetMipmapFilterMode + data["__cuTexRefGetMipmapFilterMode"] = __cuTexRefGetMipmapFilterMode + + global __cuTexRefGetMipmapLevelBias + data["__cuTexRefGetMipmapLevelBias"] = __cuTexRefGetMipmapLevelBias + + global __cuTexRefGetMipmapLevelClamp + data["__cuTexRefGetMipmapLevelClamp"] = __cuTexRefGetMipmapLevelClamp + + global __cuTexRefGetMaxAnisotropy + data["__cuTexRefGetMaxAnisotropy"] = __cuTexRefGetMaxAnisotropy + + global __cuTexRefGetBorderColor + data["__cuTexRefGetBorderColor"] = __cuTexRefGetBorderColor + + global __cuTexRefGetFlags + data["__cuTexRefGetFlags"] = __cuTexRefGetFlags + + global __cuTexRefCreate + data["__cuTexRefCreate"] = __cuTexRefCreate + + global __cuTexRefDestroy + data["__cuTexRefDestroy"] = __cuTexRefDestroy + + global __cuSurfRefSetArray + data["__cuSurfRefSetArray"] = __cuSurfRefSetArray + + global __cuSurfRefGetArray + data["__cuSurfRefGetArray"] = __cuSurfRefGetArray + + global __cuTexObjectCreate + data["__cuTexObjectCreate"] = __cuTexObjectCreate + + global __cuTexObjectDestroy + data["__cuTexObjectDestroy"] = __cuTexObjectDestroy + + global __cuTexObjectGetResourceDesc + data["__cuTexObjectGetResourceDesc"] = __cuTexObjectGetResourceDesc + + global __cuTexObjectGetTextureDesc + data["__cuTexObjectGetTextureDesc"] = __cuTexObjectGetTextureDesc + + global __cuTexObjectGetResourceViewDesc + data["__cuTexObjectGetResourceViewDesc"] = __cuTexObjectGetResourceViewDesc + + global __cuSurfObjectCreate + data["__cuSurfObjectCreate"] = __cuSurfObjectCreate + + global __cuSurfObjectDestroy + data["__cuSurfObjectDestroy"] = __cuSurfObjectDestroy + + global __cuSurfObjectGetResourceDesc + data["__cuSurfObjectGetResourceDesc"] = __cuSurfObjectGetResourceDesc + + global __cuTensorMapEncodeTiled + data["__cuTensorMapEncodeTiled"] = __cuTensorMapEncodeTiled + + global __cuTensorMapEncodeIm2col + data["__cuTensorMapEncodeIm2col"] = __cuTensorMapEncodeIm2col + + global __cuTensorMapEncodeIm2colWide + data["__cuTensorMapEncodeIm2colWide"] = __cuTensorMapEncodeIm2colWide + + global __cuTensorMapReplaceAddress + data["__cuTensorMapReplaceAddress"] = __cuTensorMapReplaceAddress + + global __cuDeviceCanAccessPeer + data["__cuDeviceCanAccessPeer"] = __cuDeviceCanAccessPeer + + global __cuCtxEnablePeerAccess + data["__cuCtxEnablePeerAccess"] = __cuCtxEnablePeerAccess + + global __cuCtxDisablePeerAccess + data["__cuCtxDisablePeerAccess"] = __cuCtxDisablePeerAccess + + global __cuDeviceGetP2PAttribute + data["__cuDeviceGetP2PAttribute"] = __cuDeviceGetP2PAttribute + + global __cuGraphicsUnregisterResource + data["__cuGraphicsUnregisterResource"] = __cuGraphicsUnregisterResource + + global __cuGraphicsSubResourceGetMappedArray + data["__cuGraphicsSubResourceGetMappedArray"] = __cuGraphicsSubResourceGetMappedArray + + global __cuGraphicsResourceGetMappedMipmappedArray + data["__cuGraphicsResourceGetMappedMipmappedArray"] = __cuGraphicsResourceGetMappedMipmappedArray + + global __cuGraphicsResourceGetMappedPointer_v2 + data["__cuGraphicsResourceGetMappedPointer_v2"] = __cuGraphicsResourceGetMappedPointer_v2 + + global __cuGraphicsResourceSetMapFlags_v2 + data["__cuGraphicsResourceSetMapFlags_v2"] = __cuGraphicsResourceSetMapFlags_v2 + + global __cuGraphicsMapResources + data["__cuGraphicsMapResources"] = __cuGraphicsMapResources + + global __cuGraphicsUnmapResources + data["__cuGraphicsUnmapResources"] = __cuGraphicsUnmapResources + + global __cuGetProcAddress_v2 + data["__cuGetProcAddress_v2"] = __cuGetProcAddress_v2 + + global __cuCoredumpGetAttribute + data["__cuCoredumpGetAttribute"] = __cuCoredumpGetAttribute + + global __cuCoredumpGetAttributeGlobal + data["__cuCoredumpGetAttributeGlobal"] = __cuCoredumpGetAttributeGlobal + + global __cuCoredumpSetAttribute + data["__cuCoredumpSetAttribute"] = __cuCoredumpSetAttribute + + global __cuCoredumpSetAttributeGlobal + data["__cuCoredumpSetAttributeGlobal"] = __cuCoredumpSetAttributeGlobal + + global __cuGetExportTable + data["__cuGetExportTable"] = __cuGetExportTable + + global __cuGreenCtxCreate + data["__cuGreenCtxCreate"] = __cuGreenCtxCreate + + global __cuGreenCtxDestroy + data["__cuGreenCtxDestroy"] = __cuGreenCtxDestroy + + global __cuCtxFromGreenCtx + data["__cuCtxFromGreenCtx"] = __cuCtxFromGreenCtx + + global __cuDeviceGetDevResource + data["__cuDeviceGetDevResource"] = __cuDeviceGetDevResource + + global __cuCtxGetDevResource + data["__cuCtxGetDevResource"] = __cuCtxGetDevResource + + global __cuGreenCtxGetDevResource + data["__cuGreenCtxGetDevResource"] = __cuGreenCtxGetDevResource + + global __cuDevSmResourceSplitByCount + data["__cuDevSmResourceSplitByCount"] = __cuDevSmResourceSplitByCount + + global __cuDevResourceGenerateDesc + data["__cuDevResourceGenerateDesc"] = __cuDevResourceGenerateDesc + + global __cuGreenCtxRecordEvent + data["__cuGreenCtxRecordEvent"] = __cuGreenCtxRecordEvent + + global __cuGreenCtxWaitEvent + data["__cuGreenCtxWaitEvent"] = __cuGreenCtxWaitEvent + + global __cuStreamGetGreenCtx + data["__cuStreamGetGreenCtx"] = __cuStreamGetGreenCtx + + global __cuGreenCtxStreamCreate + data["__cuGreenCtxStreamCreate"] = __cuGreenCtxStreamCreate + + global __cuLogsRegisterCallback + data["__cuLogsRegisterCallback"] = __cuLogsRegisterCallback + + global __cuLogsUnregisterCallback + data["__cuLogsUnregisterCallback"] = __cuLogsUnregisterCallback + + global __cuLogsCurrent + data["__cuLogsCurrent"] = __cuLogsCurrent + + global __cuLogsDumpToFile + data["__cuLogsDumpToFile"] = __cuLogsDumpToFile + + global __cuLogsDumpToMemory + data["__cuLogsDumpToMemory"] = __cuLogsDumpToMemory + + global __cuCheckpointProcessGetRestoreThreadId + data["__cuCheckpointProcessGetRestoreThreadId"] = __cuCheckpointProcessGetRestoreThreadId + + global __cuCheckpointProcessGetState + data["__cuCheckpointProcessGetState"] = __cuCheckpointProcessGetState + + global __cuCheckpointProcessLock + data["__cuCheckpointProcessLock"] = __cuCheckpointProcessLock + + global __cuCheckpointProcessCheckpoint + data["__cuCheckpointProcessCheckpoint"] = __cuCheckpointProcessCheckpoint + + global __cuCheckpointProcessRestore + data["__cuCheckpointProcessRestore"] = __cuCheckpointProcessRestore + + global __cuCheckpointProcessUnlock + data["__cuCheckpointProcessUnlock"] = __cuCheckpointProcessUnlock + + global __cuGraphicsEGLRegisterImage + data["__cuGraphicsEGLRegisterImage"] = __cuGraphicsEGLRegisterImage + + global __cuEGLStreamConsumerConnect + data["__cuEGLStreamConsumerConnect"] = __cuEGLStreamConsumerConnect + + global __cuEGLStreamConsumerConnectWithFlags + data["__cuEGLStreamConsumerConnectWithFlags"] = __cuEGLStreamConsumerConnectWithFlags + + global __cuEGLStreamConsumerDisconnect + data["__cuEGLStreamConsumerDisconnect"] = __cuEGLStreamConsumerDisconnect + + global __cuEGLStreamConsumerAcquireFrame + data["__cuEGLStreamConsumerAcquireFrame"] = __cuEGLStreamConsumerAcquireFrame + + global __cuEGLStreamConsumerReleaseFrame + data["__cuEGLStreamConsumerReleaseFrame"] = __cuEGLStreamConsumerReleaseFrame + + global __cuEGLStreamProducerConnect + data["__cuEGLStreamProducerConnect"] = __cuEGLStreamProducerConnect + + global __cuEGLStreamProducerDisconnect + data["__cuEGLStreamProducerDisconnect"] = __cuEGLStreamProducerDisconnect + + global __cuEGLStreamProducerPresentFrame + data["__cuEGLStreamProducerPresentFrame"] = __cuEGLStreamProducerPresentFrame + + global __cuEGLStreamProducerReturnFrame + data["__cuEGLStreamProducerReturnFrame"] = __cuEGLStreamProducerReturnFrame + + global __cuGraphicsResourceGetMappedEglFrame + data["__cuGraphicsResourceGetMappedEglFrame"] = __cuGraphicsResourceGetMappedEglFrame + + global __cuEventCreateFromEGLSync + data["__cuEventCreateFromEGLSync"] = __cuEventCreateFromEGLSync + + global __cuGraphicsGLRegisterBuffer + data["__cuGraphicsGLRegisterBuffer"] = __cuGraphicsGLRegisterBuffer + + global __cuGraphicsGLRegisterImage + data["__cuGraphicsGLRegisterImage"] = __cuGraphicsGLRegisterImage + + global __cuGLGetDevices_v2 + data["__cuGLGetDevices_v2"] = __cuGLGetDevices_v2 + + global __cuGLCtxCreate_v2 + data["__cuGLCtxCreate_v2"] = __cuGLCtxCreate_v2 + + global __cuGLInit + data["__cuGLInit"] = __cuGLInit + + global __cuGLRegisterBufferObject + data["__cuGLRegisterBufferObject"] = __cuGLRegisterBufferObject + + global __cuGLMapBufferObject_v2 + data["__cuGLMapBufferObject_v2"] = __cuGLMapBufferObject_v2 + + global __cuGLUnmapBufferObject + data["__cuGLUnmapBufferObject"] = __cuGLUnmapBufferObject + + global __cuGLUnregisterBufferObject + data["__cuGLUnregisterBufferObject"] = __cuGLUnregisterBufferObject + + global __cuGLSetBufferObjectMapFlags + data["__cuGLSetBufferObjectMapFlags"] = __cuGLSetBufferObjectMapFlags + + global __cuGLMapBufferObjectAsync_v2 + data["__cuGLMapBufferObjectAsync_v2"] = __cuGLMapBufferObjectAsync_v2 + + global __cuGLUnmapBufferObjectAsync + data["__cuGLUnmapBufferObjectAsync"] = __cuGLUnmapBufferObjectAsync + + global __cuProfilerInitialize + data["__cuProfilerInitialize"] = __cuProfilerInitialize + + global __cuProfilerStart + data["__cuProfilerStart"] = __cuProfilerStart + + global __cuProfilerStop + data["__cuProfilerStop"] = __cuProfilerStop + + global __cuVDPAUGetDevice + data["__cuVDPAUGetDevice"] = __cuVDPAUGetDevice + + global __cuVDPAUCtxCreate_v2 + data["__cuVDPAUCtxCreate_v2"] = __cuVDPAUCtxCreate_v2 + + global __cuGraphicsVDPAURegisterVideoSurface + data["__cuGraphicsVDPAURegisterVideoSurface"] = __cuGraphicsVDPAURegisterVideoSurface + + global __cuGraphicsVDPAURegisterOutputSurface + data["__cuGraphicsVDPAURegisterOutputSurface"] = __cuGraphicsVDPAURegisterOutputSurface + + global __cuDeviceGetHostAtomicCapabilities + data["__cuDeviceGetHostAtomicCapabilities"] = __cuDeviceGetHostAtomicCapabilities + + global __cuCtxGetDevice_v2 + data["__cuCtxGetDevice_v2"] = __cuCtxGetDevice_v2 + + global __cuCtxSynchronize_v2 + data["__cuCtxSynchronize_v2"] = __cuCtxSynchronize_v2 + + global __cuMemcpyBatchAsync_v2 + data["__cuMemcpyBatchAsync_v2"] = __cuMemcpyBatchAsync_v2 + + global __cuMemcpy3DBatchAsync_v2 + data["__cuMemcpy3DBatchAsync_v2"] = __cuMemcpy3DBatchAsync_v2 + + global __cuMemGetDefaultMemPool + data["__cuMemGetDefaultMemPool"] = __cuMemGetDefaultMemPool + + global __cuMemGetMemPool + data["__cuMemGetMemPool"] = __cuMemGetMemPool + + global __cuMemSetMemPool + data["__cuMemSetMemPool"] = __cuMemSetMemPool + + global __cuMulticastBindMem_v2 + data["__cuMulticastBindMem_v2"] = __cuMulticastBindMem_v2 + + global __cuMulticastBindAddr_v2 + data["__cuMulticastBindAddr_v2"] = __cuMulticastBindAddr_v2 + + global __cuMemPrefetchBatchAsync + data["__cuMemPrefetchBatchAsync"] = __cuMemPrefetchBatchAsync + + global __cuMemDiscardBatchAsync + data["__cuMemDiscardBatchAsync"] = __cuMemDiscardBatchAsync + + global __cuMemDiscardAndPrefetchBatchAsync + data["__cuMemDiscardAndPrefetchBatchAsync"] = __cuMemDiscardAndPrefetchBatchAsync + + global __cuGraphNodeGetContainingGraph + data["__cuGraphNodeGetContainingGraph"] = __cuGraphNodeGetContainingGraph + + global __cuGraphNodeGetLocalId + data["__cuGraphNodeGetLocalId"] = __cuGraphNodeGetLocalId + + global __cuGraphNodeGetToolsId + data["__cuGraphNodeGetToolsId"] = __cuGraphNodeGetToolsId + + global __cuGraphGetId + data["__cuGraphGetId"] = __cuGraphGetId + + global __cuGraphExecGetId + data["__cuGraphExecGetId"] = __cuGraphExecGetId + + global __cuDeviceGetP2PAtomicCapabilities + data["__cuDeviceGetP2PAtomicCapabilities"] = __cuDeviceGetP2PAtomicCapabilities + + global __cuDevSmResourceSplit + data["__cuDevSmResourceSplit"] = __cuDevSmResourceSplit + + global __cuGreenCtxGetId + data["__cuGreenCtxGetId"] = __cuGreenCtxGetId + + global __cuStreamGetDevResource + data["__cuStreamGetDevResource"] = __cuStreamGetDevResource + + global __cuKernelGetParamCount + data["__cuKernelGetParamCount"] = __cuKernelGetParamCount + + global __cuMemcpyWithAttributesAsync + data["__cuMemcpyWithAttributesAsync"] = __cuMemcpyWithAttributesAsync + + global __cuMemcpy3DWithAttributesAsync + data["__cuMemcpy3DWithAttributesAsync"] = __cuMemcpy3DWithAttributesAsync + + global __cuStreamBeginCaptureToCig + data["__cuStreamBeginCaptureToCig"] = __cuStreamBeginCaptureToCig + + global __cuStreamEndCaptureToCig + data["__cuStreamEndCaptureToCig"] = __cuStreamEndCaptureToCig + + global __cuFuncGetParamCount + data["__cuFuncGetParamCount"] = __cuFuncGetParamCount + + global __cuLaunchHostFunc_v2 + data["__cuLaunchHostFunc_v2"] = __cuLaunchHostFunc_v2 + + global __cuGraphNodeGetParams + data["__cuGraphNodeGetParams"] = __cuGraphNodeGetParams + + global __cuCoredumpRegisterStartCallback + data["__cuCoredumpRegisterStartCallback"] = __cuCoredumpRegisterStartCallback + + global __cuCoredumpRegisterCompleteCallback + data["__cuCoredumpRegisterCompleteCallback"] = __cuCoredumpRegisterCompleteCallback + + global __cuCoredumpDeregisterStartCallback + data["__cuCoredumpDeregisterStartCallback"] = __cuCoredumpDeregisterStartCallback + + global __cuCoredumpDeregisterCompleteCallback + data["__cuCoredumpDeregisterCompleteCallback"] = __cuCoredumpDeregisterCompleteCallback + + func_ptrs = data + return data + + +cpdef _inspect_function_pointer(str name): + global func_ptrs + if func_ptrs is None: + func_ptrs = _inspect_function_pointers() + return func_ptrs[name] + + +############################################################################### +# Wrapper functions +############################################################################### + +cdef CUresult _cuGetErrorString(CUresult error, const char** pStr) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGetErrorString + _check_or_init_driver() + if __cuGetErrorString == NULL: + with gil: + raise FunctionNotFoundError("function cuGetErrorString is not found") + return (__cuGetErrorString)( + error, pStr) + + +cdef CUresult _cuGetErrorName(CUresult error, const char** pStr) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGetErrorName + _check_or_init_driver() + if __cuGetErrorName == NULL: + with gil: + raise FunctionNotFoundError("function cuGetErrorName is not found") + return (__cuGetErrorName)( + error, pStr) + + +cdef CUresult _cuInit(unsigned int Flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuInit + _check_or_init_driver() + if __cuInit == NULL: + with gil: + raise FunctionNotFoundError("function cuInit is not found") + return (__cuInit)( + Flags) + + +cdef CUresult _cuDriverGetVersion(int* driverVersion) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuDriverGetVersion + _check_or_init_driver() + if __cuDriverGetVersion == NULL: + with gil: + raise FunctionNotFoundError("function cuDriverGetVersion is not found") + return (__cuDriverGetVersion)( + driverVersion) + + +cdef CUresult _cuDeviceGet(CUdevice* device, int ordinal) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuDeviceGet + _check_or_init_driver() + if __cuDeviceGet == NULL: + with gil: + raise FunctionNotFoundError("function cuDeviceGet is not found") + return (__cuDeviceGet)( + device, ordinal) + + +cdef CUresult _cuDeviceGetCount(int* count) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuDeviceGetCount + _check_or_init_driver() + if __cuDeviceGetCount == NULL: + with gil: + raise FunctionNotFoundError("function cuDeviceGetCount is not found") + return (__cuDeviceGetCount)( + count) + + +cdef CUresult _cuDeviceGetName(char* name, int len, CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuDeviceGetName + _check_or_init_driver() + if __cuDeviceGetName == NULL: + with gil: + raise FunctionNotFoundError("function cuDeviceGetName is not found") + return (__cuDeviceGetName)( + name, len, dev) + + +cdef CUresult _cuDeviceGetUuid_v2(CUuuid* uuid, CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuDeviceGetUuid_v2 + _check_or_init_driver() + if __cuDeviceGetUuid_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuDeviceGetUuid_v2 is not found") + return (__cuDeviceGetUuid_v2)( + uuid, dev) + + +cdef CUresult _cuDeviceGetLuid(char* luid, unsigned int* deviceNodeMask, CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuDeviceGetLuid + _check_or_init_driver() + if __cuDeviceGetLuid == NULL: + with gil: + raise FunctionNotFoundError("function cuDeviceGetLuid is not found") + return (__cuDeviceGetLuid)( + luid, deviceNodeMask, dev) + + +cdef CUresult _cuDeviceTotalMem_v2(size_t* bytes, CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuDeviceTotalMem_v2 + _check_or_init_driver() + if __cuDeviceTotalMem_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuDeviceTotalMem_v2 is not found") + return (__cuDeviceTotalMem_v2)( + bytes, dev) + + +cdef CUresult _cuDeviceGetTexture1DLinearMaxWidth(size_t* maxWidthInElements, CUarray_format format, unsigned numChannels, CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuDeviceGetTexture1DLinearMaxWidth + _check_or_init_driver() + if __cuDeviceGetTexture1DLinearMaxWidth == NULL: + with gil: + raise FunctionNotFoundError("function cuDeviceGetTexture1DLinearMaxWidth is not found") + return (__cuDeviceGetTexture1DLinearMaxWidth)( + maxWidthInElements, format, numChannels, dev) + + +cdef CUresult _cuDeviceGetAttribute(int* pi, CUdevice_attribute attrib, CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuDeviceGetAttribute + _check_or_init_driver() + if __cuDeviceGetAttribute == NULL: + with gil: + raise FunctionNotFoundError("function cuDeviceGetAttribute is not found") + return (__cuDeviceGetAttribute)( + pi, attrib, dev) + + +cdef CUresult _cuDeviceGetNvSciSyncAttributes(void* nvSciSyncAttrList, CUdevice dev, int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuDeviceGetNvSciSyncAttributes + _check_or_init_driver() + if __cuDeviceGetNvSciSyncAttributes == NULL: + with gil: + raise FunctionNotFoundError("function cuDeviceGetNvSciSyncAttributes is not found") + return (__cuDeviceGetNvSciSyncAttributes)( + nvSciSyncAttrList, dev, flags) + + +cdef CUresult _cuDeviceSetMemPool(CUdevice dev, CUmemoryPool pool) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuDeviceSetMemPool + _check_or_init_driver() + if __cuDeviceSetMemPool == NULL: + with gil: + raise FunctionNotFoundError("function cuDeviceSetMemPool is not found") + return (__cuDeviceSetMemPool)( + dev, pool) + + +cdef CUresult _cuDeviceGetMemPool(CUmemoryPool* pool, CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuDeviceGetMemPool + _check_or_init_driver() + if __cuDeviceGetMemPool == NULL: + with gil: + raise FunctionNotFoundError("function cuDeviceGetMemPool is not found") + return (__cuDeviceGetMemPool)( + pool, dev) + + +cdef CUresult _cuDeviceGetDefaultMemPool(CUmemoryPool* pool_out, CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuDeviceGetDefaultMemPool + _check_or_init_driver() + if __cuDeviceGetDefaultMemPool == NULL: + with gil: + raise FunctionNotFoundError("function cuDeviceGetDefaultMemPool is not found") + return (__cuDeviceGetDefaultMemPool)( + pool_out, dev) + + +cdef CUresult _cuDeviceGetExecAffinitySupport(int* pi, CUexecAffinityType type, CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuDeviceGetExecAffinitySupport + _check_or_init_driver() + if __cuDeviceGetExecAffinitySupport == NULL: + with gil: + raise FunctionNotFoundError("function cuDeviceGetExecAffinitySupport is not found") + return (__cuDeviceGetExecAffinitySupport)( + pi, type, dev) + + +cdef CUresult _cuFlushGPUDirectRDMAWrites(CUflushGPUDirectRDMAWritesTarget target, CUflushGPUDirectRDMAWritesScope scope) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuFlushGPUDirectRDMAWrites + _check_or_init_driver() + if __cuFlushGPUDirectRDMAWrites == NULL: + with gil: + raise FunctionNotFoundError("function cuFlushGPUDirectRDMAWrites is not found") + return (__cuFlushGPUDirectRDMAWrites)( + target, scope) + + +cdef CUresult _cuDeviceGetProperties(CUdevprop* prop, CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuDeviceGetProperties + _check_or_init_driver() + if __cuDeviceGetProperties == NULL: + with gil: + raise FunctionNotFoundError("function cuDeviceGetProperties is not found") + return (__cuDeviceGetProperties)( + prop, dev) + + +cdef CUresult _cuDeviceComputeCapability(int* major, int* minor, CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuDeviceComputeCapability + _check_or_init_driver() + if __cuDeviceComputeCapability == NULL: + with gil: + raise FunctionNotFoundError("function cuDeviceComputeCapability is not found") + return (__cuDeviceComputeCapability)( + major, minor, dev) + + +cdef CUresult _cuDevicePrimaryCtxRetain(CUcontext* pctx, CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuDevicePrimaryCtxRetain + _check_or_init_driver() + if __cuDevicePrimaryCtxRetain == NULL: + with gil: + raise FunctionNotFoundError("function cuDevicePrimaryCtxRetain is not found") + return (__cuDevicePrimaryCtxRetain)( + pctx, dev) + + +cdef CUresult _cuDevicePrimaryCtxRelease_v2(CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuDevicePrimaryCtxRelease_v2 + _check_or_init_driver() + if __cuDevicePrimaryCtxRelease_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuDevicePrimaryCtxRelease_v2 is not found") + return (__cuDevicePrimaryCtxRelease_v2)( + dev) + + +cdef CUresult _cuDevicePrimaryCtxSetFlags_v2(CUdevice dev, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuDevicePrimaryCtxSetFlags_v2 + _check_or_init_driver() + if __cuDevicePrimaryCtxSetFlags_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuDevicePrimaryCtxSetFlags_v2 is not found") + return (__cuDevicePrimaryCtxSetFlags_v2)( + dev, flags) + + +cdef CUresult _cuDevicePrimaryCtxGetState(CUdevice dev, unsigned int* flags, int* active) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuDevicePrimaryCtxGetState + _check_or_init_driver() + if __cuDevicePrimaryCtxGetState == NULL: + with gil: + raise FunctionNotFoundError("function cuDevicePrimaryCtxGetState is not found") + return (__cuDevicePrimaryCtxGetState)( + dev, flags, active) + + +cdef CUresult _cuDevicePrimaryCtxReset_v2(CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuDevicePrimaryCtxReset_v2 + _check_or_init_driver() + if __cuDevicePrimaryCtxReset_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuDevicePrimaryCtxReset_v2 is not found") + return (__cuDevicePrimaryCtxReset_v2)( + dev) + + +cdef CUresult _cuCtxCreate_v4(CUcontext* pctx, CUctxCreateParams* ctxCreateParams, unsigned int flags, CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuCtxCreate_v4 + _check_or_init_driver() + if __cuCtxCreate_v4 == NULL: + with gil: + raise FunctionNotFoundError("function cuCtxCreate_v4 is not found") + return (__cuCtxCreate_v4)( + pctx, ctxCreateParams, flags, dev) + + +cdef CUresult _cuCtxDestroy_v2(CUcontext ctx) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuCtxDestroy_v2 + _check_or_init_driver() + if __cuCtxDestroy_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuCtxDestroy_v2 is not found") + return (__cuCtxDestroy_v2)( + ctx) + + +cdef CUresult _cuCtxPushCurrent_v2(CUcontext ctx) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuCtxPushCurrent_v2 + _check_or_init_driver() + if __cuCtxPushCurrent_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuCtxPushCurrent_v2 is not found") + return (__cuCtxPushCurrent_v2)( + ctx) + + +cdef CUresult _cuCtxPopCurrent_v2(CUcontext* pctx) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuCtxPopCurrent_v2 + _check_or_init_driver() + if __cuCtxPopCurrent_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuCtxPopCurrent_v2 is not found") + return (__cuCtxPopCurrent_v2)( + pctx) + + +cdef CUresult _cuCtxSetCurrent(CUcontext ctx) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuCtxSetCurrent + _check_or_init_driver() + if __cuCtxSetCurrent == NULL: + with gil: + raise FunctionNotFoundError("function cuCtxSetCurrent is not found") + return (__cuCtxSetCurrent)( + ctx) + + +cdef CUresult _cuCtxGetCurrent(CUcontext* pctx) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuCtxGetCurrent + _check_or_init_driver() + if __cuCtxGetCurrent == NULL: + with gil: + raise FunctionNotFoundError("function cuCtxGetCurrent is not found") + return (__cuCtxGetCurrent)( + pctx) + + +cdef CUresult _cuCtxGetDevice(CUdevice* device) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuCtxGetDevice + _check_or_init_driver() + if __cuCtxGetDevice == NULL: + with gil: + raise FunctionNotFoundError("function cuCtxGetDevice is not found") + return (__cuCtxGetDevice)( + device) + + +cdef CUresult _cuCtxGetFlags(unsigned int* flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuCtxGetFlags + _check_or_init_driver() + if __cuCtxGetFlags == NULL: + with gil: + raise FunctionNotFoundError("function cuCtxGetFlags is not found") + return (__cuCtxGetFlags)( + flags) + + +cdef CUresult _cuCtxSetFlags(unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuCtxSetFlags + _check_or_init_driver() + if __cuCtxSetFlags == NULL: + with gil: + raise FunctionNotFoundError("function cuCtxSetFlags is not found") + return (__cuCtxSetFlags)( + flags) + + +cdef CUresult _cuCtxGetId(CUcontext ctx, unsigned long long* ctxId) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuCtxGetId + _check_or_init_driver() + if __cuCtxGetId == NULL: + with gil: + raise FunctionNotFoundError("function cuCtxGetId is not found") + return (__cuCtxGetId)( + ctx, ctxId) + + +cdef CUresult _cuCtxSynchronize() except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuCtxSynchronize + _check_or_init_driver() + if __cuCtxSynchronize == NULL: + with gil: + raise FunctionNotFoundError("function cuCtxSynchronize is not found") + return (__cuCtxSynchronize)( + ) + + +cdef CUresult _cuCtxSetLimit(CUlimit limit, size_t value) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuCtxSetLimit + _check_or_init_driver() + if __cuCtxSetLimit == NULL: + with gil: + raise FunctionNotFoundError("function cuCtxSetLimit is not found") + return (__cuCtxSetLimit)( + limit, value) + + +cdef CUresult _cuCtxGetLimit(size_t* pvalue, CUlimit limit) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuCtxGetLimit + _check_or_init_driver() + if __cuCtxGetLimit == NULL: + with gil: + raise FunctionNotFoundError("function cuCtxGetLimit is not found") + return (__cuCtxGetLimit)( + pvalue, limit) + + +cdef CUresult _cuCtxGetCacheConfig(CUfunc_cache* pconfig) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuCtxGetCacheConfig + _check_or_init_driver() + if __cuCtxGetCacheConfig == NULL: + with gil: + raise FunctionNotFoundError("function cuCtxGetCacheConfig is not found") + return (__cuCtxGetCacheConfig)( + pconfig) + + +cdef CUresult _cuCtxSetCacheConfig(CUfunc_cache config) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuCtxSetCacheConfig + _check_or_init_driver() + if __cuCtxSetCacheConfig == NULL: + with gil: + raise FunctionNotFoundError("function cuCtxSetCacheConfig is not found") + return (__cuCtxSetCacheConfig)( + config) + + +cdef CUresult _cuCtxGetApiVersion(CUcontext ctx, unsigned int* version) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuCtxGetApiVersion + _check_or_init_driver() + if __cuCtxGetApiVersion == NULL: + with gil: + raise FunctionNotFoundError("function cuCtxGetApiVersion is not found") + return (__cuCtxGetApiVersion)( + ctx, version) + + +cdef CUresult _cuCtxGetStreamPriorityRange(int* leastPriority, int* greatestPriority) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuCtxGetStreamPriorityRange + _check_or_init_driver() + if __cuCtxGetStreamPriorityRange == NULL: + with gil: + raise FunctionNotFoundError("function cuCtxGetStreamPriorityRange is not found") + return (__cuCtxGetStreamPriorityRange)( + leastPriority, greatestPriority) + + +cdef CUresult _cuCtxResetPersistingL2Cache() except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuCtxResetPersistingL2Cache + _check_or_init_driver() + if __cuCtxResetPersistingL2Cache == NULL: + with gil: + raise FunctionNotFoundError("function cuCtxResetPersistingL2Cache is not found") + return (__cuCtxResetPersistingL2Cache)( + ) + + +cdef CUresult _cuCtxGetExecAffinity(CUexecAffinityParam* pExecAffinity, CUexecAffinityType type) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuCtxGetExecAffinity + _check_or_init_driver() + if __cuCtxGetExecAffinity == NULL: + with gil: + raise FunctionNotFoundError("function cuCtxGetExecAffinity is not found") + return (__cuCtxGetExecAffinity)( + pExecAffinity, type) + + +cdef CUresult _cuCtxRecordEvent(CUcontext hCtx, CUevent hEvent) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuCtxRecordEvent + _check_or_init_driver() + if __cuCtxRecordEvent == NULL: + with gil: + raise FunctionNotFoundError("function cuCtxRecordEvent is not found") + return (__cuCtxRecordEvent)( + hCtx, hEvent) + + +cdef CUresult _cuCtxWaitEvent(CUcontext hCtx, CUevent hEvent) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuCtxWaitEvent + _check_or_init_driver() + if __cuCtxWaitEvent == NULL: + with gil: + raise FunctionNotFoundError("function cuCtxWaitEvent is not found") + return (__cuCtxWaitEvent)( + hCtx, hEvent) + + +cdef CUresult _cuCtxAttach(CUcontext* pctx, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuCtxAttach + _check_or_init_driver() + if __cuCtxAttach == NULL: + with gil: + raise FunctionNotFoundError("function cuCtxAttach is not found") + return (__cuCtxAttach)( + pctx, flags) + + +cdef CUresult _cuCtxDetach(CUcontext ctx) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuCtxDetach + _check_or_init_driver() + if __cuCtxDetach == NULL: + with gil: + raise FunctionNotFoundError("function cuCtxDetach is not found") + return (__cuCtxDetach)( + ctx) + + +cdef CUresult _cuCtxGetSharedMemConfig(CUsharedconfig* pConfig) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuCtxGetSharedMemConfig + _check_or_init_driver() + if __cuCtxGetSharedMemConfig == NULL: + with gil: + raise FunctionNotFoundError("function cuCtxGetSharedMemConfig is not found") + return (__cuCtxGetSharedMemConfig)( + pConfig) + + +cdef CUresult _cuCtxSetSharedMemConfig(CUsharedconfig config) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuCtxSetSharedMemConfig + _check_or_init_driver() + if __cuCtxSetSharedMemConfig == NULL: + with gil: + raise FunctionNotFoundError("function cuCtxSetSharedMemConfig is not found") + return (__cuCtxSetSharedMemConfig)( + config) + + +cdef CUresult _cuModuleLoad(CUmodule* module, const char* fname) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuModuleLoad + _check_or_init_driver() + if __cuModuleLoad == NULL: + with gil: + raise FunctionNotFoundError("function cuModuleLoad is not found") + return (__cuModuleLoad)( + module, fname) + + +cdef CUresult _cuModuleLoadData(CUmodule* module, const void* image) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuModuleLoadData + _check_or_init_driver() + if __cuModuleLoadData == NULL: + with gil: + raise FunctionNotFoundError("function cuModuleLoadData is not found") + return (__cuModuleLoadData)( + module, image) + + +cdef CUresult _cuModuleLoadDataEx(CUmodule* module, const void* image, unsigned int numOptions, CUjit_option* options, void** optionValues) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuModuleLoadDataEx + _check_or_init_driver() + if __cuModuleLoadDataEx == NULL: + with gil: + raise FunctionNotFoundError("function cuModuleLoadDataEx is not found") + return (__cuModuleLoadDataEx)( + module, image, numOptions, options, optionValues) + + +cdef CUresult _cuModuleLoadFatBinary(CUmodule* module, const void* fatCubin) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuModuleLoadFatBinary + _check_or_init_driver() + if __cuModuleLoadFatBinary == NULL: + with gil: + raise FunctionNotFoundError("function cuModuleLoadFatBinary is not found") + return (__cuModuleLoadFatBinary)( + module, fatCubin) + + +cdef CUresult _cuModuleUnload(CUmodule hmod) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuModuleUnload + _check_or_init_driver() + if __cuModuleUnload == NULL: + with gil: + raise FunctionNotFoundError("function cuModuleUnload is not found") + return (__cuModuleUnload)( + hmod) + + +cdef CUresult _cuModuleGetLoadingMode(CUmoduleLoadingMode* mode) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuModuleGetLoadingMode + _check_or_init_driver() + if __cuModuleGetLoadingMode == NULL: + with gil: + raise FunctionNotFoundError("function cuModuleGetLoadingMode is not found") + return (__cuModuleGetLoadingMode)( + mode) + + +cdef CUresult _cuModuleGetFunction(CUfunction* hfunc, CUmodule hmod, const char* name) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuModuleGetFunction + _check_or_init_driver() + if __cuModuleGetFunction == NULL: + with gil: + raise FunctionNotFoundError("function cuModuleGetFunction is not found") + return (__cuModuleGetFunction)( + hfunc, hmod, name) + + +cdef CUresult _cuModuleGetFunctionCount(unsigned int* count, CUmodule mod) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuModuleGetFunctionCount + _check_or_init_driver() + if __cuModuleGetFunctionCount == NULL: + with gil: + raise FunctionNotFoundError("function cuModuleGetFunctionCount is not found") + return (__cuModuleGetFunctionCount)( + count, mod) + + +cdef CUresult _cuModuleEnumerateFunctions(CUfunction* functions, unsigned int numFunctions, CUmodule mod) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuModuleEnumerateFunctions + _check_or_init_driver() + if __cuModuleEnumerateFunctions == NULL: + with gil: + raise FunctionNotFoundError("function cuModuleEnumerateFunctions is not found") + return (__cuModuleEnumerateFunctions)( + functions, numFunctions, mod) + + +cdef CUresult _cuModuleGetGlobal_v2(CUdeviceptr* dptr, size_t* bytes, CUmodule hmod, const char* name) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuModuleGetGlobal_v2 + _check_or_init_driver() + if __cuModuleGetGlobal_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuModuleGetGlobal_v2 is not found") + return (__cuModuleGetGlobal_v2)( + dptr, bytes, hmod, name) + + +cdef CUresult _cuLinkCreate_v2(unsigned int numOptions, CUjit_option* options, void** optionValues, CUlinkState* stateOut) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuLinkCreate_v2 + _check_or_init_driver() + if __cuLinkCreate_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuLinkCreate_v2 is not found") + return (__cuLinkCreate_v2)( + numOptions, options, optionValues, stateOut) + + +cdef CUresult _cuLinkAddData_v2(CUlinkState state, CUjitInputType type, void* data, size_t size, const char* name, unsigned int numOptions, CUjit_option* options, void** optionValues) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuLinkAddData_v2 + _check_or_init_driver() + if __cuLinkAddData_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuLinkAddData_v2 is not found") + return (__cuLinkAddData_v2)( + state, type, data, size, name, numOptions, options, optionValues) + + +cdef CUresult _cuLinkAddFile_v2(CUlinkState state, CUjitInputType type, const char* path, unsigned int numOptions, CUjit_option* options, void** optionValues) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuLinkAddFile_v2 + _check_or_init_driver() + if __cuLinkAddFile_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuLinkAddFile_v2 is not found") + return (__cuLinkAddFile_v2)( + state, type, path, numOptions, options, optionValues) + + +cdef CUresult _cuLinkComplete(CUlinkState state, void** cubinOut, size_t* sizeOut) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuLinkComplete + _check_or_init_driver() + if __cuLinkComplete == NULL: + with gil: + raise FunctionNotFoundError("function cuLinkComplete is not found") + return (__cuLinkComplete)( + state, cubinOut, sizeOut) + + +cdef CUresult _cuLinkDestroy(CUlinkState state) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuLinkDestroy + _check_or_init_driver() + if __cuLinkDestroy == NULL: + with gil: + raise FunctionNotFoundError("function cuLinkDestroy is not found") + return (__cuLinkDestroy)( + state) + + +cdef CUresult _cuModuleGetTexRef(CUtexref* pTexRef, CUmodule hmod, const char* name) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuModuleGetTexRef + _check_or_init_driver() + if __cuModuleGetTexRef == NULL: + with gil: + raise FunctionNotFoundError("function cuModuleGetTexRef is not found") + return (__cuModuleGetTexRef)( + pTexRef, hmod, name) + + +cdef CUresult _cuModuleGetSurfRef(CUsurfref* pSurfRef, CUmodule hmod, const char* name) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuModuleGetSurfRef + _check_or_init_driver() + if __cuModuleGetSurfRef == NULL: + with gil: + raise FunctionNotFoundError("function cuModuleGetSurfRef is not found") + return (__cuModuleGetSurfRef)( + pSurfRef, hmod, name) + + +cdef CUresult _cuLibraryLoadData(CUlibrary* library, const void* code, CUjit_option* jitOptions, void** jitOptionsValues, unsigned int numJitOptions, CUlibraryOption* libraryOptions, void** libraryOptionValues, unsigned int numLibraryOptions) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuLibraryLoadData + _check_or_init_driver() + if __cuLibraryLoadData == NULL: + with gil: + raise FunctionNotFoundError("function cuLibraryLoadData is not found") + return (__cuLibraryLoadData)( + library, code, jitOptions, jitOptionsValues, numJitOptions, libraryOptions, libraryOptionValues, numLibraryOptions) + + +cdef CUresult _cuLibraryLoadFromFile(CUlibrary* library, const char* fileName, CUjit_option* jitOptions, void** jitOptionsValues, unsigned int numJitOptions, CUlibraryOption* libraryOptions, void** libraryOptionValues, unsigned int numLibraryOptions) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuLibraryLoadFromFile + _check_or_init_driver() + if __cuLibraryLoadFromFile == NULL: + with gil: + raise FunctionNotFoundError("function cuLibraryLoadFromFile is not found") + return (__cuLibraryLoadFromFile)( + library, fileName, jitOptions, jitOptionsValues, numJitOptions, libraryOptions, libraryOptionValues, numLibraryOptions) + + +cdef CUresult _cuLibraryUnload(CUlibrary library) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuLibraryUnload + _check_or_init_driver() + if __cuLibraryUnload == NULL: + with gil: + raise FunctionNotFoundError("function cuLibraryUnload is not found") + return (__cuLibraryUnload)( + library) + + +cdef CUresult _cuLibraryGetKernel(CUkernel* pKernel, CUlibrary library, const char* name) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuLibraryGetKernel + _check_or_init_driver() + if __cuLibraryGetKernel == NULL: + with gil: + raise FunctionNotFoundError("function cuLibraryGetKernel is not found") + return (__cuLibraryGetKernel)( + pKernel, library, name) + + +cdef CUresult _cuLibraryGetKernelCount(unsigned int* count, CUlibrary lib) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuLibraryGetKernelCount + _check_or_init_driver() + if __cuLibraryGetKernelCount == NULL: + with gil: + raise FunctionNotFoundError("function cuLibraryGetKernelCount is not found") + return (__cuLibraryGetKernelCount)( + count, lib) + + +cdef CUresult _cuLibraryEnumerateKernels(CUkernel* kernels, unsigned int numKernels, CUlibrary lib) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuLibraryEnumerateKernels + _check_or_init_driver() + if __cuLibraryEnumerateKernels == NULL: + with gil: + raise FunctionNotFoundError("function cuLibraryEnumerateKernels is not found") + return (__cuLibraryEnumerateKernels)( + kernels, numKernels, lib) + + +cdef CUresult _cuLibraryGetModule(CUmodule* pMod, CUlibrary library) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuLibraryGetModule + _check_or_init_driver() + if __cuLibraryGetModule == NULL: + with gil: + raise FunctionNotFoundError("function cuLibraryGetModule is not found") + return (__cuLibraryGetModule)( + pMod, library) + + +cdef CUresult _cuKernelGetFunction(CUfunction* pFunc, CUkernel kernel) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuKernelGetFunction + _check_or_init_driver() + if __cuKernelGetFunction == NULL: + with gil: + raise FunctionNotFoundError("function cuKernelGetFunction is not found") + return (__cuKernelGetFunction)( + pFunc, kernel) + + +cdef CUresult _cuKernelGetLibrary(CUlibrary* pLib, CUkernel kernel) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuKernelGetLibrary + _check_or_init_driver() + if __cuKernelGetLibrary == NULL: + with gil: + raise FunctionNotFoundError("function cuKernelGetLibrary is not found") + return (__cuKernelGetLibrary)( + pLib, kernel) + + +cdef CUresult _cuLibraryGetGlobal(CUdeviceptr* dptr, size_t* bytes, CUlibrary library, const char* name) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuLibraryGetGlobal + _check_or_init_driver() + if __cuLibraryGetGlobal == NULL: + with gil: + raise FunctionNotFoundError("function cuLibraryGetGlobal is not found") + return (__cuLibraryGetGlobal)( + dptr, bytes, library, name) + + +cdef CUresult _cuLibraryGetManaged(CUdeviceptr* dptr, size_t* bytes, CUlibrary library, const char* name) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuLibraryGetManaged + _check_or_init_driver() + if __cuLibraryGetManaged == NULL: + with gil: + raise FunctionNotFoundError("function cuLibraryGetManaged is not found") + return (__cuLibraryGetManaged)( + dptr, bytes, library, name) + + +cdef CUresult _cuLibraryGetUnifiedFunction(void** fptr, CUlibrary library, const char* symbol) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuLibraryGetUnifiedFunction + _check_or_init_driver() + if __cuLibraryGetUnifiedFunction == NULL: + with gil: + raise FunctionNotFoundError("function cuLibraryGetUnifiedFunction is not found") + return (__cuLibraryGetUnifiedFunction)( + fptr, library, symbol) + + +cdef CUresult _cuKernelGetAttribute(int* pi, CUfunction_attribute attrib, CUkernel kernel, CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuKernelGetAttribute + _check_or_init_driver() + if __cuKernelGetAttribute == NULL: + with gil: + raise FunctionNotFoundError("function cuKernelGetAttribute is not found") + return (__cuKernelGetAttribute)( + pi, attrib, kernel, dev) + + +cdef CUresult _cuKernelSetAttribute(CUfunction_attribute attrib, int val, CUkernel kernel, CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuKernelSetAttribute + _check_or_init_driver() + if __cuKernelSetAttribute == NULL: + with gil: + raise FunctionNotFoundError("function cuKernelSetAttribute is not found") + return (__cuKernelSetAttribute)( + attrib, val, kernel, dev) + + +cdef CUresult _cuKernelSetCacheConfig(CUkernel kernel, CUfunc_cache config, CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuKernelSetCacheConfig + _check_or_init_driver() + if __cuKernelSetCacheConfig == NULL: + with gil: + raise FunctionNotFoundError("function cuKernelSetCacheConfig is not found") + return (__cuKernelSetCacheConfig)( + kernel, config, dev) + + +cdef CUresult _cuKernelGetName(const char** name, CUkernel hfunc) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuKernelGetName + _check_or_init_driver() + if __cuKernelGetName == NULL: + with gil: + raise FunctionNotFoundError("function cuKernelGetName is not found") + return (__cuKernelGetName)( + name, hfunc) + + +cdef CUresult _cuKernelGetParamInfo(CUkernel kernel, size_t paramIndex, size_t* paramOffset, size_t* paramSize) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuKernelGetParamInfo + _check_or_init_driver() + if __cuKernelGetParamInfo == NULL: + with gil: + raise FunctionNotFoundError("function cuKernelGetParamInfo is not found") + return (__cuKernelGetParamInfo)( + kernel, paramIndex, paramOffset, paramSize) + + +cdef CUresult _cuMemGetInfo_v2(size_t* free, size_t* total) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemGetInfo_v2 + _check_or_init_driver() + if __cuMemGetInfo_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuMemGetInfo_v2 is not found") + return (__cuMemGetInfo_v2)( + free, total) + + +cdef CUresult _cuMemAlloc_v2(CUdeviceptr* dptr, size_t bytesize) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemAlloc_v2 + _check_or_init_driver() + if __cuMemAlloc_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuMemAlloc_v2 is not found") + return (__cuMemAlloc_v2)( + dptr, bytesize) + + +cdef CUresult _cuMemAllocPitch_v2(CUdeviceptr* dptr, size_t* pPitch, size_t WidthInBytes, size_t Height, unsigned int ElementSizeBytes) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemAllocPitch_v2 + _check_or_init_driver() + if __cuMemAllocPitch_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuMemAllocPitch_v2 is not found") + return (__cuMemAllocPitch_v2)( + dptr, pPitch, WidthInBytes, Height, ElementSizeBytes) + + +cdef CUresult _cuMemFree_v2(CUdeviceptr dptr) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemFree_v2 + _check_or_init_driver() + if __cuMemFree_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuMemFree_v2 is not found") + return (__cuMemFree_v2)( + dptr) + + +cdef CUresult _cuMemGetAddressRange_v2(CUdeviceptr* pbase, size_t* psize, CUdeviceptr dptr) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemGetAddressRange_v2 + _check_or_init_driver() + if __cuMemGetAddressRange_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuMemGetAddressRange_v2 is not found") + return (__cuMemGetAddressRange_v2)( + pbase, psize, dptr) + + +cdef CUresult _cuMemAllocHost_v2(void** pp, size_t bytesize) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemAllocHost_v2 + _check_or_init_driver() + if __cuMemAllocHost_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuMemAllocHost_v2 is not found") + return (__cuMemAllocHost_v2)( + pp, bytesize) + + +cdef CUresult _cuMemFreeHost(void* p) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemFreeHost + _check_or_init_driver() + if __cuMemFreeHost == NULL: + with gil: + raise FunctionNotFoundError("function cuMemFreeHost is not found") + return (__cuMemFreeHost)( + p) + + +cdef CUresult _cuMemHostAlloc(void** pp, size_t bytesize, unsigned int Flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemHostAlloc + _check_or_init_driver() + if __cuMemHostAlloc == NULL: + with gil: + raise FunctionNotFoundError("function cuMemHostAlloc is not found") + return (__cuMemHostAlloc)( + pp, bytesize, Flags) + + +cdef CUresult _cuMemHostGetDevicePointer_v2(CUdeviceptr* pdptr, void* p, unsigned int Flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemHostGetDevicePointer_v2 + _check_or_init_driver() + if __cuMemHostGetDevicePointer_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuMemHostGetDevicePointer_v2 is not found") + return (__cuMemHostGetDevicePointer_v2)( + pdptr, p, Flags) + + +cdef CUresult _cuMemHostGetFlags(unsigned int* pFlags, void* p) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemHostGetFlags + _check_or_init_driver() + if __cuMemHostGetFlags == NULL: + with gil: + raise FunctionNotFoundError("function cuMemHostGetFlags is not found") + return (__cuMemHostGetFlags)( + pFlags, p) + + +cdef CUresult _cuMemAllocManaged(CUdeviceptr* dptr, size_t bytesize, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemAllocManaged + _check_or_init_driver() + if __cuMemAllocManaged == NULL: + with gil: + raise FunctionNotFoundError("function cuMemAllocManaged is not found") + return (__cuMemAllocManaged)( + dptr, bytesize, flags) + + +cdef CUresult _cuDeviceRegisterAsyncNotification(CUdevice device, CUasyncCallback callbackFunc, void* userData, CUasyncCallbackHandle* callback) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuDeviceRegisterAsyncNotification + _check_or_init_driver() + if __cuDeviceRegisterAsyncNotification == NULL: + with gil: + raise FunctionNotFoundError("function cuDeviceRegisterAsyncNotification is not found") + return (__cuDeviceRegisterAsyncNotification)( + device, callbackFunc, userData, callback) + + +cdef CUresult _cuDeviceUnregisterAsyncNotification(CUdevice device, CUasyncCallbackHandle callback) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuDeviceUnregisterAsyncNotification + _check_or_init_driver() + if __cuDeviceUnregisterAsyncNotification == NULL: + with gil: + raise FunctionNotFoundError("function cuDeviceUnregisterAsyncNotification is not found") + return (__cuDeviceUnregisterAsyncNotification)( + device, callback) + + +cdef CUresult _cuDeviceGetByPCIBusId(CUdevice* dev, const char* pciBusId) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuDeviceGetByPCIBusId + _check_or_init_driver() + if __cuDeviceGetByPCIBusId == NULL: + with gil: + raise FunctionNotFoundError("function cuDeviceGetByPCIBusId is not found") + return (__cuDeviceGetByPCIBusId)( + dev, pciBusId) + + +cdef CUresult _cuDeviceGetPCIBusId(char* pciBusId, int len, CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuDeviceGetPCIBusId + _check_or_init_driver() + if __cuDeviceGetPCIBusId == NULL: + with gil: + raise FunctionNotFoundError("function cuDeviceGetPCIBusId is not found") + return (__cuDeviceGetPCIBusId)( + pciBusId, len, dev) + + +cdef CUresult _cuIpcGetEventHandle(CUipcEventHandle* pHandle, CUevent event) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuIpcGetEventHandle + _check_or_init_driver() + if __cuIpcGetEventHandle == NULL: + with gil: + raise FunctionNotFoundError("function cuIpcGetEventHandle is not found") + return (__cuIpcGetEventHandle)( + pHandle, event) + + +cdef CUresult _cuIpcOpenEventHandle(CUevent* phEvent, CUipcEventHandle handle) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuIpcOpenEventHandle + _check_or_init_driver() + if __cuIpcOpenEventHandle == NULL: + with gil: + raise FunctionNotFoundError("function cuIpcOpenEventHandle is not found") + return (__cuIpcOpenEventHandle)( + phEvent, handle) + + +cdef CUresult _cuIpcGetMemHandle(CUipcMemHandle* pHandle, CUdeviceptr dptr) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuIpcGetMemHandle + _check_or_init_driver() + if __cuIpcGetMemHandle == NULL: + with gil: + raise FunctionNotFoundError("function cuIpcGetMemHandle is not found") + return (__cuIpcGetMemHandle)( + pHandle, dptr) + + +cdef CUresult _cuIpcOpenMemHandle_v2(CUdeviceptr* pdptr, CUipcMemHandle handle, unsigned int Flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuIpcOpenMemHandle_v2 + _check_or_init_driver() + if __cuIpcOpenMemHandle_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuIpcOpenMemHandle_v2 is not found") + return (__cuIpcOpenMemHandle_v2)( + pdptr, handle, Flags) + + +cdef CUresult _cuIpcCloseMemHandle(CUdeviceptr dptr) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuIpcCloseMemHandle + _check_or_init_driver() + if __cuIpcCloseMemHandle == NULL: + with gil: + raise FunctionNotFoundError("function cuIpcCloseMemHandle is not found") + return (__cuIpcCloseMemHandle)( + dptr) + + +cdef CUresult _cuMemHostRegister_v2(void* p, size_t bytesize, unsigned int Flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemHostRegister_v2 + _check_or_init_driver() + if __cuMemHostRegister_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuMemHostRegister_v2 is not found") + return (__cuMemHostRegister_v2)( + p, bytesize, Flags) + + +cdef CUresult _cuMemHostUnregister(void* p) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemHostUnregister + _check_or_init_driver() + if __cuMemHostUnregister == NULL: + with gil: + raise FunctionNotFoundError("function cuMemHostUnregister is not found") + return (__cuMemHostUnregister)( + p) + + +cdef CUresult _cuMemcpy(CUdeviceptr dst, CUdeviceptr src, size_t ByteCount) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemcpy + _check_or_init_driver() + if __cuMemcpy == NULL: + with gil: + raise FunctionNotFoundError("function cuMemcpy is not found") + return (__cuMemcpy)( + dst, src, ByteCount) + + +cdef CUresult _cuMemcpyPeer(CUdeviceptr dstDevice, CUcontext dstContext, CUdeviceptr srcDevice, CUcontext srcContext, size_t ByteCount) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemcpyPeer + _check_or_init_driver() + if __cuMemcpyPeer == NULL: + with gil: + raise FunctionNotFoundError("function cuMemcpyPeer is not found") + return (__cuMemcpyPeer)( + dstDevice, dstContext, srcDevice, srcContext, ByteCount) + + +cdef CUresult _cuMemcpyHtoD_v2(CUdeviceptr dstDevice, const void* srcHost, size_t ByteCount) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemcpyHtoD_v2 + _check_or_init_driver() + if __cuMemcpyHtoD_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuMemcpyHtoD_v2 is not found") + return (__cuMemcpyHtoD_v2)( + dstDevice, srcHost, ByteCount) + + +cdef CUresult _cuMemcpyDtoH_v2(void* dstHost, CUdeviceptr srcDevice, size_t ByteCount) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemcpyDtoH_v2 + _check_or_init_driver() + if __cuMemcpyDtoH_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuMemcpyDtoH_v2 is not found") + return (__cuMemcpyDtoH_v2)( + dstHost, srcDevice, ByteCount) + + +cdef CUresult _cuMemcpyDtoD_v2(CUdeviceptr dstDevice, CUdeviceptr srcDevice, size_t ByteCount) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemcpyDtoD_v2 + _check_or_init_driver() + if __cuMemcpyDtoD_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuMemcpyDtoD_v2 is not found") + return (__cuMemcpyDtoD_v2)( + dstDevice, srcDevice, ByteCount) + + +cdef CUresult _cuMemcpyDtoA_v2(CUarray dstArray, size_t dstOffset, CUdeviceptr srcDevice, size_t ByteCount) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemcpyDtoA_v2 + _check_or_init_driver() + if __cuMemcpyDtoA_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuMemcpyDtoA_v2 is not found") + return (__cuMemcpyDtoA_v2)( + dstArray, dstOffset, srcDevice, ByteCount) + + +cdef CUresult _cuMemcpyAtoD_v2(CUdeviceptr dstDevice, CUarray srcArray, size_t srcOffset, size_t ByteCount) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemcpyAtoD_v2 + _check_or_init_driver() + if __cuMemcpyAtoD_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuMemcpyAtoD_v2 is not found") + return (__cuMemcpyAtoD_v2)( + dstDevice, srcArray, srcOffset, ByteCount) + + +cdef CUresult _cuMemcpyHtoA_v2(CUarray dstArray, size_t dstOffset, const void* srcHost, size_t ByteCount) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemcpyHtoA_v2 + _check_or_init_driver() + if __cuMemcpyHtoA_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuMemcpyHtoA_v2 is not found") + return (__cuMemcpyHtoA_v2)( + dstArray, dstOffset, srcHost, ByteCount) + + +cdef CUresult _cuMemcpyAtoH_v2(void* dstHost, CUarray srcArray, size_t srcOffset, size_t ByteCount) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemcpyAtoH_v2 + _check_or_init_driver() + if __cuMemcpyAtoH_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuMemcpyAtoH_v2 is not found") + return (__cuMemcpyAtoH_v2)( + dstHost, srcArray, srcOffset, ByteCount) + + +cdef CUresult _cuMemcpyAtoA_v2(CUarray dstArray, size_t dstOffset, CUarray srcArray, size_t srcOffset, size_t ByteCount) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemcpyAtoA_v2 + _check_or_init_driver() + if __cuMemcpyAtoA_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuMemcpyAtoA_v2 is not found") + return (__cuMemcpyAtoA_v2)( + dstArray, dstOffset, srcArray, srcOffset, ByteCount) + + +cdef CUresult _cuMemcpy2D_v2(const CUDA_MEMCPY2D* pCopy) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemcpy2D_v2 + _check_or_init_driver() + if __cuMemcpy2D_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuMemcpy2D_v2 is not found") + return (__cuMemcpy2D_v2)( + pCopy) + + +cdef CUresult _cuMemcpy2DUnaligned_v2(const CUDA_MEMCPY2D* pCopy) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemcpy2DUnaligned_v2 + _check_or_init_driver() + if __cuMemcpy2DUnaligned_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuMemcpy2DUnaligned_v2 is not found") + return (__cuMemcpy2DUnaligned_v2)( + pCopy) + + +cdef CUresult _cuMemcpy3D_v2(const CUDA_MEMCPY3D* pCopy) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemcpy3D_v2 + _check_or_init_driver() + if __cuMemcpy3D_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuMemcpy3D_v2 is not found") + return (__cuMemcpy3D_v2)( + pCopy) + + +cdef CUresult _cuMemcpy3DPeer(const CUDA_MEMCPY3D_PEER* pCopy) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemcpy3DPeer + _check_or_init_driver() + if __cuMemcpy3DPeer == NULL: + with gil: + raise FunctionNotFoundError("function cuMemcpy3DPeer is not found") + return (__cuMemcpy3DPeer)( + pCopy) + + +cdef CUresult _cuMemcpyAsync(CUdeviceptr dst, CUdeviceptr src, size_t ByteCount, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemcpyAsync + _check_or_init_driver() + if __cuMemcpyAsync == NULL: + with gil: + raise FunctionNotFoundError("function cuMemcpyAsync is not found") + return (__cuMemcpyAsync)( + dst, src, ByteCount, hStream) + + +cdef CUresult _cuMemcpyPeerAsync(CUdeviceptr dstDevice, CUcontext dstContext, CUdeviceptr srcDevice, CUcontext srcContext, size_t ByteCount, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemcpyPeerAsync + _check_or_init_driver() + if __cuMemcpyPeerAsync == NULL: + with gil: + raise FunctionNotFoundError("function cuMemcpyPeerAsync is not found") + return (__cuMemcpyPeerAsync)( + dstDevice, dstContext, srcDevice, srcContext, ByteCount, hStream) + + +cdef CUresult _cuMemcpyHtoDAsync_v2(CUdeviceptr dstDevice, const void* srcHost, size_t ByteCount, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemcpyHtoDAsync_v2 + _check_or_init_driver() + if __cuMemcpyHtoDAsync_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuMemcpyHtoDAsync_v2 is not found") + return (__cuMemcpyHtoDAsync_v2)( + dstDevice, srcHost, ByteCount, hStream) + + +cdef CUresult _cuMemcpyDtoHAsync_v2(void* dstHost, CUdeviceptr srcDevice, size_t ByteCount, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemcpyDtoHAsync_v2 + _check_or_init_driver() + if __cuMemcpyDtoHAsync_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuMemcpyDtoHAsync_v2 is not found") + return (__cuMemcpyDtoHAsync_v2)( + dstHost, srcDevice, ByteCount, hStream) + + +cdef CUresult _cuMemcpyDtoDAsync_v2(CUdeviceptr dstDevice, CUdeviceptr srcDevice, size_t ByteCount, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemcpyDtoDAsync_v2 + _check_or_init_driver() + if __cuMemcpyDtoDAsync_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuMemcpyDtoDAsync_v2 is not found") + return (__cuMemcpyDtoDAsync_v2)( + dstDevice, srcDevice, ByteCount, hStream) + + +cdef CUresult _cuMemcpyHtoAAsync_v2(CUarray dstArray, size_t dstOffset, const void* srcHost, size_t ByteCount, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemcpyHtoAAsync_v2 + _check_or_init_driver() + if __cuMemcpyHtoAAsync_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuMemcpyHtoAAsync_v2 is not found") + return (__cuMemcpyHtoAAsync_v2)( + dstArray, dstOffset, srcHost, ByteCount, hStream) + + +cdef CUresult _cuMemcpyAtoHAsync_v2(void* dstHost, CUarray srcArray, size_t srcOffset, size_t ByteCount, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemcpyAtoHAsync_v2 + _check_or_init_driver() + if __cuMemcpyAtoHAsync_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuMemcpyAtoHAsync_v2 is not found") + return (__cuMemcpyAtoHAsync_v2)( + dstHost, srcArray, srcOffset, ByteCount, hStream) + + +cdef CUresult _cuMemcpy2DAsync_v2(const CUDA_MEMCPY2D* pCopy, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemcpy2DAsync_v2 + _check_or_init_driver() + if __cuMemcpy2DAsync_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuMemcpy2DAsync_v2 is not found") + return (__cuMemcpy2DAsync_v2)( + pCopy, hStream) + + +cdef CUresult _cuMemcpy3DAsync_v2(const CUDA_MEMCPY3D* pCopy, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemcpy3DAsync_v2 + _check_or_init_driver() + if __cuMemcpy3DAsync_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuMemcpy3DAsync_v2 is not found") + return (__cuMemcpy3DAsync_v2)( + pCopy, hStream) + + +cdef CUresult _cuMemcpy3DPeerAsync(const CUDA_MEMCPY3D_PEER* pCopy, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemcpy3DPeerAsync + _check_or_init_driver() + if __cuMemcpy3DPeerAsync == NULL: + with gil: + raise FunctionNotFoundError("function cuMemcpy3DPeerAsync is not found") + return (__cuMemcpy3DPeerAsync)( + pCopy, hStream) + + +cdef CUresult _cuMemsetD8_v2(CUdeviceptr dstDevice, unsigned char uc, size_t N) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemsetD8_v2 + _check_or_init_driver() + if __cuMemsetD8_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuMemsetD8_v2 is not found") + return (__cuMemsetD8_v2)( + dstDevice, uc, N) + + +cdef CUresult _cuMemsetD16_v2(CUdeviceptr dstDevice, unsigned short us, size_t N) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemsetD16_v2 + _check_or_init_driver() + if __cuMemsetD16_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuMemsetD16_v2 is not found") + return (__cuMemsetD16_v2)( + dstDevice, us, N) + + +cdef CUresult _cuMemsetD32_v2(CUdeviceptr dstDevice, unsigned int ui, size_t N) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemsetD32_v2 + _check_or_init_driver() + if __cuMemsetD32_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuMemsetD32_v2 is not found") + return (__cuMemsetD32_v2)( + dstDevice, ui, N) + + +cdef CUresult _cuMemsetD2D8_v2(CUdeviceptr dstDevice, size_t dstPitch, unsigned char uc, size_t Width, size_t Height) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemsetD2D8_v2 + _check_or_init_driver() + if __cuMemsetD2D8_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuMemsetD2D8_v2 is not found") + return (__cuMemsetD2D8_v2)( + dstDevice, dstPitch, uc, Width, Height) + + +cdef CUresult _cuMemsetD2D16_v2(CUdeviceptr dstDevice, size_t dstPitch, unsigned short us, size_t Width, size_t Height) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemsetD2D16_v2 + _check_or_init_driver() + if __cuMemsetD2D16_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuMemsetD2D16_v2 is not found") + return (__cuMemsetD2D16_v2)( + dstDevice, dstPitch, us, Width, Height) + + +cdef CUresult _cuMemsetD2D32_v2(CUdeviceptr dstDevice, size_t dstPitch, unsigned int ui, size_t Width, size_t Height) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemsetD2D32_v2 + _check_or_init_driver() + if __cuMemsetD2D32_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuMemsetD2D32_v2 is not found") + return (__cuMemsetD2D32_v2)( + dstDevice, dstPitch, ui, Width, Height) + + +cdef CUresult _cuMemsetD8Async(CUdeviceptr dstDevice, unsigned char uc, size_t N, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemsetD8Async + _check_or_init_driver() + if __cuMemsetD8Async == NULL: + with gil: + raise FunctionNotFoundError("function cuMemsetD8Async is not found") + return (__cuMemsetD8Async)( + dstDevice, uc, N, hStream) + + +cdef CUresult _cuMemsetD16Async(CUdeviceptr dstDevice, unsigned short us, size_t N, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemsetD16Async + _check_or_init_driver() + if __cuMemsetD16Async == NULL: + with gil: + raise FunctionNotFoundError("function cuMemsetD16Async is not found") + return (__cuMemsetD16Async)( + dstDevice, us, N, hStream) + + +cdef CUresult _cuMemsetD32Async(CUdeviceptr dstDevice, unsigned int ui, size_t N, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemsetD32Async + _check_or_init_driver() + if __cuMemsetD32Async == NULL: + with gil: + raise FunctionNotFoundError("function cuMemsetD32Async is not found") + return (__cuMemsetD32Async)( + dstDevice, ui, N, hStream) + + +cdef CUresult _cuMemsetD2D8Async(CUdeviceptr dstDevice, size_t dstPitch, unsigned char uc, size_t Width, size_t Height, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemsetD2D8Async + _check_or_init_driver() + if __cuMemsetD2D8Async == NULL: + with gil: + raise FunctionNotFoundError("function cuMemsetD2D8Async is not found") + return (__cuMemsetD2D8Async)( + dstDevice, dstPitch, uc, Width, Height, hStream) + + +cdef CUresult _cuMemsetD2D16Async(CUdeviceptr dstDevice, size_t dstPitch, unsigned short us, size_t Width, size_t Height, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemsetD2D16Async + _check_or_init_driver() + if __cuMemsetD2D16Async == NULL: + with gil: + raise FunctionNotFoundError("function cuMemsetD2D16Async is not found") + return (__cuMemsetD2D16Async)( + dstDevice, dstPitch, us, Width, Height, hStream) + + +cdef CUresult _cuMemsetD2D32Async(CUdeviceptr dstDevice, size_t dstPitch, unsigned int ui, size_t Width, size_t Height, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemsetD2D32Async + _check_or_init_driver() + if __cuMemsetD2D32Async == NULL: + with gil: + raise FunctionNotFoundError("function cuMemsetD2D32Async is not found") + return (__cuMemsetD2D32Async)( + dstDevice, dstPitch, ui, Width, Height, hStream) + + +cdef CUresult _cuArrayCreate_v2(CUarray* pHandle, const CUDA_ARRAY_DESCRIPTOR* pAllocateArray) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuArrayCreate_v2 + _check_or_init_driver() + if __cuArrayCreate_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuArrayCreate_v2 is not found") + return (__cuArrayCreate_v2)( + pHandle, pAllocateArray) + + +cdef CUresult _cuArrayGetDescriptor_v2(CUDA_ARRAY_DESCRIPTOR* pArrayDescriptor, CUarray hArray) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuArrayGetDescriptor_v2 + _check_or_init_driver() + if __cuArrayGetDescriptor_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuArrayGetDescriptor_v2 is not found") + return (__cuArrayGetDescriptor_v2)( + pArrayDescriptor, hArray) + + +cdef CUresult _cuArrayGetSparseProperties(CUDA_ARRAY_SPARSE_PROPERTIES* sparseProperties, CUarray array) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuArrayGetSparseProperties + _check_or_init_driver() + if __cuArrayGetSparseProperties == NULL: + with gil: + raise FunctionNotFoundError("function cuArrayGetSparseProperties is not found") + return (__cuArrayGetSparseProperties)( + sparseProperties, array) + + +cdef CUresult _cuMipmappedArrayGetSparseProperties(CUDA_ARRAY_SPARSE_PROPERTIES* sparseProperties, CUmipmappedArray mipmap) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMipmappedArrayGetSparseProperties + _check_or_init_driver() + if __cuMipmappedArrayGetSparseProperties == NULL: + with gil: + raise FunctionNotFoundError("function cuMipmappedArrayGetSparseProperties is not found") + return (__cuMipmappedArrayGetSparseProperties)( + sparseProperties, mipmap) + + +cdef CUresult _cuArrayGetMemoryRequirements(CUDA_ARRAY_MEMORY_REQUIREMENTS* memoryRequirements, CUarray array, CUdevice device) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuArrayGetMemoryRequirements + _check_or_init_driver() + if __cuArrayGetMemoryRequirements == NULL: + with gil: + raise FunctionNotFoundError("function cuArrayGetMemoryRequirements is not found") + return (__cuArrayGetMemoryRequirements)( + memoryRequirements, array, device) + + +cdef CUresult _cuMipmappedArrayGetMemoryRequirements(CUDA_ARRAY_MEMORY_REQUIREMENTS* memoryRequirements, CUmipmappedArray mipmap, CUdevice device) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMipmappedArrayGetMemoryRequirements + _check_or_init_driver() + if __cuMipmappedArrayGetMemoryRequirements == NULL: + with gil: + raise FunctionNotFoundError("function cuMipmappedArrayGetMemoryRequirements is not found") + return (__cuMipmappedArrayGetMemoryRequirements)( + memoryRequirements, mipmap, device) + + +cdef CUresult _cuArrayGetPlane(CUarray* pPlaneArray, CUarray hArray, unsigned int planeIdx) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuArrayGetPlane + _check_or_init_driver() + if __cuArrayGetPlane == NULL: + with gil: + raise FunctionNotFoundError("function cuArrayGetPlane is not found") + return (__cuArrayGetPlane)( + pPlaneArray, hArray, planeIdx) + + +cdef CUresult _cuArrayDestroy(CUarray hArray) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuArrayDestroy + _check_or_init_driver() + if __cuArrayDestroy == NULL: + with gil: + raise FunctionNotFoundError("function cuArrayDestroy is not found") + return (__cuArrayDestroy)( + hArray) + + +cdef CUresult _cuArray3DCreate_v2(CUarray* pHandle, const CUDA_ARRAY3D_DESCRIPTOR* pAllocateArray) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuArray3DCreate_v2 + _check_or_init_driver() + if __cuArray3DCreate_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuArray3DCreate_v2 is not found") + return (__cuArray3DCreate_v2)( + pHandle, pAllocateArray) + + +cdef CUresult _cuArray3DGetDescriptor_v2(CUDA_ARRAY3D_DESCRIPTOR* pArrayDescriptor, CUarray hArray) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuArray3DGetDescriptor_v2 + _check_or_init_driver() + if __cuArray3DGetDescriptor_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuArray3DGetDescriptor_v2 is not found") + return (__cuArray3DGetDescriptor_v2)( + pArrayDescriptor, hArray) + + +cdef CUresult _cuMipmappedArrayCreate(CUmipmappedArray* pHandle, const CUDA_ARRAY3D_DESCRIPTOR* pMipmappedArrayDesc, unsigned int numMipmapLevels) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMipmappedArrayCreate + _check_or_init_driver() + if __cuMipmappedArrayCreate == NULL: + with gil: + raise FunctionNotFoundError("function cuMipmappedArrayCreate is not found") + return (__cuMipmappedArrayCreate)( + pHandle, pMipmappedArrayDesc, numMipmapLevels) + + +cdef CUresult _cuMipmappedArrayGetLevel(CUarray* pLevelArray, CUmipmappedArray hMipmappedArray, unsigned int level) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMipmappedArrayGetLevel + _check_or_init_driver() + if __cuMipmappedArrayGetLevel == NULL: + with gil: + raise FunctionNotFoundError("function cuMipmappedArrayGetLevel is not found") + return (__cuMipmappedArrayGetLevel)( + pLevelArray, hMipmappedArray, level) + + +cdef CUresult _cuMipmappedArrayDestroy(CUmipmappedArray hMipmappedArray) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMipmappedArrayDestroy + _check_or_init_driver() + if __cuMipmappedArrayDestroy == NULL: + with gil: + raise FunctionNotFoundError("function cuMipmappedArrayDestroy is not found") + return (__cuMipmappedArrayDestroy)( + hMipmappedArray) + + +cdef CUresult _cuMemGetHandleForAddressRange(void* handle, CUdeviceptr dptr, size_t size, CUmemRangeHandleType handleType, unsigned long long flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemGetHandleForAddressRange + _check_or_init_driver() + if __cuMemGetHandleForAddressRange == NULL: + with gil: + raise FunctionNotFoundError("function cuMemGetHandleForAddressRange is not found") + return (__cuMemGetHandleForAddressRange)( + handle, dptr, size, handleType, flags) + + +cdef CUresult _cuMemBatchDecompressAsync(CUmemDecompressParams* paramsArray, size_t count, unsigned int flags, size_t* errorIndex, CUstream stream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemBatchDecompressAsync + _check_or_init_driver() + if __cuMemBatchDecompressAsync == NULL: + with gil: + raise FunctionNotFoundError("function cuMemBatchDecompressAsync is not found") + return (__cuMemBatchDecompressAsync)( + paramsArray, count, flags, errorIndex, stream) + + +cdef CUresult _cuMemAddressReserve(CUdeviceptr* ptr, size_t size, size_t alignment, CUdeviceptr addr, unsigned long long flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemAddressReserve + _check_or_init_driver() + if __cuMemAddressReserve == NULL: + with gil: + raise FunctionNotFoundError("function cuMemAddressReserve is not found") + return (__cuMemAddressReserve)( + ptr, size, alignment, addr, flags) + + +cdef CUresult _cuMemAddressFree(CUdeviceptr ptr, size_t size) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemAddressFree + _check_or_init_driver() + if __cuMemAddressFree == NULL: + with gil: + raise FunctionNotFoundError("function cuMemAddressFree is not found") + return (__cuMemAddressFree)( + ptr, size) + + +cdef CUresult _cuMemCreate(CUmemGenericAllocationHandle* handle, size_t size, const CUmemAllocationProp* prop, unsigned long long flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemCreate + _check_or_init_driver() + if __cuMemCreate == NULL: + with gil: + raise FunctionNotFoundError("function cuMemCreate is not found") + return (__cuMemCreate)( + handle, size, prop, flags) + + +cdef CUresult _cuMemRelease(CUmemGenericAllocationHandle handle) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemRelease + _check_or_init_driver() + if __cuMemRelease == NULL: + with gil: + raise FunctionNotFoundError("function cuMemRelease is not found") + return (__cuMemRelease)( + handle) + + +cdef CUresult _cuMemMap(CUdeviceptr ptr, size_t size, size_t offset, CUmemGenericAllocationHandle handle, unsigned long long flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemMap + _check_or_init_driver() + if __cuMemMap == NULL: + with gil: + raise FunctionNotFoundError("function cuMemMap is not found") + return (__cuMemMap)( + ptr, size, offset, handle, flags) + + +cdef CUresult _cuMemMapArrayAsync(CUarrayMapInfo* mapInfoList, unsigned int count, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemMapArrayAsync + _check_or_init_driver() + if __cuMemMapArrayAsync == NULL: + with gil: + raise FunctionNotFoundError("function cuMemMapArrayAsync is not found") + return (__cuMemMapArrayAsync)( + mapInfoList, count, hStream) + + +cdef CUresult _cuMemUnmap(CUdeviceptr ptr, size_t size) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemUnmap + _check_or_init_driver() + if __cuMemUnmap == NULL: + with gil: + raise FunctionNotFoundError("function cuMemUnmap is not found") + return (__cuMemUnmap)( + ptr, size) + + +cdef CUresult _cuMemSetAccess(CUdeviceptr ptr, size_t size, const CUmemAccessDesc* desc, size_t count) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemSetAccess + _check_or_init_driver() + if __cuMemSetAccess == NULL: + with gil: + raise FunctionNotFoundError("function cuMemSetAccess is not found") + return (__cuMemSetAccess)( + ptr, size, desc, count) + + +cdef CUresult _cuMemGetAccess(unsigned long long* flags, const CUmemLocation* location, CUdeviceptr ptr) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemGetAccess + _check_or_init_driver() + if __cuMemGetAccess == NULL: + with gil: + raise FunctionNotFoundError("function cuMemGetAccess is not found") + return (__cuMemGetAccess)( + flags, location, ptr) + + +cdef CUresult _cuMemExportToShareableHandle(void* shareableHandle, CUmemGenericAllocationHandle handle, CUmemAllocationHandleType handleType, unsigned long long flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemExportToShareableHandle + _check_or_init_driver() + if __cuMemExportToShareableHandle == NULL: + with gil: + raise FunctionNotFoundError("function cuMemExportToShareableHandle is not found") + return (__cuMemExportToShareableHandle)( + shareableHandle, handle, handleType, flags) + + +cdef CUresult _cuMemImportFromShareableHandle(CUmemGenericAllocationHandle* handle, void* osHandle, CUmemAllocationHandleType shHandleType) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemImportFromShareableHandle + _check_or_init_driver() + if __cuMemImportFromShareableHandle == NULL: + with gil: + raise FunctionNotFoundError("function cuMemImportFromShareableHandle is not found") + return (__cuMemImportFromShareableHandle)( + handle, osHandle, shHandleType) + + +cdef CUresult _cuMemGetAllocationGranularity(size_t* granularity, const CUmemAllocationProp* prop, CUmemAllocationGranularity_flags option) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemGetAllocationGranularity + _check_or_init_driver() + if __cuMemGetAllocationGranularity == NULL: + with gil: + raise FunctionNotFoundError("function cuMemGetAllocationGranularity is not found") + return (__cuMemGetAllocationGranularity)( + granularity, prop, option) + + +cdef CUresult _cuMemGetAllocationPropertiesFromHandle(CUmemAllocationProp* prop, CUmemGenericAllocationHandle handle) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemGetAllocationPropertiesFromHandle + _check_or_init_driver() + if __cuMemGetAllocationPropertiesFromHandle == NULL: + with gil: + raise FunctionNotFoundError("function cuMemGetAllocationPropertiesFromHandle is not found") + return (__cuMemGetAllocationPropertiesFromHandle)( + prop, handle) + + +cdef CUresult _cuMemRetainAllocationHandle(CUmemGenericAllocationHandle* handle, void* addr) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemRetainAllocationHandle + _check_or_init_driver() + if __cuMemRetainAllocationHandle == NULL: + with gil: + raise FunctionNotFoundError("function cuMemRetainAllocationHandle is not found") + return (__cuMemRetainAllocationHandle)( + handle, addr) + + +cdef CUresult _cuMemFreeAsync(CUdeviceptr dptr, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemFreeAsync + _check_or_init_driver() + if __cuMemFreeAsync == NULL: + with gil: + raise FunctionNotFoundError("function cuMemFreeAsync is not found") + return (__cuMemFreeAsync)( + dptr, hStream) + + +cdef CUresult _cuMemAllocAsync(CUdeviceptr* dptr, size_t bytesize, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemAllocAsync + _check_or_init_driver() + if __cuMemAllocAsync == NULL: + with gil: + raise FunctionNotFoundError("function cuMemAllocAsync is not found") + return (__cuMemAllocAsync)( + dptr, bytesize, hStream) + + +cdef CUresult _cuMemPoolTrimTo(CUmemoryPool pool, size_t minBytesToKeep) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemPoolTrimTo + _check_or_init_driver() + if __cuMemPoolTrimTo == NULL: + with gil: + raise FunctionNotFoundError("function cuMemPoolTrimTo is not found") + return (__cuMemPoolTrimTo)( + pool, minBytesToKeep) + + +cdef CUresult _cuMemPoolSetAttribute(CUmemoryPool pool, CUmemPool_attribute attr, void* value) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemPoolSetAttribute + _check_or_init_driver() + if __cuMemPoolSetAttribute == NULL: + with gil: + raise FunctionNotFoundError("function cuMemPoolSetAttribute is not found") + return (__cuMemPoolSetAttribute)( + pool, attr, value) + + +cdef CUresult _cuMemPoolGetAttribute(CUmemoryPool pool, CUmemPool_attribute attr, void* value) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemPoolGetAttribute + _check_or_init_driver() + if __cuMemPoolGetAttribute == NULL: + with gil: + raise FunctionNotFoundError("function cuMemPoolGetAttribute is not found") + return (__cuMemPoolGetAttribute)( + pool, attr, value) + + +cdef CUresult _cuMemPoolSetAccess(CUmemoryPool pool, const CUmemAccessDesc* map, size_t count) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemPoolSetAccess + _check_or_init_driver() + if __cuMemPoolSetAccess == NULL: + with gil: + raise FunctionNotFoundError("function cuMemPoolSetAccess is not found") + return (__cuMemPoolSetAccess)( + pool, map, count) + + +cdef CUresult _cuMemPoolGetAccess(CUmemAccess_flags* flags, CUmemoryPool memPool, CUmemLocation* location) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemPoolGetAccess + _check_or_init_driver() + if __cuMemPoolGetAccess == NULL: + with gil: + raise FunctionNotFoundError("function cuMemPoolGetAccess is not found") + return (__cuMemPoolGetAccess)( + flags, memPool, location) + + +cdef CUresult _cuMemPoolCreate(CUmemoryPool* pool, const CUmemPoolProps* poolProps) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemPoolCreate + _check_or_init_driver() + if __cuMemPoolCreate == NULL: + with gil: + raise FunctionNotFoundError("function cuMemPoolCreate is not found") + return (__cuMemPoolCreate)( + pool, poolProps) + + +cdef CUresult _cuMemPoolDestroy(CUmemoryPool pool) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemPoolDestroy + _check_or_init_driver() + if __cuMemPoolDestroy == NULL: + with gil: + raise FunctionNotFoundError("function cuMemPoolDestroy is not found") + return (__cuMemPoolDestroy)( + pool) + + +cdef CUresult _cuMemAllocFromPoolAsync(CUdeviceptr* dptr, size_t bytesize, CUmemoryPool pool, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemAllocFromPoolAsync + _check_or_init_driver() + if __cuMemAllocFromPoolAsync == NULL: + with gil: + raise FunctionNotFoundError("function cuMemAllocFromPoolAsync is not found") + return (__cuMemAllocFromPoolAsync)( + dptr, bytesize, pool, hStream) + + +cdef CUresult _cuMemPoolExportToShareableHandle(void* handle_out, CUmemoryPool pool, CUmemAllocationHandleType handleType, unsigned long long flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemPoolExportToShareableHandle + _check_or_init_driver() + if __cuMemPoolExportToShareableHandle == NULL: + with gil: + raise FunctionNotFoundError("function cuMemPoolExportToShareableHandle is not found") + return (__cuMemPoolExportToShareableHandle)( + handle_out, pool, handleType, flags) + + +cdef CUresult _cuMemPoolImportFromShareableHandle(CUmemoryPool* pool_out, void* handle, CUmemAllocationHandleType handleType, unsigned long long flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemPoolImportFromShareableHandle + _check_or_init_driver() + if __cuMemPoolImportFromShareableHandle == NULL: + with gil: + raise FunctionNotFoundError("function cuMemPoolImportFromShareableHandle is not found") + return (__cuMemPoolImportFromShareableHandle)( + pool_out, handle, handleType, flags) + + +cdef CUresult _cuMemPoolExportPointer(CUmemPoolPtrExportData* shareData_out, CUdeviceptr ptr) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemPoolExportPointer + _check_or_init_driver() + if __cuMemPoolExportPointer == NULL: + with gil: + raise FunctionNotFoundError("function cuMemPoolExportPointer is not found") + return (__cuMemPoolExportPointer)( + shareData_out, ptr) + + +cdef CUresult _cuMemPoolImportPointer(CUdeviceptr* ptr_out, CUmemoryPool pool, CUmemPoolPtrExportData* shareData) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemPoolImportPointer + _check_or_init_driver() + if __cuMemPoolImportPointer == NULL: + with gil: + raise FunctionNotFoundError("function cuMemPoolImportPointer is not found") + return (__cuMemPoolImportPointer)( + ptr_out, pool, shareData) + + +cdef CUresult _cuMulticastCreate(CUmemGenericAllocationHandle* mcHandle, const CUmulticastObjectProp* prop) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMulticastCreate + _check_or_init_driver() + if __cuMulticastCreate == NULL: + with gil: + raise FunctionNotFoundError("function cuMulticastCreate is not found") + return (__cuMulticastCreate)( + mcHandle, prop) + + +cdef CUresult _cuMulticastAddDevice(CUmemGenericAllocationHandle mcHandle, CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMulticastAddDevice + _check_or_init_driver() + if __cuMulticastAddDevice == NULL: + with gil: + raise FunctionNotFoundError("function cuMulticastAddDevice is not found") + return (__cuMulticastAddDevice)( + mcHandle, dev) + + +cdef CUresult _cuMulticastBindMem(CUmemGenericAllocationHandle mcHandle, size_t mcOffset, CUmemGenericAllocationHandle memHandle, size_t memOffset, size_t size, unsigned long long flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMulticastBindMem + _check_or_init_driver() + if __cuMulticastBindMem == NULL: + with gil: + raise FunctionNotFoundError("function cuMulticastBindMem is not found") + return (__cuMulticastBindMem)( + mcHandle, mcOffset, memHandle, memOffset, size, flags) + + +cdef CUresult _cuMulticastBindAddr(CUmemGenericAllocationHandle mcHandle, size_t mcOffset, CUdeviceptr memptr, size_t size, unsigned long long flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMulticastBindAddr + _check_or_init_driver() + if __cuMulticastBindAddr == NULL: + with gil: + raise FunctionNotFoundError("function cuMulticastBindAddr is not found") + return (__cuMulticastBindAddr)( + mcHandle, mcOffset, memptr, size, flags) + + +cdef CUresult _cuMulticastUnbind(CUmemGenericAllocationHandle mcHandle, CUdevice dev, size_t mcOffset, size_t size) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMulticastUnbind + _check_or_init_driver() + if __cuMulticastUnbind == NULL: + with gil: + raise FunctionNotFoundError("function cuMulticastUnbind is not found") + return (__cuMulticastUnbind)( + mcHandle, dev, mcOffset, size) + + +cdef CUresult _cuMulticastGetGranularity(size_t* granularity, const CUmulticastObjectProp* prop, CUmulticastGranularity_flags option) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMulticastGetGranularity + _check_or_init_driver() + if __cuMulticastGetGranularity == NULL: + with gil: + raise FunctionNotFoundError("function cuMulticastGetGranularity is not found") + return (__cuMulticastGetGranularity)( + granularity, prop, option) + + +cdef CUresult _cuPointerGetAttribute(void* data, CUpointer_attribute attribute, CUdeviceptr ptr) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuPointerGetAttribute + _check_or_init_driver() + if __cuPointerGetAttribute == NULL: + with gil: + raise FunctionNotFoundError("function cuPointerGetAttribute is not found") + return (__cuPointerGetAttribute)( + data, attribute, ptr) + + +cdef CUresult _cuMemPrefetchAsync_v2(CUdeviceptr devPtr, size_t count, CUmemLocation location, unsigned int flags, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemPrefetchAsync_v2 + _check_or_init_driver() + if __cuMemPrefetchAsync_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuMemPrefetchAsync_v2 is not found") + return (__cuMemPrefetchAsync_v2)( + devPtr, count, location, flags, hStream) + + +cdef CUresult _cuMemAdvise_v2(CUdeviceptr devPtr, size_t count, CUmem_advise advice, CUmemLocation location) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemAdvise_v2 + _check_or_init_driver() + if __cuMemAdvise_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuMemAdvise_v2 is not found") + return (__cuMemAdvise_v2)( + devPtr, count, advice, location) + + +cdef CUresult _cuMemRangeGetAttribute(void* data, size_t dataSize, CUmem_range_attribute attribute, CUdeviceptr devPtr, size_t count) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemRangeGetAttribute + _check_or_init_driver() + if __cuMemRangeGetAttribute == NULL: + with gil: + raise FunctionNotFoundError("function cuMemRangeGetAttribute is not found") + return (__cuMemRangeGetAttribute)( + data, dataSize, attribute, devPtr, count) + + +cdef CUresult _cuMemRangeGetAttributes(void** data, size_t* dataSizes, CUmem_range_attribute* attributes, size_t numAttributes, CUdeviceptr devPtr, size_t count) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemRangeGetAttributes + _check_or_init_driver() + if __cuMemRangeGetAttributes == NULL: + with gil: + raise FunctionNotFoundError("function cuMemRangeGetAttributes is not found") + return (__cuMemRangeGetAttributes)( + data, dataSizes, attributes, numAttributes, devPtr, count) + + +cdef CUresult _cuPointerSetAttribute(const void* value, CUpointer_attribute attribute, CUdeviceptr ptr) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuPointerSetAttribute + _check_or_init_driver() + if __cuPointerSetAttribute == NULL: + with gil: + raise FunctionNotFoundError("function cuPointerSetAttribute is not found") + return (__cuPointerSetAttribute)( + value, attribute, ptr) + + +cdef CUresult _cuPointerGetAttributes(unsigned int numAttributes, CUpointer_attribute* attributes, void** data, CUdeviceptr ptr) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuPointerGetAttributes + _check_or_init_driver() + if __cuPointerGetAttributes == NULL: + with gil: + raise FunctionNotFoundError("function cuPointerGetAttributes is not found") + return (__cuPointerGetAttributes)( + numAttributes, attributes, data, ptr) + + +cdef CUresult _cuStreamCreate(CUstream* phStream, unsigned int Flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuStreamCreate + _check_or_init_driver() + if __cuStreamCreate == NULL: + with gil: + raise FunctionNotFoundError("function cuStreamCreate is not found") + return (__cuStreamCreate)( + phStream, Flags) + + +cdef CUresult _cuStreamCreateWithPriority(CUstream* phStream, unsigned int flags, int priority) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuStreamCreateWithPriority + _check_or_init_driver() + if __cuStreamCreateWithPriority == NULL: + with gil: + raise FunctionNotFoundError("function cuStreamCreateWithPriority is not found") + return (__cuStreamCreateWithPriority)( + phStream, flags, priority) + + +cdef CUresult _cuStreamGetPriority(CUstream hStream, int* priority) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuStreamGetPriority + _check_or_init_driver() + if __cuStreamGetPriority == NULL: + with gil: + raise FunctionNotFoundError("function cuStreamGetPriority is not found") + return (__cuStreamGetPriority)( + hStream, priority) + + +cdef CUresult _cuStreamGetDevice(CUstream hStream, CUdevice* device) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuStreamGetDevice + _check_or_init_driver() + if __cuStreamGetDevice == NULL: + with gil: + raise FunctionNotFoundError("function cuStreamGetDevice is not found") + return (__cuStreamGetDevice)( + hStream, device) + + +cdef CUresult _cuStreamGetFlags(CUstream hStream, unsigned int* flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuStreamGetFlags + _check_or_init_driver() + if __cuStreamGetFlags == NULL: + with gil: + raise FunctionNotFoundError("function cuStreamGetFlags is not found") + return (__cuStreamGetFlags)( + hStream, flags) + + +cdef CUresult _cuStreamGetId(CUstream hStream, unsigned long long* streamId) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuStreamGetId + _check_or_init_driver() + if __cuStreamGetId == NULL: + with gil: + raise FunctionNotFoundError("function cuStreamGetId is not found") + return (__cuStreamGetId)( + hStream, streamId) + + +cdef CUresult _cuStreamGetCtx(CUstream hStream, CUcontext* pctx) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuStreamGetCtx + _check_or_init_driver() + if __cuStreamGetCtx == NULL: + with gil: + raise FunctionNotFoundError("function cuStreamGetCtx is not found") + return (__cuStreamGetCtx)( + hStream, pctx) + + +cdef CUresult _cuStreamGetCtx_v2(CUstream hStream, CUcontext* pCtx, CUgreenCtx* pGreenCtx) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuStreamGetCtx_v2 + _check_or_init_driver() + if __cuStreamGetCtx_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuStreamGetCtx_v2 is not found") + return (__cuStreamGetCtx_v2)( + hStream, pCtx, pGreenCtx) + + +cdef CUresult _cuStreamWaitEvent(CUstream hStream, CUevent hEvent, unsigned int Flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuStreamWaitEvent + _check_or_init_driver() + if __cuStreamWaitEvent == NULL: + with gil: + raise FunctionNotFoundError("function cuStreamWaitEvent is not found") + return (__cuStreamWaitEvent)( + hStream, hEvent, Flags) + + +cdef CUresult _cuStreamAddCallback(CUstream hStream, CUstreamCallback callback, void* userData, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuStreamAddCallback + _check_or_init_driver() + if __cuStreamAddCallback == NULL: + with gil: + raise FunctionNotFoundError("function cuStreamAddCallback is not found") + return (__cuStreamAddCallback)( + hStream, callback, userData, flags) + + +cdef CUresult _cuStreamBeginCapture_v2(CUstream hStream, CUstreamCaptureMode mode) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuStreamBeginCapture_v2 + _check_or_init_driver() + if __cuStreamBeginCapture_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuStreamBeginCapture_v2 is not found") + return (__cuStreamBeginCapture_v2)( + hStream, mode) + + +cdef CUresult _cuStreamBeginCaptureToGraph(CUstream hStream, CUgraph hGraph, const CUgraphNode* dependencies, const CUgraphEdgeData* dependencyData, size_t numDependencies, CUstreamCaptureMode mode) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuStreamBeginCaptureToGraph + _check_or_init_driver() + if __cuStreamBeginCaptureToGraph == NULL: + with gil: + raise FunctionNotFoundError("function cuStreamBeginCaptureToGraph is not found") + return (__cuStreamBeginCaptureToGraph)( + hStream, hGraph, dependencies, dependencyData, numDependencies, mode) + + +cdef CUresult _cuThreadExchangeStreamCaptureMode(CUstreamCaptureMode* mode) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuThreadExchangeStreamCaptureMode + _check_or_init_driver() + if __cuThreadExchangeStreamCaptureMode == NULL: + with gil: + raise FunctionNotFoundError("function cuThreadExchangeStreamCaptureMode is not found") + return (__cuThreadExchangeStreamCaptureMode)( + mode) + + +cdef CUresult _cuStreamEndCapture(CUstream hStream, CUgraph* phGraph) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuStreamEndCapture + _check_or_init_driver() + if __cuStreamEndCapture == NULL: + with gil: + raise FunctionNotFoundError("function cuStreamEndCapture is not found") + return (__cuStreamEndCapture)( + hStream, phGraph) + + +cdef CUresult _cuStreamIsCapturing(CUstream hStream, CUstreamCaptureStatus* captureStatus) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuStreamIsCapturing + _check_or_init_driver() + if __cuStreamIsCapturing == NULL: + with gil: + raise FunctionNotFoundError("function cuStreamIsCapturing is not found") + return (__cuStreamIsCapturing)( + hStream, captureStatus) + + +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?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuStreamGetCaptureInfo_v3 + _check_or_init_driver() + if __cuStreamGetCaptureInfo_v3 == NULL: + with gil: + raise FunctionNotFoundError("function cuStreamGetCaptureInfo_v3 is not found") + return (__cuStreamGetCaptureInfo_v3)( + hStream, captureStatus_out, id_out, graph_out, dependencies_out, edgeData_out, numDependencies_out) + + +cdef CUresult _cuStreamUpdateCaptureDependencies_v2(CUstream hStream, CUgraphNode* dependencies, const CUgraphEdgeData* dependencyData, size_t numDependencies, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuStreamUpdateCaptureDependencies_v2 + _check_or_init_driver() + if __cuStreamUpdateCaptureDependencies_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuStreamUpdateCaptureDependencies_v2 is not found") + return (__cuStreamUpdateCaptureDependencies_v2)( + hStream, dependencies, dependencyData, numDependencies, flags) + + +cdef CUresult _cuStreamAttachMemAsync(CUstream hStream, CUdeviceptr dptr, size_t length, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuStreamAttachMemAsync + _check_or_init_driver() + if __cuStreamAttachMemAsync == NULL: + with gil: + raise FunctionNotFoundError("function cuStreamAttachMemAsync is not found") + return (__cuStreamAttachMemAsync)( + hStream, dptr, length, flags) + + +cdef CUresult _cuStreamQuery(CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuStreamQuery + _check_or_init_driver() + if __cuStreamQuery == NULL: + with gil: + raise FunctionNotFoundError("function cuStreamQuery is not found") + return (__cuStreamQuery)( + hStream) + + +cdef CUresult _cuStreamSynchronize(CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuStreamSynchronize + _check_or_init_driver() + if __cuStreamSynchronize == NULL: + with gil: + raise FunctionNotFoundError("function cuStreamSynchronize is not found") + return (__cuStreamSynchronize)( + hStream) + + +cdef CUresult _cuStreamDestroy_v2(CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuStreamDestroy_v2 + _check_or_init_driver() + if __cuStreamDestroy_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuStreamDestroy_v2 is not found") + return (__cuStreamDestroy_v2)( + hStream) + + +cdef CUresult _cuStreamCopyAttributes(CUstream dst, CUstream src) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuStreamCopyAttributes + _check_or_init_driver() + if __cuStreamCopyAttributes == NULL: + with gil: + raise FunctionNotFoundError("function cuStreamCopyAttributes is not found") + return (__cuStreamCopyAttributes)( + dst, src) + + +cdef CUresult _cuStreamGetAttribute(CUstream hStream, CUstreamAttrID attr, CUstreamAttrValue* value_out) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuStreamGetAttribute + _check_or_init_driver() + if __cuStreamGetAttribute == NULL: + with gil: + raise FunctionNotFoundError("function cuStreamGetAttribute is not found") + return (__cuStreamGetAttribute)( + hStream, attr, value_out) + + +cdef CUresult _cuStreamSetAttribute(CUstream hStream, CUstreamAttrID attr, const CUstreamAttrValue* value) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuStreamSetAttribute + _check_or_init_driver() + if __cuStreamSetAttribute == NULL: + with gil: + raise FunctionNotFoundError("function cuStreamSetAttribute is not found") + return (__cuStreamSetAttribute)( + hStream, attr, value) + + +cdef CUresult _cuEventCreate(CUevent* phEvent, unsigned int Flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuEventCreate + _check_or_init_driver() + if __cuEventCreate == NULL: + with gil: + raise FunctionNotFoundError("function cuEventCreate is not found") + return (__cuEventCreate)( + phEvent, Flags) + + +cdef CUresult _cuEventRecord(CUevent hEvent, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuEventRecord + _check_or_init_driver() + if __cuEventRecord == NULL: + with gil: + raise FunctionNotFoundError("function cuEventRecord is not found") + return (__cuEventRecord)( + hEvent, hStream) + + +cdef CUresult _cuEventRecordWithFlags(CUevent hEvent, CUstream hStream, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuEventRecordWithFlags + _check_or_init_driver() + if __cuEventRecordWithFlags == NULL: + with gil: + raise FunctionNotFoundError("function cuEventRecordWithFlags is not found") + return (__cuEventRecordWithFlags)( + hEvent, hStream, flags) + + +cdef CUresult _cuEventQuery(CUevent hEvent) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuEventQuery + _check_or_init_driver() + if __cuEventQuery == NULL: + with gil: + raise FunctionNotFoundError("function cuEventQuery is not found") + return (__cuEventQuery)( + hEvent) + + +cdef CUresult _cuEventSynchronize(CUevent hEvent) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuEventSynchronize + _check_or_init_driver() + if __cuEventSynchronize == NULL: + with gil: + raise FunctionNotFoundError("function cuEventSynchronize is not found") + return (__cuEventSynchronize)( + hEvent) + + +cdef CUresult _cuEventDestroy_v2(CUevent hEvent) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuEventDestroy_v2 + _check_or_init_driver() + if __cuEventDestroy_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuEventDestroy_v2 is not found") + return (__cuEventDestroy_v2)( + hEvent) + + +cdef CUresult _cuEventElapsedTime_v2(float* pMilliseconds, CUevent hStart, CUevent hEnd) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuEventElapsedTime_v2 + _check_or_init_driver() + if __cuEventElapsedTime_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuEventElapsedTime_v2 is not found") + return (__cuEventElapsedTime_v2)( + pMilliseconds, hStart, hEnd) + + +cdef CUresult _cuImportExternalMemory(CUexternalMemory* extMem_out, const CUDA_EXTERNAL_MEMORY_HANDLE_DESC* memHandleDesc) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuImportExternalMemory + _check_or_init_driver() + if __cuImportExternalMemory == NULL: + with gil: + raise FunctionNotFoundError("function cuImportExternalMemory is not found") + return (__cuImportExternalMemory)( + extMem_out, memHandleDesc) + + +cdef CUresult _cuExternalMemoryGetMappedBuffer(CUdeviceptr* devPtr, CUexternalMemory extMem, const CUDA_EXTERNAL_MEMORY_BUFFER_DESC* bufferDesc) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuExternalMemoryGetMappedBuffer + _check_or_init_driver() + if __cuExternalMemoryGetMappedBuffer == NULL: + with gil: + raise FunctionNotFoundError("function cuExternalMemoryGetMappedBuffer is not found") + return (__cuExternalMemoryGetMappedBuffer)( + devPtr, extMem, bufferDesc) + + +cdef CUresult _cuExternalMemoryGetMappedMipmappedArray(CUmipmappedArray* mipmap, CUexternalMemory extMem, const CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC* mipmapDesc) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuExternalMemoryGetMappedMipmappedArray + _check_or_init_driver() + if __cuExternalMemoryGetMappedMipmappedArray == NULL: + with gil: + raise FunctionNotFoundError("function cuExternalMemoryGetMappedMipmappedArray is not found") + return (__cuExternalMemoryGetMappedMipmappedArray)( + mipmap, extMem, mipmapDesc) + + +cdef CUresult _cuDestroyExternalMemory(CUexternalMemory extMem) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuDestroyExternalMemory + _check_or_init_driver() + if __cuDestroyExternalMemory == NULL: + with gil: + raise FunctionNotFoundError("function cuDestroyExternalMemory is not found") + return (__cuDestroyExternalMemory)( + extMem) + + +cdef CUresult _cuImportExternalSemaphore(CUexternalSemaphore* extSem_out, const CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC* semHandleDesc) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuImportExternalSemaphore + _check_or_init_driver() + if __cuImportExternalSemaphore == NULL: + with gil: + raise FunctionNotFoundError("function cuImportExternalSemaphore is not found") + return (__cuImportExternalSemaphore)( + extSem_out, semHandleDesc) + + +cdef CUresult _cuSignalExternalSemaphoresAsync(const CUexternalSemaphore* extSemArray, const CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS* paramsArray, unsigned int numExtSems, CUstream stream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuSignalExternalSemaphoresAsync + _check_or_init_driver() + if __cuSignalExternalSemaphoresAsync == NULL: + with gil: + raise FunctionNotFoundError("function cuSignalExternalSemaphoresAsync is not found") + return (__cuSignalExternalSemaphoresAsync)( + extSemArray, paramsArray, numExtSems, stream) + + +cdef CUresult _cuWaitExternalSemaphoresAsync(const CUexternalSemaphore* extSemArray, const CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS* paramsArray, unsigned int numExtSems, CUstream stream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuWaitExternalSemaphoresAsync + _check_or_init_driver() + if __cuWaitExternalSemaphoresAsync == NULL: + with gil: + raise FunctionNotFoundError("function cuWaitExternalSemaphoresAsync is not found") + return (__cuWaitExternalSemaphoresAsync)( + extSemArray, paramsArray, numExtSems, stream) + + +cdef CUresult _cuDestroyExternalSemaphore(CUexternalSemaphore extSem) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuDestroyExternalSemaphore + _check_or_init_driver() + if __cuDestroyExternalSemaphore == NULL: + with gil: + raise FunctionNotFoundError("function cuDestroyExternalSemaphore is not found") + return (__cuDestroyExternalSemaphore)( + extSem) + + +cdef CUresult _cuStreamWaitValue32_v2(CUstream stream, CUdeviceptr addr, cuuint32_t value, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuStreamWaitValue32_v2 + _check_or_init_driver() + if __cuStreamWaitValue32_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuStreamWaitValue32_v2 is not found") + return (__cuStreamWaitValue32_v2)( + stream, addr, value, flags) + + +cdef CUresult _cuStreamWaitValue64_v2(CUstream stream, CUdeviceptr addr, cuuint64_t value, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuStreamWaitValue64_v2 + _check_or_init_driver() + if __cuStreamWaitValue64_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuStreamWaitValue64_v2 is not found") + return (__cuStreamWaitValue64_v2)( + stream, addr, value, flags) + + +cdef CUresult _cuStreamWriteValue32_v2(CUstream stream, CUdeviceptr addr, cuuint32_t value, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuStreamWriteValue32_v2 + _check_or_init_driver() + if __cuStreamWriteValue32_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuStreamWriteValue32_v2 is not found") + return (__cuStreamWriteValue32_v2)( + stream, addr, value, flags) + + +cdef CUresult _cuStreamWriteValue64_v2(CUstream stream, CUdeviceptr addr, cuuint64_t value, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuStreamWriteValue64_v2 + _check_or_init_driver() + if __cuStreamWriteValue64_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuStreamWriteValue64_v2 is not found") + return (__cuStreamWriteValue64_v2)( + stream, addr, value, flags) + + +cdef CUresult _cuStreamBatchMemOp_v2(CUstream stream, unsigned int count, CUstreamBatchMemOpParams* paramArray, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuStreamBatchMemOp_v2 + _check_or_init_driver() + if __cuStreamBatchMemOp_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuStreamBatchMemOp_v2 is not found") + return (__cuStreamBatchMemOp_v2)( + stream, count, paramArray, flags) + + +cdef CUresult _cuFuncGetAttribute(int* pi, CUfunction_attribute attrib, CUfunction hfunc) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuFuncGetAttribute + _check_or_init_driver() + if __cuFuncGetAttribute == NULL: + with gil: + raise FunctionNotFoundError("function cuFuncGetAttribute is not found") + return (__cuFuncGetAttribute)( + pi, attrib, hfunc) + + +cdef CUresult _cuFuncSetAttribute(CUfunction hfunc, CUfunction_attribute attrib, int value) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuFuncSetAttribute + _check_or_init_driver() + if __cuFuncSetAttribute == NULL: + with gil: + raise FunctionNotFoundError("function cuFuncSetAttribute is not found") + return (__cuFuncSetAttribute)( + hfunc, attrib, value) + + +cdef CUresult _cuFuncSetCacheConfig(CUfunction hfunc, CUfunc_cache config) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuFuncSetCacheConfig + _check_or_init_driver() + if __cuFuncSetCacheConfig == NULL: + with gil: + raise FunctionNotFoundError("function cuFuncSetCacheConfig is not found") + return (__cuFuncSetCacheConfig)( + hfunc, config) + + +cdef CUresult _cuFuncGetModule(CUmodule* hmod, CUfunction hfunc) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuFuncGetModule + _check_or_init_driver() + if __cuFuncGetModule == NULL: + with gil: + raise FunctionNotFoundError("function cuFuncGetModule is not found") + return (__cuFuncGetModule)( + hmod, hfunc) + + +cdef CUresult _cuFuncGetName(const char** name, CUfunction hfunc) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuFuncGetName + _check_or_init_driver() + if __cuFuncGetName == NULL: + with gil: + raise FunctionNotFoundError("function cuFuncGetName is not found") + return (__cuFuncGetName)( + name, hfunc) + + +cdef CUresult _cuFuncGetParamInfo(CUfunction func, size_t paramIndex, size_t* paramOffset, size_t* paramSize) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuFuncGetParamInfo + _check_or_init_driver() + if __cuFuncGetParamInfo == NULL: + with gil: + raise FunctionNotFoundError("function cuFuncGetParamInfo is not found") + return (__cuFuncGetParamInfo)( + func, paramIndex, paramOffset, paramSize) + + +cdef CUresult _cuFuncIsLoaded(CUfunctionLoadingState* state, CUfunction function) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuFuncIsLoaded + _check_or_init_driver() + if __cuFuncIsLoaded == NULL: + with gil: + raise FunctionNotFoundError("function cuFuncIsLoaded is not found") + return (__cuFuncIsLoaded)( + state, function) + + +cdef CUresult _cuFuncLoad(CUfunction function) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuFuncLoad + _check_or_init_driver() + if __cuFuncLoad == NULL: + with gil: + raise FunctionNotFoundError("function cuFuncLoad is not found") + return (__cuFuncLoad)( + function) + + +cdef CUresult _cuLaunchKernel(CUfunction f, unsigned int gridDimX, unsigned int gridDimY, unsigned int gridDimZ, unsigned int blockDimX, unsigned int blockDimY, unsigned int blockDimZ, unsigned int sharedMemBytes, CUstream hStream, void** kernelParams, void** extra) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuLaunchKernel + _check_or_init_driver() + if __cuLaunchKernel == NULL: + with gil: + raise FunctionNotFoundError("function cuLaunchKernel is not found") + return (__cuLaunchKernel)( + f, gridDimX, gridDimY, gridDimZ, blockDimX, blockDimY, blockDimZ, sharedMemBytes, hStream, kernelParams, extra) + + +cdef CUresult _cuLaunchKernelEx(const CUlaunchConfig* config, CUfunction f, void** kernelParams, void** extra) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuLaunchKernelEx + _check_or_init_driver() + if __cuLaunchKernelEx == NULL: + with gil: + raise FunctionNotFoundError("function cuLaunchKernelEx is not found") + return (__cuLaunchKernelEx)( + config, f, kernelParams, extra) + + +cdef CUresult _cuLaunchCooperativeKernel(CUfunction f, unsigned int gridDimX, unsigned int gridDimY, unsigned int gridDimZ, unsigned int blockDimX, unsigned int blockDimY, unsigned int blockDimZ, unsigned int sharedMemBytes, CUstream hStream, void** kernelParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuLaunchCooperativeKernel + _check_or_init_driver() + if __cuLaunchCooperativeKernel == NULL: + with gil: + raise FunctionNotFoundError("function cuLaunchCooperativeKernel is not found") + return (__cuLaunchCooperativeKernel)( + f, gridDimX, gridDimY, gridDimZ, blockDimX, blockDimY, blockDimZ, sharedMemBytes, hStream, kernelParams) + + +cdef CUresult _cuLaunchCooperativeKernelMultiDevice(CUDA_LAUNCH_PARAMS* launchParamsList, unsigned int numDevices, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuLaunchCooperativeKernelMultiDevice + _check_or_init_driver() + if __cuLaunchCooperativeKernelMultiDevice == NULL: + with gil: + raise FunctionNotFoundError("function cuLaunchCooperativeKernelMultiDevice is not found") + return (__cuLaunchCooperativeKernelMultiDevice)( + launchParamsList, numDevices, flags) + + +cdef CUresult _cuLaunchHostFunc(CUstream hStream, CUhostFn fn, void* userData) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuLaunchHostFunc + _check_or_init_driver() + if __cuLaunchHostFunc == NULL: + with gil: + raise FunctionNotFoundError("function cuLaunchHostFunc is not found") + return (__cuLaunchHostFunc)( + hStream, fn, userData) + + +cdef CUresult _cuFuncSetBlockShape(CUfunction hfunc, int x, int y, int z) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuFuncSetBlockShape + _check_or_init_driver() + if __cuFuncSetBlockShape == NULL: + with gil: + raise FunctionNotFoundError("function cuFuncSetBlockShape is not found") + return (__cuFuncSetBlockShape)( + hfunc, x, y, z) + + +cdef CUresult _cuFuncSetSharedSize(CUfunction hfunc, unsigned int bytes) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuFuncSetSharedSize + _check_or_init_driver() + if __cuFuncSetSharedSize == NULL: + with gil: + raise FunctionNotFoundError("function cuFuncSetSharedSize is not found") + return (__cuFuncSetSharedSize)( + hfunc, bytes) + + +cdef CUresult _cuParamSetSize(CUfunction hfunc, unsigned int numbytes) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuParamSetSize + _check_or_init_driver() + if __cuParamSetSize == NULL: + with gil: + raise FunctionNotFoundError("function cuParamSetSize is not found") + return (__cuParamSetSize)( + hfunc, numbytes) + + +cdef CUresult _cuParamSeti(CUfunction hfunc, int offset, unsigned int value) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuParamSeti + _check_or_init_driver() + if __cuParamSeti == NULL: + with gil: + raise FunctionNotFoundError("function cuParamSeti is not found") + return (__cuParamSeti)( + hfunc, offset, value) + + +cdef CUresult _cuParamSetf(CUfunction hfunc, int offset, float value) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuParamSetf + _check_or_init_driver() + if __cuParamSetf == NULL: + with gil: + raise FunctionNotFoundError("function cuParamSetf is not found") + return (__cuParamSetf)( + hfunc, offset, value) + + +cdef CUresult _cuParamSetv(CUfunction hfunc, int offset, void* ptr, unsigned int numbytes) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuParamSetv + _check_or_init_driver() + if __cuParamSetv == NULL: + with gil: + raise FunctionNotFoundError("function cuParamSetv is not found") + return (__cuParamSetv)( + hfunc, offset, ptr, numbytes) + + +cdef CUresult _cuLaunch(CUfunction f) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuLaunch + _check_or_init_driver() + if __cuLaunch == NULL: + with gil: + raise FunctionNotFoundError("function cuLaunch is not found") + return (__cuLaunch)( + f) + + +cdef CUresult _cuLaunchGrid(CUfunction f, int grid_width, int grid_height) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuLaunchGrid + _check_or_init_driver() + if __cuLaunchGrid == NULL: + with gil: + raise FunctionNotFoundError("function cuLaunchGrid is not found") + return (__cuLaunchGrid)( + f, grid_width, grid_height) + + +cdef CUresult _cuLaunchGridAsync(CUfunction f, int grid_width, int grid_height, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuLaunchGridAsync + _check_or_init_driver() + if __cuLaunchGridAsync == NULL: + with gil: + raise FunctionNotFoundError("function cuLaunchGridAsync is not found") + return (__cuLaunchGridAsync)( + f, grid_width, grid_height, hStream) + + +cdef CUresult _cuParamSetTexRef(CUfunction hfunc, int texunit, CUtexref hTexRef) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuParamSetTexRef + _check_or_init_driver() + if __cuParamSetTexRef == NULL: + with gil: + raise FunctionNotFoundError("function cuParamSetTexRef is not found") + return (__cuParamSetTexRef)( + hfunc, texunit, hTexRef) + + +cdef CUresult _cuFuncSetSharedMemConfig(CUfunction hfunc, CUsharedconfig config) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuFuncSetSharedMemConfig + _check_or_init_driver() + if __cuFuncSetSharedMemConfig == NULL: + with gil: + raise FunctionNotFoundError("function cuFuncSetSharedMemConfig is not found") + return (__cuFuncSetSharedMemConfig)( + hfunc, config) + + +cdef CUresult _cuGraphCreate(CUgraph* phGraph, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphCreate + _check_or_init_driver() + if __cuGraphCreate == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphCreate is not found") + return (__cuGraphCreate)( + phGraph, flags) + + +cdef CUresult _cuGraphAddKernelNode_v2(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, const CUDA_KERNEL_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphAddKernelNode_v2 + _check_or_init_driver() + if __cuGraphAddKernelNode_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphAddKernelNode_v2 is not found") + return (__cuGraphAddKernelNode_v2)( + phGraphNode, hGraph, dependencies, numDependencies, nodeParams) + + +cdef CUresult _cuGraphKernelNodeGetParams_v2(CUgraphNode hNode, CUDA_KERNEL_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphKernelNodeGetParams_v2 + _check_or_init_driver() + if __cuGraphKernelNodeGetParams_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphKernelNodeGetParams_v2 is not found") + return (__cuGraphKernelNodeGetParams_v2)( + hNode, nodeParams) + + +cdef CUresult _cuGraphKernelNodeSetParams_v2(CUgraphNode hNode, const CUDA_KERNEL_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphKernelNodeSetParams_v2 + _check_or_init_driver() + if __cuGraphKernelNodeSetParams_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphKernelNodeSetParams_v2 is not found") + return (__cuGraphKernelNodeSetParams_v2)( + hNode, nodeParams) + + +cdef CUresult _cuGraphAddMemcpyNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, const CUDA_MEMCPY3D* copyParams, CUcontext ctx) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphAddMemcpyNode + _check_or_init_driver() + if __cuGraphAddMemcpyNode == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphAddMemcpyNode is not found") + return (__cuGraphAddMemcpyNode)( + phGraphNode, hGraph, dependencies, numDependencies, copyParams, ctx) + + +cdef CUresult _cuGraphMemcpyNodeGetParams(CUgraphNode hNode, CUDA_MEMCPY3D* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphMemcpyNodeGetParams + _check_or_init_driver() + if __cuGraphMemcpyNodeGetParams == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphMemcpyNodeGetParams is not found") + return (__cuGraphMemcpyNodeGetParams)( + hNode, nodeParams) + + +cdef CUresult _cuGraphMemcpyNodeSetParams(CUgraphNode hNode, const CUDA_MEMCPY3D* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphMemcpyNodeSetParams + _check_or_init_driver() + if __cuGraphMemcpyNodeSetParams == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphMemcpyNodeSetParams is not found") + return (__cuGraphMemcpyNodeSetParams)( + hNode, nodeParams) + + +cdef CUresult _cuGraphAddMemsetNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, const CUDA_MEMSET_NODE_PARAMS* memsetParams, CUcontext ctx) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphAddMemsetNode + _check_or_init_driver() + if __cuGraphAddMemsetNode == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphAddMemsetNode is not found") + return (__cuGraphAddMemsetNode)( + phGraphNode, hGraph, dependencies, numDependencies, memsetParams, ctx) + + +cdef CUresult _cuGraphMemsetNodeGetParams(CUgraphNode hNode, CUDA_MEMSET_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphMemsetNodeGetParams + _check_or_init_driver() + if __cuGraphMemsetNodeGetParams == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphMemsetNodeGetParams is not found") + return (__cuGraphMemsetNodeGetParams)( + hNode, nodeParams) + + +cdef CUresult _cuGraphMemsetNodeSetParams(CUgraphNode hNode, const CUDA_MEMSET_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphMemsetNodeSetParams + _check_or_init_driver() + if __cuGraphMemsetNodeSetParams == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphMemsetNodeSetParams is not found") + return (__cuGraphMemsetNodeSetParams)( + hNode, nodeParams) + + +cdef CUresult _cuGraphAddHostNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, const CUDA_HOST_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphAddHostNode + _check_or_init_driver() + if __cuGraphAddHostNode == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphAddHostNode is not found") + return (__cuGraphAddHostNode)( + phGraphNode, hGraph, dependencies, numDependencies, nodeParams) + + +cdef CUresult _cuGraphHostNodeGetParams(CUgraphNode hNode, CUDA_HOST_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphHostNodeGetParams + _check_or_init_driver() + if __cuGraphHostNodeGetParams == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphHostNodeGetParams is not found") + return (__cuGraphHostNodeGetParams)( + hNode, nodeParams) + + +cdef CUresult _cuGraphHostNodeSetParams(CUgraphNode hNode, const CUDA_HOST_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphHostNodeSetParams + _check_or_init_driver() + if __cuGraphHostNodeSetParams == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphHostNodeSetParams is not found") + return (__cuGraphHostNodeSetParams)( + hNode, nodeParams) + + +cdef CUresult _cuGraphAddChildGraphNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, CUgraph childGraph) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphAddChildGraphNode + _check_or_init_driver() + if __cuGraphAddChildGraphNode == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphAddChildGraphNode is not found") + return (__cuGraphAddChildGraphNode)( + phGraphNode, hGraph, dependencies, numDependencies, childGraph) + + +cdef CUresult _cuGraphChildGraphNodeGetGraph(CUgraphNode hNode, CUgraph* phGraph) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphChildGraphNodeGetGraph + _check_or_init_driver() + if __cuGraphChildGraphNodeGetGraph == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphChildGraphNodeGetGraph is not found") + return (__cuGraphChildGraphNodeGetGraph)( + hNode, phGraph) + + +cdef CUresult _cuGraphAddEmptyNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphAddEmptyNode + _check_or_init_driver() + if __cuGraphAddEmptyNode == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphAddEmptyNode is not found") + return (__cuGraphAddEmptyNode)( + phGraphNode, hGraph, dependencies, numDependencies) + + +cdef CUresult _cuGraphAddEventRecordNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, CUevent event) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphAddEventRecordNode + _check_or_init_driver() + if __cuGraphAddEventRecordNode == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphAddEventRecordNode is not found") + return (__cuGraphAddEventRecordNode)( + phGraphNode, hGraph, dependencies, numDependencies, event) + + +cdef CUresult _cuGraphEventRecordNodeGetEvent(CUgraphNode hNode, CUevent* event_out) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphEventRecordNodeGetEvent + _check_or_init_driver() + if __cuGraphEventRecordNodeGetEvent == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphEventRecordNodeGetEvent is not found") + return (__cuGraphEventRecordNodeGetEvent)( + hNode, event_out) + + +cdef CUresult _cuGraphEventRecordNodeSetEvent(CUgraphNode hNode, CUevent event) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphEventRecordNodeSetEvent + _check_or_init_driver() + if __cuGraphEventRecordNodeSetEvent == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphEventRecordNodeSetEvent is not found") + return (__cuGraphEventRecordNodeSetEvent)( + hNode, event) + + +cdef CUresult _cuGraphAddEventWaitNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, CUevent event) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphAddEventWaitNode + _check_or_init_driver() + if __cuGraphAddEventWaitNode == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphAddEventWaitNode is not found") + return (__cuGraphAddEventWaitNode)( + phGraphNode, hGraph, dependencies, numDependencies, event) + + +cdef CUresult _cuGraphEventWaitNodeGetEvent(CUgraphNode hNode, CUevent* event_out) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphEventWaitNodeGetEvent + _check_or_init_driver() + if __cuGraphEventWaitNodeGetEvent == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphEventWaitNodeGetEvent is not found") + return (__cuGraphEventWaitNodeGetEvent)( + hNode, event_out) + + +cdef CUresult _cuGraphEventWaitNodeSetEvent(CUgraphNode hNode, CUevent event) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphEventWaitNodeSetEvent + _check_or_init_driver() + if __cuGraphEventWaitNodeSetEvent == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphEventWaitNodeSetEvent is not found") + return (__cuGraphEventWaitNodeSetEvent)( + hNode, event) + + +cdef CUresult _cuGraphAddExternalSemaphoresSignalNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, const CUDA_EXT_SEM_SIGNAL_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphAddExternalSemaphoresSignalNode + _check_or_init_driver() + if __cuGraphAddExternalSemaphoresSignalNode == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphAddExternalSemaphoresSignalNode is not found") + return (__cuGraphAddExternalSemaphoresSignalNode)( + phGraphNode, hGraph, dependencies, numDependencies, nodeParams) + + +cdef CUresult _cuGraphExternalSemaphoresSignalNodeGetParams(CUgraphNode hNode, CUDA_EXT_SEM_SIGNAL_NODE_PARAMS* params_out) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphExternalSemaphoresSignalNodeGetParams + _check_or_init_driver() + if __cuGraphExternalSemaphoresSignalNodeGetParams == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphExternalSemaphoresSignalNodeGetParams is not found") + return (__cuGraphExternalSemaphoresSignalNodeGetParams)( + hNode, params_out) + + +cdef CUresult _cuGraphExternalSemaphoresSignalNodeSetParams(CUgraphNode hNode, const CUDA_EXT_SEM_SIGNAL_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphExternalSemaphoresSignalNodeSetParams + _check_or_init_driver() + if __cuGraphExternalSemaphoresSignalNodeSetParams == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphExternalSemaphoresSignalNodeSetParams is not found") + return (__cuGraphExternalSemaphoresSignalNodeSetParams)( + hNode, nodeParams) + + +cdef CUresult _cuGraphAddExternalSemaphoresWaitNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, const CUDA_EXT_SEM_WAIT_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphAddExternalSemaphoresWaitNode + _check_or_init_driver() + if __cuGraphAddExternalSemaphoresWaitNode == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphAddExternalSemaphoresWaitNode is not found") + return (__cuGraphAddExternalSemaphoresWaitNode)( + phGraphNode, hGraph, dependencies, numDependencies, nodeParams) + + +cdef CUresult _cuGraphExternalSemaphoresWaitNodeGetParams(CUgraphNode hNode, CUDA_EXT_SEM_WAIT_NODE_PARAMS* params_out) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphExternalSemaphoresWaitNodeGetParams + _check_or_init_driver() + if __cuGraphExternalSemaphoresWaitNodeGetParams == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphExternalSemaphoresWaitNodeGetParams is not found") + return (__cuGraphExternalSemaphoresWaitNodeGetParams)( + hNode, params_out) + + +cdef CUresult _cuGraphExternalSemaphoresWaitNodeSetParams(CUgraphNode hNode, const CUDA_EXT_SEM_WAIT_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphExternalSemaphoresWaitNodeSetParams + _check_or_init_driver() + if __cuGraphExternalSemaphoresWaitNodeSetParams == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphExternalSemaphoresWaitNodeSetParams is not found") + return (__cuGraphExternalSemaphoresWaitNodeSetParams)( + hNode, nodeParams) + + +cdef CUresult _cuGraphAddBatchMemOpNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, const CUDA_BATCH_MEM_OP_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphAddBatchMemOpNode + _check_or_init_driver() + if __cuGraphAddBatchMemOpNode == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphAddBatchMemOpNode is not found") + return (__cuGraphAddBatchMemOpNode)( + phGraphNode, hGraph, dependencies, numDependencies, nodeParams) + + +cdef CUresult _cuGraphBatchMemOpNodeGetParams(CUgraphNode hNode, CUDA_BATCH_MEM_OP_NODE_PARAMS* nodeParams_out) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphBatchMemOpNodeGetParams + _check_or_init_driver() + if __cuGraphBatchMemOpNodeGetParams == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphBatchMemOpNodeGetParams is not found") + return (__cuGraphBatchMemOpNodeGetParams)( + hNode, nodeParams_out) + + +cdef CUresult _cuGraphBatchMemOpNodeSetParams(CUgraphNode hNode, const CUDA_BATCH_MEM_OP_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphBatchMemOpNodeSetParams + _check_or_init_driver() + if __cuGraphBatchMemOpNodeSetParams == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphBatchMemOpNodeSetParams is not found") + return (__cuGraphBatchMemOpNodeSetParams)( + hNode, nodeParams) + + +cdef CUresult _cuGraphExecBatchMemOpNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_BATCH_MEM_OP_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphExecBatchMemOpNodeSetParams + _check_or_init_driver() + if __cuGraphExecBatchMemOpNodeSetParams == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphExecBatchMemOpNodeSetParams is not found") + return (__cuGraphExecBatchMemOpNodeSetParams)( + hGraphExec, hNode, nodeParams) + + +cdef CUresult _cuGraphAddMemAllocNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, CUDA_MEM_ALLOC_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphAddMemAllocNode + _check_or_init_driver() + if __cuGraphAddMemAllocNode == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphAddMemAllocNode is not found") + return (__cuGraphAddMemAllocNode)( + phGraphNode, hGraph, dependencies, numDependencies, nodeParams) + + +cdef CUresult _cuGraphMemAllocNodeGetParams(CUgraphNode hNode, CUDA_MEM_ALLOC_NODE_PARAMS* params_out) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphMemAllocNodeGetParams + _check_or_init_driver() + if __cuGraphMemAllocNodeGetParams == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphMemAllocNodeGetParams is not found") + return (__cuGraphMemAllocNodeGetParams)( + hNode, params_out) + + +cdef CUresult _cuGraphAddMemFreeNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, CUdeviceptr dptr) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphAddMemFreeNode + _check_or_init_driver() + if __cuGraphAddMemFreeNode == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphAddMemFreeNode is not found") + return (__cuGraphAddMemFreeNode)( + phGraphNode, hGraph, dependencies, numDependencies, dptr) + + +cdef CUresult _cuGraphMemFreeNodeGetParams(CUgraphNode hNode, CUdeviceptr* dptr_out) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphMemFreeNodeGetParams + _check_or_init_driver() + if __cuGraphMemFreeNodeGetParams == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphMemFreeNodeGetParams is not found") + return (__cuGraphMemFreeNodeGetParams)( + hNode, dptr_out) + + +cdef CUresult _cuDeviceGraphMemTrim(CUdevice device) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuDeviceGraphMemTrim + _check_or_init_driver() + if __cuDeviceGraphMemTrim == NULL: + with gil: + raise FunctionNotFoundError("function cuDeviceGraphMemTrim is not found") + return (__cuDeviceGraphMemTrim)( + device) + + +cdef CUresult _cuDeviceGetGraphMemAttribute(CUdevice device, CUgraphMem_attribute attr, void* value) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuDeviceGetGraphMemAttribute + _check_or_init_driver() + if __cuDeviceGetGraphMemAttribute == NULL: + with gil: + raise FunctionNotFoundError("function cuDeviceGetGraphMemAttribute is not found") + return (__cuDeviceGetGraphMemAttribute)( + device, attr, value) + + +cdef CUresult _cuDeviceSetGraphMemAttribute(CUdevice device, CUgraphMem_attribute attr, void* value) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuDeviceSetGraphMemAttribute + _check_or_init_driver() + if __cuDeviceSetGraphMemAttribute == NULL: + with gil: + raise FunctionNotFoundError("function cuDeviceSetGraphMemAttribute is not found") + return (__cuDeviceSetGraphMemAttribute)( + device, attr, value) + + +cdef CUresult _cuGraphClone(CUgraph* phGraphClone, CUgraph originalGraph) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphClone + _check_or_init_driver() + if __cuGraphClone == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphClone is not found") + return (__cuGraphClone)( + phGraphClone, originalGraph) + + +cdef CUresult _cuGraphNodeFindInClone(CUgraphNode* phNode, CUgraphNode hOriginalNode, CUgraph hClonedGraph) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphNodeFindInClone + _check_or_init_driver() + if __cuGraphNodeFindInClone == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphNodeFindInClone is not found") + return (__cuGraphNodeFindInClone)( + phNode, hOriginalNode, hClonedGraph) + + +cdef CUresult _cuGraphNodeGetType(CUgraphNode hNode, CUgraphNodeType* type) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphNodeGetType + _check_or_init_driver() + if __cuGraphNodeGetType == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphNodeGetType is not found") + return (__cuGraphNodeGetType)( + hNode, type) + + +cdef CUresult _cuGraphGetNodes(CUgraph hGraph, CUgraphNode* nodes, size_t* numNodes) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphGetNodes + _check_or_init_driver() + if __cuGraphGetNodes == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphGetNodes is not found") + return (__cuGraphGetNodes)( + hGraph, nodes, numNodes) + + +cdef CUresult _cuGraphGetRootNodes(CUgraph hGraph, CUgraphNode* rootNodes, size_t* numRootNodes) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphGetRootNodes + _check_or_init_driver() + if __cuGraphGetRootNodes == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphGetRootNodes is not found") + return (__cuGraphGetRootNodes)( + hGraph, rootNodes, numRootNodes) + + +cdef CUresult _cuGraphGetEdges_v2(CUgraph hGraph, CUgraphNode* from_, CUgraphNode* to, CUgraphEdgeData* edgeData, size_t* numEdges) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphGetEdges_v2 + _check_or_init_driver() + if __cuGraphGetEdges_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphGetEdges_v2 is not found") + return (__cuGraphGetEdges_v2)( + hGraph, from_, to, edgeData, numEdges) + + +cdef CUresult _cuGraphNodeGetDependencies_v2(CUgraphNode hNode, CUgraphNode* dependencies, CUgraphEdgeData* edgeData, size_t* numDependencies) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphNodeGetDependencies_v2 + _check_or_init_driver() + if __cuGraphNodeGetDependencies_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphNodeGetDependencies_v2 is not found") + return (__cuGraphNodeGetDependencies_v2)( + hNode, dependencies, edgeData, numDependencies) + + +cdef CUresult _cuGraphNodeGetDependentNodes_v2(CUgraphNode hNode, CUgraphNode* dependentNodes, CUgraphEdgeData* edgeData, size_t* numDependentNodes) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphNodeGetDependentNodes_v2 + _check_or_init_driver() + if __cuGraphNodeGetDependentNodes_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphNodeGetDependentNodes_v2 is not found") + return (__cuGraphNodeGetDependentNodes_v2)( + hNode, dependentNodes, edgeData, numDependentNodes) + + +cdef CUresult _cuGraphAddDependencies_v2(CUgraph hGraph, const CUgraphNode* from_, const CUgraphNode* to, const CUgraphEdgeData* edgeData, size_t numDependencies) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphAddDependencies_v2 + _check_or_init_driver() + if __cuGraphAddDependencies_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphAddDependencies_v2 is not found") + return (__cuGraphAddDependencies_v2)( + hGraph, from_, to, edgeData, numDependencies) + + +cdef CUresult _cuGraphRemoveDependencies_v2(CUgraph hGraph, const CUgraphNode* from_, const CUgraphNode* to, const CUgraphEdgeData* edgeData, size_t numDependencies) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphRemoveDependencies_v2 + _check_or_init_driver() + if __cuGraphRemoveDependencies_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphRemoveDependencies_v2 is not found") + return (__cuGraphRemoveDependencies_v2)( + hGraph, from_, to, edgeData, numDependencies) + + +cdef CUresult _cuGraphDestroyNode(CUgraphNode hNode) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphDestroyNode + _check_or_init_driver() + if __cuGraphDestroyNode == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphDestroyNode is not found") + return (__cuGraphDestroyNode)( + hNode) + + +cdef CUresult _cuGraphInstantiateWithFlags(CUgraphExec* phGraphExec, CUgraph hGraph, unsigned long long flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphInstantiateWithFlags + _check_or_init_driver() + if __cuGraphInstantiateWithFlags == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphInstantiateWithFlags is not found") + return (__cuGraphInstantiateWithFlags)( + phGraphExec, hGraph, flags) + + +cdef CUresult _cuGraphInstantiateWithParams(CUgraphExec* phGraphExec, CUgraph hGraph, CUDA_GRAPH_INSTANTIATE_PARAMS* instantiateParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphInstantiateWithParams + _check_or_init_driver() + if __cuGraphInstantiateWithParams == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphInstantiateWithParams is not found") + return (__cuGraphInstantiateWithParams)( + phGraphExec, hGraph, instantiateParams) + + +cdef CUresult _cuGraphExecGetFlags(CUgraphExec hGraphExec, cuuint64_t* flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphExecGetFlags + _check_or_init_driver() + if __cuGraphExecGetFlags == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphExecGetFlags is not found") + return (__cuGraphExecGetFlags)( + hGraphExec, flags) + + +cdef CUresult _cuGraphExecKernelNodeSetParams_v2(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_KERNEL_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphExecKernelNodeSetParams_v2 + _check_or_init_driver() + if __cuGraphExecKernelNodeSetParams_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphExecKernelNodeSetParams_v2 is not found") + return (__cuGraphExecKernelNodeSetParams_v2)( + hGraphExec, hNode, nodeParams) + + +cdef CUresult _cuGraphExecMemcpyNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_MEMCPY3D* copyParams, CUcontext ctx) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphExecMemcpyNodeSetParams + _check_or_init_driver() + if __cuGraphExecMemcpyNodeSetParams == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphExecMemcpyNodeSetParams is not found") + return (__cuGraphExecMemcpyNodeSetParams)( + hGraphExec, hNode, copyParams, ctx) + + +cdef CUresult _cuGraphExecMemsetNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_MEMSET_NODE_PARAMS* memsetParams, CUcontext ctx) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphExecMemsetNodeSetParams + _check_or_init_driver() + if __cuGraphExecMemsetNodeSetParams == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphExecMemsetNodeSetParams is not found") + return (__cuGraphExecMemsetNodeSetParams)( + hGraphExec, hNode, memsetParams, ctx) + + +cdef CUresult _cuGraphExecHostNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_HOST_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphExecHostNodeSetParams + _check_or_init_driver() + if __cuGraphExecHostNodeSetParams == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphExecHostNodeSetParams is not found") + return (__cuGraphExecHostNodeSetParams)( + hGraphExec, hNode, nodeParams) + + +cdef CUresult _cuGraphExecChildGraphNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, CUgraph childGraph) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphExecChildGraphNodeSetParams + _check_or_init_driver() + if __cuGraphExecChildGraphNodeSetParams == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphExecChildGraphNodeSetParams is not found") + return (__cuGraphExecChildGraphNodeSetParams)( + hGraphExec, hNode, childGraph) + + +cdef CUresult _cuGraphExecEventRecordNodeSetEvent(CUgraphExec hGraphExec, CUgraphNode hNode, CUevent event) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphExecEventRecordNodeSetEvent + _check_or_init_driver() + if __cuGraphExecEventRecordNodeSetEvent == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphExecEventRecordNodeSetEvent is not found") + return (__cuGraphExecEventRecordNodeSetEvent)( + hGraphExec, hNode, event) + + +cdef CUresult _cuGraphExecEventWaitNodeSetEvent(CUgraphExec hGraphExec, CUgraphNode hNode, CUevent event) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphExecEventWaitNodeSetEvent + _check_or_init_driver() + if __cuGraphExecEventWaitNodeSetEvent == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphExecEventWaitNodeSetEvent is not found") + return (__cuGraphExecEventWaitNodeSetEvent)( + hGraphExec, hNode, event) + + +cdef CUresult _cuGraphExecExternalSemaphoresSignalNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_EXT_SEM_SIGNAL_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphExecExternalSemaphoresSignalNodeSetParams + _check_or_init_driver() + if __cuGraphExecExternalSemaphoresSignalNodeSetParams == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphExecExternalSemaphoresSignalNodeSetParams is not found") + return (__cuGraphExecExternalSemaphoresSignalNodeSetParams)( + hGraphExec, hNode, nodeParams) + + +cdef CUresult _cuGraphExecExternalSemaphoresWaitNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_EXT_SEM_WAIT_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphExecExternalSemaphoresWaitNodeSetParams + _check_or_init_driver() + if __cuGraphExecExternalSemaphoresWaitNodeSetParams == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphExecExternalSemaphoresWaitNodeSetParams is not found") + return (__cuGraphExecExternalSemaphoresWaitNodeSetParams)( + hGraphExec, hNode, nodeParams) + + +cdef CUresult _cuGraphNodeSetEnabled(CUgraphExec hGraphExec, CUgraphNode hNode, unsigned int isEnabled) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphNodeSetEnabled + _check_or_init_driver() + if __cuGraphNodeSetEnabled == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphNodeSetEnabled is not found") + return (__cuGraphNodeSetEnabled)( + hGraphExec, hNode, isEnabled) + + +cdef CUresult _cuGraphNodeGetEnabled(CUgraphExec hGraphExec, CUgraphNode hNode, unsigned int* isEnabled) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphNodeGetEnabled + _check_or_init_driver() + if __cuGraphNodeGetEnabled == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphNodeGetEnabled is not found") + return (__cuGraphNodeGetEnabled)( + hGraphExec, hNode, isEnabled) + + +cdef CUresult _cuGraphUpload(CUgraphExec hGraphExec, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphUpload + _check_or_init_driver() + if __cuGraphUpload == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphUpload is not found") + return (__cuGraphUpload)( + hGraphExec, hStream) + + +cdef CUresult _cuGraphLaunch(CUgraphExec hGraphExec, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphLaunch + _check_or_init_driver() + if __cuGraphLaunch == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphLaunch is not found") + return (__cuGraphLaunch)( + hGraphExec, hStream) + + +cdef CUresult _cuGraphExecDestroy(CUgraphExec hGraphExec) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphExecDestroy + _check_or_init_driver() + if __cuGraphExecDestroy == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphExecDestroy is not found") + return (__cuGraphExecDestroy)( + hGraphExec) + + +cdef CUresult _cuGraphDestroy(CUgraph hGraph) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphDestroy + _check_or_init_driver() + if __cuGraphDestroy == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphDestroy is not found") + return (__cuGraphDestroy)( + hGraph) + + +cdef CUresult _cuGraphExecUpdate_v2(CUgraphExec hGraphExec, CUgraph hGraph, CUgraphExecUpdateResultInfo* resultInfo) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphExecUpdate_v2 + _check_or_init_driver() + if __cuGraphExecUpdate_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphExecUpdate_v2 is not found") + return (__cuGraphExecUpdate_v2)( + hGraphExec, hGraph, resultInfo) + + +cdef CUresult _cuGraphKernelNodeCopyAttributes(CUgraphNode dst, CUgraphNode src) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphKernelNodeCopyAttributes + _check_or_init_driver() + if __cuGraphKernelNodeCopyAttributes == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphKernelNodeCopyAttributes is not found") + return (__cuGraphKernelNodeCopyAttributes)( + dst, src) + + +cdef CUresult _cuGraphKernelNodeGetAttribute(CUgraphNode hNode, CUkernelNodeAttrID attr, CUkernelNodeAttrValue* value_out) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphKernelNodeGetAttribute + _check_or_init_driver() + if __cuGraphKernelNodeGetAttribute == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphKernelNodeGetAttribute is not found") + return (__cuGraphKernelNodeGetAttribute)( + hNode, attr, value_out) + + +cdef CUresult _cuGraphKernelNodeSetAttribute(CUgraphNode hNode, CUkernelNodeAttrID attr, const CUkernelNodeAttrValue* value) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphKernelNodeSetAttribute + _check_or_init_driver() + if __cuGraphKernelNodeSetAttribute == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphKernelNodeSetAttribute is not found") + return (__cuGraphKernelNodeSetAttribute)( + hNode, attr, value) + + +cdef CUresult _cuGraphDebugDotPrint(CUgraph hGraph, const char* path, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphDebugDotPrint + _check_or_init_driver() + if __cuGraphDebugDotPrint == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphDebugDotPrint is not found") + return (__cuGraphDebugDotPrint)( + hGraph, path, flags) + + +cdef CUresult _cuUserObjectCreate(CUuserObject* object_out, void* ptr, CUhostFn destroy, unsigned int initialRefcount, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuUserObjectCreate + _check_or_init_driver() + if __cuUserObjectCreate == NULL: + with gil: + raise FunctionNotFoundError("function cuUserObjectCreate is not found") + return (__cuUserObjectCreate)( + object_out, ptr, destroy, initialRefcount, flags) + + +cdef CUresult _cuUserObjectRetain(CUuserObject object, unsigned int count) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuUserObjectRetain + _check_or_init_driver() + if __cuUserObjectRetain == NULL: + with gil: + raise FunctionNotFoundError("function cuUserObjectRetain is not found") + return (__cuUserObjectRetain)( + object, count) + + +cdef CUresult _cuUserObjectRelease(CUuserObject object, unsigned int count) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuUserObjectRelease + _check_or_init_driver() + if __cuUserObjectRelease == NULL: + with gil: + raise FunctionNotFoundError("function cuUserObjectRelease is not found") + return (__cuUserObjectRelease)( + object, count) + + +cdef CUresult _cuGraphRetainUserObject(CUgraph graph, CUuserObject object, unsigned int count, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphRetainUserObject + _check_or_init_driver() + if __cuGraphRetainUserObject == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphRetainUserObject is not found") + return (__cuGraphRetainUserObject)( + graph, object, count, flags) + + +cdef CUresult _cuGraphReleaseUserObject(CUgraph graph, CUuserObject object, unsigned int count) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphReleaseUserObject + _check_or_init_driver() + if __cuGraphReleaseUserObject == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphReleaseUserObject is not found") + return (__cuGraphReleaseUserObject)( + graph, object, count) + + +cdef CUresult _cuGraphAddNode_v2(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, const CUgraphEdgeData* dependencyData, size_t numDependencies, CUgraphNodeParams* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphAddNode_v2 + _check_or_init_driver() + if __cuGraphAddNode_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphAddNode_v2 is not found") + return (__cuGraphAddNode_v2)( + phGraphNode, hGraph, dependencies, dependencyData, numDependencies, nodeParams) + + +cdef CUresult _cuGraphNodeSetParams(CUgraphNode hNode, CUgraphNodeParams* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphNodeSetParams + _check_or_init_driver() + if __cuGraphNodeSetParams == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphNodeSetParams is not found") + return (__cuGraphNodeSetParams)( + hNode, nodeParams) + + +cdef CUresult _cuGraphExecNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, CUgraphNodeParams* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphExecNodeSetParams + _check_or_init_driver() + if __cuGraphExecNodeSetParams == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphExecNodeSetParams is not found") + return (__cuGraphExecNodeSetParams)( + hGraphExec, hNode, nodeParams) + + +cdef CUresult _cuGraphConditionalHandleCreate(CUgraphConditionalHandle* pHandle_out, CUgraph hGraph, CUcontext ctx, unsigned int defaultLaunchValue, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphConditionalHandleCreate + _check_or_init_driver() + if __cuGraphConditionalHandleCreate == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphConditionalHandleCreate is not found") + return (__cuGraphConditionalHandleCreate)( + pHandle_out, hGraph, ctx, defaultLaunchValue, flags) + + +cdef CUresult _cuOccupancyMaxActiveBlocksPerMultiprocessor(int* numBlocks, CUfunction func, int blockSize, size_t dynamicSMemSize) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuOccupancyMaxActiveBlocksPerMultiprocessor + _check_or_init_driver() + if __cuOccupancyMaxActiveBlocksPerMultiprocessor == NULL: + with gil: + raise FunctionNotFoundError("function cuOccupancyMaxActiveBlocksPerMultiprocessor is not found") + return (__cuOccupancyMaxActiveBlocksPerMultiprocessor)( + numBlocks, func, blockSize, dynamicSMemSize) + + +cdef CUresult _cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(int* numBlocks, CUfunction func, int blockSize, size_t dynamicSMemSize, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags + _check_or_init_driver() + if __cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags == NULL: + with gil: + raise FunctionNotFoundError("function cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags is not found") + return (__cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags)( + numBlocks, func, blockSize, dynamicSMemSize, flags) + + +cdef CUresult _cuOccupancyMaxPotentialBlockSize(int* minGridSize, int* blockSize, CUfunction func, CUoccupancyB2DSize blockSizeToDynamicSMemSize, size_t dynamicSMemSize, int blockSizeLimit) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuOccupancyMaxPotentialBlockSize + _check_or_init_driver() + if __cuOccupancyMaxPotentialBlockSize == NULL: + with gil: + raise FunctionNotFoundError("function cuOccupancyMaxPotentialBlockSize is not found") + return (__cuOccupancyMaxPotentialBlockSize)( + minGridSize, blockSize, func, blockSizeToDynamicSMemSize, dynamicSMemSize, blockSizeLimit) + + +cdef CUresult _cuOccupancyMaxPotentialBlockSizeWithFlags(int* minGridSize, int* blockSize, CUfunction func, CUoccupancyB2DSize blockSizeToDynamicSMemSize, size_t dynamicSMemSize, int blockSizeLimit, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuOccupancyMaxPotentialBlockSizeWithFlags + _check_or_init_driver() + if __cuOccupancyMaxPotentialBlockSizeWithFlags == NULL: + with gil: + raise FunctionNotFoundError("function cuOccupancyMaxPotentialBlockSizeWithFlags is not found") + return (__cuOccupancyMaxPotentialBlockSizeWithFlags)( + minGridSize, blockSize, func, blockSizeToDynamicSMemSize, dynamicSMemSize, blockSizeLimit, flags) + + +cdef CUresult _cuOccupancyAvailableDynamicSMemPerBlock(size_t* dynamicSmemSize, CUfunction func, int numBlocks, int blockSize) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuOccupancyAvailableDynamicSMemPerBlock + _check_or_init_driver() + if __cuOccupancyAvailableDynamicSMemPerBlock == NULL: + with gil: + raise FunctionNotFoundError("function cuOccupancyAvailableDynamicSMemPerBlock is not found") + return (__cuOccupancyAvailableDynamicSMemPerBlock)( + dynamicSmemSize, func, numBlocks, blockSize) + + +cdef CUresult _cuOccupancyMaxPotentialClusterSize(int* clusterSize, CUfunction func, const CUlaunchConfig* config) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuOccupancyMaxPotentialClusterSize + _check_or_init_driver() + if __cuOccupancyMaxPotentialClusterSize == NULL: + with gil: + raise FunctionNotFoundError("function cuOccupancyMaxPotentialClusterSize is not found") + return (__cuOccupancyMaxPotentialClusterSize)( + clusterSize, func, config) + + +cdef CUresult _cuOccupancyMaxActiveClusters(int* numClusters, CUfunction func, const CUlaunchConfig* config) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuOccupancyMaxActiveClusters + _check_or_init_driver() + if __cuOccupancyMaxActiveClusters == NULL: + with gil: + raise FunctionNotFoundError("function cuOccupancyMaxActiveClusters is not found") + return (__cuOccupancyMaxActiveClusters)( + numClusters, func, config) + + +cdef CUresult _cuTexRefSetArray(CUtexref hTexRef, CUarray hArray, unsigned int Flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuTexRefSetArray + _check_or_init_driver() + if __cuTexRefSetArray == NULL: + with gil: + raise FunctionNotFoundError("function cuTexRefSetArray is not found") + return (__cuTexRefSetArray)( + hTexRef, hArray, Flags) + + +cdef CUresult _cuTexRefSetMipmappedArray(CUtexref hTexRef, CUmipmappedArray hMipmappedArray, unsigned int Flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuTexRefSetMipmappedArray + _check_or_init_driver() + if __cuTexRefSetMipmappedArray == NULL: + with gil: + raise FunctionNotFoundError("function cuTexRefSetMipmappedArray is not found") + return (__cuTexRefSetMipmappedArray)( + hTexRef, hMipmappedArray, Flags) + + +cdef CUresult _cuTexRefSetAddress_v2(size_t* ByteOffset, CUtexref hTexRef, CUdeviceptr dptr, size_t bytes) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuTexRefSetAddress_v2 + _check_or_init_driver() + if __cuTexRefSetAddress_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuTexRefSetAddress_v2 is not found") + return (__cuTexRefSetAddress_v2)( + ByteOffset, hTexRef, dptr, bytes) + + +cdef CUresult _cuTexRefSetAddress2D_v3(CUtexref hTexRef, const CUDA_ARRAY_DESCRIPTOR* desc, CUdeviceptr dptr, size_t Pitch) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuTexRefSetAddress2D_v3 + _check_or_init_driver() + if __cuTexRefSetAddress2D_v3 == NULL: + with gil: + raise FunctionNotFoundError("function cuTexRefSetAddress2D_v3 is not found") + return (__cuTexRefSetAddress2D_v3)( + hTexRef, desc, dptr, Pitch) + + +cdef CUresult _cuTexRefSetFormat(CUtexref hTexRef, CUarray_format fmt, int NumPackedComponents) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuTexRefSetFormat + _check_or_init_driver() + if __cuTexRefSetFormat == NULL: + with gil: + raise FunctionNotFoundError("function cuTexRefSetFormat is not found") + return (__cuTexRefSetFormat)( + hTexRef, fmt, NumPackedComponents) + + +cdef CUresult _cuTexRefSetAddressMode(CUtexref hTexRef, int dim, CUaddress_mode am) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuTexRefSetAddressMode + _check_or_init_driver() + if __cuTexRefSetAddressMode == NULL: + with gil: + raise FunctionNotFoundError("function cuTexRefSetAddressMode is not found") + return (__cuTexRefSetAddressMode)( + hTexRef, dim, am) + + +cdef CUresult _cuTexRefSetFilterMode(CUtexref hTexRef, CUfilter_mode fm) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuTexRefSetFilterMode + _check_or_init_driver() + if __cuTexRefSetFilterMode == NULL: + with gil: + raise FunctionNotFoundError("function cuTexRefSetFilterMode is not found") + return (__cuTexRefSetFilterMode)( + hTexRef, fm) + + +cdef CUresult _cuTexRefSetMipmapFilterMode(CUtexref hTexRef, CUfilter_mode fm) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuTexRefSetMipmapFilterMode + _check_or_init_driver() + if __cuTexRefSetMipmapFilterMode == NULL: + with gil: + raise FunctionNotFoundError("function cuTexRefSetMipmapFilterMode is not found") + return (__cuTexRefSetMipmapFilterMode)( + hTexRef, fm) + + +cdef CUresult _cuTexRefSetMipmapLevelBias(CUtexref hTexRef, float bias) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuTexRefSetMipmapLevelBias + _check_or_init_driver() + if __cuTexRefSetMipmapLevelBias == NULL: + with gil: + raise FunctionNotFoundError("function cuTexRefSetMipmapLevelBias is not found") + return (__cuTexRefSetMipmapLevelBias)( + hTexRef, bias) + + +cdef CUresult _cuTexRefSetMipmapLevelClamp(CUtexref hTexRef, float minMipmapLevelClamp, float maxMipmapLevelClamp) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuTexRefSetMipmapLevelClamp + _check_or_init_driver() + if __cuTexRefSetMipmapLevelClamp == NULL: + with gil: + raise FunctionNotFoundError("function cuTexRefSetMipmapLevelClamp is not found") + return (__cuTexRefSetMipmapLevelClamp)( + hTexRef, minMipmapLevelClamp, maxMipmapLevelClamp) + + +cdef CUresult _cuTexRefSetMaxAnisotropy(CUtexref hTexRef, unsigned int maxAniso) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuTexRefSetMaxAnisotropy + _check_or_init_driver() + if __cuTexRefSetMaxAnisotropy == NULL: + with gil: + raise FunctionNotFoundError("function cuTexRefSetMaxAnisotropy is not found") + return (__cuTexRefSetMaxAnisotropy)( + hTexRef, maxAniso) + + +cdef CUresult _cuTexRefSetBorderColor(CUtexref hTexRef, float* pBorderColor) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuTexRefSetBorderColor + _check_or_init_driver() + if __cuTexRefSetBorderColor == NULL: + with gil: + raise FunctionNotFoundError("function cuTexRefSetBorderColor is not found") + return (__cuTexRefSetBorderColor)( + hTexRef, pBorderColor) + + +cdef CUresult _cuTexRefSetFlags(CUtexref hTexRef, unsigned int Flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuTexRefSetFlags + _check_or_init_driver() + if __cuTexRefSetFlags == NULL: + with gil: + raise FunctionNotFoundError("function cuTexRefSetFlags is not found") + return (__cuTexRefSetFlags)( + hTexRef, Flags) + + +cdef CUresult _cuTexRefGetAddress_v2(CUdeviceptr* pdptr, CUtexref hTexRef) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuTexRefGetAddress_v2 + _check_or_init_driver() + if __cuTexRefGetAddress_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuTexRefGetAddress_v2 is not found") + return (__cuTexRefGetAddress_v2)( + pdptr, hTexRef) + + +cdef CUresult _cuTexRefGetArray(CUarray* phArray, CUtexref hTexRef) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuTexRefGetArray + _check_or_init_driver() + if __cuTexRefGetArray == NULL: + with gil: + raise FunctionNotFoundError("function cuTexRefGetArray is not found") + return (__cuTexRefGetArray)( + phArray, hTexRef) + + +cdef CUresult _cuTexRefGetMipmappedArray(CUmipmappedArray* phMipmappedArray, CUtexref hTexRef) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuTexRefGetMipmappedArray + _check_or_init_driver() + if __cuTexRefGetMipmappedArray == NULL: + with gil: + raise FunctionNotFoundError("function cuTexRefGetMipmappedArray is not found") + return (__cuTexRefGetMipmappedArray)( + phMipmappedArray, hTexRef) + + +cdef CUresult _cuTexRefGetAddressMode(CUaddress_mode* pam, CUtexref hTexRef, int dim) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuTexRefGetAddressMode + _check_or_init_driver() + if __cuTexRefGetAddressMode == NULL: + with gil: + raise FunctionNotFoundError("function cuTexRefGetAddressMode is not found") + return (__cuTexRefGetAddressMode)( + pam, hTexRef, dim) + + +cdef CUresult _cuTexRefGetFilterMode(CUfilter_mode* pfm, CUtexref hTexRef) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuTexRefGetFilterMode + _check_or_init_driver() + if __cuTexRefGetFilterMode == NULL: + with gil: + raise FunctionNotFoundError("function cuTexRefGetFilterMode is not found") + return (__cuTexRefGetFilterMode)( + pfm, hTexRef) + + +cdef CUresult _cuTexRefGetFormat(CUarray_format* pFormat, int* pNumChannels, CUtexref hTexRef) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuTexRefGetFormat + _check_or_init_driver() + if __cuTexRefGetFormat == NULL: + with gil: + raise FunctionNotFoundError("function cuTexRefGetFormat is not found") + return (__cuTexRefGetFormat)( + pFormat, pNumChannels, hTexRef) + + +cdef CUresult _cuTexRefGetMipmapFilterMode(CUfilter_mode* pfm, CUtexref hTexRef) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuTexRefGetMipmapFilterMode + _check_or_init_driver() + if __cuTexRefGetMipmapFilterMode == NULL: + with gil: + raise FunctionNotFoundError("function cuTexRefGetMipmapFilterMode is not found") + return (__cuTexRefGetMipmapFilterMode)( + pfm, hTexRef) + + +cdef CUresult _cuTexRefGetMipmapLevelBias(float* pbias, CUtexref hTexRef) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuTexRefGetMipmapLevelBias + _check_or_init_driver() + if __cuTexRefGetMipmapLevelBias == NULL: + with gil: + raise FunctionNotFoundError("function cuTexRefGetMipmapLevelBias is not found") + return (__cuTexRefGetMipmapLevelBias)( + pbias, hTexRef) + + +cdef CUresult _cuTexRefGetMipmapLevelClamp(float* pminMipmapLevelClamp, float* pmaxMipmapLevelClamp, CUtexref hTexRef) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuTexRefGetMipmapLevelClamp + _check_or_init_driver() + if __cuTexRefGetMipmapLevelClamp == NULL: + with gil: + raise FunctionNotFoundError("function cuTexRefGetMipmapLevelClamp is not found") + return (__cuTexRefGetMipmapLevelClamp)( + pminMipmapLevelClamp, pmaxMipmapLevelClamp, hTexRef) + + +cdef CUresult _cuTexRefGetMaxAnisotropy(int* pmaxAniso, CUtexref hTexRef) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuTexRefGetMaxAnisotropy + _check_or_init_driver() + if __cuTexRefGetMaxAnisotropy == NULL: + with gil: + raise FunctionNotFoundError("function cuTexRefGetMaxAnisotropy is not found") + return (__cuTexRefGetMaxAnisotropy)( + pmaxAniso, hTexRef) + + +cdef CUresult _cuTexRefGetBorderColor(float* pBorderColor, CUtexref hTexRef) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuTexRefGetBorderColor + _check_or_init_driver() + if __cuTexRefGetBorderColor == NULL: + with gil: + raise FunctionNotFoundError("function cuTexRefGetBorderColor is not found") + return (__cuTexRefGetBorderColor)( + pBorderColor, hTexRef) + + +cdef CUresult _cuTexRefGetFlags(unsigned int* pFlags, CUtexref hTexRef) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuTexRefGetFlags + _check_or_init_driver() + if __cuTexRefGetFlags == NULL: + with gil: + raise FunctionNotFoundError("function cuTexRefGetFlags is not found") + return (__cuTexRefGetFlags)( + pFlags, hTexRef) + + +cdef CUresult _cuTexRefCreate(CUtexref* pTexRef) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuTexRefCreate + _check_or_init_driver() + if __cuTexRefCreate == NULL: + with gil: + raise FunctionNotFoundError("function cuTexRefCreate is not found") + return (__cuTexRefCreate)( + pTexRef) + + +cdef CUresult _cuTexRefDestroy(CUtexref hTexRef) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuTexRefDestroy + _check_or_init_driver() + if __cuTexRefDestroy == NULL: + with gil: + raise FunctionNotFoundError("function cuTexRefDestroy is not found") + return (__cuTexRefDestroy)( + hTexRef) + + +cdef CUresult _cuSurfRefSetArray(CUsurfref hSurfRef, CUarray hArray, unsigned int Flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuSurfRefSetArray + _check_or_init_driver() + if __cuSurfRefSetArray == NULL: + with gil: + raise FunctionNotFoundError("function cuSurfRefSetArray is not found") + return (__cuSurfRefSetArray)( + hSurfRef, hArray, Flags) + + +cdef CUresult _cuSurfRefGetArray(CUarray* phArray, CUsurfref hSurfRef) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuSurfRefGetArray + _check_or_init_driver() + if __cuSurfRefGetArray == NULL: + with gil: + raise FunctionNotFoundError("function cuSurfRefGetArray is not found") + return (__cuSurfRefGetArray)( + phArray, hSurfRef) + + +cdef CUresult _cuTexObjectCreate(CUtexObject* pTexObject, const CUDA_RESOURCE_DESC* pResDesc, const CUDA_TEXTURE_DESC* pTexDesc, const CUDA_RESOURCE_VIEW_DESC* pResViewDesc) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuTexObjectCreate + _check_or_init_driver() + if __cuTexObjectCreate == NULL: + with gil: + raise FunctionNotFoundError("function cuTexObjectCreate is not found") + return (__cuTexObjectCreate)( + pTexObject, pResDesc, pTexDesc, pResViewDesc) + + +cdef CUresult _cuTexObjectDestroy(CUtexObject texObject) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuTexObjectDestroy + _check_or_init_driver() + if __cuTexObjectDestroy == NULL: + with gil: + raise FunctionNotFoundError("function cuTexObjectDestroy is not found") + return (__cuTexObjectDestroy)( + texObject) + + +cdef CUresult _cuTexObjectGetResourceDesc(CUDA_RESOURCE_DESC* pResDesc, CUtexObject texObject) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuTexObjectGetResourceDesc + _check_or_init_driver() + if __cuTexObjectGetResourceDesc == NULL: + with gil: + raise FunctionNotFoundError("function cuTexObjectGetResourceDesc is not found") + return (__cuTexObjectGetResourceDesc)( + pResDesc, texObject) + + +cdef CUresult _cuTexObjectGetTextureDesc(CUDA_TEXTURE_DESC* pTexDesc, CUtexObject texObject) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuTexObjectGetTextureDesc + _check_or_init_driver() + if __cuTexObjectGetTextureDesc == NULL: + with gil: + raise FunctionNotFoundError("function cuTexObjectGetTextureDesc is not found") + return (__cuTexObjectGetTextureDesc)( + pTexDesc, texObject) + + +cdef CUresult _cuTexObjectGetResourceViewDesc(CUDA_RESOURCE_VIEW_DESC* pResViewDesc, CUtexObject texObject) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuTexObjectGetResourceViewDesc + _check_or_init_driver() + if __cuTexObjectGetResourceViewDesc == NULL: + with gil: + raise FunctionNotFoundError("function cuTexObjectGetResourceViewDesc is not found") + return (__cuTexObjectGetResourceViewDesc)( + pResViewDesc, texObject) + + +cdef CUresult _cuSurfObjectCreate(CUsurfObject* pSurfObject, const CUDA_RESOURCE_DESC* pResDesc) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuSurfObjectCreate + _check_or_init_driver() + if __cuSurfObjectCreate == NULL: + with gil: + raise FunctionNotFoundError("function cuSurfObjectCreate is not found") + return (__cuSurfObjectCreate)( + pSurfObject, pResDesc) + + +cdef CUresult _cuSurfObjectDestroy(CUsurfObject surfObject) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuSurfObjectDestroy + _check_or_init_driver() + if __cuSurfObjectDestroy == NULL: + with gil: + raise FunctionNotFoundError("function cuSurfObjectDestroy is not found") + return (__cuSurfObjectDestroy)( + surfObject) + + +cdef CUresult _cuSurfObjectGetResourceDesc(CUDA_RESOURCE_DESC* pResDesc, CUsurfObject surfObject) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuSurfObjectGetResourceDesc + _check_or_init_driver() + if __cuSurfObjectGetResourceDesc == NULL: + with gil: + raise FunctionNotFoundError("function cuSurfObjectGetResourceDesc is not found") + return (__cuSurfObjectGetResourceDesc)( + pResDesc, surfObject) + + +cdef CUresult _cuTensorMapEncodeTiled(CUtensorMap* tensorMap, CUtensorMapDataType tensorDataType, cuuint32_t tensorRank, void* globalAddress, const cuuint64_t* globalDim, const cuuint64_t* globalStrides, const cuuint32_t* boxDim, const cuuint32_t* elementStrides, CUtensorMapInterleave interleave, CUtensorMapSwizzle swizzle, CUtensorMapL2promotion l2Promotion, CUtensorMapFloatOOBfill oobFill) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuTensorMapEncodeTiled + _check_or_init_driver() + if __cuTensorMapEncodeTiled == NULL: + with gil: + raise FunctionNotFoundError("function cuTensorMapEncodeTiled is not found") + return (__cuTensorMapEncodeTiled)( + tensorMap, tensorDataType, tensorRank, globalAddress, globalDim, globalStrides, boxDim, elementStrides, interleave, swizzle, l2Promotion, oobFill) + + +cdef CUresult _cuTensorMapEncodeIm2col(CUtensorMap* tensorMap, CUtensorMapDataType tensorDataType, cuuint32_t tensorRank, void* globalAddress, const cuuint64_t* globalDim, const cuuint64_t* globalStrides, const int* pixelBoxLowerCorner, const int* pixelBoxUpperCorner, cuuint32_t channelsPerPixel, cuuint32_t pixelsPerColumn, const cuuint32_t* elementStrides, CUtensorMapInterleave interleave, CUtensorMapSwizzle swizzle, CUtensorMapL2promotion l2Promotion, CUtensorMapFloatOOBfill oobFill) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuTensorMapEncodeIm2col + _check_or_init_driver() + if __cuTensorMapEncodeIm2col == NULL: + with gil: + raise FunctionNotFoundError("function cuTensorMapEncodeIm2col is not found") + return (__cuTensorMapEncodeIm2col)( + tensorMap, tensorDataType, tensorRank, globalAddress, globalDim, globalStrides, pixelBoxLowerCorner, pixelBoxUpperCorner, channelsPerPixel, pixelsPerColumn, elementStrides, interleave, swizzle, l2Promotion, oobFill) + + +cdef CUresult _cuTensorMapEncodeIm2colWide(CUtensorMap* tensorMap, CUtensorMapDataType tensorDataType, cuuint32_t tensorRank, void* globalAddress, const cuuint64_t* globalDim, const cuuint64_t* globalStrides, int pixelBoxLowerCornerWidth, int pixelBoxUpperCornerWidth, cuuint32_t channelsPerPixel, cuuint32_t pixelsPerColumn, const cuuint32_t* elementStrides, CUtensorMapInterleave interleave, CUtensorMapIm2ColWideMode mode, CUtensorMapSwizzle swizzle, CUtensorMapL2promotion l2Promotion, CUtensorMapFloatOOBfill oobFill) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuTensorMapEncodeIm2colWide + _check_or_init_driver() + if __cuTensorMapEncodeIm2colWide == NULL: + with gil: + raise FunctionNotFoundError("function cuTensorMapEncodeIm2colWide is not found") + return (__cuTensorMapEncodeIm2colWide)( + tensorMap, tensorDataType, tensorRank, globalAddress, globalDim, globalStrides, pixelBoxLowerCornerWidth, pixelBoxUpperCornerWidth, channelsPerPixel, pixelsPerColumn, elementStrides, interleave, mode, swizzle, l2Promotion, oobFill) + + +cdef CUresult _cuTensorMapReplaceAddress(CUtensorMap* tensorMap, void* globalAddress) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuTensorMapReplaceAddress + _check_or_init_driver() + if __cuTensorMapReplaceAddress == NULL: + with gil: + raise FunctionNotFoundError("function cuTensorMapReplaceAddress is not found") + return (__cuTensorMapReplaceAddress)( + tensorMap, globalAddress) + + +cdef CUresult _cuDeviceCanAccessPeer(int* canAccessPeer, CUdevice dev, CUdevice peerDev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuDeviceCanAccessPeer + _check_or_init_driver() + if __cuDeviceCanAccessPeer == NULL: + with gil: + raise FunctionNotFoundError("function cuDeviceCanAccessPeer is not found") + return (__cuDeviceCanAccessPeer)( + canAccessPeer, dev, peerDev) + + +cdef CUresult _cuCtxEnablePeerAccess(CUcontext peerContext, unsigned int Flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuCtxEnablePeerAccess + _check_or_init_driver() + if __cuCtxEnablePeerAccess == NULL: + with gil: + raise FunctionNotFoundError("function cuCtxEnablePeerAccess is not found") + return (__cuCtxEnablePeerAccess)( + peerContext, Flags) + + +cdef CUresult _cuCtxDisablePeerAccess(CUcontext peerContext) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuCtxDisablePeerAccess + _check_or_init_driver() + if __cuCtxDisablePeerAccess == NULL: + with gil: + raise FunctionNotFoundError("function cuCtxDisablePeerAccess is not found") + return (__cuCtxDisablePeerAccess)( + peerContext) + + +cdef CUresult _cuDeviceGetP2PAttribute(int* value, CUdevice_P2PAttribute attrib, CUdevice srcDevice, CUdevice dstDevice) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuDeviceGetP2PAttribute + _check_or_init_driver() + if __cuDeviceGetP2PAttribute == NULL: + with gil: + raise FunctionNotFoundError("function cuDeviceGetP2PAttribute is not found") + return (__cuDeviceGetP2PAttribute)( + value, attrib, srcDevice, dstDevice) + + +cdef CUresult _cuGraphicsUnregisterResource(CUgraphicsResource resource) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphicsUnregisterResource + _check_or_init_driver() + if __cuGraphicsUnregisterResource == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphicsUnregisterResource is not found") + return (__cuGraphicsUnregisterResource)( + resource) + + +cdef CUresult _cuGraphicsSubResourceGetMappedArray(CUarray* pArray, CUgraphicsResource resource, unsigned int arrayIndex, unsigned int mipLevel) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphicsSubResourceGetMappedArray + _check_or_init_driver() + if __cuGraphicsSubResourceGetMappedArray == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphicsSubResourceGetMappedArray is not found") + return (__cuGraphicsSubResourceGetMappedArray)( + pArray, resource, arrayIndex, mipLevel) + + +cdef CUresult _cuGraphicsResourceGetMappedMipmappedArray(CUmipmappedArray* pMipmappedArray, CUgraphicsResource resource) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphicsResourceGetMappedMipmappedArray + _check_or_init_driver() + if __cuGraphicsResourceGetMappedMipmappedArray == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphicsResourceGetMappedMipmappedArray is not found") + return (__cuGraphicsResourceGetMappedMipmappedArray)( + pMipmappedArray, resource) + + +cdef CUresult _cuGraphicsResourceGetMappedPointer_v2(CUdeviceptr* pDevPtr, size_t* pSize, CUgraphicsResource resource) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphicsResourceGetMappedPointer_v2 + _check_or_init_driver() + if __cuGraphicsResourceGetMappedPointer_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphicsResourceGetMappedPointer_v2 is not found") + return (__cuGraphicsResourceGetMappedPointer_v2)( + pDevPtr, pSize, resource) + + +cdef CUresult _cuGraphicsResourceSetMapFlags_v2(CUgraphicsResource resource, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphicsResourceSetMapFlags_v2 + _check_or_init_driver() + if __cuGraphicsResourceSetMapFlags_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphicsResourceSetMapFlags_v2 is not found") + return (__cuGraphicsResourceSetMapFlags_v2)( + resource, flags) + + +cdef CUresult _cuGraphicsMapResources(unsigned int count, CUgraphicsResource* resources, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphicsMapResources + _check_or_init_driver() + if __cuGraphicsMapResources == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphicsMapResources is not found") + return (__cuGraphicsMapResources)( + count, resources, hStream) + + +cdef CUresult _cuGraphicsUnmapResources(unsigned int count, CUgraphicsResource* resources, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphicsUnmapResources + _check_or_init_driver() + if __cuGraphicsUnmapResources == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphicsUnmapResources is not found") + return (__cuGraphicsUnmapResources)( + count, resources, hStream) + + +cdef CUresult _cuGetProcAddress_v2(const char* symbol, void** pfn, int cudaVersion, cuuint64_t flags, CUdriverProcAddressQueryResult* symbolStatus) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGetProcAddress_v2 + _check_or_init_driver() + if __cuGetProcAddress_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuGetProcAddress_v2 is not found") + return (__cuGetProcAddress_v2)( + symbol, pfn, cudaVersion, flags, symbolStatus) + + +cdef CUresult _cuCoredumpGetAttribute(CUcoredumpSettings attrib, void* value, size_t* size) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuCoredumpGetAttribute + _check_or_init_driver() + if __cuCoredumpGetAttribute == NULL: + with gil: + raise FunctionNotFoundError("function cuCoredumpGetAttribute is not found") + return (__cuCoredumpGetAttribute)( + attrib, value, size) + + +cdef CUresult _cuCoredumpGetAttributeGlobal(CUcoredumpSettings attrib, void* value, size_t* size) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuCoredumpGetAttributeGlobal + _check_or_init_driver() + if __cuCoredumpGetAttributeGlobal == NULL: + with gil: + raise FunctionNotFoundError("function cuCoredumpGetAttributeGlobal is not found") + return (__cuCoredumpGetAttributeGlobal)( + attrib, value, size) + + +cdef CUresult _cuCoredumpSetAttribute(CUcoredumpSettings attrib, void* value, size_t* size) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuCoredumpSetAttribute + _check_or_init_driver() + if __cuCoredumpSetAttribute == NULL: + with gil: + raise FunctionNotFoundError("function cuCoredumpSetAttribute is not found") + return (__cuCoredumpSetAttribute)( + attrib, value, size) + + +cdef CUresult _cuCoredumpSetAttributeGlobal(CUcoredumpSettings attrib, void* value, size_t* size) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuCoredumpSetAttributeGlobal + _check_or_init_driver() + if __cuCoredumpSetAttributeGlobal == NULL: + with gil: + raise FunctionNotFoundError("function cuCoredumpSetAttributeGlobal is not found") + return (__cuCoredumpSetAttributeGlobal)( + attrib, value, size) + + +cdef CUresult _cuGetExportTable(const void** ppExportTable, const CUuuid* pExportTableId) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGetExportTable + _check_or_init_driver() + if __cuGetExportTable == NULL: + with gil: + raise FunctionNotFoundError("function cuGetExportTable is not found") + return (__cuGetExportTable)( + ppExportTable, pExportTableId) + + +cdef CUresult _cuGreenCtxCreate(CUgreenCtx* phCtx, CUdevResourceDesc desc, CUdevice dev, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGreenCtxCreate + _check_or_init_driver() + if __cuGreenCtxCreate == NULL: + with gil: + raise FunctionNotFoundError("function cuGreenCtxCreate is not found") + return (__cuGreenCtxCreate)( + phCtx, desc, dev, flags) + + +cdef CUresult _cuGreenCtxDestroy(CUgreenCtx hCtx) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGreenCtxDestroy + _check_or_init_driver() + if __cuGreenCtxDestroy == NULL: + with gil: + raise FunctionNotFoundError("function cuGreenCtxDestroy is not found") + return (__cuGreenCtxDestroy)( + hCtx) + + +cdef CUresult _cuCtxFromGreenCtx(CUcontext* pContext, CUgreenCtx hCtx) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuCtxFromGreenCtx + _check_or_init_driver() + if __cuCtxFromGreenCtx == NULL: + with gil: + raise FunctionNotFoundError("function cuCtxFromGreenCtx is not found") + return (__cuCtxFromGreenCtx)( + pContext, hCtx) + + +cdef CUresult _cuDeviceGetDevResource(CUdevice device, CUdevResource* resource, CUdevResourceType type) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuDeviceGetDevResource + _check_or_init_driver() + if __cuDeviceGetDevResource == NULL: + with gil: + raise FunctionNotFoundError("function cuDeviceGetDevResource is not found") + return (__cuDeviceGetDevResource)( + device, resource, type) + + +cdef CUresult _cuCtxGetDevResource(CUcontext hCtx, CUdevResource* resource, CUdevResourceType type) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuCtxGetDevResource + _check_or_init_driver() + if __cuCtxGetDevResource == NULL: + with gil: + raise FunctionNotFoundError("function cuCtxGetDevResource is not found") + return (__cuCtxGetDevResource)( + hCtx, resource, type) + + +cdef CUresult _cuGreenCtxGetDevResource(CUgreenCtx hCtx, CUdevResource* resource, CUdevResourceType type) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGreenCtxGetDevResource + _check_or_init_driver() + if __cuGreenCtxGetDevResource == NULL: + with gil: + raise FunctionNotFoundError("function cuGreenCtxGetDevResource is not found") + return (__cuGreenCtxGetDevResource)( + hCtx, resource, type) + + +cdef CUresult _cuDevSmResourceSplitByCount(CUdevResource* result, unsigned int* nbGroups, const CUdevResource* input, CUdevResource* remainder, unsigned int flags, unsigned int minCount) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuDevSmResourceSplitByCount + _check_or_init_driver() + if __cuDevSmResourceSplitByCount == NULL: + with gil: + raise FunctionNotFoundError("function cuDevSmResourceSplitByCount is not found") + return (__cuDevSmResourceSplitByCount)( + result, nbGroups, input, remainder, flags, minCount) + + +cdef CUresult _cuDevResourceGenerateDesc(CUdevResourceDesc* phDesc, CUdevResource* resources, unsigned int nbResources) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuDevResourceGenerateDesc + _check_or_init_driver() + if __cuDevResourceGenerateDesc == NULL: + with gil: + raise FunctionNotFoundError("function cuDevResourceGenerateDesc is not found") + return (__cuDevResourceGenerateDesc)( + phDesc, resources, nbResources) + + +cdef CUresult _cuGreenCtxRecordEvent(CUgreenCtx hCtx, CUevent hEvent) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGreenCtxRecordEvent + _check_or_init_driver() + if __cuGreenCtxRecordEvent == NULL: + with gil: + raise FunctionNotFoundError("function cuGreenCtxRecordEvent is not found") + return (__cuGreenCtxRecordEvent)( + hCtx, hEvent) + + +cdef CUresult _cuGreenCtxWaitEvent(CUgreenCtx hCtx, CUevent hEvent) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGreenCtxWaitEvent + _check_or_init_driver() + if __cuGreenCtxWaitEvent == NULL: + with gil: + raise FunctionNotFoundError("function cuGreenCtxWaitEvent is not found") + return (__cuGreenCtxWaitEvent)( + hCtx, hEvent) + + +cdef CUresult _cuStreamGetGreenCtx(CUstream hStream, CUgreenCtx* phCtx) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuStreamGetGreenCtx + _check_or_init_driver() + if __cuStreamGetGreenCtx == NULL: + with gil: + raise FunctionNotFoundError("function cuStreamGetGreenCtx is not found") + return (__cuStreamGetGreenCtx)( + hStream, phCtx) + + +cdef CUresult _cuGreenCtxStreamCreate(CUstream* phStream, CUgreenCtx greenCtx, unsigned int flags, int priority) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGreenCtxStreamCreate + _check_or_init_driver() + if __cuGreenCtxStreamCreate == NULL: + with gil: + raise FunctionNotFoundError("function cuGreenCtxStreamCreate is not found") + return (__cuGreenCtxStreamCreate)( + phStream, greenCtx, flags, priority) + + +cdef CUresult _cuLogsRegisterCallback(CUlogsCallback callbackFunc, void* userData, CUlogsCallbackHandle* callback_out) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuLogsRegisterCallback + _check_or_init_driver() + if __cuLogsRegisterCallback == NULL: + with gil: + raise FunctionNotFoundError("function cuLogsRegisterCallback is not found") + return (__cuLogsRegisterCallback)( + callbackFunc, userData, callback_out) + + +cdef CUresult _cuLogsUnregisterCallback(CUlogsCallbackHandle callback) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuLogsUnregisterCallback + _check_or_init_driver() + if __cuLogsUnregisterCallback == NULL: + with gil: + raise FunctionNotFoundError("function cuLogsUnregisterCallback is not found") + return (__cuLogsUnregisterCallback)( + callback) + + +cdef CUresult _cuLogsCurrent(CUlogIterator* iterator_out, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuLogsCurrent + _check_or_init_driver() + if __cuLogsCurrent == NULL: + with gil: + raise FunctionNotFoundError("function cuLogsCurrent is not found") + return (__cuLogsCurrent)( + iterator_out, flags) + + +cdef CUresult _cuLogsDumpToFile(CUlogIterator* iterator, const char* pathToFile, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuLogsDumpToFile + _check_or_init_driver() + if __cuLogsDumpToFile == NULL: + with gil: + raise FunctionNotFoundError("function cuLogsDumpToFile is not found") + return (__cuLogsDumpToFile)( + iterator, pathToFile, flags) + + +cdef CUresult _cuLogsDumpToMemory(CUlogIterator* iterator, char* buffer, size_t* size, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuLogsDumpToMemory + _check_or_init_driver() + if __cuLogsDumpToMemory == NULL: + with gil: + raise FunctionNotFoundError("function cuLogsDumpToMemory is not found") + return (__cuLogsDumpToMemory)( + iterator, buffer, size, flags) + + +cdef CUresult _cuCheckpointProcessGetRestoreThreadId(int pid, int* tid) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuCheckpointProcessGetRestoreThreadId + _check_or_init_driver() + if __cuCheckpointProcessGetRestoreThreadId == NULL: + with gil: + raise FunctionNotFoundError("function cuCheckpointProcessGetRestoreThreadId is not found") + return (__cuCheckpointProcessGetRestoreThreadId)( + pid, tid) + + +cdef CUresult _cuCheckpointProcessGetState(int pid, CUprocessState* state) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuCheckpointProcessGetState + _check_or_init_driver() + if __cuCheckpointProcessGetState == NULL: + with gil: + raise FunctionNotFoundError("function cuCheckpointProcessGetState is not found") + return (__cuCheckpointProcessGetState)( + pid, state) + + +cdef CUresult _cuCheckpointProcessLock(int pid, CUcheckpointLockArgs* args) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuCheckpointProcessLock + _check_or_init_driver() + if __cuCheckpointProcessLock == NULL: + with gil: + raise FunctionNotFoundError("function cuCheckpointProcessLock is not found") + return (__cuCheckpointProcessLock)( + pid, args) + + +cdef CUresult _cuCheckpointProcessCheckpoint(int pid, CUcheckpointCheckpointArgs* args) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuCheckpointProcessCheckpoint + _check_or_init_driver() + if __cuCheckpointProcessCheckpoint == NULL: + with gil: + raise FunctionNotFoundError("function cuCheckpointProcessCheckpoint is not found") + return (__cuCheckpointProcessCheckpoint)( + pid, args) + + +cdef CUresult _cuCheckpointProcessRestore(int pid, CUcheckpointRestoreArgs* args) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuCheckpointProcessRestore + _check_or_init_driver() + if __cuCheckpointProcessRestore == NULL: + with gil: + raise FunctionNotFoundError("function cuCheckpointProcessRestore is not found") + return (__cuCheckpointProcessRestore)( + pid, args) + + +cdef CUresult _cuCheckpointProcessUnlock(int pid, CUcheckpointUnlockArgs* args) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuCheckpointProcessUnlock + _check_or_init_driver() + if __cuCheckpointProcessUnlock == NULL: + with gil: + raise FunctionNotFoundError("function cuCheckpointProcessUnlock is not found") + return (__cuCheckpointProcessUnlock)( + pid, args) + + +cdef CUresult _cuGraphicsEGLRegisterImage(CUgraphicsResource* pCudaResource, EGLImageKHR image, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphicsEGLRegisterImage + _check_or_init_driver() + if __cuGraphicsEGLRegisterImage == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphicsEGLRegisterImage is not found") + return (__cuGraphicsEGLRegisterImage)( + pCudaResource, image, flags) + + +cdef CUresult _cuEGLStreamConsumerConnect(CUeglStreamConnection* conn, EGLStreamKHR stream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuEGLStreamConsumerConnect + _check_or_init_driver() + if __cuEGLStreamConsumerConnect == NULL: + with gil: + raise FunctionNotFoundError("function cuEGLStreamConsumerConnect is not found") + return (__cuEGLStreamConsumerConnect)( + conn, stream) + + +cdef CUresult _cuEGLStreamConsumerConnectWithFlags(CUeglStreamConnection* conn, EGLStreamKHR stream, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuEGLStreamConsumerConnectWithFlags + _check_or_init_driver() + if __cuEGLStreamConsumerConnectWithFlags == NULL: + with gil: + raise FunctionNotFoundError("function cuEGLStreamConsumerConnectWithFlags is not found") + return (__cuEGLStreamConsumerConnectWithFlags)( + conn, stream, flags) + + +cdef CUresult _cuEGLStreamConsumerDisconnect(CUeglStreamConnection* conn) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuEGLStreamConsumerDisconnect + _check_or_init_driver() + if __cuEGLStreamConsumerDisconnect == NULL: + with gil: + raise FunctionNotFoundError("function cuEGLStreamConsumerDisconnect is not found") + return (__cuEGLStreamConsumerDisconnect)( + conn) + + +cdef CUresult _cuEGLStreamConsumerAcquireFrame(CUeglStreamConnection* conn, CUgraphicsResource* pCudaResource, CUstream* pStream, unsigned int timeout) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuEGLStreamConsumerAcquireFrame + _check_or_init_driver() + if __cuEGLStreamConsumerAcquireFrame == NULL: + with gil: + raise FunctionNotFoundError("function cuEGLStreamConsumerAcquireFrame is not found") + return (__cuEGLStreamConsumerAcquireFrame)( + conn, pCudaResource, pStream, timeout) + + +cdef CUresult _cuEGLStreamConsumerReleaseFrame(CUeglStreamConnection* conn, CUgraphicsResource pCudaResource, CUstream* pStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuEGLStreamConsumerReleaseFrame + _check_or_init_driver() + if __cuEGLStreamConsumerReleaseFrame == NULL: + with gil: + raise FunctionNotFoundError("function cuEGLStreamConsumerReleaseFrame is not found") + return (__cuEGLStreamConsumerReleaseFrame)( + conn, pCudaResource, pStream) + + +cdef CUresult _cuEGLStreamProducerConnect(CUeglStreamConnection* conn, EGLStreamKHR stream, EGLint width, EGLint height) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuEGLStreamProducerConnect + _check_or_init_driver() + if __cuEGLStreamProducerConnect == NULL: + with gil: + raise FunctionNotFoundError("function cuEGLStreamProducerConnect is not found") + return (__cuEGLStreamProducerConnect)( + conn, stream, width, height) + + +cdef CUresult _cuEGLStreamProducerDisconnect(CUeglStreamConnection* conn) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuEGLStreamProducerDisconnect + _check_or_init_driver() + if __cuEGLStreamProducerDisconnect == NULL: + with gil: + raise FunctionNotFoundError("function cuEGLStreamProducerDisconnect is not found") + return (__cuEGLStreamProducerDisconnect)( + conn) + + +cdef CUresult _cuEGLStreamProducerPresentFrame(CUeglStreamConnection* conn, CUeglFrame eglframe, CUstream* pStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuEGLStreamProducerPresentFrame + _check_or_init_driver() + if __cuEGLStreamProducerPresentFrame == NULL: + with gil: + raise FunctionNotFoundError("function cuEGLStreamProducerPresentFrame is not found") + return (__cuEGLStreamProducerPresentFrame)( + conn, eglframe, pStream) + + +cdef CUresult _cuEGLStreamProducerReturnFrame(CUeglStreamConnection* conn, CUeglFrame* eglframe, CUstream* pStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuEGLStreamProducerReturnFrame + _check_or_init_driver() + if __cuEGLStreamProducerReturnFrame == NULL: + with gil: + raise FunctionNotFoundError("function cuEGLStreamProducerReturnFrame is not found") + return (__cuEGLStreamProducerReturnFrame)( + conn, eglframe, pStream) + + +cdef CUresult _cuGraphicsResourceGetMappedEglFrame(CUeglFrame* eglFrame, CUgraphicsResource resource, unsigned int index, unsigned int mipLevel) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphicsResourceGetMappedEglFrame + _check_or_init_driver() + if __cuGraphicsResourceGetMappedEglFrame == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphicsResourceGetMappedEglFrame is not found") + return (__cuGraphicsResourceGetMappedEglFrame)( + eglFrame, resource, index, mipLevel) + + +cdef CUresult _cuEventCreateFromEGLSync(CUevent* phEvent, EGLSyncKHR eglSync, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuEventCreateFromEGLSync + _check_or_init_driver() + if __cuEventCreateFromEGLSync == NULL: + with gil: + raise FunctionNotFoundError("function cuEventCreateFromEGLSync is not found") + return (__cuEventCreateFromEGLSync)( + phEvent, eglSync, flags) + + +cdef CUresult _cuGraphicsGLRegisterBuffer(CUgraphicsResource* pCudaResource, GLuint buffer, unsigned int Flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphicsGLRegisterBuffer + _check_or_init_driver() + if __cuGraphicsGLRegisterBuffer == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphicsGLRegisterBuffer is not found") + return (__cuGraphicsGLRegisterBuffer)( + pCudaResource, buffer, Flags) + + +cdef CUresult _cuGraphicsGLRegisterImage(CUgraphicsResource* pCudaResource, GLuint image, GLenum target, unsigned int Flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphicsGLRegisterImage + _check_or_init_driver() + if __cuGraphicsGLRegisterImage == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphicsGLRegisterImage is not found") + return (__cuGraphicsGLRegisterImage)( + pCudaResource, image, target, Flags) + + +cdef CUresult _cuGLGetDevices_v2(unsigned int* pCudaDeviceCount, CUdevice* pCudaDevices, unsigned int cudaDeviceCount, CUGLDeviceList deviceList) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGLGetDevices_v2 + _check_or_init_driver() + if __cuGLGetDevices_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuGLGetDevices_v2 is not found") + return (__cuGLGetDevices_v2)( + pCudaDeviceCount, pCudaDevices, cudaDeviceCount, deviceList) + + +cdef CUresult _cuGLCtxCreate_v2(CUcontext* pCtx, unsigned int Flags, CUdevice device) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGLCtxCreate_v2 + _check_or_init_driver() + if __cuGLCtxCreate_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuGLCtxCreate_v2 is not found") + return (__cuGLCtxCreate_v2)( + pCtx, Flags, device) + + +cdef CUresult _cuGLInit() except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGLInit + _check_or_init_driver() + if __cuGLInit == NULL: + with gil: + raise FunctionNotFoundError("function cuGLInit is not found") + return (__cuGLInit)( + ) + + +cdef CUresult _cuGLRegisterBufferObject(GLuint buffer) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGLRegisterBufferObject + _check_or_init_driver() + if __cuGLRegisterBufferObject == NULL: + with gil: + raise FunctionNotFoundError("function cuGLRegisterBufferObject is not found") + return (__cuGLRegisterBufferObject)( + buffer) + + +cdef CUresult _cuGLMapBufferObject_v2(CUdeviceptr* dptr, size_t* size, GLuint buffer) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGLMapBufferObject_v2 + _check_or_init_driver() + if __cuGLMapBufferObject_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuGLMapBufferObject_v2 is not found") + return (__cuGLMapBufferObject_v2)( + dptr, size, buffer) + + +cdef CUresult _cuGLUnmapBufferObject(GLuint buffer) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGLUnmapBufferObject + _check_or_init_driver() + if __cuGLUnmapBufferObject == NULL: + with gil: + raise FunctionNotFoundError("function cuGLUnmapBufferObject is not found") + return (__cuGLUnmapBufferObject)( + buffer) + + +cdef CUresult _cuGLUnregisterBufferObject(GLuint buffer) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGLUnregisterBufferObject + _check_or_init_driver() + if __cuGLUnregisterBufferObject == NULL: + with gil: + raise FunctionNotFoundError("function cuGLUnregisterBufferObject is not found") + return (__cuGLUnregisterBufferObject)( + buffer) + + +cdef CUresult _cuGLSetBufferObjectMapFlags(GLuint buffer, unsigned int Flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGLSetBufferObjectMapFlags + _check_or_init_driver() + if __cuGLSetBufferObjectMapFlags == NULL: + with gil: + raise FunctionNotFoundError("function cuGLSetBufferObjectMapFlags is not found") + return (__cuGLSetBufferObjectMapFlags)( + buffer, Flags) + + +cdef CUresult _cuGLMapBufferObjectAsync_v2(CUdeviceptr* dptr, size_t* size, GLuint buffer, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGLMapBufferObjectAsync_v2 + _check_or_init_driver() + if __cuGLMapBufferObjectAsync_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuGLMapBufferObjectAsync_v2 is not found") + return (__cuGLMapBufferObjectAsync_v2)( + dptr, size, buffer, hStream) + + +cdef CUresult _cuGLUnmapBufferObjectAsync(GLuint buffer, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGLUnmapBufferObjectAsync + _check_or_init_driver() + if __cuGLUnmapBufferObjectAsync == NULL: + with gil: + raise FunctionNotFoundError("function cuGLUnmapBufferObjectAsync is not found") + return (__cuGLUnmapBufferObjectAsync)( + buffer, hStream) + + +cdef CUresult _cuProfilerInitialize(const char* configFile, const char* outputFile, CUoutput_mode outputMode) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuProfilerInitialize + _check_or_init_driver() + if __cuProfilerInitialize == NULL: + with gil: + raise FunctionNotFoundError("function cuProfilerInitialize is not found") + return (__cuProfilerInitialize)( + configFile, outputFile, outputMode) + + +cdef CUresult _cuProfilerStart() except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuProfilerStart + _check_or_init_driver() + if __cuProfilerStart == NULL: + with gil: + raise FunctionNotFoundError("function cuProfilerStart is not found") + return (__cuProfilerStart)( + ) + + +cdef CUresult _cuProfilerStop() except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuProfilerStop + _check_or_init_driver() + if __cuProfilerStop == NULL: + with gil: + raise FunctionNotFoundError("function cuProfilerStop is not found") + return (__cuProfilerStop)( + ) + + +cdef CUresult _cuVDPAUGetDevice(CUdevice* pDevice, VdpDevice vdpDevice, VdpGetProcAddress* vdpGetProcAddress) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuVDPAUGetDevice + _check_or_init_driver() + if __cuVDPAUGetDevice == NULL: + with gil: + raise FunctionNotFoundError("function cuVDPAUGetDevice is not found") + return (__cuVDPAUGetDevice)( + pDevice, vdpDevice, vdpGetProcAddress) + + +cdef CUresult _cuVDPAUCtxCreate_v2(CUcontext* pCtx, unsigned int flags, CUdevice device, VdpDevice vdpDevice, VdpGetProcAddress* vdpGetProcAddress) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuVDPAUCtxCreate_v2 + _check_or_init_driver() + if __cuVDPAUCtxCreate_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuVDPAUCtxCreate_v2 is not found") + return (__cuVDPAUCtxCreate_v2)( + pCtx, flags, device, vdpDevice, vdpGetProcAddress) + + +cdef CUresult _cuGraphicsVDPAURegisterVideoSurface(CUgraphicsResource* pCudaResource, VdpVideoSurface vdpSurface, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphicsVDPAURegisterVideoSurface + _check_or_init_driver() + if __cuGraphicsVDPAURegisterVideoSurface == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphicsVDPAURegisterVideoSurface is not found") + return (__cuGraphicsVDPAURegisterVideoSurface)( + pCudaResource, vdpSurface, flags) + + +cdef CUresult _cuGraphicsVDPAURegisterOutputSurface(CUgraphicsResource* pCudaResource, VdpOutputSurface vdpSurface, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphicsVDPAURegisterOutputSurface + _check_or_init_driver() + if __cuGraphicsVDPAURegisterOutputSurface == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphicsVDPAURegisterOutputSurface is not found") + return (__cuGraphicsVDPAURegisterOutputSurface)( + pCudaResource, vdpSurface, flags) + + +cdef CUresult _cuDeviceGetHostAtomicCapabilities(unsigned int* capabilities, const CUatomicOperation* operations, unsigned int count, CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuDeviceGetHostAtomicCapabilities + _check_or_init_driver() + if __cuDeviceGetHostAtomicCapabilities == NULL: + with gil: + raise FunctionNotFoundError("function cuDeviceGetHostAtomicCapabilities is not found") + return (__cuDeviceGetHostAtomicCapabilities)( + capabilities, operations, count, dev) + + +cdef CUresult _cuCtxGetDevice_v2(CUdevice* device, CUcontext ctx) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuCtxGetDevice_v2 + _check_or_init_driver() + if __cuCtxGetDevice_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuCtxGetDevice_v2 is not found") + return (__cuCtxGetDevice_v2)( + device, ctx) + + +cdef CUresult _cuCtxSynchronize_v2(CUcontext ctx) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuCtxSynchronize_v2 + _check_or_init_driver() + if __cuCtxSynchronize_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuCtxSynchronize_v2 is not found") + return (__cuCtxSynchronize_v2)( + ctx) + + +cdef CUresult _cuMemcpyBatchAsync_v2(CUdeviceptr* dsts, CUdeviceptr* srcs, size_t* sizes, size_t count, CUmemcpyAttributes* attrs, size_t* attrsIdxs, size_t numAttrs, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemcpyBatchAsync_v2 + _check_or_init_driver() + if __cuMemcpyBatchAsync_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuMemcpyBatchAsync_v2 is not found") + return (__cuMemcpyBatchAsync_v2)( + dsts, srcs, sizes, count, attrs, attrsIdxs, numAttrs, hStream) + + +cdef CUresult _cuMemcpy3DBatchAsync_v2(size_t numOps, CUDA_MEMCPY3D_BATCH_OP* opList, unsigned long long flags, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemcpy3DBatchAsync_v2 + _check_or_init_driver() + if __cuMemcpy3DBatchAsync_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuMemcpy3DBatchAsync_v2 is not found") + return (__cuMemcpy3DBatchAsync_v2)( + numOps, opList, flags, hStream) + + +cdef CUresult _cuMemGetDefaultMemPool(CUmemoryPool* pool_out, CUmemLocation* location, CUmemAllocationType type) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemGetDefaultMemPool + _check_or_init_driver() + if __cuMemGetDefaultMemPool == NULL: + with gil: + raise FunctionNotFoundError("function cuMemGetDefaultMemPool is not found") + return (__cuMemGetDefaultMemPool)( + pool_out, location, type) + + +cdef CUresult _cuMemGetMemPool(CUmemoryPool* pool, CUmemLocation* location, CUmemAllocationType type) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemGetMemPool + _check_or_init_driver() + if __cuMemGetMemPool == NULL: + with gil: + raise FunctionNotFoundError("function cuMemGetMemPool is not found") + return (__cuMemGetMemPool)( + pool, location, type) + + +cdef CUresult _cuMemSetMemPool(CUmemLocation* location, CUmemAllocationType type, CUmemoryPool pool) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemSetMemPool + _check_or_init_driver() + if __cuMemSetMemPool == NULL: + with gil: + raise FunctionNotFoundError("function cuMemSetMemPool is not found") + return (__cuMemSetMemPool)( + location, type, pool) + + +cdef CUresult _cuMulticastBindMem_v2(CUmemGenericAllocationHandle mcHandle, CUdevice dev, size_t mcOffset, CUmemGenericAllocationHandle memHandle, size_t memOffset, size_t size, unsigned long long flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMulticastBindMem_v2 + _check_or_init_driver() + if __cuMulticastBindMem_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuMulticastBindMem_v2 is not found") + return (__cuMulticastBindMem_v2)( + mcHandle, dev, mcOffset, memHandle, memOffset, size, flags) + + +cdef CUresult _cuMulticastBindAddr_v2(CUmemGenericAllocationHandle mcHandle, CUdevice dev, size_t mcOffset, CUdeviceptr memptr, size_t size, unsigned long long flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMulticastBindAddr_v2 + _check_or_init_driver() + if __cuMulticastBindAddr_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuMulticastBindAddr_v2 is not found") + return (__cuMulticastBindAddr_v2)( + mcHandle, dev, mcOffset, memptr, size, flags) + + +cdef CUresult _cuMemPrefetchBatchAsync(CUdeviceptr* dptrs, size_t* sizes, size_t count, CUmemLocation* prefetchLocs, size_t* prefetchLocIdxs, size_t numPrefetchLocs, unsigned long long flags, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemPrefetchBatchAsync + _check_or_init_driver() + if __cuMemPrefetchBatchAsync == NULL: + with gil: + raise FunctionNotFoundError("function cuMemPrefetchBatchAsync is not found") + return (__cuMemPrefetchBatchAsync)( + dptrs, sizes, count, prefetchLocs, prefetchLocIdxs, numPrefetchLocs, flags, hStream) + + +cdef CUresult _cuMemDiscardBatchAsync(CUdeviceptr* dptrs, size_t* sizes, size_t count, unsigned long long flags, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemDiscardBatchAsync + _check_or_init_driver() + if __cuMemDiscardBatchAsync == NULL: + with gil: + raise FunctionNotFoundError("function cuMemDiscardBatchAsync is not found") + return (__cuMemDiscardBatchAsync)( + dptrs, sizes, count, flags, hStream) + + +cdef CUresult _cuMemDiscardAndPrefetchBatchAsync(CUdeviceptr* dptrs, size_t* sizes, size_t count, CUmemLocation* prefetchLocs, size_t* prefetchLocIdxs, size_t numPrefetchLocs, unsigned long long flags, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemDiscardAndPrefetchBatchAsync + _check_or_init_driver() + if __cuMemDiscardAndPrefetchBatchAsync == NULL: + with gil: + raise FunctionNotFoundError("function cuMemDiscardAndPrefetchBatchAsync is not found") + return (__cuMemDiscardAndPrefetchBatchAsync)( + dptrs, sizes, count, prefetchLocs, prefetchLocIdxs, numPrefetchLocs, flags, hStream) + + +cdef CUresult _cuGraphNodeGetContainingGraph(CUgraphNode hNode, CUgraph* phGraph) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphNodeGetContainingGraph + _check_or_init_driver() + if __cuGraphNodeGetContainingGraph == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphNodeGetContainingGraph is not found") + return (__cuGraphNodeGetContainingGraph)( + hNode, phGraph) + + +cdef CUresult _cuGraphNodeGetLocalId(CUgraphNode hNode, unsigned int* nodeId) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphNodeGetLocalId + _check_or_init_driver() + if __cuGraphNodeGetLocalId == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphNodeGetLocalId is not found") + return (__cuGraphNodeGetLocalId)( + hNode, nodeId) + + +cdef CUresult _cuGraphNodeGetToolsId(CUgraphNode hNode, unsigned long long* toolsNodeId) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphNodeGetToolsId + _check_or_init_driver() + if __cuGraphNodeGetToolsId == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphNodeGetToolsId is not found") + return (__cuGraphNodeGetToolsId)( + hNode, toolsNodeId) + + +cdef CUresult _cuGraphGetId(CUgraph hGraph, unsigned int* graphId) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphGetId + _check_or_init_driver() + if __cuGraphGetId == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphGetId is not found") + return (__cuGraphGetId)( + hGraph, graphId) + + +cdef CUresult _cuGraphExecGetId(CUgraphExec hGraphExec, unsigned int* graphId) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphExecGetId + _check_or_init_driver() + if __cuGraphExecGetId == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphExecGetId is not found") + return (__cuGraphExecGetId)( + hGraphExec, graphId) + + +cdef CUresult _cuDeviceGetP2PAtomicCapabilities(unsigned int* capabilities, const CUatomicOperation* operations, unsigned int count, CUdevice srcDevice, CUdevice dstDevice) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuDeviceGetP2PAtomicCapabilities + _check_or_init_driver() + if __cuDeviceGetP2PAtomicCapabilities == NULL: + with gil: + raise FunctionNotFoundError("function cuDeviceGetP2PAtomicCapabilities is not found") + return (__cuDeviceGetP2PAtomicCapabilities)( + capabilities, operations, count, srcDevice, dstDevice) + + +cdef CUresult _cuDevSmResourceSplit(CUdevResource* result, unsigned int nbGroups, const CUdevResource* input, CUdevResource* remainder, unsigned int flags, CU_DEV_SM_RESOURCE_GROUP_PARAMS* groupParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuDevSmResourceSplit + _check_or_init_driver() + if __cuDevSmResourceSplit == NULL: + with gil: + raise FunctionNotFoundError("function cuDevSmResourceSplit is not found") + return (__cuDevSmResourceSplit)( + result, nbGroups, input, remainder, flags, groupParams) + + +cdef CUresult _cuGreenCtxGetId(CUgreenCtx greenCtx, unsigned long long* greenCtxId) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGreenCtxGetId + _check_or_init_driver() + if __cuGreenCtxGetId == NULL: + with gil: + raise FunctionNotFoundError("function cuGreenCtxGetId is not found") + return (__cuGreenCtxGetId)( + greenCtx, greenCtxId) + + +cdef CUresult _cuStreamGetDevResource(CUstream hStream, CUdevResource* resource, CUdevResourceType type) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuStreamGetDevResource + _check_or_init_driver() + if __cuStreamGetDevResource == NULL: + with gil: + raise FunctionNotFoundError("function cuStreamGetDevResource is not found") + return (__cuStreamGetDevResource)( + hStream, resource, type) + + +cdef CUresult _cuKernelGetParamCount(CUkernel kernel, size_t* paramCount) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuKernelGetParamCount + _check_or_init_driver() + if __cuKernelGetParamCount == NULL: + with gil: + raise FunctionNotFoundError("function cuKernelGetParamCount is not found") + return (__cuKernelGetParamCount)( + kernel, paramCount) + + +cdef CUresult _cuMemcpyWithAttributesAsync(CUdeviceptr dst, CUdeviceptr src, size_t size, CUmemcpyAttributes* attr, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemcpyWithAttributesAsync + _check_or_init_driver() + if __cuMemcpyWithAttributesAsync == NULL: + with gil: + raise FunctionNotFoundError("function cuMemcpyWithAttributesAsync is not found") + return (__cuMemcpyWithAttributesAsync)( + dst, src, size, attr, hStream) + + +cdef CUresult _cuMemcpy3DWithAttributesAsync(CUDA_MEMCPY3D_BATCH_OP* op, unsigned long long flags, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemcpy3DWithAttributesAsync + _check_or_init_driver() + if __cuMemcpy3DWithAttributesAsync == NULL: + with gil: + raise FunctionNotFoundError("function cuMemcpy3DWithAttributesAsync is not found") + return (__cuMemcpy3DWithAttributesAsync)( + op, flags, hStream) + + +cdef CUresult _cuStreamBeginCaptureToCig(CUstream hStream, CUstreamCigCaptureParams* streamCigCaptureParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuStreamBeginCaptureToCig + _check_or_init_driver() + if __cuStreamBeginCaptureToCig == NULL: + with gil: + raise FunctionNotFoundError("function cuStreamBeginCaptureToCig is not found") + return (__cuStreamBeginCaptureToCig)( + hStream, streamCigCaptureParams) + + +cdef CUresult _cuStreamEndCaptureToCig(CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuStreamEndCaptureToCig + _check_or_init_driver() + if __cuStreamEndCaptureToCig == NULL: + with gil: + raise FunctionNotFoundError("function cuStreamEndCaptureToCig is not found") + return (__cuStreamEndCaptureToCig)( + hStream) + + +cdef CUresult _cuFuncGetParamCount(CUfunction func, size_t* paramCount) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuFuncGetParamCount + _check_or_init_driver() + if __cuFuncGetParamCount == NULL: + with gil: + raise FunctionNotFoundError("function cuFuncGetParamCount is not found") + return (__cuFuncGetParamCount)( + func, paramCount) + + +cdef CUresult _cuLaunchHostFunc_v2(CUstream hStream, CUhostFn fn, void* userData, unsigned int syncMode) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuLaunchHostFunc_v2 + _check_or_init_driver() + if __cuLaunchHostFunc_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuLaunchHostFunc_v2 is not found") + return (__cuLaunchHostFunc_v2)( + hStream, fn, userData, syncMode) + + +cdef CUresult _cuGraphNodeGetParams(CUgraphNode hNode, CUgraphNodeParams* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphNodeGetParams + _check_or_init_driver() + if __cuGraphNodeGetParams == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphNodeGetParams is not found") + return (__cuGraphNodeGetParams)( + hNode, nodeParams) + + +cdef CUresult _cuCoredumpRegisterStartCallback(CUcoredumpStatusCallback callback, void* userData, CUcoredumpCallbackHandle* callbackOut) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuCoredumpRegisterStartCallback + _check_or_init_driver() + if __cuCoredumpRegisterStartCallback == NULL: + with gil: + raise FunctionNotFoundError("function cuCoredumpRegisterStartCallback is not found") + return (__cuCoredumpRegisterStartCallback)( + callback, userData, callbackOut) + + +cdef CUresult _cuCoredumpRegisterCompleteCallback(CUcoredumpStatusCallback callback, void* userData, CUcoredumpCallbackHandle* callbackOut) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuCoredumpRegisterCompleteCallback + _check_or_init_driver() + if __cuCoredumpRegisterCompleteCallback == NULL: + with gil: + raise FunctionNotFoundError("function cuCoredumpRegisterCompleteCallback is not found") + return (__cuCoredumpRegisterCompleteCallback)( + callback, userData, callbackOut) + + +cdef CUresult _cuCoredumpDeregisterStartCallback(CUcoredumpCallbackHandle callback) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuCoredumpDeregisterStartCallback + _check_or_init_driver() + if __cuCoredumpDeregisterStartCallback == NULL: + with gil: + raise FunctionNotFoundError("function cuCoredumpDeregisterStartCallback is not found") + return (__cuCoredumpDeregisterStartCallback)( + callback) + + +cdef CUresult _cuCoredumpDeregisterCompleteCallback(CUcoredumpCallbackHandle callback) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuCoredumpDeregisterCompleteCallback + _check_or_init_driver() + if __cuCoredumpDeregisterCompleteCallback == NULL: + with gil: + raise FunctionNotFoundError("function cuCoredumpDeregisterCompleteCallback is not found") + return (__cuCoredumpDeregisterCompleteCallback)( + callback) diff --git a/cuda_bindings/cuda/bindings/_internal/driver_windows.pyx b/cuda_bindings/cuda/bindings/_internal/driver_windows.pyx new file mode 100644 index 00000000000..59ea057107e --- /dev/null +++ b/cuda_bindings/cuda/bindings/_internal/driver_windows.pyx @@ -0,0 +1,8664 @@ +# 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.2.0, generator version 0.3.1.dev1630+gadce055ea.d20260422. Do not modify it directly. + +from libc.stdint cimport intptr_t + +import os +import threading +from .utils import FunctionNotFoundError, NotSupportedError + +from cuda.pathfinder import load_nvidia_dynamic_lib + +from libc.stddef cimport wchar_t +from libc.stdint cimport uintptr_t +from cpython cimport PyUnicode_AsWideCharString, PyMem_Free + +# You must 'from .utils import NotSupportedError' before using this template + +cdef extern from "windows.h" nogil: + ctypedef void* HMODULE + ctypedef void* HANDLE + ctypedef void* FARPROC + ctypedef unsigned long DWORD + ctypedef const wchar_t *LPCWSTR + ctypedef const char *LPCSTR + + cdef DWORD LOAD_LIBRARY_SEARCH_SYSTEM32 = 0x00000800 + cdef DWORD LOAD_LIBRARY_SEARCH_DEFAULT_DIRS = 0x00001000 + cdef DWORD LOAD_LIBRARY_SEARCH_DLL_LOAD_DIR = 0x00000100 + + HMODULE _LoadLibraryExW "LoadLibraryExW"( + LPCWSTR lpLibFileName, + HANDLE hFile, + DWORD dwFlags + ) + + FARPROC _GetProcAddress "GetProcAddress"(HMODULE hModule, LPCSTR lpProcName) + +cdef inline uintptr_t LoadLibraryExW(str path, HANDLE hFile, DWORD dwFlags): + cdef uintptr_t result + cdef wchar_t* wpath = PyUnicode_AsWideCharString(path, NULL) + with nogil: + result = _LoadLibraryExW( + wpath, + hFile, + dwFlags + ) + PyMem_Free(wpath) + return result + +cdef inline void *GetProcAddress(uintptr_t hModule, const char* lpProcName) nogil: + return _GetProcAddress(hModule, lpProcName) + +cdef int get_cuda_version(): + cdef int err, driver_ver = 0 + + # Load driver to check version + handle = LoadLibraryExW("nvcuda.dll", NULL, LOAD_LIBRARY_SEARCH_SYSTEM32) + if handle == 0: + raise NotSupportedError('CUDA driver is not found') + cuDriverGetVersion = GetProcAddress(handle, 'cuDriverGetVersion') + if cuDriverGetVersion == NULL: + raise RuntimeError('Did not find cuDriverGetVersion symbol in nvcuda.dll') + err = (cuDriverGetVersion)(&driver_ver) + if err != 0: + raise RuntimeError(f'cuDriverGetVersion returned error code {err}') + + return driver_ver + + + +############################################################################### +# Wrapper init +############################################################################### + +cdef object __symbol_lock = threading.Lock() +cdef bint __py_driver_init = False + +cdef void* __cuGetErrorString = NULL +cdef void* __cuGetErrorName = NULL +cdef void* __cuInit = NULL +cdef void* __cuDriverGetVersion = NULL +cdef void* __cuDeviceGet = NULL +cdef void* __cuDeviceGetCount = NULL +cdef void* __cuDeviceGetName = NULL +cdef void* __cuDeviceGetUuid_v2 = NULL +cdef void* __cuDeviceGetLuid = NULL +cdef void* __cuDeviceTotalMem_v2 = NULL +cdef void* __cuDeviceGetTexture1DLinearMaxWidth = NULL +cdef void* __cuDeviceGetAttribute = NULL +cdef void* __cuDeviceGetNvSciSyncAttributes = NULL +cdef void* __cuDeviceSetMemPool = NULL +cdef void* __cuDeviceGetMemPool = NULL +cdef void* __cuDeviceGetDefaultMemPool = NULL +cdef void* __cuDeviceGetExecAffinitySupport = NULL +cdef void* __cuFlushGPUDirectRDMAWrites = NULL +cdef void* __cuDeviceGetProperties = NULL +cdef void* __cuDeviceComputeCapability = NULL +cdef void* __cuDevicePrimaryCtxRetain = NULL +cdef void* __cuDevicePrimaryCtxRelease_v2 = NULL +cdef void* __cuDevicePrimaryCtxSetFlags_v2 = NULL +cdef void* __cuDevicePrimaryCtxGetState = NULL +cdef void* __cuDevicePrimaryCtxReset_v2 = NULL +cdef void* __cuCtxCreate_v4 = NULL +cdef void* __cuCtxDestroy_v2 = NULL +cdef void* __cuCtxPushCurrent_v2 = NULL +cdef void* __cuCtxPopCurrent_v2 = NULL +cdef void* __cuCtxSetCurrent = NULL +cdef void* __cuCtxGetCurrent = NULL +cdef void* __cuCtxGetDevice = NULL +cdef void* __cuCtxGetFlags = NULL +cdef void* __cuCtxSetFlags = NULL +cdef void* __cuCtxGetId = NULL +cdef void* __cuCtxSynchronize = NULL +cdef void* __cuCtxSetLimit = NULL +cdef void* __cuCtxGetLimit = NULL +cdef void* __cuCtxGetCacheConfig = NULL +cdef void* __cuCtxSetCacheConfig = NULL +cdef void* __cuCtxGetApiVersion = NULL +cdef void* __cuCtxGetStreamPriorityRange = NULL +cdef void* __cuCtxResetPersistingL2Cache = NULL +cdef void* __cuCtxGetExecAffinity = NULL +cdef void* __cuCtxRecordEvent = NULL +cdef void* __cuCtxWaitEvent = NULL +cdef void* __cuCtxAttach = NULL +cdef void* __cuCtxDetach = NULL +cdef void* __cuCtxGetSharedMemConfig = NULL +cdef void* __cuCtxSetSharedMemConfig = NULL +cdef void* __cuModuleLoad = NULL +cdef void* __cuModuleLoadData = NULL +cdef void* __cuModuleLoadDataEx = NULL +cdef void* __cuModuleLoadFatBinary = NULL +cdef void* __cuModuleUnload = NULL +cdef void* __cuModuleGetLoadingMode = NULL +cdef void* __cuModuleGetFunction = NULL +cdef void* __cuModuleGetFunctionCount = NULL +cdef void* __cuModuleEnumerateFunctions = NULL +cdef void* __cuModuleGetGlobal_v2 = NULL +cdef void* __cuLinkCreate_v2 = NULL +cdef void* __cuLinkAddData_v2 = NULL +cdef void* __cuLinkAddFile_v2 = NULL +cdef void* __cuLinkComplete = NULL +cdef void* __cuLinkDestroy = NULL +cdef void* __cuModuleGetTexRef = NULL +cdef void* __cuModuleGetSurfRef = NULL +cdef void* __cuLibraryLoadData = NULL +cdef void* __cuLibraryLoadFromFile = NULL +cdef void* __cuLibraryUnload = NULL +cdef void* __cuLibraryGetKernel = NULL +cdef void* __cuLibraryGetKernelCount = NULL +cdef void* __cuLibraryEnumerateKernels = NULL +cdef void* __cuLibraryGetModule = NULL +cdef void* __cuKernelGetFunction = NULL +cdef void* __cuKernelGetLibrary = NULL +cdef void* __cuLibraryGetGlobal = NULL +cdef void* __cuLibraryGetManaged = NULL +cdef void* __cuLibraryGetUnifiedFunction = NULL +cdef void* __cuKernelGetAttribute = NULL +cdef void* __cuKernelSetAttribute = NULL +cdef void* __cuKernelSetCacheConfig = NULL +cdef void* __cuKernelGetName = NULL +cdef void* __cuKernelGetParamInfo = NULL +cdef void* __cuMemGetInfo_v2 = NULL +cdef void* __cuMemAlloc_v2 = NULL +cdef void* __cuMemAllocPitch_v2 = NULL +cdef void* __cuMemFree_v2 = NULL +cdef void* __cuMemGetAddressRange_v2 = NULL +cdef void* __cuMemAllocHost_v2 = NULL +cdef void* __cuMemFreeHost = NULL +cdef void* __cuMemHostAlloc = NULL +cdef void* __cuMemHostGetDevicePointer_v2 = NULL +cdef void* __cuMemHostGetFlags = NULL +cdef void* __cuMemAllocManaged = NULL +cdef void* __cuDeviceRegisterAsyncNotification = NULL +cdef void* __cuDeviceUnregisterAsyncNotification = NULL +cdef void* __cuDeviceGetByPCIBusId = NULL +cdef void* __cuDeviceGetPCIBusId = NULL +cdef void* __cuIpcGetEventHandle = NULL +cdef void* __cuIpcOpenEventHandle = NULL +cdef void* __cuIpcGetMemHandle = NULL +cdef void* __cuIpcOpenMemHandle_v2 = NULL +cdef void* __cuIpcCloseMemHandle = NULL +cdef void* __cuMemHostRegister_v2 = NULL +cdef void* __cuMemHostUnregister = NULL +cdef void* __cuMemcpy = NULL +cdef void* __cuMemcpyPeer = NULL +cdef void* __cuMemcpyHtoD_v2 = NULL +cdef void* __cuMemcpyDtoH_v2 = NULL +cdef void* __cuMemcpyDtoD_v2 = NULL +cdef void* __cuMemcpyDtoA_v2 = NULL +cdef void* __cuMemcpyAtoD_v2 = NULL +cdef void* __cuMemcpyHtoA_v2 = NULL +cdef void* __cuMemcpyAtoH_v2 = NULL +cdef void* __cuMemcpyAtoA_v2 = NULL +cdef void* __cuMemcpy2D_v2 = NULL +cdef void* __cuMemcpy2DUnaligned_v2 = NULL +cdef void* __cuMemcpy3D_v2 = NULL +cdef void* __cuMemcpy3DPeer = NULL +cdef void* __cuMemcpyAsync = NULL +cdef void* __cuMemcpyPeerAsync = NULL +cdef void* __cuMemcpyHtoDAsync_v2 = NULL +cdef void* __cuMemcpyDtoHAsync_v2 = NULL +cdef void* __cuMemcpyDtoDAsync_v2 = NULL +cdef void* __cuMemcpyHtoAAsync_v2 = NULL +cdef void* __cuMemcpyAtoHAsync_v2 = NULL +cdef void* __cuMemcpy2DAsync_v2 = NULL +cdef void* __cuMemcpy3DAsync_v2 = NULL +cdef void* __cuMemcpy3DPeerAsync = NULL +cdef void* __cuMemsetD8_v2 = NULL +cdef void* __cuMemsetD16_v2 = NULL +cdef void* __cuMemsetD32_v2 = NULL +cdef void* __cuMemsetD2D8_v2 = NULL +cdef void* __cuMemsetD2D16_v2 = NULL +cdef void* __cuMemsetD2D32_v2 = NULL +cdef void* __cuMemsetD8Async = NULL +cdef void* __cuMemsetD16Async = NULL +cdef void* __cuMemsetD32Async = NULL +cdef void* __cuMemsetD2D8Async = NULL +cdef void* __cuMemsetD2D16Async = NULL +cdef void* __cuMemsetD2D32Async = NULL +cdef void* __cuArrayCreate_v2 = NULL +cdef void* __cuArrayGetDescriptor_v2 = NULL +cdef void* __cuArrayGetSparseProperties = NULL +cdef void* __cuMipmappedArrayGetSparseProperties = NULL +cdef void* __cuArrayGetMemoryRequirements = NULL +cdef void* __cuMipmappedArrayGetMemoryRequirements = NULL +cdef void* __cuArrayGetPlane = NULL +cdef void* __cuArrayDestroy = NULL +cdef void* __cuArray3DCreate_v2 = NULL +cdef void* __cuArray3DGetDescriptor_v2 = NULL +cdef void* __cuMipmappedArrayCreate = NULL +cdef void* __cuMipmappedArrayGetLevel = NULL +cdef void* __cuMipmappedArrayDestroy = NULL +cdef void* __cuMemGetHandleForAddressRange = NULL +cdef void* __cuMemBatchDecompressAsync = NULL +cdef void* __cuMemAddressReserve = NULL +cdef void* __cuMemAddressFree = NULL +cdef void* __cuMemCreate = NULL +cdef void* __cuMemRelease = NULL +cdef void* __cuMemMap = NULL +cdef void* __cuMemMapArrayAsync = NULL +cdef void* __cuMemUnmap = NULL +cdef void* __cuMemSetAccess = NULL +cdef void* __cuMemGetAccess = NULL +cdef void* __cuMemExportToShareableHandle = NULL +cdef void* __cuMemImportFromShareableHandle = NULL +cdef void* __cuMemGetAllocationGranularity = NULL +cdef void* __cuMemGetAllocationPropertiesFromHandle = NULL +cdef void* __cuMemRetainAllocationHandle = NULL +cdef void* __cuMemFreeAsync = NULL +cdef void* __cuMemAllocAsync = NULL +cdef void* __cuMemPoolTrimTo = NULL +cdef void* __cuMemPoolSetAttribute = NULL +cdef void* __cuMemPoolGetAttribute = NULL +cdef void* __cuMemPoolSetAccess = NULL +cdef void* __cuMemPoolGetAccess = NULL +cdef void* __cuMemPoolCreate = NULL +cdef void* __cuMemPoolDestroy = NULL +cdef void* __cuMemAllocFromPoolAsync = NULL +cdef void* __cuMemPoolExportToShareableHandle = NULL +cdef void* __cuMemPoolImportFromShareableHandle = NULL +cdef void* __cuMemPoolExportPointer = NULL +cdef void* __cuMemPoolImportPointer = NULL +cdef void* __cuMulticastCreate = NULL +cdef void* __cuMulticastAddDevice = NULL +cdef void* __cuMulticastBindMem = NULL +cdef void* __cuMulticastBindAddr = NULL +cdef void* __cuMulticastUnbind = NULL +cdef void* __cuMulticastGetGranularity = NULL +cdef void* __cuPointerGetAttribute = NULL +cdef void* __cuMemPrefetchAsync_v2 = NULL +cdef void* __cuMemAdvise_v2 = NULL +cdef void* __cuMemRangeGetAttribute = NULL +cdef void* __cuMemRangeGetAttributes = NULL +cdef void* __cuPointerSetAttribute = NULL +cdef void* __cuPointerGetAttributes = NULL +cdef void* __cuStreamCreate = NULL +cdef void* __cuStreamCreateWithPriority = NULL +cdef void* __cuStreamGetPriority = NULL +cdef void* __cuStreamGetDevice = NULL +cdef void* __cuStreamGetFlags = NULL +cdef void* __cuStreamGetId = NULL +cdef void* __cuStreamGetCtx = NULL +cdef void* __cuStreamGetCtx_v2 = NULL +cdef void* __cuStreamWaitEvent = NULL +cdef void* __cuStreamAddCallback = NULL +cdef void* __cuStreamBeginCapture_v2 = NULL +cdef void* __cuStreamBeginCaptureToGraph = NULL +cdef void* __cuThreadExchangeStreamCaptureMode = NULL +cdef void* __cuStreamEndCapture = NULL +cdef void* __cuStreamIsCapturing = NULL +cdef void* __cuStreamGetCaptureInfo_v3 = NULL +cdef void* __cuStreamUpdateCaptureDependencies_v2 = NULL +cdef void* __cuStreamAttachMemAsync = NULL +cdef void* __cuStreamQuery = NULL +cdef void* __cuStreamSynchronize = NULL +cdef void* __cuStreamDestroy_v2 = NULL +cdef void* __cuStreamCopyAttributes = NULL +cdef void* __cuStreamGetAttribute = NULL +cdef void* __cuStreamSetAttribute = NULL +cdef void* __cuEventCreate = NULL +cdef void* __cuEventRecord = NULL +cdef void* __cuEventRecordWithFlags = NULL +cdef void* __cuEventQuery = NULL +cdef void* __cuEventSynchronize = NULL +cdef void* __cuEventDestroy_v2 = NULL +cdef void* __cuEventElapsedTime_v2 = NULL +cdef void* __cuImportExternalMemory = NULL +cdef void* __cuExternalMemoryGetMappedBuffer = NULL +cdef void* __cuExternalMemoryGetMappedMipmappedArray = NULL +cdef void* __cuDestroyExternalMemory = NULL +cdef void* __cuImportExternalSemaphore = NULL +cdef void* __cuSignalExternalSemaphoresAsync = NULL +cdef void* __cuWaitExternalSemaphoresAsync = NULL +cdef void* __cuDestroyExternalSemaphore = NULL +cdef void* __cuStreamWaitValue32_v2 = NULL +cdef void* __cuStreamWaitValue64_v2 = NULL +cdef void* __cuStreamWriteValue32_v2 = NULL +cdef void* __cuStreamWriteValue64_v2 = NULL +cdef void* __cuStreamBatchMemOp_v2 = NULL +cdef void* __cuFuncGetAttribute = NULL +cdef void* __cuFuncSetAttribute = NULL +cdef void* __cuFuncSetCacheConfig = NULL +cdef void* __cuFuncGetModule = NULL +cdef void* __cuFuncGetName = NULL +cdef void* __cuFuncGetParamInfo = NULL +cdef void* __cuFuncIsLoaded = NULL +cdef void* __cuFuncLoad = NULL +cdef void* __cuLaunchKernel = NULL +cdef void* __cuLaunchKernelEx = NULL +cdef void* __cuLaunchCooperativeKernel = NULL +cdef void* __cuLaunchCooperativeKernelMultiDevice = NULL +cdef void* __cuLaunchHostFunc = NULL +cdef void* __cuFuncSetBlockShape = NULL +cdef void* __cuFuncSetSharedSize = NULL +cdef void* __cuParamSetSize = NULL +cdef void* __cuParamSeti = NULL +cdef void* __cuParamSetf = NULL +cdef void* __cuParamSetv = NULL +cdef void* __cuLaunch = NULL +cdef void* __cuLaunchGrid = NULL +cdef void* __cuLaunchGridAsync = NULL +cdef void* __cuParamSetTexRef = NULL +cdef void* __cuFuncSetSharedMemConfig = NULL +cdef void* __cuGraphCreate = NULL +cdef void* __cuGraphAddKernelNode_v2 = NULL +cdef void* __cuGraphKernelNodeGetParams_v2 = NULL +cdef void* __cuGraphKernelNodeSetParams_v2 = NULL +cdef void* __cuGraphAddMemcpyNode = NULL +cdef void* __cuGraphMemcpyNodeGetParams = NULL +cdef void* __cuGraphMemcpyNodeSetParams = NULL +cdef void* __cuGraphAddMemsetNode = NULL +cdef void* __cuGraphMemsetNodeGetParams = NULL +cdef void* __cuGraphMemsetNodeSetParams = NULL +cdef void* __cuGraphAddHostNode = NULL +cdef void* __cuGraphHostNodeGetParams = NULL +cdef void* __cuGraphHostNodeSetParams = NULL +cdef void* __cuGraphAddChildGraphNode = NULL +cdef void* __cuGraphChildGraphNodeGetGraph = NULL +cdef void* __cuGraphAddEmptyNode = NULL +cdef void* __cuGraphAddEventRecordNode = NULL +cdef void* __cuGraphEventRecordNodeGetEvent = NULL +cdef void* __cuGraphEventRecordNodeSetEvent = NULL +cdef void* __cuGraphAddEventWaitNode = NULL +cdef void* __cuGraphEventWaitNodeGetEvent = NULL +cdef void* __cuGraphEventWaitNodeSetEvent = NULL +cdef void* __cuGraphAddExternalSemaphoresSignalNode = NULL +cdef void* __cuGraphExternalSemaphoresSignalNodeGetParams = NULL +cdef void* __cuGraphExternalSemaphoresSignalNodeSetParams = NULL +cdef void* __cuGraphAddExternalSemaphoresWaitNode = NULL +cdef void* __cuGraphExternalSemaphoresWaitNodeGetParams = NULL +cdef void* __cuGraphExternalSemaphoresWaitNodeSetParams = NULL +cdef void* __cuGraphAddBatchMemOpNode = NULL +cdef void* __cuGraphBatchMemOpNodeGetParams = NULL +cdef void* __cuGraphBatchMemOpNodeSetParams = NULL +cdef void* __cuGraphExecBatchMemOpNodeSetParams = NULL +cdef void* __cuGraphAddMemAllocNode = NULL +cdef void* __cuGraphMemAllocNodeGetParams = NULL +cdef void* __cuGraphAddMemFreeNode = NULL +cdef void* __cuGraphMemFreeNodeGetParams = NULL +cdef void* __cuDeviceGraphMemTrim = NULL +cdef void* __cuDeviceGetGraphMemAttribute = NULL +cdef void* __cuDeviceSetGraphMemAttribute = NULL +cdef void* __cuGraphClone = NULL +cdef void* __cuGraphNodeFindInClone = NULL +cdef void* __cuGraphNodeGetType = NULL +cdef void* __cuGraphGetNodes = NULL +cdef void* __cuGraphGetRootNodes = NULL +cdef void* __cuGraphGetEdges_v2 = NULL +cdef void* __cuGraphNodeGetDependencies_v2 = NULL +cdef void* __cuGraphNodeGetDependentNodes_v2 = NULL +cdef void* __cuGraphAddDependencies_v2 = NULL +cdef void* __cuGraphRemoveDependencies_v2 = NULL +cdef void* __cuGraphDestroyNode = NULL +cdef void* __cuGraphInstantiateWithFlags = NULL +cdef void* __cuGraphInstantiateWithParams = NULL +cdef void* __cuGraphExecGetFlags = NULL +cdef void* __cuGraphExecKernelNodeSetParams_v2 = NULL +cdef void* __cuGraphExecMemcpyNodeSetParams = NULL +cdef void* __cuGraphExecMemsetNodeSetParams = NULL +cdef void* __cuGraphExecHostNodeSetParams = NULL +cdef void* __cuGraphExecChildGraphNodeSetParams = NULL +cdef void* __cuGraphExecEventRecordNodeSetEvent = NULL +cdef void* __cuGraphExecEventWaitNodeSetEvent = NULL +cdef void* __cuGraphExecExternalSemaphoresSignalNodeSetParams = NULL +cdef void* __cuGraphExecExternalSemaphoresWaitNodeSetParams = NULL +cdef void* __cuGraphNodeSetEnabled = NULL +cdef void* __cuGraphNodeGetEnabled = NULL +cdef void* __cuGraphUpload = NULL +cdef void* __cuGraphLaunch = NULL +cdef void* __cuGraphExecDestroy = NULL +cdef void* __cuGraphDestroy = NULL +cdef void* __cuGraphExecUpdate_v2 = NULL +cdef void* __cuGraphKernelNodeCopyAttributes = NULL +cdef void* __cuGraphKernelNodeGetAttribute = NULL +cdef void* __cuGraphKernelNodeSetAttribute = NULL +cdef void* __cuGraphDebugDotPrint = NULL +cdef void* __cuUserObjectCreate = NULL +cdef void* __cuUserObjectRetain = NULL +cdef void* __cuUserObjectRelease = NULL +cdef void* __cuGraphRetainUserObject = NULL +cdef void* __cuGraphReleaseUserObject = NULL +cdef void* __cuGraphAddNode_v2 = NULL +cdef void* __cuGraphNodeSetParams = NULL +cdef void* __cuGraphExecNodeSetParams = NULL +cdef void* __cuGraphConditionalHandleCreate = NULL +cdef void* __cuOccupancyMaxActiveBlocksPerMultiprocessor = NULL +cdef void* __cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags = NULL +cdef void* __cuOccupancyMaxPotentialBlockSize = NULL +cdef void* __cuOccupancyMaxPotentialBlockSizeWithFlags = NULL +cdef void* __cuOccupancyAvailableDynamicSMemPerBlock = NULL +cdef void* __cuOccupancyMaxPotentialClusterSize = NULL +cdef void* __cuOccupancyMaxActiveClusters = NULL +cdef void* __cuTexRefSetArray = NULL +cdef void* __cuTexRefSetMipmappedArray = NULL +cdef void* __cuTexRefSetAddress_v2 = NULL +cdef void* __cuTexRefSetAddress2D_v3 = NULL +cdef void* __cuTexRefSetFormat = NULL +cdef void* __cuTexRefSetAddressMode = NULL +cdef void* __cuTexRefSetFilterMode = NULL +cdef void* __cuTexRefSetMipmapFilterMode = NULL +cdef void* __cuTexRefSetMipmapLevelBias = NULL +cdef void* __cuTexRefSetMipmapLevelClamp = NULL +cdef void* __cuTexRefSetMaxAnisotropy = NULL +cdef void* __cuTexRefSetBorderColor = NULL +cdef void* __cuTexRefSetFlags = NULL +cdef void* __cuTexRefGetAddress_v2 = NULL +cdef void* __cuTexRefGetArray = NULL +cdef void* __cuTexRefGetMipmappedArray = NULL +cdef void* __cuTexRefGetAddressMode = NULL +cdef void* __cuTexRefGetFilterMode = NULL +cdef void* __cuTexRefGetFormat = NULL +cdef void* __cuTexRefGetMipmapFilterMode = NULL +cdef void* __cuTexRefGetMipmapLevelBias = NULL +cdef void* __cuTexRefGetMipmapLevelClamp = NULL +cdef void* __cuTexRefGetMaxAnisotropy = NULL +cdef void* __cuTexRefGetBorderColor = NULL +cdef void* __cuTexRefGetFlags = NULL +cdef void* __cuTexRefCreate = NULL +cdef void* __cuTexRefDestroy = NULL +cdef void* __cuSurfRefSetArray = NULL +cdef void* __cuSurfRefGetArray = NULL +cdef void* __cuTexObjectCreate = NULL +cdef void* __cuTexObjectDestroy = NULL +cdef void* __cuTexObjectGetResourceDesc = NULL +cdef void* __cuTexObjectGetTextureDesc = NULL +cdef void* __cuTexObjectGetResourceViewDesc = NULL +cdef void* __cuSurfObjectCreate = NULL +cdef void* __cuSurfObjectDestroy = NULL +cdef void* __cuSurfObjectGetResourceDesc = NULL +cdef void* __cuTensorMapEncodeTiled = NULL +cdef void* __cuTensorMapEncodeIm2col = NULL +cdef void* __cuTensorMapEncodeIm2colWide = NULL +cdef void* __cuTensorMapReplaceAddress = NULL +cdef void* __cuDeviceCanAccessPeer = NULL +cdef void* __cuCtxEnablePeerAccess = NULL +cdef void* __cuCtxDisablePeerAccess = NULL +cdef void* __cuDeviceGetP2PAttribute = NULL +cdef void* __cuGraphicsUnregisterResource = NULL +cdef void* __cuGraphicsSubResourceGetMappedArray = NULL +cdef void* __cuGraphicsResourceGetMappedMipmappedArray = NULL +cdef void* __cuGraphicsResourceGetMappedPointer_v2 = NULL +cdef void* __cuGraphicsResourceSetMapFlags_v2 = NULL +cdef void* __cuGraphicsMapResources = NULL +cdef void* __cuGraphicsUnmapResources = NULL +cdef void* __cuGetProcAddress_v2 = NULL +cdef void* __cuCoredumpGetAttribute = NULL +cdef void* __cuCoredumpGetAttributeGlobal = NULL +cdef void* __cuCoredumpSetAttribute = NULL +cdef void* __cuCoredumpSetAttributeGlobal = NULL +cdef void* __cuGetExportTable = NULL +cdef void* __cuGreenCtxCreate = NULL +cdef void* __cuGreenCtxDestroy = NULL +cdef void* __cuCtxFromGreenCtx = NULL +cdef void* __cuDeviceGetDevResource = NULL +cdef void* __cuCtxGetDevResource = NULL +cdef void* __cuGreenCtxGetDevResource = NULL +cdef void* __cuDevSmResourceSplitByCount = NULL +cdef void* __cuDevResourceGenerateDesc = NULL +cdef void* __cuGreenCtxRecordEvent = NULL +cdef void* __cuGreenCtxWaitEvent = NULL +cdef void* __cuStreamGetGreenCtx = NULL +cdef void* __cuGreenCtxStreamCreate = NULL +cdef void* __cuLogsRegisterCallback = NULL +cdef void* __cuLogsUnregisterCallback = NULL +cdef void* __cuLogsCurrent = NULL +cdef void* __cuLogsDumpToFile = NULL +cdef void* __cuLogsDumpToMemory = NULL +cdef void* __cuCheckpointProcessGetRestoreThreadId = NULL +cdef void* __cuCheckpointProcessGetState = NULL +cdef void* __cuCheckpointProcessLock = NULL +cdef void* __cuCheckpointProcessCheckpoint = NULL +cdef void* __cuCheckpointProcessRestore = NULL +cdef void* __cuCheckpointProcessUnlock = NULL +cdef void* __cuGraphicsEGLRegisterImage = NULL +cdef void* __cuEGLStreamConsumerConnect = NULL +cdef void* __cuEGLStreamConsumerConnectWithFlags = NULL +cdef void* __cuEGLStreamConsumerDisconnect = NULL +cdef void* __cuEGLStreamConsumerAcquireFrame = NULL +cdef void* __cuEGLStreamConsumerReleaseFrame = NULL +cdef void* __cuEGLStreamProducerConnect = NULL +cdef void* __cuEGLStreamProducerDisconnect = NULL +cdef void* __cuEGLStreamProducerPresentFrame = NULL +cdef void* __cuEGLStreamProducerReturnFrame = NULL +cdef void* __cuGraphicsResourceGetMappedEglFrame = NULL +cdef void* __cuEventCreateFromEGLSync = NULL +cdef void* __cuGraphicsGLRegisterBuffer = NULL +cdef void* __cuGraphicsGLRegisterImage = NULL +cdef void* __cuGLGetDevices_v2 = NULL +cdef void* __cuGLCtxCreate_v2 = NULL +cdef void* __cuGLInit = NULL +cdef void* __cuGLRegisterBufferObject = NULL +cdef void* __cuGLMapBufferObject_v2 = NULL +cdef void* __cuGLUnmapBufferObject = NULL +cdef void* __cuGLUnregisterBufferObject = NULL +cdef void* __cuGLSetBufferObjectMapFlags = NULL +cdef void* __cuGLMapBufferObjectAsync_v2 = NULL +cdef void* __cuGLUnmapBufferObjectAsync = NULL +cdef void* __cuProfilerInitialize = NULL +cdef void* __cuProfilerStart = NULL +cdef void* __cuProfilerStop = NULL +cdef void* __cuVDPAUGetDevice = NULL +cdef void* __cuVDPAUCtxCreate_v2 = NULL +cdef void* __cuGraphicsVDPAURegisterVideoSurface = NULL +cdef void* __cuGraphicsVDPAURegisterOutputSurface = NULL +cdef void* __cuDeviceGetHostAtomicCapabilities = NULL +cdef void* __cuCtxGetDevice_v2 = NULL +cdef void* __cuCtxSynchronize_v2 = NULL +cdef void* __cuMemcpyBatchAsync_v2 = NULL +cdef void* __cuMemcpy3DBatchAsync_v2 = NULL +cdef void* __cuMemGetDefaultMemPool = NULL +cdef void* __cuMemGetMemPool = NULL +cdef void* __cuMemSetMemPool = NULL +cdef void* __cuMulticastBindMem_v2 = NULL +cdef void* __cuMulticastBindAddr_v2 = NULL +cdef void* __cuMemPrefetchBatchAsync = NULL +cdef void* __cuMemDiscardBatchAsync = NULL +cdef void* __cuMemDiscardAndPrefetchBatchAsync = NULL +cdef void* __cuGraphNodeGetContainingGraph = NULL +cdef void* __cuGraphNodeGetLocalId = NULL +cdef void* __cuGraphNodeGetToolsId = NULL +cdef void* __cuGraphGetId = NULL +cdef void* __cuGraphExecGetId = NULL +cdef void* __cuDeviceGetP2PAtomicCapabilities = NULL +cdef void* __cuDevSmResourceSplit = NULL +cdef void* __cuGreenCtxGetId = NULL +cdef void* __cuStreamGetDevResource = NULL +cdef void* __cuKernelGetParamCount = NULL +cdef void* __cuMemcpyWithAttributesAsync = NULL +cdef void* __cuMemcpy3DWithAttributesAsync = NULL +cdef void* __cuStreamBeginCaptureToCig = NULL +cdef void* __cuStreamEndCaptureToCig = NULL +cdef void* __cuFuncGetParamCount = NULL +cdef void* __cuLaunchHostFunc_v2 = NULL +cdef void* __cuGraphNodeGetParams = NULL +cdef void* __cuCoredumpRegisterStartCallback = NULL +cdef void* __cuCoredumpRegisterCompleteCallback = NULL +cdef void* __cuCoredumpDeregisterStartCallback = NULL +cdef void* __cuCoredumpDeregisterCompleteCallback = NULL + + +ctypedef CUresult (*__cuGetProcAddress_v2_T)(const char*, void**, int, cuuint64_t, CUdriverProcAddressQueryResult*) except?CUDA_ERROR_NOT_FOUND nogil +cdef __cuGetProcAddress_v2_T _F_cuGetProcAddress_v2 = NULL + + +cdef int _init_driver() except -1 nogil: + global __py_driver_init + + cdef void *handle = NULL + cdef int ptds_mode + + with gil, __symbol_lock: + # Recheck the flag after obtaining the locks + if __py_driver_init: + return 0 + + # Load library + handle = load_nvidia_dynamic_lib("cuda")._handle_uint + + # Get latest __cuGetProcAddress_v2 + global __cuGetProcAddress_v2 + __cuGetProcAddress_v2 = windll.GetProcAddress(handle, 'cuGetProcAddress_v2') + if __cuGetProcAddress_v2 == NULL: + raise RuntimeError("Failed to get __cuGetProcAddress_v2") + _F_cuGetProcAddress_v2 = <__cuGetProcAddress_v2_T>__cuGetProcAddress_v2 + + if os.getenv('CUDA_PYTHON_CUDA_PER_THREAD_DEFAULT_STREAM', default=0): + ptds_mode = CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM + else: + ptds_mode = CU_GET_PROC_ADDRESS_DEFAULT + + # Load function + global __cuGetErrorString + __cuGetErrorString = GetProcAddress(handle, 'cuGetErrorString') + + global __cuGetErrorName + __cuGetErrorName = GetProcAddress(handle, 'cuGetErrorName') + + global __cuInit + __cuInit = GetProcAddress(handle, 'cuInit') + + global __cuDriverGetVersion + __cuDriverGetVersion = GetProcAddress(handle, 'cuDriverGetVersion') + + global __cuDeviceGet + __cuDeviceGet = GetProcAddress(handle, 'cuDeviceGet') + + global __cuDeviceGetCount + __cuDeviceGetCount = GetProcAddress(handle, 'cuDeviceGetCount') + + global __cuDeviceGetName + __cuDeviceGetName = GetProcAddress(handle, 'cuDeviceGetName') + + global __cuDeviceGetUuid_v2 + __cuDeviceGetUuid_v2 = GetProcAddress(handle, 'cuDeviceGetUuid_v2') + + global __cuDeviceGetLuid + __cuDeviceGetLuid = GetProcAddress(handle, 'cuDeviceGetLuid') + + global __cuDeviceTotalMem_v2 + __cuDeviceTotalMem_v2 = GetProcAddress(handle, 'cuDeviceTotalMem_v2') + + global __cuDeviceGetTexture1DLinearMaxWidth + __cuDeviceGetTexture1DLinearMaxWidth = GetProcAddress(handle, 'cuDeviceGetTexture1DLinearMaxWidth') + + global __cuDeviceGetAttribute + __cuDeviceGetAttribute = GetProcAddress(handle, 'cuDeviceGetAttribute') + + global __cuDeviceGetNvSciSyncAttributes + __cuDeviceGetNvSciSyncAttributes = GetProcAddress(handle, 'cuDeviceGetNvSciSyncAttributes') + + global __cuDeviceSetMemPool + __cuDeviceSetMemPool = GetProcAddress(handle, 'cuDeviceSetMemPool') + + global __cuDeviceGetMemPool + __cuDeviceGetMemPool = GetProcAddress(handle, 'cuDeviceGetMemPool') + + global __cuDeviceGetDefaultMemPool + __cuDeviceGetDefaultMemPool = GetProcAddress(handle, 'cuDeviceGetDefaultMemPool') + + global __cuDeviceGetExecAffinitySupport + __cuDeviceGetExecAffinitySupport = GetProcAddress(handle, 'cuDeviceGetExecAffinitySupport') + + global __cuFlushGPUDirectRDMAWrites + __cuFlushGPUDirectRDMAWrites = GetProcAddress(handle, 'cuFlushGPUDirectRDMAWrites') + + global __cuDeviceGetProperties + __cuDeviceGetProperties = GetProcAddress(handle, 'cuDeviceGetProperties') + + global __cuDeviceComputeCapability + __cuDeviceComputeCapability = GetProcAddress(handle, 'cuDeviceComputeCapability') + + global __cuDevicePrimaryCtxRetain + __cuDevicePrimaryCtxRetain = GetProcAddress(handle, 'cuDevicePrimaryCtxRetain') + + global __cuDevicePrimaryCtxRelease_v2 + __cuDevicePrimaryCtxRelease_v2 = GetProcAddress(handle, 'cuDevicePrimaryCtxRelease_v2') + + global __cuDevicePrimaryCtxSetFlags_v2 + __cuDevicePrimaryCtxSetFlags_v2 = GetProcAddress(handle, 'cuDevicePrimaryCtxSetFlags_v2') + + global __cuDevicePrimaryCtxGetState + __cuDevicePrimaryCtxGetState = GetProcAddress(handle, 'cuDevicePrimaryCtxGetState') + + global __cuDevicePrimaryCtxReset_v2 + __cuDevicePrimaryCtxReset_v2 = GetProcAddress(handle, 'cuDevicePrimaryCtxReset_v2') + + global __cuCtxCreate_v4 + __cuCtxCreate_v4 = GetProcAddress(handle, 'cuCtxCreate_v4') + + global __cuCtxDestroy_v2 + __cuCtxDestroy_v2 = GetProcAddress(handle, 'cuCtxDestroy_v2') + + global __cuCtxPushCurrent_v2 + __cuCtxPushCurrent_v2 = GetProcAddress(handle, 'cuCtxPushCurrent_v2') + + global __cuCtxPopCurrent_v2 + __cuCtxPopCurrent_v2 = GetProcAddress(handle, 'cuCtxPopCurrent_v2') + + global __cuCtxSetCurrent + __cuCtxSetCurrent = GetProcAddress(handle, 'cuCtxSetCurrent') + + global __cuCtxGetCurrent + __cuCtxGetCurrent = GetProcAddress(handle, 'cuCtxGetCurrent') + + global __cuCtxGetDevice + __cuCtxGetDevice = GetProcAddress(handle, 'cuCtxGetDevice') + + global __cuCtxGetFlags + __cuCtxGetFlags = GetProcAddress(handle, 'cuCtxGetFlags') + + global __cuCtxSetFlags + __cuCtxSetFlags = GetProcAddress(handle, 'cuCtxSetFlags') + + global __cuCtxGetId + __cuCtxGetId = GetProcAddress(handle, 'cuCtxGetId') + + global __cuCtxSynchronize + __cuCtxSynchronize = GetProcAddress(handle, 'cuCtxSynchronize') + + global __cuCtxSetLimit + __cuCtxSetLimit = GetProcAddress(handle, 'cuCtxSetLimit') + + global __cuCtxGetLimit + __cuCtxGetLimit = GetProcAddress(handle, 'cuCtxGetLimit') + + global __cuCtxGetCacheConfig + __cuCtxGetCacheConfig = GetProcAddress(handle, 'cuCtxGetCacheConfig') + + global __cuCtxSetCacheConfig + __cuCtxSetCacheConfig = GetProcAddress(handle, 'cuCtxSetCacheConfig') + + global __cuCtxGetApiVersion + __cuCtxGetApiVersion = GetProcAddress(handle, 'cuCtxGetApiVersion') + + global __cuCtxGetStreamPriorityRange + __cuCtxGetStreamPriorityRange = GetProcAddress(handle, 'cuCtxGetStreamPriorityRange') + + global __cuCtxResetPersistingL2Cache + __cuCtxResetPersistingL2Cache = GetProcAddress(handle, 'cuCtxResetPersistingL2Cache') + + global __cuCtxGetExecAffinity + __cuCtxGetExecAffinity = GetProcAddress(handle, 'cuCtxGetExecAffinity') + + global __cuCtxRecordEvent + __cuCtxRecordEvent = GetProcAddress(handle, 'cuCtxRecordEvent') + + global __cuCtxWaitEvent + __cuCtxWaitEvent = GetProcAddress(handle, 'cuCtxWaitEvent') + + global __cuCtxAttach + __cuCtxAttach = GetProcAddress(handle, 'cuCtxAttach') + + global __cuCtxDetach + __cuCtxDetach = GetProcAddress(handle, 'cuCtxDetach') + + global __cuCtxGetSharedMemConfig + __cuCtxGetSharedMemConfig = GetProcAddress(handle, 'cuCtxGetSharedMemConfig') + + global __cuCtxSetSharedMemConfig + __cuCtxSetSharedMemConfig = GetProcAddress(handle, 'cuCtxSetSharedMemConfig') + + global __cuModuleLoad + __cuModuleLoad = GetProcAddress(handle, 'cuModuleLoad') + + global __cuModuleLoadData + __cuModuleLoadData = GetProcAddress(handle, 'cuModuleLoadData') + + global __cuModuleLoadDataEx + __cuModuleLoadDataEx = GetProcAddress(handle, 'cuModuleLoadDataEx') + + global __cuModuleLoadFatBinary + __cuModuleLoadFatBinary = GetProcAddress(handle, 'cuModuleLoadFatBinary') + + global __cuModuleUnload + __cuModuleUnload = GetProcAddress(handle, 'cuModuleUnload') + + global __cuModuleGetLoadingMode + __cuModuleGetLoadingMode = GetProcAddress(handle, 'cuModuleGetLoadingMode') + + global __cuModuleGetFunction + __cuModuleGetFunction = GetProcAddress(handle, 'cuModuleGetFunction') + + global __cuModuleGetFunctionCount + __cuModuleGetFunctionCount = GetProcAddress(handle, 'cuModuleGetFunctionCount') + + global __cuModuleEnumerateFunctions + __cuModuleEnumerateFunctions = GetProcAddress(handle, 'cuModuleEnumerateFunctions') + + global __cuModuleGetGlobal_v2 + __cuModuleGetGlobal_v2 = GetProcAddress(handle, 'cuModuleGetGlobal_v2') + + global __cuLinkCreate_v2 + __cuLinkCreate_v2 = GetProcAddress(handle, 'cuLinkCreate_v2') + + global __cuLinkAddData_v2 + __cuLinkAddData_v2 = GetProcAddress(handle, 'cuLinkAddData_v2') + + global __cuLinkAddFile_v2 + __cuLinkAddFile_v2 = GetProcAddress(handle, 'cuLinkAddFile_v2') + + global __cuLinkComplete + __cuLinkComplete = GetProcAddress(handle, 'cuLinkComplete') + + global __cuLinkDestroy + __cuLinkDestroy = GetProcAddress(handle, 'cuLinkDestroy') + + global __cuModuleGetTexRef + __cuModuleGetTexRef = GetProcAddress(handle, 'cuModuleGetTexRef') + + global __cuModuleGetSurfRef + __cuModuleGetSurfRef = GetProcAddress(handle, 'cuModuleGetSurfRef') + + global __cuLibraryLoadData + __cuLibraryLoadData = GetProcAddress(handle, 'cuLibraryLoadData') + + global __cuLibraryLoadFromFile + __cuLibraryLoadFromFile = GetProcAddress(handle, 'cuLibraryLoadFromFile') + + global __cuLibraryUnload + __cuLibraryUnload = GetProcAddress(handle, 'cuLibraryUnload') + + global __cuLibraryGetKernel + __cuLibraryGetKernel = GetProcAddress(handle, 'cuLibraryGetKernel') + + global __cuLibraryGetKernelCount + __cuLibraryGetKernelCount = GetProcAddress(handle, 'cuLibraryGetKernelCount') + + global __cuLibraryEnumerateKernels + __cuLibraryEnumerateKernels = GetProcAddress(handle, 'cuLibraryEnumerateKernels') + + global __cuLibraryGetModule + __cuLibraryGetModule = GetProcAddress(handle, 'cuLibraryGetModule') + + global __cuKernelGetFunction + __cuKernelGetFunction = GetProcAddress(handle, 'cuKernelGetFunction') + + global __cuKernelGetLibrary + __cuKernelGetLibrary = GetProcAddress(handle, 'cuKernelGetLibrary') + + global __cuLibraryGetGlobal + __cuLibraryGetGlobal = GetProcAddress(handle, 'cuLibraryGetGlobal') + + global __cuLibraryGetManaged + __cuLibraryGetManaged = GetProcAddress(handle, 'cuLibraryGetManaged') + + global __cuLibraryGetUnifiedFunction + __cuLibraryGetUnifiedFunction = GetProcAddress(handle, 'cuLibraryGetUnifiedFunction') + + global __cuKernelGetAttribute + __cuKernelGetAttribute = GetProcAddress(handle, 'cuKernelGetAttribute') + + global __cuKernelSetAttribute + __cuKernelSetAttribute = GetProcAddress(handle, 'cuKernelSetAttribute') + + global __cuKernelSetCacheConfig + __cuKernelSetCacheConfig = GetProcAddress(handle, 'cuKernelSetCacheConfig') + + global __cuKernelGetName + __cuKernelGetName = GetProcAddress(handle, 'cuKernelGetName') + + global __cuKernelGetParamInfo + __cuKernelGetParamInfo = GetProcAddress(handle, 'cuKernelGetParamInfo') + + global __cuMemGetInfo_v2 + __cuMemGetInfo_v2 = GetProcAddress(handle, 'cuMemGetInfo_v2') + + global __cuMemAlloc_v2 + __cuMemAlloc_v2 = GetProcAddress(handle, 'cuMemAlloc_v2') + + global __cuMemAllocPitch_v2 + __cuMemAllocPitch_v2 = GetProcAddress(handle, 'cuMemAllocPitch_v2') + + global __cuMemFree_v2 + __cuMemFree_v2 = GetProcAddress(handle, 'cuMemFree_v2') + + global __cuMemGetAddressRange_v2 + __cuMemGetAddressRange_v2 = GetProcAddress(handle, 'cuMemGetAddressRange_v2') + + global __cuMemAllocHost_v2 + __cuMemAllocHost_v2 = GetProcAddress(handle, 'cuMemAllocHost_v2') + + global __cuMemFreeHost + __cuMemFreeHost = GetProcAddress(handle, 'cuMemFreeHost') + + global __cuMemHostAlloc + __cuMemHostAlloc = GetProcAddress(handle, 'cuMemHostAlloc') + + global __cuMemHostGetDevicePointer_v2 + __cuMemHostGetDevicePointer_v2 = GetProcAddress(handle, 'cuMemHostGetDevicePointer_v2') + + global __cuMemHostGetFlags + __cuMemHostGetFlags = GetProcAddress(handle, 'cuMemHostGetFlags') + + global __cuMemAllocManaged + __cuMemAllocManaged = GetProcAddress(handle, 'cuMemAllocManaged') + + global __cuDeviceRegisterAsyncNotification + __cuDeviceRegisterAsyncNotification = GetProcAddress(handle, 'cuDeviceRegisterAsyncNotification') + + global __cuDeviceUnregisterAsyncNotification + __cuDeviceUnregisterAsyncNotification = GetProcAddress(handle, 'cuDeviceUnregisterAsyncNotification') + + global __cuDeviceGetByPCIBusId + __cuDeviceGetByPCIBusId = GetProcAddress(handle, 'cuDeviceGetByPCIBusId') + + global __cuDeviceGetPCIBusId + __cuDeviceGetPCIBusId = GetProcAddress(handle, 'cuDeviceGetPCIBusId') + + global __cuIpcGetEventHandle + __cuIpcGetEventHandle = GetProcAddress(handle, 'cuIpcGetEventHandle') + + global __cuIpcOpenEventHandle + __cuIpcOpenEventHandle = GetProcAddress(handle, 'cuIpcOpenEventHandle') + + global __cuIpcGetMemHandle + __cuIpcGetMemHandle = GetProcAddress(handle, 'cuIpcGetMemHandle') + + global __cuIpcOpenMemHandle_v2 + __cuIpcOpenMemHandle_v2 = GetProcAddress(handle, 'cuIpcOpenMemHandle_v2') + + global __cuIpcCloseMemHandle + __cuIpcCloseMemHandle = GetProcAddress(handle, 'cuIpcCloseMemHandle') + + global __cuMemHostRegister_v2 + __cuMemHostRegister_v2 = GetProcAddress(handle, 'cuMemHostRegister_v2') + + global __cuMemHostUnregister + __cuMemHostUnregister = GetProcAddress(handle, 'cuMemHostUnregister') + + global __cuMemcpy + __cuMemcpy = GetProcAddress(handle, 'cuMemcpy') + + global __cuMemcpyPeer + __cuMemcpyPeer = GetProcAddress(handle, 'cuMemcpyPeer') + + global __cuMemcpyHtoD_v2 + __cuMemcpyHtoD_v2 = GetProcAddress(handle, 'cuMemcpyHtoD_v2') + + global __cuMemcpyDtoH_v2 + __cuMemcpyDtoH_v2 = GetProcAddress(handle, 'cuMemcpyDtoH_v2') + + global __cuMemcpyDtoD_v2 + __cuMemcpyDtoD_v2 = GetProcAddress(handle, 'cuMemcpyDtoD_v2') + + global __cuMemcpyDtoA_v2 + __cuMemcpyDtoA_v2 = GetProcAddress(handle, 'cuMemcpyDtoA_v2') + + global __cuMemcpyAtoD_v2 + __cuMemcpyAtoD_v2 = GetProcAddress(handle, 'cuMemcpyAtoD_v2') + + global __cuMemcpyHtoA_v2 + __cuMemcpyHtoA_v2 = GetProcAddress(handle, 'cuMemcpyHtoA_v2') + + global __cuMemcpyAtoH_v2 + __cuMemcpyAtoH_v2 = GetProcAddress(handle, 'cuMemcpyAtoH_v2') + + global __cuMemcpyAtoA_v2 + __cuMemcpyAtoA_v2 = GetProcAddress(handle, 'cuMemcpyAtoA_v2') + + global __cuMemcpy2D_v2 + __cuMemcpy2D_v2 = GetProcAddress(handle, 'cuMemcpy2D_v2') + + global __cuMemcpy2DUnaligned_v2 + __cuMemcpy2DUnaligned_v2 = GetProcAddress(handle, 'cuMemcpy2DUnaligned_v2') + + global __cuMemcpy3D_v2 + __cuMemcpy3D_v2 = GetProcAddress(handle, 'cuMemcpy3D_v2') + + global __cuMemcpy3DPeer + __cuMemcpy3DPeer = GetProcAddress(handle, 'cuMemcpy3DPeer') + + global __cuMemcpyAsync + __cuMemcpyAsync = GetProcAddress(handle, 'cuMemcpyAsync') + + global __cuMemcpyPeerAsync + __cuMemcpyPeerAsync = GetProcAddress(handle, 'cuMemcpyPeerAsync') + + global __cuMemcpyHtoDAsync_v2 + __cuMemcpyHtoDAsync_v2 = GetProcAddress(handle, 'cuMemcpyHtoDAsync_v2') + + global __cuMemcpyDtoHAsync_v2 + __cuMemcpyDtoHAsync_v2 = GetProcAddress(handle, 'cuMemcpyDtoHAsync_v2') + + global __cuMemcpyDtoDAsync_v2 + __cuMemcpyDtoDAsync_v2 = GetProcAddress(handle, 'cuMemcpyDtoDAsync_v2') + + global __cuMemcpyHtoAAsync_v2 + __cuMemcpyHtoAAsync_v2 = GetProcAddress(handle, 'cuMemcpyHtoAAsync_v2') + + global __cuMemcpyAtoHAsync_v2 + __cuMemcpyAtoHAsync_v2 = GetProcAddress(handle, 'cuMemcpyAtoHAsync_v2') + + global __cuMemcpy2DAsync_v2 + __cuMemcpy2DAsync_v2 = GetProcAddress(handle, 'cuMemcpy2DAsync_v2') + + global __cuMemcpy3DAsync_v2 + __cuMemcpy3DAsync_v2 = GetProcAddress(handle, 'cuMemcpy3DAsync_v2') + + global __cuMemcpy3DPeerAsync + __cuMemcpy3DPeerAsync = GetProcAddress(handle, 'cuMemcpy3DPeerAsync') + + global __cuMemsetD8_v2 + __cuMemsetD8_v2 = GetProcAddress(handle, 'cuMemsetD8_v2') + + global __cuMemsetD16_v2 + __cuMemsetD16_v2 = GetProcAddress(handle, 'cuMemsetD16_v2') + + global __cuMemsetD32_v2 + __cuMemsetD32_v2 = GetProcAddress(handle, 'cuMemsetD32_v2') + + global __cuMemsetD2D8_v2 + __cuMemsetD2D8_v2 = GetProcAddress(handle, 'cuMemsetD2D8_v2') + + global __cuMemsetD2D16_v2 + __cuMemsetD2D16_v2 = GetProcAddress(handle, 'cuMemsetD2D16_v2') + + global __cuMemsetD2D32_v2 + __cuMemsetD2D32_v2 = GetProcAddress(handle, 'cuMemsetD2D32_v2') + + global __cuMemsetD8Async + __cuMemsetD8Async = GetProcAddress(handle, 'cuMemsetD8Async') + + global __cuMemsetD16Async + __cuMemsetD16Async = GetProcAddress(handle, 'cuMemsetD16Async') + + global __cuMemsetD32Async + __cuMemsetD32Async = GetProcAddress(handle, 'cuMemsetD32Async') + + global __cuMemsetD2D8Async + __cuMemsetD2D8Async = GetProcAddress(handle, 'cuMemsetD2D8Async') + + global __cuMemsetD2D16Async + __cuMemsetD2D16Async = GetProcAddress(handle, 'cuMemsetD2D16Async') + + global __cuMemsetD2D32Async + __cuMemsetD2D32Async = GetProcAddress(handle, 'cuMemsetD2D32Async') + + global __cuArrayCreate_v2 + __cuArrayCreate_v2 = GetProcAddress(handle, 'cuArrayCreate_v2') + + global __cuArrayGetDescriptor_v2 + __cuArrayGetDescriptor_v2 = GetProcAddress(handle, 'cuArrayGetDescriptor_v2') + + global __cuArrayGetSparseProperties + __cuArrayGetSparseProperties = GetProcAddress(handle, 'cuArrayGetSparseProperties') + + global __cuMipmappedArrayGetSparseProperties + __cuMipmappedArrayGetSparseProperties = GetProcAddress(handle, 'cuMipmappedArrayGetSparseProperties') + + global __cuArrayGetMemoryRequirements + __cuArrayGetMemoryRequirements = GetProcAddress(handle, 'cuArrayGetMemoryRequirements') + + global __cuMipmappedArrayGetMemoryRequirements + __cuMipmappedArrayGetMemoryRequirements = GetProcAddress(handle, 'cuMipmappedArrayGetMemoryRequirements') + + global __cuArrayGetPlane + __cuArrayGetPlane = GetProcAddress(handle, 'cuArrayGetPlane') + + global __cuArrayDestroy + __cuArrayDestroy = GetProcAddress(handle, 'cuArrayDestroy') + + global __cuArray3DCreate_v2 + __cuArray3DCreate_v2 = GetProcAddress(handle, 'cuArray3DCreate_v2') + + global __cuArray3DGetDescriptor_v2 + __cuArray3DGetDescriptor_v2 = GetProcAddress(handle, 'cuArray3DGetDescriptor_v2') + + global __cuMipmappedArrayCreate + __cuMipmappedArrayCreate = GetProcAddress(handle, 'cuMipmappedArrayCreate') + + global __cuMipmappedArrayGetLevel + __cuMipmappedArrayGetLevel = GetProcAddress(handle, 'cuMipmappedArrayGetLevel') + + global __cuMipmappedArrayDestroy + __cuMipmappedArrayDestroy = GetProcAddress(handle, 'cuMipmappedArrayDestroy') + + global __cuMemGetHandleForAddressRange + __cuMemGetHandleForAddressRange = GetProcAddress(handle, 'cuMemGetHandleForAddressRange') + + global __cuMemBatchDecompressAsync + __cuMemBatchDecompressAsync = GetProcAddress(handle, 'cuMemBatchDecompressAsync') + + global __cuMemAddressReserve + __cuMemAddressReserve = GetProcAddress(handle, 'cuMemAddressReserve') + + global __cuMemAddressFree + __cuMemAddressFree = GetProcAddress(handle, 'cuMemAddressFree') + + global __cuMemCreate + __cuMemCreate = GetProcAddress(handle, 'cuMemCreate') + + global __cuMemRelease + __cuMemRelease = GetProcAddress(handle, 'cuMemRelease') + + global __cuMemMap + __cuMemMap = GetProcAddress(handle, 'cuMemMap') + + global __cuMemMapArrayAsync + __cuMemMapArrayAsync = GetProcAddress(handle, 'cuMemMapArrayAsync') + + global __cuMemUnmap + __cuMemUnmap = GetProcAddress(handle, 'cuMemUnmap') + + global __cuMemSetAccess + __cuMemSetAccess = GetProcAddress(handle, 'cuMemSetAccess') + + global __cuMemGetAccess + __cuMemGetAccess = GetProcAddress(handle, 'cuMemGetAccess') + + global __cuMemExportToShareableHandle + __cuMemExportToShareableHandle = GetProcAddress(handle, 'cuMemExportToShareableHandle') + + global __cuMemImportFromShareableHandle + __cuMemImportFromShareableHandle = GetProcAddress(handle, 'cuMemImportFromShareableHandle') + + global __cuMemGetAllocationGranularity + __cuMemGetAllocationGranularity = GetProcAddress(handle, 'cuMemGetAllocationGranularity') + + global __cuMemGetAllocationPropertiesFromHandle + __cuMemGetAllocationPropertiesFromHandle = GetProcAddress(handle, 'cuMemGetAllocationPropertiesFromHandle') + + global __cuMemRetainAllocationHandle + __cuMemRetainAllocationHandle = GetProcAddress(handle, 'cuMemRetainAllocationHandle') + + global __cuMemFreeAsync + __cuMemFreeAsync = GetProcAddress(handle, 'cuMemFreeAsync') + + global __cuMemAllocAsync + __cuMemAllocAsync = GetProcAddress(handle, 'cuMemAllocAsync') + + global __cuMemPoolTrimTo + __cuMemPoolTrimTo = GetProcAddress(handle, 'cuMemPoolTrimTo') + + global __cuMemPoolSetAttribute + __cuMemPoolSetAttribute = GetProcAddress(handle, 'cuMemPoolSetAttribute') + + global __cuMemPoolGetAttribute + __cuMemPoolGetAttribute = GetProcAddress(handle, 'cuMemPoolGetAttribute') + + global __cuMemPoolSetAccess + __cuMemPoolSetAccess = GetProcAddress(handle, 'cuMemPoolSetAccess') + + global __cuMemPoolGetAccess + __cuMemPoolGetAccess = GetProcAddress(handle, 'cuMemPoolGetAccess') + + global __cuMemPoolCreate + __cuMemPoolCreate = GetProcAddress(handle, 'cuMemPoolCreate') + + global __cuMemPoolDestroy + __cuMemPoolDestroy = GetProcAddress(handle, 'cuMemPoolDestroy') + + global __cuMemAllocFromPoolAsync + __cuMemAllocFromPoolAsync = GetProcAddress(handle, 'cuMemAllocFromPoolAsync') + + global __cuMemPoolExportToShareableHandle + __cuMemPoolExportToShareableHandle = GetProcAddress(handle, 'cuMemPoolExportToShareableHandle') + + global __cuMemPoolImportFromShareableHandle + __cuMemPoolImportFromShareableHandle = GetProcAddress(handle, 'cuMemPoolImportFromShareableHandle') + + global __cuMemPoolExportPointer + __cuMemPoolExportPointer = GetProcAddress(handle, 'cuMemPoolExportPointer') + + global __cuMemPoolImportPointer + __cuMemPoolImportPointer = GetProcAddress(handle, 'cuMemPoolImportPointer') + + global __cuMulticastCreate + __cuMulticastCreate = GetProcAddress(handle, 'cuMulticastCreate') + + global __cuMulticastAddDevice + __cuMulticastAddDevice = GetProcAddress(handle, 'cuMulticastAddDevice') + + global __cuMulticastBindMem + __cuMulticastBindMem = GetProcAddress(handle, 'cuMulticastBindMem') + + global __cuMulticastBindAddr + __cuMulticastBindAddr = GetProcAddress(handle, 'cuMulticastBindAddr') + + global __cuMulticastUnbind + __cuMulticastUnbind = GetProcAddress(handle, 'cuMulticastUnbind') + + global __cuMulticastGetGranularity + __cuMulticastGetGranularity = GetProcAddress(handle, 'cuMulticastGetGranularity') + + global __cuPointerGetAttribute + __cuPointerGetAttribute = GetProcAddress(handle, 'cuPointerGetAttribute') + + global __cuMemPrefetchAsync_v2 + __cuMemPrefetchAsync_v2 = GetProcAddress(handle, 'cuMemPrefetchAsync_v2') + + global __cuMemAdvise_v2 + __cuMemAdvise_v2 = GetProcAddress(handle, 'cuMemAdvise_v2') + + global __cuMemRangeGetAttribute + __cuMemRangeGetAttribute = GetProcAddress(handle, 'cuMemRangeGetAttribute') + + global __cuMemRangeGetAttributes + __cuMemRangeGetAttributes = GetProcAddress(handle, 'cuMemRangeGetAttributes') + + global __cuPointerSetAttribute + __cuPointerSetAttribute = GetProcAddress(handle, 'cuPointerSetAttribute') + + global __cuPointerGetAttributes + __cuPointerGetAttributes = GetProcAddress(handle, 'cuPointerGetAttributes') + + global __cuStreamCreate + __cuStreamCreate = GetProcAddress(handle, 'cuStreamCreate') + + global __cuStreamCreateWithPriority + __cuStreamCreateWithPriority = GetProcAddress(handle, 'cuStreamCreateWithPriority') + + global __cuStreamGetPriority + __cuStreamGetPriority = GetProcAddress(handle, 'cuStreamGetPriority') + + global __cuStreamGetDevice + __cuStreamGetDevice = GetProcAddress(handle, 'cuStreamGetDevice') + + global __cuStreamGetFlags + __cuStreamGetFlags = GetProcAddress(handle, 'cuStreamGetFlags') + + global __cuStreamGetId + __cuStreamGetId = GetProcAddress(handle, 'cuStreamGetId') + + global __cuStreamGetCtx + __cuStreamGetCtx = GetProcAddress(handle, 'cuStreamGetCtx') + + global __cuStreamGetCtx_v2 + __cuStreamGetCtx_v2 = GetProcAddress(handle, 'cuStreamGetCtx_v2') + + global __cuStreamWaitEvent + __cuStreamWaitEvent = GetProcAddress(handle, 'cuStreamWaitEvent') + + global __cuStreamAddCallback + __cuStreamAddCallback = GetProcAddress(handle, 'cuStreamAddCallback') + + global __cuStreamBeginCapture_v2 + __cuStreamBeginCapture_v2 = GetProcAddress(handle, 'cuStreamBeginCapture_v2') + + global __cuStreamBeginCaptureToGraph + __cuStreamBeginCaptureToGraph = GetProcAddress(handle, 'cuStreamBeginCaptureToGraph') + + global __cuThreadExchangeStreamCaptureMode + __cuThreadExchangeStreamCaptureMode = GetProcAddress(handle, 'cuThreadExchangeStreamCaptureMode') + + global __cuStreamEndCapture + __cuStreamEndCapture = GetProcAddress(handle, 'cuStreamEndCapture') + + global __cuStreamIsCapturing + __cuStreamIsCapturing = GetProcAddress(handle, 'cuStreamIsCapturing') + + global __cuStreamGetCaptureInfo_v3 + __cuStreamGetCaptureInfo_v3 = GetProcAddress(handle, 'cuStreamGetCaptureInfo_v3') + + global __cuStreamUpdateCaptureDependencies_v2 + __cuStreamUpdateCaptureDependencies_v2 = GetProcAddress(handle, 'cuStreamUpdateCaptureDependencies_v2') + + global __cuStreamAttachMemAsync + __cuStreamAttachMemAsync = GetProcAddress(handle, 'cuStreamAttachMemAsync') + + global __cuStreamQuery + __cuStreamQuery = GetProcAddress(handle, 'cuStreamQuery') + + global __cuStreamSynchronize + __cuStreamSynchronize = GetProcAddress(handle, 'cuStreamSynchronize') + + global __cuStreamDestroy_v2 + __cuStreamDestroy_v2 = GetProcAddress(handle, 'cuStreamDestroy_v2') + + global __cuStreamCopyAttributes + __cuStreamCopyAttributes = GetProcAddress(handle, 'cuStreamCopyAttributes') + + global __cuStreamGetAttribute + __cuStreamGetAttribute = GetProcAddress(handle, 'cuStreamGetAttribute') + + global __cuStreamSetAttribute + __cuStreamSetAttribute = GetProcAddress(handle, 'cuStreamSetAttribute') + + global __cuEventCreate + __cuEventCreate = GetProcAddress(handle, 'cuEventCreate') + + global __cuEventRecord + __cuEventRecord = GetProcAddress(handle, 'cuEventRecord') + + global __cuEventRecordWithFlags + __cuEventRecordWithFlags = GetProcAddress(handle, 'cuEventRecordWithFlags') + + global __cuEventQuery + __cuEventQuery = GetProcAddress(handle, 'cuEventQuery') + + global __cuEventSynchronize + __cuEventSynchronize = GetProcAddress(handle, 'cuEventSynchronize') + + global __cuEventDestroy_v2 + __cuEventDestroy_v2 = GetProcAddress(handle, 'cuEventDestroy_v2') + + global __cuEventElapsedTime_v2 + __cuEventElapsedTime_v2 = GetProcAddress(handle, 'cuEventElapsedTime_v2') + + global __cuImportExternalMemory + __cuImportExternalMemory = GetProcAddress(handle, 'cuImportExternalMemory') + + global __cuExternalMemoryGetMappedBuffer + __cuExternalMemoryGetMappedBuffer = GetProcAddress(handle, 'cuExternalMemoryGetMappedBuffer') + + global __cuExternalMemoryGetMappedMipmappedArray + __cuExternalMemoryGetMappedMipmappedArray = GetProcAddress(handle, 'cuExternalMemoryGetMappedMipmappedArray') + + global __cuDestroyExternalMemory + __cuDestroyExternalMemory = GetProcAddress(handle, 'cuDestroyExternalMemory') + + global __cuImportExternalSemaphore + __cuImportExternalSemaphore = GetProcAddress(handle, 'cuImportExternalSemaphore') + + global __cuSignalExternalSemaphoresAsync + __cuSignalExternalSemaphoresAsync = GetProcAddress(handle, 'cuSignalExternalSemaphoresAsync') + + global __cuWaitExternalSemaphoresAsync + __cuWaitExternalSemaphoresAsync = GetProcAddress(handle, 'cuWaitExternalSemaphoresAsync') + + global __cuDestroyExternalSemaphore + __cuDestroyExternalSemaphore = GetProcAddress(handle, 'cuDestroyExternalSemaphore') + + global __cuStreamWaitValue32_v2 + __cuStreamWaitValue32_v2 = GetProcAddress(handle, 'cuStreamWaitValue32_v2') + + global __cuStreamWaitValue64_v2 + __cuStreamWaitValue64_v2 = GetProcAddress(handle, 'cuStreamWaitValue64_v2') + + global __cuStreamWriteValue32_v2 + __cuStreamWriteValue32_v2 = GetProcAddress(handle, 'cuStreamWriteValue32_v2') + + global __cuStreamWriteValue64_v2 + __cuStreamWriteValue64_v2 = GetProcAddress(handle, 'cuStreamWriteValue64_v2') + + global __cuStreamBatchMemOp_v2 + __cuStreamBatchMemOp_v2 = GetProcAddress(handle, 'cuStreamBatchMemOp_v2') + + global __cuFuncGetAttribute + __cuFuncGetAttribute = GetProcAddress(handle, 'cuFuncGetAttribute') + + global __cuFuncSetAttribute + __cuFuncSetAttribute = GetProcAddress(handle, 'cuFuncSetAttribute') + + global __cuFuncSetCacheConfig + __cuFuncSetCacheConfig = GetProcAddress(handle, 'cuFuncSetCacheConfig') + + global __cuFuncGetModule + __cuFuncGetModule = GetProcAddress(handle, 'cuFuncGetModule') + + global __cuFuncGetName + __cuFuncGetName = GetProcAddress(handle, 'cuFuncGetName') + + global __cuFuncGetParamInfo + __cuFuncGetParamInfo = GetProcAddress(handle, 'cuFuncGetParamInfo') + + global __cuFuncIsLoaded + __cuFuncIsLoaded = GetProcAddress(handle, 'cuFuncIsLoaded') + + global __cuFuncLoad + __cuFuncLoad = GetProcAddress(handle, 'cuFuncLoad') + + global __cuLaunchKernel + __cuLaunchKernel = GetProcAddress(handle, 'cuLaunchKernel') + + global __cuLaunchKernelEx + __cuLaunchKernelEx = GetProcAddress(handle, 'cuLaunchKernelEx') + + global __cuLaunchCooperativeKernel + __cuLaunchCooperativeKernel = GetProcAddress(handle, 'cuLaunchCooperativeKernel') + + global __cuLaunchCooperativeKernelMultiDevice + __cuLaunchCooperativeKernelMultiDevice = GetProcAddress(handle, 'cuLaunchCooperativeKernelMultiDevice') + + global __cuLaunchHostFunc + __cuLaunchHostFunc = GetProcAddress(handle, 'cuLaunchHostFunc') + + global __cuFuncSetBlockShape + __cuFuncSetBlockShape = GetProcAddress(handle, 'cuFuncSetBlockShape') + + global __cuFuncSetSharedSize + __cuFuncSetSharedSize = GetProcAddress(handle, 'cuFuncSetSharedSize') + + global __cuParamSetSize + __cuParamSetSize = GetProcAddress(handle, 'cuParamSetSize') + + global __cuParamSeti + __cuParamSeti = GetProcAddress(handle, 'cuParamSeti') + + global __cuParamSetf + __cuParamSetf = GetProcAddress(handle, 'cuParamSetf') + + global __cuParamSetv + __cuParamSetv = GetProcAddress(handle, 'cuParamSetv') + + global __cuLaunch + __cuLaunch = GetProcAddress(handle, 'cuLaunch') + + global __cuLaunchGrid + __cuLaunchGrid = GetProcAddress(handle, 'cuLaunchGrid') + + global __cuLaunchGridAsync + __cuLaunchGridAsync = GetProcAddress(handle, 'cuLaunchGridAsync') + + global __cuParamSetTexRef + __cuParamSetTexRef = GetProcAddress(handle, 'cuParamSetTexRef') + + global __cuFuncSetSharedMemConfig + __cuFuncSetSharedMemConfig = GetProcAddress(handle, 'cuFuncSetSharedMemConfig') + + global __cuGraphCreate + __cuGraphCreate = GetProcAddress(handle, 'cuGraphCreate') + + global __cuGraphAddKernelNode_v2 + __cuGraphAddKernelNode_v2 = GetProcAddress(handle, 'cuGraphAddKernelNode_v2') + + global __cuGraphKernelNodeGetParams_v2 + __cuGraphKernelNodeGetParams_v2 = GetProcAddress(handle, 'cuGraphKernelNodeGetParams_v2') + + global __cuGraphKernelNodeSetParams_v2 + __cuGraphKernelNodeSetParams_v2 = GetProcAddress(handle, 'cuGraphKernelNodeSetParams_v2') + + global __cuGraphAddMemcpyNode + __cuGraphAddMemcpyNode = GetProcAddress(handle, 'cuGraphAddMemcpyNode') + + global __cuGraphMemcpyNodeGetParams + __cuGraphMemcpyNodeGetParams = GetProcAddress(handle, 'cuGraphMemcpyNodeGetParams') + + global __cuGraphMemcpyNodeSetParams + __cuGraphMemcpyNodeSetParams = GetProcAddress(handle, 'cuGraphMemcpyNodeSetParams') + + global __cuGraphAddMemsetNode + __cuGraphAddMemsetNode = GetProcAddress(handle, 'cuGraphAddMemsetNode') + + global __cuGraphMemsetNodeGetParams + __cuGraphMemsetNodeGetParams = GetProcAddress(handle, 'cuGraphMemsetNodeGetParams') + + global __cuGraphMemsetNodeSetParams + __cuGraphMemsetNodeSetParams = GetProcAddress(handle, 'cuGraphMemsetNodeSetParams') + + global __cuGraphAddHostNode + __cuGraphAddHostNode = GetProcAddress(handle, 'cuGraphAddHostNode') + + global __cuGraphHostNodeGetParams + __cuGraphHostNodeGetParams = GetProcAddress(handle, 'cuGraphHostNodeGetParams') + + global __cuGraphHostNodeSetParams + __cuGraphHostNodeSetParams = GetProcAddress(handle, 'cuGraphHostNodeSetParams') + + global __cuGraphAddChildGraphNode + __cuGraphAddChildGraphNode = GetProcAddress(handle, 'cuGraphAddChildGraphNode') + + global __cuGraphChildGraphNodeGetGraph + __cuGraphChildGraphNodeGetGraph = GetProcAddress(handle, 'cuGraphChildGraphNodeGetGraph') + + global __cuGraphAddEmptyNode + __cuGraphAddEmptyNode = GetProcAddress(handle, 'cuGraphAddEmptyNode') + + global __cuGraphAddEventRecordNode + __cuGraphAddEventRecordNode = GetProcAddress(handle, 'cuGraphAddEventRecordNode') + + global __cuGraphEventRecordNodeGetEvent + __cuGraphEventRecordNodeGetEvent = GetProcAddress(handle, 'cuGraphEventRecordNodeGetEvent') + + global __cuGraphEventRecordNodeSetEvent + __cuGraphEventRecordNodeSetEvent = GetProcAddress(handle, 'cuGraphEventRecordNodeSetEvent') + + global __cuGraphAddEventWaitNode + __cuGraphAddEventWaitNode = GetProcAddress(handle, 'cuGraphAddEventWaitNode') + + global __cuGraphEventWaitNodeGetEvent + __cuGraphEventWaitNodeGetEvent = GetProcAddress(handle, 'cuGraphEventWaitNodeGetEvent') + + global __cuGraphEventWaitNodeSetEvent + __cuGraphEventWaitNodeSetEvent = GetProcAddress(handle, 'cuGraphEventWaitNodeSetEvent') + + global __cuGraphAddExternalSemaphoresSignalNode + __cuGraphAddExternalSemaphoresSignalNode = GetProcAddress(handle, 'cuGraphAddExternalSemaphoresSignalNode') + + global __cuGraphExternalSemaphoresSignalNodeGetParams + __cuGraphExternalSemaphoresSignalNodeGetParams = GetProcAddress(handle, 'cuGraphExternalSemaphoresSignalNodeGetParams') + + global __cuGraphExternalSemaphoresSignalNodeSetParams + __cuGraphExternalSemaphoresSignalNodeSetParams = GetProcAddress(handle, 'cuGraphExternalSemaphoresSignalNodeSetParams') + + global __cuGraphAddExternalSemaphoresWaitNode + __cuGraphAddExternalSemaphoresWaitNode = GetProcAddress(handle, 'cuGraphAddExternalSemaphoresWaitNode') + + global __cuGraphExternalSemaphoresWaitNodeGetParams + __cuGraphExternalSemaphoresWaitNodeGetParams = GetProcAddress(handle, 'cuGraphExternalSemaphoresWaitNodeGetParams') + + global __cuGraphExternalSemaphoresWaitNodeSetParams + __cuGraphExternalSemaphoresWaitNodeSetParams = GetProcAddress(handle, 'cuGraphExternalSemaphoresWaitNodeSetParams') + + global __cuGraphAddBatchMemOpNode + __cuGraphAddBatchMemOpNode = GetProcAddress(handle, 'cuGraphAddBatchMemOpNode') + + global __cuGraphBatchMemOpNodeGetParams + __cuGraphBatchMemOpNodeGetParams = GetProcAddress(handle, 'cuGraphBatchMemOpNodeGetParams') + + global __cuGraphBatchMemOpNodeSetParams + __cuGraphBatchMemOpNodeSetParams = GetProcAddress(handle, 'cuGraphBatchMemOpNodeSetParams') + + global __cuGraphExecBatchMemOpNodeSetParams + __cuGraphExecBatchMemOpNodeSetParams = GetProcAddress(handle, 'cuGraphExecBatchMemOpNodeSetParams') + + global __cuGraphAddMemAllocNode + __cuGraphAddMemAllocNode = GetProcAddress(handle, 'cuGraphAddMemAllocNode') + + global __cuGraphMemAllocNodeGetParams + __cuGraphMemAllocNodeGetParams = GetProcAddress(handle, 'cuGraphMemAllocNodeGetParams') + + global __cuGraphAddMemFreeNode + __cuGraphAddMemFreeNode = GetProcAddress(handle, 'cuGraphAddMemFreeNode') + + global __cuGraphMemFreeNodeGetParams + __cuGraphMemFreeNodeGetParams = GetProcAddress(handle, 'cuGraphMemFreeNodeGetParams') + + global __cuDeviceGraphMemTrim + __cuDeviceGraphMemTrim = GetProcAddress(handle, 'cuDeviceGraphMemTrim') + + global __cuDeviceGetGraphMemAttribute + __cuDeviceGetGraphMemAttribute = GetProcAddress(handle, 'cuDeviceGetGraphMemAttribute') + + global __cuDeviceSetGraphMemAttribute + __cuDeviceSetGraphMemAttribute = GetProcAddress(handle, 'cuDeviceSetGraphMemAttribute') + + global __cuGraphClone + __cuGraphClone = GetProcAddress(handle, 'cuGraphClone') + + global __cuGraphNodeFindInClone + __cuGraphNodeFindInClone = GetProcAddress(handle, 'cuGraphNodeFindInClone') + + global __cuGraphNodeGetType + __cuGraphNodeGetType = GetProcAddress(handle, 'cuGraphNodeGetType') + + global __cuGraphGetNodes + __cuGraphGetNodes = GetProcAddress(handle, 'cuGraphGetNodes') + + global __cuGraphGetRootNodes + __cuGraphGetRootNodes = GetProcAddress(handle, 'cuGraphGetRootNodes') + + global __cuGraphGetEdges_v2 + __cuGraphGetEdges_v2 = GetProcAddress(handle, 'cuGraphGetEdges_v2') + + global __cuGraphNodeGetDependencies_v2 + __cuGraphNodeGetDependencies_v2 = GetProcAddress(handle, 'cuGraphNodeGetDependencies_v2') + + global __cuGraphNodeGetDependentNodes_v2 + __cuGraphNodeGetDependentNodes_v2 = GetProcAddress(handle, 'cuGraphNodeGetDependentNodes_v2') + + global __cuGraphAddDependencies_v2 + __cuGraphAddDependencies_v2 = GetProcAddress(handle, 'cuGraphAddDependencies_v2') + + global __cuGraphRemoveDependencies_v2 + __cuGraphRemoveDependencies_v2 = GetProcAddress(handle, 'cuGraphRemoveDependencies_v2') + + global __cuGraphDestroyNode + __cuGraphDestroyNode = GetProcAddress(handle, 'cuGraphDestroyNode') + + global __cuGraphInstantiateWithFlags + __cuGraphInstantiateWithFlags = GetProcAddress(handle, 'cuGraphInstantiateWithFlags') + + global __cuGraphInstantiateWithParams + __cuGraphInstantiateWithParams = GetProcAddress(handle, 'cuGraphInstantiateWithParams') + + global __cuGraphExecGetFlags + __cuGraphExecGetFlags = GetProcAddress(handle, 'cuGraphExecGetFlags') + + global __cuGraphExecKernelNodeSetParams_v2 + __cuGraphExecKernelNodeSetParams_v2 = GetProcAddress(handle, 'cuGraphExecKernelNodeSetParams_v2') + + global __cuGraphExecMemcpyNodeSetParams + __cuGraphExecMemcpyNodeSetParams = GetProcAddress(handle, 'cuGraphExecMemcpyNodeSetParams') + + global __cuGraphExecMemsetNodeSetParams + __cuGraphExecMemsetNodeSetParams = GetProcAddress(handle, 'cuGraphExecMemsetNodeSetParams') + + global __cuGraphExecHostNodeSetParams + __cuGraphExecHostNodeSetParams = GetProcAddress(handle, 'cuGraphExecHostNodeSetParams') + + global __cuGraphExecChildGraphNodeSetParams + __cuGraphExecChildGraphNodeSetParams = GetProcAddress(handle, 'cuGraphExecChildGraphNodeSetParams') + + global __cuGraphExecEventRecordNodeSetEvent + __cuGraphExecEventRecordNodeSetEvent = GetProcAddress(handle, 'cuGraphExecEventRecordNodeSetEvent') + + global __cuGraphExecEventWaitNodeSetEvent + __cuGraphExecEventWaitNodeSetEvent = GetProcAddress(handle, 'cuGraphExecEventWaitNodeSetEvent') + + global __cuGraphExecExternalSemaphoresSignalNodeSetParams + __cuGraphExecExternalSemaphoresSignalNodeSetParams = GetProcAddress(handle, 'cuGraphExecExternalSemaphoresSignalNodeSetParams') + + global __cuGraphExecExternalSemaphoresWaitNodeSetParams + __cuGraphExecExternalSemaphoresWaitNodeSetParams = GetProcAddress(handle, 'cuGraphExecExternalSemaphoresWaitNodeSetParams') + + global __cuGraphNodeSetEnabled + __cuGraphNodeSetEnabled = GetProcAddress(handle, 'cuGraphNodeSetEnabled') + + global __cuGraphNodeGetEnabled + __cuGraphNodeGetEnabled = GetProcAddress(handle, 'cuGraphNodeGetEnabled') + + global __cuGraphUpload + __cuGraphUpload = GetProcAddress(handle, 'cuGraphUpload') + + global __cuGraphLaunch + __cuGraphLaunch = GetProcAddress(handle, 'cuGraphLaunch') + + global __cuGraphExecDestroy + __cuGraphExecDestroy = GetProcAddress(handle, 'cuGraphExecDestroy') + + global __cuGraphDestroy + __cuGraphDestroy = GetProcAddress(handle, 'cuGraphDestroy') + + global __cuGraphExecUpdate_v2 + __cuGraphExecUpdate_v2 = GetProcAddress(handle, 'cuGraphExecUpdate_v2') + + global __cuGraphKernelNodeCopyAttributes + __cuGraphKernelNodeCopyAttributes = GetProcAddress(handle, 'cuGraphKernelNodeCopyAttributes') + + global __cuGraphKernelNodeGetAttribute + __cuGraphKernelNodeGetAttribute = GetProcAddress(handle, 'cuGraphKernelNodeGetAttribute') + + global __cuGraphKernelNodeSetAttribute + __cuGraphKernelNodeSetAttribute = GetProcAddress(handle, 'cuGraphKernelNodeSetAttribute') + + global __cuGraphDebugDotPrint + __cuGraphDebugDotPrint = GetProcAddress(handle, 'cuGraphDebugDotPrint') + + global __cuUserObjectCreate + __cuUserObjectCreate = GetProcAddress(handle, 'cuUserObjectCreate') + + global __cuUserObjectRetain + __cuUserObjectRetain = GetProcAddress(handle, 'cuUserObjectRetain') + + global __cuUserObjectRelease + __cuUserObjectRelease = GetProcAddress(handle, 'cuUserObjectRelease') + + global __cuGraphRetainUserObject + __cuGraphRetainUserObject = GetProcAddress(handle, 'cuGraphRetainUserObject') + + global __cuGraphReleaseUserObject + __cuGraphReleaseUserObject = GetProcAddress(handle, 'cuGraphReleaseUserObject') + + global __cuGraphAddNode_v2 + __cuGraphAddNode_v2 = GetProcAddress(handle, 'cuGraphAddNode_v2') + + global __cuGraphNodeSetParams + __cuGraphNodeSetParams = GetProcAddress(handle, 'cuGraphNodeSetParams') + + global __cuGraphExecNodeSetParams + __cuGraphExecNodeSetParams = GetProcAddress(handle, 'cuGraphExecNodeSetParams') + + global __cuGraphConditionalHandleCreate + __cuGraphConditionalHandleCreate = GetProcAddress(handle, 'cuGraphConditionalHandleCreate') + + global __cuOccupancyMaxActiveBlocksPerMultiprocessor + __cuOccupancyMaxActiveBlocksPerMultiprocessor = GetProcAddress(handle, 'cuOccupancyMaxActiveBlocksPerMultiprocessor') + + global __cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags + __cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags = GetProcAddress(handle, 'cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags') + + global __cuOccupancyMaxPotentialBlockSize + __cuOccupancyMaxPotentialBlockSize = GetProcAddress(handle, 'cuOccupancyMaxPotentialBlockSize') + + global __cuOccupancyMaxPotentialBlockSizeWithFlags + __cuOccupancyMaxPotentialBlockSizeWithFlags = GetProcAddress(handle, 'cuOccupancyMaxPotentialBlockSizeWithFlags') + + global __cuOccupancyAvailableDynamicSMemPerBlock + __cuOccupancyAvailableDynamicSMemPerBlock = GetProcAddress(handle, 'cuOccupancyAvailableDynamicSMemPerBlock') + + global __cuOccupancyMaxPotentialClusterSize + __cuOccupancyMaxPotentialClusterSize = GetProcAddress(handle, 'cuOccupancyMaxPotentialClusterSize') + + global __cuOccupancyMaxActiveClusters + __cuOccupancyMaxActiveClusters = GetProcAddress(handle, 'cuOccupancyMaxActiveClusters') + + global __cuTexRefSetArray + __cuTexRefSetArray = GetProcAddress(handle, 'cuTexRefSetArray') + + global __cuTexRefSetMipmappedArray + __cuTexRefSetMipmappedArray = GetProcAddress(handle, 'cuTexRefSetMipmappedArray') + + global __cuTexRefSetAddress_v2 + __cuTexRefSetAddress_v2 = GetProcAddress(handle, 'cuTexRefSetAddress_v2') + + global __cuTexRefSetAddress2D_v3 + __cuTexRefSetAddress2D_v3 = GetProcAddress(handle, 'cuTexRefSetAddress2D_v3') + + global __cuTexRefSetFormat + __cuTexRefSetFormat = GetProcAddress(handle, 'cuTexRefSetFormat') + + global __cuTexRefSetAddressMode + __cuTexRefSetAddressMode = GetProcAddress(handle, 'cuTexRefSetAddressMode') + + global __cuTexRefSetFilterMode + __cuTexRefSetFilterMode = GetProcAddress(handle, 'cuTexRefSetFilterMode') + + global __cuTexRefSetMipmapFilterMode + __cuTexRefSetMipmapFilterMode = GetProcAddress(handle, 'cuTexRefSetMipmapFilterMode') + + global __cuTexRefSetMipmapLevelBias + __cuTexRefSetMipmapLevelBias = GetProcAddress(handle, 'cuTexRefSetMipmapLevelBias') + + global __cuTexRefSetMipmapLevelClamp + __cuTexRefSetMipmapLevelClamp = GetProcAddress(handle, 'cuTexRefSetMipmapLevelClamp') + + global __cuTexRefSetMaxAnisotropy + __cuTexRefSetMaxAnisotropy = GetProcAddress(handle, 'cuTexRefSetMaxAnisotropy') + + global __cuTexRefSetBorderColor + __cuTexRefSetBorderColor = GetProcAddress(handle, 'cuTexRefSetBorderColor') + + global __cuTexRefSetFlags + __cuTexRefSetFlags = GetProcAddress(handle, 'cuTexRefSetFlags') + + global __cuTexRefGetAddress_v2 + __cuTexRefGetAddress_v2 = GetProcAddress(handle, 'cuTexRefGetAddress_v2') + + global __cuTexRefGetArray + __cuTexRefGetArray = GetProcAddress(handle, 'cuTexRefGetArray') + + global __cuTexRefGetMipmappedArray + __cuTexRefGetMipmappedArray = GetProcAddress(handle, 'cuTexRefGetMipmappedArray') + + global __cuTexRefGetAddressMode + __cuTexRefGetAddressMode = GetProcAddress(handle, 'cuTexRefGetAddressMode') + + global __cuTexRefGetFilterMode + __cuTexRefGetFilterMode = GetProcAddress(handle, 'cuTexRefGetFilterMode') + + global __cuTexRefGetFormat + __cuTexRefGetFormat = GetProcAddress(handle, 'cuTexRefGetFormat') + + global __cuTexRefGetMipmapFilterMode + __cuTexRefGetMipmapFilterMode = GetProcAddress(handle, 'cuTexRefGetMipmapFilterMode') + + global __cuTexRefGetMipmapLevelBias + __cuTexRefGetMipmapLevelBias = GetProcAddress(handle, 'cuTexRefGetMipmapLevelBias') + + global __cuTexRefGetMipmapLevelClamp + __cuTexRefGetMipmapLevelClamp = GetProcAddress(handle, 'cuTexRefGetMipmapLevelClamp') + + global __cuTexRefGetMaxAnisotropy + __cuTexRefGetMaxAnisotropy = GetProcAddress(handle, 'cuTexRefGetMaxAnisotropy') + + global __cuTexRefGetBorderColor + __cuTexRefGetBorderColor = GetProcAddress(handle, 'cuTexRefGetBorderColor') + + global __cuTexRefGetFlags + __cuTexRefGetFlags = GetProcAddress(handle, 'cuTexRefGetFlags') + + global __cuTexRefCreate + __cuTexRefCreate = GetProcAddress(handle, 'cuTexRefCreate') + + global __cuTexRefDestroy + __cuTexRefDestroy = GetProcAddress(handle, 'cuTexRefDestroy') + + global __cuSurfRefSetArray + __cuSurfRefSetArray = GetProcAddress(handle, 'cuSurfRefSetArray') + + global __cuSurfRefGetArray + __cuSurfRefGetArray = GetProcAddress(handle, 'cuSurfRefGetArray') + + global __cuTexObjectCreate + __cuTexObjectCreate = GetProcAddress(handle, 'cuTexObjectCreate') + + global __cuTexObjectDestroy + __cuTexObjectDestroy = GetProcAddress(handle, 'cuTexObjectDestroy') + + global __cuTexObjectGetResourceDesc + __cuTexObjectGetResourceDesc = GetProcAddress(handle, 'cuTexObjectGetResourceDesc') + + global __cuTexObjectGetTextureDesc + __cuTexObjectGetTextureDesc = GetProcAddress(handle, 'cuTexObjectGetTextureDesc') + + global __cuTexObjectGetResourceViewDesc + __cuTexObjectGetResourceViewDesc = GetProcAddress(handle, 'cuTexObjectGetResourceViewDesc') + + global __cuSurfObjectCreate + __cuSurfObjectCreate = GetProcAddress(handle, 'cuSurfObjectCreate') + + global __cuSurfObjectDestroy + __cuSurfObjectDestroy = GetProcAddress(handle, 'cuSurfObjectDestroy') + + global __cuSurfObjectGetResourceDesc + __cuSurfObjectGetResourceDesc = GetProcAddress(handle, 'cuSurfObjectGetResourceDesc') + + global __cuTensorMapEncodeTiled + __cuTensorMapEncodeTiled = GetProcAddress(handle, 'cuTensorMapEncodeTiled') + + global __cuTensorMapEncodeIm2col + __cuTensorMapEncodeIm2col = GetProcAddress(handle, 'cuTensorMapEncodeIm2col') + + global __cuTensorMapEncodeIm2colWide + __cuTensorMapEncodeIm2colWide = GetProcAddress(handle, 'cuTensorMapEncodeIm2colWide') + + global __cuTensorMapReplaceAddress + __cuTensorMapReplaceAddress = GetProcAddress(handle, 'cuTensorMapReplaceAddress') + + global __cuDeviceCanAccessPeer + __cuDeviceCanAccessPeer = GetProcAddress(handle, 'cuDeviceCanAccessPeer') + + global __cuCtxEnablePeerAccess + __cuCtxEnablePeerAccess = GetProcAddress(handle, 'cuCtxEnablePeerAccess') + + global __cuCtxDisablePeerAccess + __cuCtxDisablePeerAccess = GetProcAddress(handle, 'cuCtxDisablePeerAccess') + + global __cuDeviceGetP2PAttribute + __cuDeviceGetP2PAttribute = GetProcAddress(handle, 'cuDeviceGetP2PAttribute') + + global __cuGraphicsUnregisterResource + __cuGraphicsUnregisterResource = GetProcAddress(handle, 'cuGraphicsUnregisterResource') + + global __cuGraphicsSubResourceGetMappedArray + __cuGraphicsSubResourceGetMappedArray = GetProcAddress(handle, 'cuGraphicsSubResourceGetMappedArray') + + global __cuGraphicsResourceGetMappedMipmappedArray + __cuGraphicsResourceGetMappedMipmappedArray = GetProcAddress(handle, 'cuGraphicsResourceGetMappedMipmappedArray') + + global __cuGraphicsResourceGetMappedPointer_v2 + __cuGraphicsResourceGetMappedPointer_v2 = GetProcAddress(handle, 'cuGraphicsResourceGetMappedPointer_v2') + + global __cuGraphicsResourceSetMapFlags_v2 + __cuGraphicsResourceSetMapFlags_v2 = GetProcAddress(handle, 'cuGraphicsResourceSetMapFlags_v2') + + global __cuGraphicsMapResources + __cuGraphicsMapResources = GetProcAddress(handle, 'cuGraphicsMapResources') + + global __cuGraphicsUnmapResources + __cuGraphicsUnmapResources = GetProcAddress(handle, 'cuGraphicsUnmapResources') + + global __cuGetProcAddress_v2 + __cuGetProcAddress_v2 = GetProcAddress(handle, 'cuGetProcAddress_v2') + + global __cuCoredumpGetAttribute + __cuCoredumpGetAttribute = GetProcAddress(handle, 'cuCoredumpGetAttribute') + + global __cuCoredumpGetAttributeGlobal + __cuCoredumpGetAttributeGlobal = GetProcAddress(handle, 'cuCoredumpGetAttributeGlobal') + + global __cuCoredumpSetAttribute + __cuCoredumpSetAttribute = GetProcAddress(handle, 'cuCoredumpSetAttribute') + + global __cuCoredumpSetAttributeGlobal + __cuCoredumpSetAttributeGlobal = GetProcAddress(handle, 'cuCoredumpSetAttributeGlobal') + + global __cuGetExportTable + __cuGetExportTable = GetProcAddress(handle, 'cuGetExportTable') + + global __cuGreenCtxCreate + __cuGreenCtxCreate = GetProcAddress(handle, 'cuGreenCtxCreate') + + global __cuGreenCtxDestroy + __cuGreenCtxDestroy = GetProcAddress(handle, 'cuGreenCtxDestroy') + + global __cuCtxFromGreenCtx + __cuCtxFromGreenCtx = GetProcAddress(handle, 'cuCtxFromGreenCtx') + + global __cuDeviceGetDevResource + __cuDeviceGetDevResource = GetProcAddress(handle, 'cuDeviceGetDevResource') + + global __cuCtxGetDevResource + __cuCtxGetDevResource = GetProcAddress(handle, 'cuCtxGetDevResource') + + global __cuGreenCtxGetDevResource + __cuGreenCtxGetDevResource = GetProcAddress(handle, 'cuGreenCtxGetDevResource') + + global __cuDevSmResourceSplitByCount + __cuDevSmResourceSplitByCount = GetProcAddress(handle, 'cuDevSmResourceSplitByCount') + + global __cuDevResourceGenerateDesc + __cuDevResourceGenerateDesc = GetProcAddress(handle, 'cuDevResourceGenerateDesc') + + global __cuGreenCtxRecordEvent + __cuGreenCtxRecordEvent = GetProcAddress(handle, 'cuGreenCtxRecordEvent') + + global __cuGreenCtxWaitEvent + __cuGreenCtxWaitEvent = GetProcAddress(handle, 'cuGreenCtxWaitEvent') + + global __cuStreamGetGreenCtx + __cuStreamGetGreenCtx = GetProcAddress(handle, 'cuStreamGetGreenCtx') + + global __cuGreenCtxStreamCreate + __cuGreenCtxStreamCreate = GetProcAddress(handle, 'cuGreenCtxStreamCreate') + + global __cuLogsRegisterCallback + __cuLogsRegisterCallback = GetProcAddress(handle, 'cuLogsRegisterCallback') + + global __cuLogsUnregisterCallback + __cuLogsUnregisterCallback = GetProcAddress(handle, 'cuLogsUnregisterCallback') + + global __cuLogsCurrent + __cuLogsCurrent = GetProcAddress(handle, 'cuLogsCurrent') + + global __cuLogsDumpToFile + __cuLogsDumpToFile = GetProcAddress(handle, 'cuLogsDumpToFile') + + global __cuLogsDumpToMemory + __cuLogsDumpToMemory = GetProcAddress(handle, 'cuLogsDumpToMemory') + + global __cuCheckpointProcessGetRestoreThreadId + __cuCheckpointProcessGetRestoreThreadId = GetProcAddress(handle, 'cuCheckpointProcessGetRestoreThreadId') + + global __cuCheckpointProcessGetState + __cuCheckpointProcessGetState = GetProcAddress(handle, 'cuCheckpointProcessGetState') + + global __cuCheckpointProcessLock + __cuCheckpointProcessLock = GetProcAddress(handle, 'cuCheckpointProcessLock') + + global __cuCheckpointProcessCheckpoint + __cuCheckpointProcessCheckpoint = GetProcAddress(handle, 'cuCheckpointProcessCheckpoint') + + global __cuCheckpointProcessRestore + __cuCheckpointProcessRestore = GetProcAddress(handle, 'cuCheckpointProcessRestore') + + global __cuCheckpointProcessUnlock + __cuCheckpointProcessUnlock = GetProcAddress(handle, 'cuCheckpointProcessUnlock') + + global __cuGraphicsEGLRegisterImage + __cuGraphicsEGLRegisterImage = GetProcAddress(handle, 'cuGraphicsEGLRegisterImage') + + global __cuEGLStreamConsumerConnect + __cuEGLStreamConsumerConnect = GetProcAddress(handle, 'cuEGLStreamConsumerConnect') + + global __cuEGLStreamConsumerConnectWithFlags + __cuEGLStreamConsumerConnectWithFlags = GetProcAddress(handle, 'cuEGLStreamConsumerConnectWithFlags') + + global __cuEGLStreamConsumerDisconnect + __cuEGLStreamConsumerDisconnect = GetProcAddress(handle, 'cuEGLStreamConsumerDisconnect') + + global __cuEGLStreamConsumerAcquireFrame + __cuEGLStreamConsumerAcquireFrame = GetProcAddress(handle, 'cuEGLStreamConsumerAcquireFrame') + + global __cuEGLStreamConsumerReleaseFrame + __cuEGLStreamConsumerReleaseFrame = GetProcAddress(handle, 'cuEGLStreamConsumerReleaseFrame') + + global __cuEGLStreamProducerConnect + __cuEGLStreamProducerConnect = GetProcAddress(handle, 'cuEGLStreamProducerConnect') + + global __cuEGLStreamProducerDisconnect + __cuEGLStreamProducerDisconnect = GetProcAddress(handle, 'cuEGLStreamProducerDisconnect') + + global __cuEGLStreamProducerPresentFrame + __cuEGLStreamProducerPresentFrame = GetProcAddress(handle, 'cuEGLStreamProducerPresentFrame') + + global __cuEGLStreamProducerReturnFrame + __cuEGLStreamProducerReturnFrame = GetProcAddress(handle, 'cuEGLStreamProducerReturnFrame') + + global __cuGraphicsResourceGetMappedEglFrame + __cuGraphicsResourceGetMappedEglFrame = GetProcAddress(handle, 'cuGraphicsResourceGetMappedEglFrame') + + global __cuEventCreateFromEGLSync + __cuEventCreateFromEGLSync = GetProcAddress(handle, 'cuEventCreateFromEGLSync') + + global __cuGraphicsGLRegisterBuffer + __cuGraphicsGLRegisterBuffer = GetProcAddress(handle, 'cuGraphicsGLRegisterBuffer') + + global __cuGraphicsGLRegisterImage + __cuGraphicsGLRegisterImage = GetProcAddress(handle, 'cuGraphicsGLRegisterImage') + + global __cuGLGetDevices_v2 + __cuGLGetDevices_v2 = GetProcAddress(handle, 'cuGLGetDevices_v2') + + global __cuGLCtxCreate_v2 + __cuGLCtxCreate_v2 = GetProcAddress(handle, 'cuGLCtxCreate_v2') + + global __cuGLInit + __cuGLInit = GetProcAddress(handle, 'cuGLInit') + + global __cuGLRegisterBufferObject + __cuGLRegisterBufferObject = GetProcAddress(handle, 'cuGLRegisterBufferObject') + + global __cuGLMapBufferObject_v2 + __cuGLMapBufferObject_v2 = GetProcAddress(handle, 'cuGLMapBufferObject_v2') + + global __cuGLUnmapBufferObject + __cuGLUnmapBufferObject = GetProcAddress(handle, 'cuGLUnmapBufferObject') + + global __cuGLUnregisterBufferObject + __cuGLUnregisterBufferObject = GetProcAddress(handle, 'cuGLUnregisterBufferObject') + + global __cuGLSetBufferObjectMapFlags + __cuGLSetBufferObjectMapFlags = GetProcAddress(handle, 'cuGLSetBufferObjectMapFlags') + + global __cuGLMapBufferObjectAsync_v2 + __cuGLMapBufferObjectAsync_v2 = GetProcAddress(handle, 'cuGLMapBufferObjectAsync_v2') + + global __cuGLUnmapBufferObjectAsync + __cuGLUnmapBufferObjectAsync = GetProcAddress(handle, 'cuGLUnmapBufferObjectAsync') + + global __cuProfilerInitialize + __cuProfilerInitialize = GetProcAddress(handle, 'cuProfilerInitialize') + + global __cuProfilerStart + __cuProfilerStart = GetProcAddress(handle, 'cuProfilerStart') + + global __cuProfilerStop + __cuProfilerStop = GetProcAddress(handle, 'cuProfilerStop') + + global __cuVDPAUGetDevice + __cuVDPAUGetDevice = GetProcAddress(handle, 'cuVDPAUGetDevice') + + global __cuVDPAUCtxCreate_v2 + __cuVDPAUCtxCreate_v2 = GetProcAddress(handle, 'cuVDPAUCtxCreate_v2') + + global __cuGraphicsVDPAURegisterVideoSurface + __cuGraphicsVDPAURegisterVideoSurface = GetProcAddress(handle, 'cuGraphicsVDPAURegisterVideoSurface') + + global __cuGraphicsVDPAURegisterOutputSurface + __cuGraphicsVDPAURegisterOutputSurface = GetProcAddress(handle, 'cuGraphicsVDPAURegisterOutputSurface') + + global __cuDeviceGetHostAtomicCapabilities + __cuDeviceGetHostAtomicCapabilities = GetProcAddress(handle, 'cuDeviceGetHostAtomicCapabilities') + + global __cuCtxGetDevice_v2 + __cuCtxGetDevice_v2 = GetProcAddress(handle, 'cuCtxGetDevice_v2') + + global __cuCtxSynchronize_v2 + __cuCtxSynchronize_v2 = GetProcAddress(handle, 'cuCtxSynchronize_v2') + + global __cuMemcpyBatchAsync_v2 + __cuMemcpyBatchAsync_v2 = GetProcAddress(handle, 'cuMemcpyBatchAsync_v2') + + global __cuMemcpy3DBatchAsync_v2 + __cuMemcpy3DBatchAsync_v2 = GetProcAddress(handle, 'cuMemcpy3DBatchAsync_v2') + + global __cuMemGetDefaultMemPool + __cuMemGetDefaultMemPool = GetProcAddress(handle, 'cuMemGetDefaultMemPool') + + global __cuMemGetMemPool + __cuMemGetMemPool = GetProcAddress(handle, 'cuMemGetMemPool') + + global __cuMemSetMemPool + __cuMemSetMemPool = GetProcAddress(handle, 'cuMemSetMemPool') + + global __cuMulticastBindMem_v2 + __cuMulticastBindMem_v2 = GetProcAddress(handle, 'cuMulticastBindMem_v2') + + global __cuMulticastBindAddr_v2 + __cuMulticastBindAddr_v2 = GetProcAddress(handle, 'cuMulticastBindAddr_v2') + + global __cuMemPrefetchBatchAsync + __cuMemPrefetchBatchAsync = GetProcAddress(handle, 'cuMemPrefetchBatchAsync') + + global __cuMemDiscardBatchAsync + __cuMemDiscardBatchAsync = GetProcAddress(handle, 'cuMemDiscardBatchAsync') + + global __cuMemDiscardAndPrefetchBatchAsync + __cuMemDiscardAndPrefetchBatchAsync = GetProcAddress(handle, 'cuMemDiscardAndPrefetchBatchAsync') + + global __cuGraphNodeGetContainingGraph + __cuGraphNodeGetContainingGraph = GetProcAddress(handle, 'cuGraphNodeGetContainingGraph') + + global __cuGraphNodeGetLocalId + __cuGraphNodeGetLocalId = GetProcAddress(handle, 'cuGraphNodeGetLocalId') + + global __cuGraphNodeGetToolsId + __cuGraphNodeGetToolsId = GetProcAddress(handle, 'cuGraphNodeGetToolsId') + + global __cuGraphGetId + __cuGraphGetId = GetProcAddress(handle, 'cuGraphGetId') + + global __cuGraphExecGetId + __cuGraphExecGetId = GetProcAddress(handle, 'cuGraphExecGetId') + + global __cuDeviceGetP2PAtomicCapabilities + __cuDeviceGetP2PAtomicCapabilities = GetProcAddress(handle, 'cuDeviceGetP2PAtomicCapabilities') + + global __cuDevSmResourceSplit + __cuDevSmResourceSplit = GetProcAddress(handle, 'cuDevSmResourceSplit') + + global __cuGreenCtxGetId + __cuGreenCtxGetId = GetProcAddress(handle, 'cuGreenCtxGetId') + + global __cuStreamGetDevResource + __cuStreamGetDevResource = GetProcAddress(handle, 'cuStreamGetDevResource') + + global __cuKernelGetParamCount + __cuKernelGetParamCount = GetProcAddress(handle, 'cuKernelGetParamCount') + + global __cuMemcpyWithAttributesAsync + __cuMemcpyWithAttributesAsync = GetProcAddress(handle, 'cuMemcpyWithAttributesAsync') + + global __cuMemcpy3DWithAttributesAsync + __cuMemcpy3DWithAttributesAsync = GetProcAddress(handle, 'cuMemcpy3DWithAttributesAsync') + + global __cuStreamBeginCaptureToCig + __cuStreamBeginCaptureToCig = GetProcAddress(handle, 'cuStreamBeginCaptureToCig') + + global __cuStreamEndCaptureToCig + __cuStreamEndCaptureToCig = GetProcAddress(handle, 'cuStreamEndCaptureToCig') + + global __cuFuncGetParamCount + __cuFuncGetParamCount = GetProcAddress(handle, 'cuFuncGetParamCount') + + global __cuLaunchHostFunc_v2 + __cuLaunchHostFunc_v2 = GetProcAddress(handle, 'cuLaunchHostFunc_v2') + + global __cuGraphNodeGetParams + __cuGraphNodeGetParams = GetProcAddress(handle, 'cuGraphNodeGetParams') + + global __cuCoredumpRegisterStartCallback + __cuCoredumpRegisterStartCallback = GetProcAddress(handle, 'cuCoredumpRegisterStartCallback') + + global __cuCoredumpRegisterCompleteCallback + __cuCoredumpRegisterCompleteCallback = GetProcAddress(handle, 'cuCoredumpRegisterCompleteCallback') + + global __cuCoredumpDeregisterStartCallback + __cuCoredumpDeregisterStartCallback = GetProcAddress(handle, 'cuCoredumpDeregisterStartCallback') + + global __cuCoredumpDeregisterCompleteCallback + __cuCoredumpDeregisterCompleteCallback = GetProcAddress(handle, 'cuCoredumpDeregisterCompleteCallback') + + __py_driver_init = True + return 0 + + +cdef inline int _check_or_init_driver() except -1 nogil: + if __py_driver_init: + return 0 + + return _init_driver() + +cdef dict func_ptrs = None + + +cpdef dict _inspect_function_pointers(): + global func_ptrs + if func_ptrs is not None: + return func_ptrs + + _check_or_init_driver() + cdef dict data = {} + + global __cuGetErrorString + data["__cuGetErrorString"] = __cuGetErrorString + + global __cuGetErrorName + data["__cuGetErrorName"] = __cuGetErrorName + + global __cuInit + data["__cuInit"] = __cuInit + + global __cuDriverGetVersion + data["__cuDriverGetVersion"] = __cuDriverGetVersion + + global __cuDeviceGet + data["__cuDeviceGet"] = __cuDeviceGet + + global __cuDeviceGetCount + data["__cuDeviceGetCount"] = __cuDeviceGetCount + + global __cuDeviceGetName + data["__cuDeviceGetName"] = __cuDeviceGetName + + global __cuDeviceGetUuid_v2 + data["__cuDeviceGetUuid_v2"] = __cuDeviceGetUuid_v2 + + global __cuDeviceGetLuid + data["__cuDeviceGetLuid"] = __cuDeviceGetLuid + + global __cuDeviceTotalMem_v2 + data["__cuDeviceTotalMem_v2"] = __cuDeviceTotalMem_v2 + + global __cuDeviceGetTexture1DLinearMaxWidth + data["__cuDeviceGetTexture1DLinearMaxWidth"] = __cuDeviceGetTexture1DLinearMaxWidth + + global __cuDeviceGetAttribute + data["__cuDeviceGetAttribute"] = __cuDeviceGetAttribute + + global __cuDeviceGetNvSciSyncAttributes + data["__cuDeviceGetNvSciSyncAttributes"] = __cuDeviceGetNvSciSyncAttributes + + global __cuDeviceSetMemPool + data["__cuDeviceSetMemPool"] = __cuDeviceSetMemPool + + global __cuDeviceGetMemPool + data["__cuDeviceGetMemPool"] = __cuDeviceGetMemPool + + global __cuDeviceGetDefaultMemPool + data["__cuDeviceGetDefaultMemPool"] = __cuDeviceGetDefaultMemPool + + global __cuDeviceGetExecAffinitySupport + data["__cuDeviceGetExecAffinitySupport"] = __cuDeviceGetExecAffinitySupport + + global __cuFlushGPUDirectRDMAWrites + data["__cuFlushGPUDirectRDMAWrites"] = __cuFlushGPUDirectRDMAWrites + + global __cuDeviceGetProperties + data["__cuDeviceGetProperties"] = __cuDeviceGetProperties + + global __cuDeviceComputeCapability + data["__cuDeviceComputeCapability"] = __cuDeviceComputeCapability + + global __cuDevicePrimaryCtxRetain + data["__cuDevicePrimaryCtxRetain"] = __cuDevicePrimaryCtxRetain + + global __cuDevicePrimaryCtxRelease_v2 + data["__cuDevicePrimaryCtxRelease_v2"] = __cuDevicePrimaryCtxRelease_v2 + + global __cuDevicePrimaryCtxSetFlags_v2 + data["__cuDevicePrimaryCtxSetFlags_v2"] = __cuDevicePrimaryCtxSetFlags_v2 + + global __cuDevicePrimaryCtxGetState + data["__cuDevicePrimaryCtxGetState"] = __cuDevicePrimaryCtxGetState + + global __cuDevicePrimaryCtxReset_v2 + data["__cuDevicePrimaryCtxReset_v2"] = __cuDevicePrimaryCtxReset_v2 + + global __cuCtxCreate_v4 + data["__cuCtxCreate_v4"] = __cuCtxCreate_v4 + + global __cuCtxDestroy_v2 + data["__cuCtxDestroy_v2"] = __cuCtxDestroy_v2 + + global __cuCtxPushCurrent_v2 + data["__cuCtxPushCurrent_v2"] = __cuCtxPushCurrent_v2 + + global __cuCtxPopCurrent_v2 + data["__cuCtxPopCurrent_v2"] = __cuCtxPopCurrent_v2 + + global __cuCtxSetCurrent + data["__cuCtxSetCurrent"] = __cuCtxSetCurrent + + global __cuCtxGetCurrent + data["__cuCtxGetCurrent"] = __cuCtxGetCurrent + + global __cuCtxGetDevice + data["__cuCtxGetDevice"] = __cuCtxGetDevice + + global __cuCtxGetFlags + data["__cuCtxGetFlags"] = __cuCtxGetFlags + + global __cuCtxSetFlags + data["__cuCtxSetFlags"] = __cuCtxSetFlags + + global __cuCtxGetId + data["__cuCtxGetId"] = __cuCtxGetId + + global __cuCtxSynchronize + data["__cuCtxSynchronize"] = __cuCtxSynchronize + + global __cuCtxSetLimit + data["__cuCtxSetLimit"] = __cuCtxSetLimit + + global __cuCtxGetLimit + data["__cuCtxGetLimit"] = __cuCtxGetLimit + + global __cuCtxGetCacheConfig + data["__cuCtxGetCacheConfig"] = __cuCtxGetCacheConfig + + global __cuCtxSetCacheConfig + data["__cuCtxSetCacheConfig"] = __cuCtxSetCacheConfig + + global __cuCtxGetApiVersion + data["__cuCtxGetApiVersion"] = __cuCtxGetApiVersion + + global __cuCtxGetStreamPriorityRange + data["__cuCtxGetStreamPriorityRange"] = __cuCtxGetStreamPriorityRange + + global __cuCtxResetPersistingL2Cache + data["__cuCtxResetPersistingL2Cache"] = __cuCtxResetPersistingL2Cache + + global __cuCtxGetExecAffinity + data["__cuCtxGetExecAffinity"] = __cuCtxGetExecAffinity + + global __cuCtxRecordEvent + data["__cuCtxRecordEvent"] = __cuCtxRecordEvent + + global __cuCtxWaitEvent + data["__cuCtxWaitEvent"] = __cuCtxWaitEvent + + global __cuCtxAttach + data["__cuCtxAttach"] = __cuCtxAttach + + global __cuCtxDetach + data["__cuCtxDetach"] = __cuCtxDetach + + global __cuCtxGetSharedMemConfig + data["__cuCtxGetSharedMemConfig"] = __cuCtxGetSharedMemConfig + + global __cuCtxSetSharedMemConfig + data["__cuCtxSetSharedMemConfig"] = __cuCtxSetSharedMemConfig + + global __cuModuleLoad + data["__cuModuleLoad"] = __cuModuleLoad + + global __cuModuleLoadData + data["__cuModuleLoadData"] = __cuModuleLoadData + + global __cuModuleLoadDataEx + data["__cuModuleLoadDataEx"] = __cuModuleLoadDataEx + + global __cuModuleLoadFatBinary + data["__cuModuleLoadFatBinary"] = __cuModuleLoadFatBinary + + global __cuModuleUnload + data["__cuModuleUnload"] = __cuModuleUnload + + global __cuModuleGetLoadingMode + data["__cuModuleGetLoadingMode"] = __cuModuleGetLoadingMode + + global __cuModuleGetFunction + data["__cuModuleGetFunction"] = __cuModuleGetFunction + + global __cuModuleGetFunctionCount + data["__cuModuleGetFunctionCount"] = __cuModuleGetFunctionCount + + global __cuModuleEnumerateFunctions + data["__cuModuleEnumerateFunctions"] = __cuModuleEnumerateFunctions + + global __cuModuleGetGlobal_v2 + data["__cuModuleGetGlobal_v2"] = __cuModuleGetGlobal_v2 + + global __cuLinkCreate_v2 + data["__cuLinkCreate_v2"] = __cuLinkCreate_v2 + + global __cuLinkAddData_v2 + data["__cuLinkAddData_v2"] = __cuLinkAddData_v2 + + global __cuLinkAddFile_v2 + data["__cuLinkAddFile_v2"] = __cuLinkAddFile_v2 + + global __cuLinkComplete + data["__cuLinkComplete"] = __cuLinkComplete + + global __cuLinkDestroy + data["__cuLinkDestroy"] = __cuLinkDestroy + + global __cuModuleGetTexRef + data["__cuModuleGetTexRef"] = __cuModuleGetTexRef + + global __cuModuleGetSurfRef + data["__cuModuleGetSurfRef"] = __cuModuleGetSurfRef + + global __cuLibraryLoadData + data["__cuLibraryLoadData"] = __cuLibraryLoadData + + global __cuLibraryLoadFromFile + data["__cuLibraryLoadFromFile"] = __cuLibraryLoadFromFile + + global __cuLibraryUnload + data["__cuLibraryUnload"] = __cuLibraryUnload + + global __cuLibraryGetKernel + data["__cuLibraryGetKernel"] = __cuLibraryGetKernel + + global __cuLibraryGetKernelCount + data["__cuLibraryGetKernelCount"] = __cuLibraryGetKernelCount + + global __cuLibraryEnumerateKernels + data["__cuLibraryEnumerateKernels"] = __cuLibraryEnumerateKernels + + global __cuLibraryGetModule + data["__cuLibraryGetModule"] = __cuLibraryGetModule + + global __cuKernelGetFunction + data["__cuKernelGetFunction"] = __cuKernelGetFunction + + global __cuKernelGetLibrary + data["__cuKernelGetLibrary"] = __cuKernelGetLibrary + + global __cuLibraryGetGlobal + data["__cuLibraryGetGlobal"] = __cuLibraryGetGlobal + + global __cuLibraryGetManaged + data["__cuLibraryGetManaged"] = __cuLibraryGetManaged + + global __cuLibraryGetUnifiedFunction + data["__cuLibraryGetUnifiedFunction"] = __cuLibraryGetUnifiedFunction + + global __cuKernelGetAttribute + data["__cuKernelGetAttribute"] = __cuKernelGetAttribute + + global __cuKernelSetAttribute + data["__cuKernelSetAttribute"] = __cuKernelSetAttribute + + global __cuKernelSetCacheConfig + data["__cuKernelSetCacheConfig"] = __cuKernelSetCacheConfig + + global __cuKernelGetName + data["__cuKernelGetName"] = __cuKernelGetName + + global __cuKernelGetParamInfo + data["__cuKernelGetParamInfo"] = __cuKernelGetParamInfo + + global __cuMemGetInfo_v2 + data["__cuMemGetInfo_v2"] = __cuMemGetInfo_v2 + + global __cuMemAlloc_v2 + data["__cuMemAlloc_v2"] = __cuMemAlloc_v2 + + global __cuMemAllocPitch_v2 + data["__cuMemAllocPitch_v2"] = __cuMemAllocPitch_v2 + + global __cuMemFree_v2 + data["__cuMemFree_v2"] = __cuMemFree_v2 + + global __cuMemGetAddressRange_v2 + data["__cuMemGetAddressRange_v2"] = __cuMemGetAddressRange_v2 + + global __cuMemAllocHost_v2 + data["__cuMemAllocHost_v2"] = __cuMemAllocHost_v2 + + global __cuMemFreeHost + data["__cuMemFreeHost"] = __cuMemFreeHost + + global __cuMemHostAlloc + data["__cuMemHostAlloc"] = __cuMemHostAlloc + + global __cuMemHostGetDevicePointer_v2 + data["__cuMemHostGetDevicePointer_v2"] = __cuMemHostGetDevicePointer_v2 + + global __cuMemHostGetFlags + data["__cuMemHostGetFlags"] = __cuMemHostGetFlags + + global __cuMemAllocManaged + data["__cuMemAllocManaged"] = __cuMemAllocManaged + + global __cuDeviceRegisterAsyncNotification + data["__cuDeviceRegisterAsyncNotification"] = __cuDeviceRegisterAsyncNotification + + global __cuDeviceUnregisterAsyncNotification + data["__cuDeviceUnregisterAsyncNotification"] = __cuDeviceUnregisterAsyncNotification + + global __cuDeviceGetByPCIBusId + data["__cuDeviceGetByPCIBusId"] = __cuDeviceGetByPCIBusId + + global __cuDeviceGetPCIBusId + data["__cuDeviceGetPCIBusId"] = __cuDeviceGetPCIBusId + + global __cuIpcGetEventHandle + data["__cuIpcGetEventHandle"] = __cuIpcGetEventHandle + + global __cuIpcOpenEventHandle + data["__cuIpcOpenEventHandle"] = __cuIpcOpenEventHandle + + global __cuIpcGetMemHandle + data["__cuIpcGetMemHandle"] = __cuIpcGetMemHandle + + global __cuIpcOpenMemHandle_v2 + data["__cuIpcOpenMemHandle_v2"] = __cuIpcOpenMemHandle_v2 + + global __cuIpcCloseMemHandle + data["__cuIpcCloseMemHandle"] = __cuIpcCloseMemHandle + + global __cuMemHostRegister_v2 + data["__cuMemHostRegister_v2"] = __cuMemHostRegister_v2 + + global __cuMemHostUnregister + data["__cuMemHostUnregister"] = __cuMemHostUnregister + + global __cuMemcpy + data["__cuMemcpy"] = __cuMemcpy + + global __cuMemcpyPeer + data["__cuMemcpyPeer"] = __cuMemcpyPeer + + global __cuMemcpyHtoD_v2 + data["__cuMemcpyHtoD_v2"] = __cuMemcpyHtoD_v2 + + global __cuMemcpyDtoH_v2 + data["__cuMemcpyDtoH_v2"] = __cuMemcpyDtoH_v2 + + global __cuMemcpyDtoD_v2 + data["__cuMemcpyDtoD_v2"] = __cuMemcpyDtoD_v2 + + global __cuMemcpyDtoA_v2 + data["__cuMemcpyDtoA_v2"] = __cuMemcpyDtoA_v2 + + global __cuMemcpyAtoD_v2 + data["__cuMemcpyAtoD_v2"] = __cuMemcpyAtoD_v2 + + global __cuMemcpyHtoA_v2 + data["__cuMemcpyHtoA_v2"] = __cuMemcpyHtoA_v2 + + global __cuMemcpyAtoH_v2 + data["__cuMemcpyAtoH_v2"] = __cuMemcpyAtoH_v2 + + global __cuMemcpyAtoA_v2 + data["__cuMemcpyAtoA_v2"] = __cuMemcpyAtoA_v2 + + global __cuMemcpy2D_v2 + data["__cuMemcpy2D_v2"] = __cuMemcpy2D_v2 + + global __cuMemcpy2DUnaligned_v2 + data["__cuMemcpy2DUnaligned_v2"] = __cuMemcpy2DUnaligned_v2 + + global __cuMemcpy3D_v2 + data["__cuMemcpy3D_v2"] = __cuMemcpy3D_v2 + + global __cuMemcpy3DPeer + data["__cuMemcpy3DPeer"] = __cuMemcpy3DPeer + + global __cuMemcpyAsync + data["__cuMemcpyAsync"] = __cuMemcpyAsync + + global __cuMemcpyPeerAsync + data["__cuMemcpyPeerAsync"] = __cuMemcpyPeerAsync + + global __cuMemcpyHtoDAsync_v2 + data["__cuMemcpyHtoDAsync_v2"] = __cuMemcpyHtoDAsync_v2 + + global __cuMemcpyDtoHAsync_v2 + data["__cuMemcpyDtoHAsync_v2"] = __cuMemcpyDtoHAsync_v2 + + global __cuMemcpyDtoDAsync_v2 + data["__cuMemcpyDtoDAsync_v2"] = __cuMemcpyDtoDAsync_v2 + + global __cuMemcpyHtoAAsync_v2 + data["__cuMemcpyHtoAAsync_v2"] = __cuMemcpyHtoAAsync_v2 + + global __cuMemcpyAtoHAsync_v2 + data["__cuMemcpyAtoHAsync_v2"] = __cuMemcpyAtoHAsync_v2 + + global __cuMemcpy2DAsync_v2 + data["__cuMemcpy2DAsync_v2"] = __cuMemcpy2DAsync_v2 + + global __cuMemcpy3DAsync_v2 + data["__cuMemcpy3DAsync_v2"] = __cuMemcpy3DAsync_v2 + + global __cuMemcpy3DPeerAsync + data["__cuMemcpy3DPeerAsync"] = __cuMemcpy3DPeerAsync + + global __cuMemsetD8_v2 + data["__cuMemsetD8_v2"] = __cuMemsetD8_v2 + + global __cuMemsetD16_v2 + data["__cuMemsetD16_v2"] = __cuMemsetD16_v2 + + global __cuMemsetD32_v2 + data["__cuMemsetD32_v2"] = __cuMemsetD32_v2 + + global __cuMemsetD2D8_v2 + data["__cuMemsetD2D8_v2"] = __cuMemsetD2D8_v2 + + global __cuMemsetD2D16_v2 + data["__cuMemsetD2D16_v2"] = __cuMemsetD2D16_v2 + + global __cuMemsetD2D32_v2 + data["__cuMemsetD2D32_v2"] = __cuMemsetD2D32_v2 + + global __cuMemsetD8Async + data["__cuMemsetD8Async"] = __cuMemsetD8Async + + global __cuMemsetD16Async + data["__cuMemsetD16Async"] = __cuMemsetD16Async + + global __cuMemsetD32Async + data["__cuMemsetD32Async"] = __cuMemsetD32Async + + global __cuMemsetD2D8Async + data["__cuMemsetD2D8Async"] = __cuMemsetD2D8Async + + global __cuMemsetD2D16Async + data["__cuMemsetD2D16Async"] = __cuMemsetD2D16Async + + global __cuMemsetD2D32Async + data["__cuMemsetD2D32Async"] = __cuMemsetD2D32Async + + global __cuArrayCreate_v2 + data["__cuArrayCreate_v2"] = __cuArrayCreate_v2 + + global __cuArrayGetDescriptor_v2 + data["__cuArrayGetDescriptor_v2"] = __cuArrayGetDescriptor_v2 + + global __cuArrayGetSparseProperties + data["__cuArrayGetSparseProperties"] = __cuArrayGetSparseProperties + + global __cuMipmappedArrayGetSparseProperties + data["__cuMipmappedArrayGetSparseProperties"] = __cuMipmappedArrayGetSparseProperties + + global __cuArrayGetMemoryRequirements + data["__cuArrayGetMemoryRequirements"] = __cuArrayGetMemoryRequirements + + global __cuMipmappedArrayGetMemoryRequirements + data["__cuMipmappedArrayGetMemoryRequirements"] = __cuMipmappedArrayGetMemoryRequirements + + global __cuArrayGetPlane + data["__cuArrayGetPlane"] = __cuArrayGetPlane + + global __cuArrayDestroy + data["__cuArrayDestroy"] = __cuArrayDestroy + + global __cuArray3DCreate_v2 + data["__cuArray3DCreate_v2"] = __cuArray3DCreate_v2 + + global __cuArray3DGetDescriptor_v2 + data["__cuArray3DGetDescriptor_v2"] = __cuArray3DGetDescriptor_v2 + + global __cuMipmappedArrayCreate + data["__cuMipmappedArrayCreate"] = __cuMipmappedArrayCreate + + global __cuMipmappedArrayGetLevel + data["__cuMipmappedArrayGetLevel"] = __cuMipmappedArrayGetLevel + + global __cuMipmappedArrayDestroy + data["__cuMipmappedArrayDestroy"] = __cuMipmappedArrayDestroy + + global __cuMemGetHandleForAddressRange + data["__cuMemGetHandleForAddressRange"] = __cuMemGetHandleForAddressRange + + global __cuMemBatchDecompressAsync + data["__cuMemBatchDecompressAsync"] = __cuMemBatchDecompressAsync + + global __cuMemAddressReserve + data["__cuMemAddressReserve"] = __cuMemAddressReserve + + global __cuMemAddressFree + data["__cuMemAddressFree"] = __cuMemAddressFree + + global __cuMemCreate + data["__cuMemCreate"] = __cuMemCreate + + global __cuMemRelease + data["__cuMemRelease"] = __cuMemRelease + + global __cuMemMap + data["__cuMemMap"] = __cuMemMap + + global __cuMemMapArrayAsync + data["__cuMemMapArrayAsync"] = __cuMemMapArrayAsync + + global __cuMemUnmap + data["__cuMemUnmap"] = __cuMemUnmap + + global __cuMemSetAccess + data["__cuMemSetAccess"] = __cuMemSetAccess + + global __cuMemGetAccess + data["__cuMemGetAccess"] = __cuMemGetAccess + + global __cuMemExportToShareableHandle + data["__cuMemExportToShareableHandle"] = __cuMemExportToShareableHandle + + global __cuMemImportFromShareableHandle + data["__cuMemImportFromShareableHandle"] = __cuMemImportFromShareableHandle + + global __cuMemGetAllocationGranularity + data["__cuMemGetAllocationGranularity"] = __cuMemGetAllocationGranularity + + global __cuMemGetAllocationPropertiesFromHandle + data["__cuMemGetAllocationPropertiesFromHandle"] = __cuMemGetAllocationPropertiesFromHandle + + global __cuMemRetainAllocationHandle + data["__cuMemRetainAllocationHandle"] = __cuMemRetainAllocationHandle + + global __cuMemFreeAsync + data["__cuMemFreeAsync"] = __cuMemFreeAsync + + global __cuMemAllocAsync + data["__cuMemAllocAsync"] = __cuMemAllocAsync + + global __cuMemPoolTrimTo + data["__cuMemPoolTrimTo"] = __cuMemPoolTrimTo + + global __cuMemPoolSetAttribute + data["__cuMemPoolSetAttribute"] = __cuMemPoolSetAttribute + + global __cuMemPoolGetAttribute + data["__cuMemPoolGetAttribute"] = __cuMemPoolGetAttribute + + global __cuMemPoolSetAccess + data["__cuMemPoolSetAccess"] = __cuMemPoolSetAccess + + global __cuMemPoolGetAccess + data["__cuMemPoolGetAccess"] = __cuMemPoolGetAccess + + global __cuMemPoolCreate + data["__cuMemPoolCreate"] = __cuMemPoolCreate + + global __cuMemPoolDestroy + data["__cuMemPoolDestroy"] = __cuMemPoolDestroy + + global __cuMemAllocFromPoolAsync + data["__cuMemAllocFromPoolAsync"] = __cuMemAllocFromPoolAsync + + global __cuMemPoolExportToShareableHandle + data["__cuMemPoolExportToShareableHandle"] = __cuMemPoolExportToShareableHandle + + global __cuMemPoolImportFromShareableHandle + data["__cuMemPoolImportFromShareableHandle"] = __cuMemPoolImportFromShareableHandle + + global __cuMemPoolExportPointer + data["__cuMemPoolExportPointer"] = __cuMemPoolExportPointer + + global __cuMemPoolImportPointer + data["__cuMemPoolImportPointer"] = __cuMemPoolImportPointer + + global __cuMulticastCreate + data["__cuMulticastCreate"] = __cuMulticastCreate + + global __cuMulticastAddDevice + data["__cuMulticastAddDevice"] = __cuMulticastAddDevice + + global __cuMulticastBindMem + data["__cuMulticastBindMem"] = __cuMulticastBindMem + + global __cuMulticastBindAddr + data["__cuMulticastBindAddr"] = __cuMulticastBindAddr + + global __cuMulticastUnbind + data["__cuMulticastUnbind"] = __cuMulticastUnbind + + global __cuMulticastGetGranularity + data["__cuMulticastGetGranularity"] = __cuMulticastGetGranularity + + global __cuPointerGetAttribute + data["__cuPointerGetAttribute"] = __cuPointerGetAttribute + + global __cuMemPrefetchAsync_v2 + data["__cuMemPrefetchAsync_v2"] = __cuMemPrefetchAsync_v2 + + global __cuMemAdvise_v2 + data["__cuMemAdvise_v2"] = __cuMemAdvise_v2 + + global __cuMemRangeGetAttribute + data["__cuMemRangeGetAttribute"] = __cuMemRangeGetAttribute + + global __cuMemRangeGetAttributes + data["__cuMemRangeGetAttributes"] = __cuMemRangeGetAttributes + + global __cuPointerSetAttribute + data["__cuPointerSetAttribute"] = __cuPointerSetAttribute + + global __cuPointerGetAttributes + data["__cuPointerGetAttributes"] = __cuPointerGetAttributes + + global __cuStreamCreate + data["__cuStreamCreate"] = __cuStreamCreate + + global __cuStreamCreateWithPriority + data["__cuStreamCreateWithPriority"] = __cuStreamCreateWithPriority + + global __cuStreamGetPriority + data["__cuStreamGetPriority"] = __cuStreamGetPriority + + global __cuStreamGetDevice + data["__cuStreamGetDevice"] = __cuStreamGetDevice + + global __cuStreamGetFlags + data["__cuStreamGetFlags"] = __cuStreamGetFlags + + global __cuStreamGetId + data["__cuStreamGetId"] = __cuStreamGetId + + global __cuStreamGetCtx + data["__cuStreamGetCtx"] = __cuStreamGetCtx + + global __cuStreamGetCtx_v2 + data["__cuStreamGetCtx_v2"] = __cuStreamGetCtx_v2 + + global __cuStreamWaitEvent + data["__cuStreamWaitEvent"] = __cuStreamWaitEvent + + global __cuStreamAddCallback + data["__cuStreamAddCallback"] = __cuStreamAddCallback + + global __cuStreamBeginCapture_v2 + data["__cuStreamBeginCapture_v2"] = __cuStreamBeginCapture_v2 + + global __cuStreamBeginCaptureToGraph + data["__cuStreamBeginCaptureToGraph"] = __cuStreamBeginCaptureToGraph + + global __cuThreadExchangeStreamCaptureMode + data["__cuThreadExchangeStreamCaptureMode"] = __cuThreadExchangeStreamCaptureMode + + global __cuStreamEndCapture + data["__cuStreamEndCapture"] = __cuStreamEndCapture + + global __cuStreamIsCapturing + data["__cuStreamIsCapturing"] = __cuStreamIsCapturing + + global __cuStreamGetCaptureInfo_v3 + data["__cuStreamGetCaptureInfo_v3"] = __cuStreamGetCaptureInfo_v3 + + global __cuStreamUpdateCaptureDependencies_v2 + data["__cuStreamUpdateCaptureDependencies_v2"] = __cuStreamUpdateCaptureDependencies_v2 + + global __cuStreamAttachMemAsync + data["__cuStreamAttachMemAsync"] = __cuStreamAttachMemAsync + + global __cuStreamQuery + data["__cuStreamQuery"] = __cuStreamQuery + + global __cuStreamSynchronize + data["__cuStreamSynchronize"] = __cuStreamSynchronize + + global __cuStreamDestroy_v2 + data["__cuStreamDestroy_v2"] = __cuStreamDestroy_v2 + + global __cuStreamCopyAttributes + data["__cuStreamCopyAttributes"] = __cuStreamCopyAttributes + + global __cuStreamGetAttribute + data["__cuStreamGetAttribute"] = __cuStreamGetAttribute + + global __cuStreamSetAttribute + data["__cuStreamSetAttribute"] = __cuStreamSetAttribute + + global __cuEventCreate + data["__cuEventCreate"] = __cuEventCreate + + global __cuEventRecord + data["__cuEventRecord"] = __cuEventRecord + + global __cuEventRecordWithFlags + data["__cuEventRecordWithFlags"] = __cuEventRecordWithFlags + + global __cuEventQuery + data["__cuEventQuery"] = __cuEventQuery + + global __cuEventSynchronize + data["__cuEventSynchronize"] = __cuEventSynchronize + + global __cuEventDestroy_v2 + data["__cuEventDestroy_v2"] = __cuEventDestroy_v2 + + global __cuEventElapsedTime_v2 + data["__cuEventElapsedTime_v2"] = __cuEventElapsedTime_v2 + + global __cuImportExternalMemory + data["__cuImportExternalMemory"] = __cuImportExternalMemory + + global __cuExternalMemoryGetMappedBuffer + data["__cuExternalMemoryGetMappedBuffer"] = __cuExternalMemoryGetMappedBuffer + + global __cuExternalMemoryGetMappedMipmappedArray + data["__cuExternalMemoryGetMappedMipmappedArray"] = __cuExternalMemoryGetMappedMipmappedArray + + global __cuDestroyExternalMemory + data["__cuDestroyExternalMemory"] = __cuDestroyExternalMemory + + global __cuImportExternalSemaphore + data["__cuImportExternalSemaphore"] = __cuImportExternalSemaphore + + global __cuSignalExternalSemaphoresAsync + data["__cuSignalExternalSemaphoresAsync"] = __cuSignalExternalSemaphoresAsync + + global __cuWaitExternalSemaphoresAsync + data["__cuWaitExternalSemaphoresAsync"] = __cuWaitExternalSemaphoresAsync + + global __cuDestroyExternalSemaphore + data["__cuDestroyExternalSemaphore"] = __cuDestroyExternalSemaphore + + global __cuStreamWaitValue32_v2 + data["__cuStreamWaitValue32_v2"] = __cuStreamWaitValue32_v2 + + global __cuStreamWaitValue64_v2 + data["__cuStreamWaitValue64_v2"] = __cuStreamWaitValue64_v2 + + global __cuStreamWriteValue32_v2 + data["__cuStreamWriteValue32_v2"] = __cuStreamWriteValue32_v2 + + global __cuStreamWriteValue64_v2 + data["__cuStreamWriteValue64_v2"] = __cuStreamWriteValue64_v2 + + global __cuStreamBatchMemOp_v2 + data["__cuStreamBatchMemOp_v2"] = __cuStreamBatchMemOp_v2 + + global __cuFuncGetAttribute + data["__cuFuncGetAttribute"] = __cuFuncGetAttribute + + global __cuFuncSetAttribute + data["__cuFuncSetAttribute"] = __cuFuncSetAttribute + + global __cuFuncSetCacheConfig + data["__cuFuncSetCacheConfig"] = __cuFuncSetCacheConfig + + global __cuFuncGetModule + data["__cuFuncGetModule"] = __cuFuncGetModule + + global __cuFuncGetName + data["__cuFuncGetName"] = __cuFuncGetName + + global __cuFuncGetParamInfo + data["__cuFuncGetParamInfo"] = __cuFuncGetParamInfo + + global __cuFuncIsLoaded + data["__cuFuncIsLoaded"] = __cuFuncIsLoaded + + global __cuFuncLoad + data["__cuFuncLoad"] = __cuFuncLoad + + global __cuLaunchKernel + data["__cuLaunchKernel"] = __cuLaunchKernel + + global __cuLaunchKernelEx + data["__cuLaunchKernelEx"] = __cuLaunchKernelEx + + global __cuLaunchCooperativeKernel + data["__cuLaunchCooperativeKernel"] = __cuLaunchCooperativeKernel + + global __cuLaunchCooperativeKernelMultiDevice + data["__cuLaunchCooperativeKernelMultiDevice"] = __cuLaunchCooperativeKernelMultiDevice + + global __cuLaunchHostFunc + data["__cuLaunchHostFunc"] = __cuLaunchHostFunc + + global __cuFuncSetBlockShape + data["__cuFuncSetBlockShape"] = __cuFuncSetBlockShape + + global __cuFuncSetSharedSize + data["__cuFuncSetSharedSize"] = __cuFuncSetSharedSize + + global __cuParamSetSize + data["__cuParamSetSize"] = __cuParamSetSize + + global __cuParamSeti + data["__cuParamSeti"] = __cuParamSeti + + global __cuParamSetf + data["__cuParamSetf"] = __cuParamSetf + + global __cuParamSetv + data["__cuParamSetv"] = __cuParamSetv + + global __cuLaunch + data["__cuLaunch"] = __cuLaunch + + global __cuLaunchGrid + data["__cuLaunchGrid"] = __cuLaunchGrid + + global __cuLaunchGridAsync + data["__cuLaunchGridAsync"] = __cuLaunchGridAsync + + global __cuParamSetTexRef + data["__cuParamSetTexRef"] = __cuParamSetTexRef + + global __cuFuncSetSharedMemConfig + data["__cuFuncSetSharedMemConfig"] = __cuFuncSetSharedMemConfig + + global __cuGraphCreate + data["__cuGraphCreate"] = __cuGraphCreate + + global __cuGraphAddKernelNode_v2 + data["__cuGraphAddKernelNode_v2"] = __cuGraphAddKernelNode_v2 + + global __cuGraphKernelNodeGetParams_v2 + data["__cuGraphKernelNodeGetParams_v2"] = __cuGraphKernelNodeGetParams_v2 + + global __cuGraphKernelNodeSetParams_v2 + data["__cuGraphKernelNodeSetParams_v2"] = __cuGraphKernelNodeSetParams_v2 + + global __cuGraphAddMemcpyNode + data["__cuGraphAddMemcpyNode"] = __cuGraphAddMemcpyNode + + global __cuGraphMemcpyNodeGetParams + data["__cuGraphMemcpyNodeGetParams"] = __cuGraphMemcpyNodeGetParams + + global __cuGraphMemcpyNodeSetParams + data["__cuGraphMemcpyNodeSetParams"] = __cuGraphMemcpyNodeSetParams + + global __cuGraphAddMemsetNode + data["__cuGraphAddMemsetNode"] = __cuGraphAddMemsetNode + + global __cuGraphMemsetNodeGetParams + data["__cuGraphMemsetNodeGetParams"] = __cuGraphMemsetNodeGetParams + + global __cuGraphMemsetNodeSetParams + data["__cuGraphMemsetNodeSetParams"] = __cuGraphMemsetNodeSetParams + + global __cuGraphAddHostNode + data["__cuGraphAddHostNode"] = __cuGraphAddHostNode + + global __cuGraphHostNodeGetParams + data["__cuGraphHostNodeGetParams"] = __cuGraphHostNodeGetParams + + global __cuGraphHostNodeSetParams + data["__cuGraphHostNodeSetParams"] = __cuGraphHostNodeSetParams + + global __cuGraphAddChildGraphNode + data["__cuGraphAddChildGraphNode"] = __cuGraphAddChildGraphNode + + global __cuGraphChildGraphNodeGetGraph + data["__cuGraphChildGraphNodeGetGraph"] = __cuGraphChildGraphNodeGetGraph + + global __cuGraphAddEmptyNode + data["__cuGraphAddEmptyNode"] = __cuGraphAddEmptyNode + + global __cuGraphAddEventRecordNode + data["__cuGraphAddEventRecordNode"] = __cuGraphAddEventRecordNode + + global __cuGraphEventRecordNodeGetEvent + data["__cuGraphEventRecordNodeGetEvent"] = __cuGraphEventRecordNodeGetEvent + + global __cuGraphEventRecordNodeSetEvent + data["__cuGraphEventRecordNodeSetEvent"] = __cuGraphEventRecordNodeSetEvent + + global __cuGraphAddEventWaitNode + data["__cuGraphAddEventWaitNode"] = __cuGraphAddEventWaitNode + + global __cuGraphEventWaitNodeGetEvent + data["__cuGraphEventWaitNodeGetEvent"] = __cuGraphEventWaitNodeGetEvent + + global __cuGraphEventWaitNodeSetEvent + data["__cuGraphEventWaitNodeSetEvent"] = __cuGraphEventWaitNodeSetEvent + + global __cuGraphAddExternalSemaphoresSignalNode + data["__cuGraphAddExternalSemaphoresSignalNode"] = __cuGraphAddExternalSemaphoresSignalNode + + global __cuGraphExternalSemaphoresSignalNodeGetParams + data["__cuGraphExternalSemaphoresSignalNodeGetParams"] = __cuGraphExternalSemaphoresSignalNodeGetParams + + global __cuGraphExternalSemaphoresSignalNodeSetParams + data["__cuGraphExternalSemaphoresSignalNodeSetParams"] = __cuGraphExternalSemaphoresSignalNodeSetParams + + global __cuGraphAddExternalSemaphoresWaitNode + data["__cuGraphAddExternalSemaphoresWaitNode"] = __cuGraphAddExternalSemaphoresWaitNode + + global __cuGraphExternalSemaphoresWaitNodeGetParams + data["__cuGraphExternalSemaphoresWaitNodeGetParams"] = __cuGraphExternalSemaphoresWaitNodeGetParams + + global __cuGraphExternalSemaphoresWaitNodeSetParams + data["__cuGraphExternalSemaphoresWaitNodeSetParams"] = __cuGraphExternalSemaphoresWaitNodeSetParams + + global __cuGraphAddBatchMemOpNode + data["__cuGraphAddBatchMemOpNode"] = __cuGraphAddBatchMemOpNode + + global __cuGraphBatchMemOpNodeGetParams + data["__cuGraphBatchMemOpNodeGetParams"] = __cuGraphBatchMemOpNodeGetParams + + global __cuGraphBatchMemOpNodeSetParams + data["__cuGraphBatchMemOpNodeSetParams"] = __cuGraphBatchMemOpNodeSetParams + + global __cuGraphExecBatchMemOpNodeSetParams + data["__cuGraphExecBatchMemOpNodeSetParams"] = __cuGraphExecBatchMemOpNodeSetParams + + global __cuGraphAddMemAllocNode + data["__cuGraphAddMemAllocNode"] = __cuGraphAddMemAllocNode + + global __cuGraphMemAllocNodeGetParams + data["__cuGraphMemAllocNodeGetParams"] = __cuGraphMemAllocNodeGetParams + + global __cuGraphAddMemFreeNode + data["__cuGraphAddMemFreeNode"] = __cuGraphAddMemFreeNode + + global __cuGraphMemFreeNodeGetParams + data["__cuGraphMemFreeNodeGetParams"] = __cuGraphMemFreeNodeGetParams + + global __cuDeviceGraphMemTrim + data["__cuDeviceGraphMemTrim"] = __cuDeviceGraphMemTrim + + global __cuDeviceGetGraphMemAttribute + data["__cuDeviceGetGraphMemAttribute"] = __cuDeviceGetGraphMemAttribute + + global __cuDeviceSetGraphMemAttribute + data["__cuDeviceSetGraphMemAttribute"] = __cuDeviceSetGraphMemAttribute + + global __cuGraphClone + data["__cuGraphClone"] = __cuGraphClone + + global __cuGraphNodeFindInClone + data["__cuGraphNodeFindInClone"] = __cuGraphNodeFindInClone + + global __cuGraphNodeGetType + data["__cuGraphNodeGetType"] = __cuGraphNodeGetType + + global __cuGraphGetNodes + data["__cuGraphGetNodes"] = __cuGraphGetNodes + + global __cuGraphGetRootNodes + data["__cuGraphGetRootNodes"] = __cuGraphGetRootNodes + + global __cuGraphGetEdges_v2 + data["__cuGraphGetEdges_v2"] = __cuGraphGetEdges_v2 + + global __cuGraphNodeGetDependencies_v2 + data["__cuGraphNodeGetDependencies_v2"] = __cuGraphNodeGetDependencies_v2 + + global __cuGraphNodeGetDependentNodes_v2 + data["__cuGraphNodeGetDependentNodes_v2"] = __cuGraphNodeGetDependentNodes_v2 + + global __cuGraphAddDependencies_v2 + data["__cuGraphAddDependencies_v2"] = __cuGraphAddDependencies_v2 + + global __cuGraphRemoveDependencies_v2 + data["__cuGraphRemoveDependencies_v2"] = __cuGraphRemoveDependencies_v2 + + global __cuGraphDestroyNode + data["__cuGraphDestroyNode"] = __cuGraphDestroyNode + + global __cuGraphInstantiateWithFlags + data["__cuGraphInstantiateWithFlags"] = __cuGraphInstantiateWithFlags + + global __cuGraphInstantiateWithParams + data["__cuGraphInstantiateWithParams"] = __cuGraphInstantiateWithParams + + global __cuGraphExecGetFlags + data["__cuGraphExecGetFlags"] = __cuGraphExecGetFlags + + global __cuGraphExecKernelNodeSetParams_v2 + data["__cuGraphExecKernelNodeSetParams_v2"] = __cuGraphExecKernelNodeSetParams_v2 + + global __cuGraphExecMemcpyNodeSetParams + data["__cuGraphExecMemcpyNodeSetParams"] = __cuGraphExecMemcpyNodeSetParams + + global __cuGraphExecMemsetNodeSetParams + data["__cuGraphExecMemsetNodeSetParams"] = __cuGraphExecMemsetNodeSetParams + + global __cuGraphExecHostNodeSetParams + data["__cuGraphExecHostNodeSetParams"] = __cuGraphExecHostNodeSetParams + + global __cuGraphExecChildGraphNodeSetParams + data["__cuGraphExecChildGraphNodeSetParams"] = __cuGraphExecChildGraphNodeSetParams + + global __cuGraphExecEventRecordNodeSetEvent + data["__cuGraphExecEventRecordNodeSetEvent"] = __cuGraphExecEventRecordNodeSetEvent + + global __cuGraphExecEventWaitNodeSetEvent + data["__cuGraphExecEventWaitNodeSetEvent"] = __cuGraphExecEventWaitNodeSetEvent + + global __cuGraphExecExternalSemaphoresSignalNodeSetParams + data["__cuGraphExecExternalSemaphoresSignalNodeSetParams"] = __cuGraphExecExternalSemaphoresSignalNodeSetParams + + global __cuGraphExecExternalSemaphoresWaitNodeSetParams + data["__cuGraphExecExternalSemaphoresWaitNodeSetParams"] = __cuGraphExecExternalSemaphoresWaitNodeSetParams + + global __cuGraphNodeSetEnabled + data["__cuGraphNodeSetEnabled"] = __cuGraphNodeSetEnabled + + global __cuGraphNodeGetEnabled + data["__cuGraphNodeGetEnabled"] = __cuGraphNodeGetEnabled + + global __cuGraphUpload + data["__cuGraphUpload"] = __cuGraphUpload + + global __cuGraphLaunch + data["__cuGraphLaunch"] = __cuGraphLaunch + + global __cuGraphExecDestroy + data["__cuGraphExecDestroy"] = __cuGraphExecDestroy + + global __cuGraphDestroy + data["__cuGraphDestroy"] = __cuGraphDestroy + + global __cuGraphExecUpdate_v2 + data["__cuGraphExecUpdate_v2"] = __cuGraphExecUpdate_v2 + + global __cuGraphKernelNodeCopyAttributes + data["__cuGraphKernelNodeCopyAttributes"] = __cuGraphKernelNodeCopyAttributes + + global __cuGraphKernelNodeGetAttribute + data["__cuGraphKernelNodeGetAttribute"] = __cuGraphKernelNodeGetAttribute + + global __cuGraphKernelNodeSetAttribute + data["__cuGraphKernelNodeSetAttribute"] = __cuGraphKernelNodeSetAttribute + + global __cuGraphDebugDotPrint + data["__cuGraphDebugDotPrint"] = __cuGraphDebugDotPrint + + global __cuUserObjectCreate + data["__cuUserObjectCreate"] = __cuUserObjectCreate + + global __cuUserObjectRetain + data["__cuUserObjectRetain"] = __cuUserObjectRetain + + global __cuUserObjectRelease + data["__cuUserObjectRelease"] = __cuUserObjectRelease + + global __cuGraphRetainUserObject + data["__cuGraphRetainUserObject"] = __cuGraphRetainUserObject + + global __cuGraphReleaseUserObject + data["__cuGraphReleaseUserObject"] = __cuGraphReleaseUserObject + + global __cuGraphAddNode_v2 + data["__cuGraphAddNode_v2"] = __cuGraphAddNode_v2 + + global __cuGraphNodeSetParams + data["__cuGraphNodeSetParams"] = __cuGraphNodeSetParams + + global __cuGraphExecNodeSetParams + data["__cuGraphExecNodeSetParams"] = __cuGraphExecNodeSetParams + + global __cuGraphConditionalHandleCreate + data["__cuGraphConditionalHandleCreate"] = __cuGraphConditionalHandleCreate + + global __cuOccupancyMaxActiveBlocksPerMultiprocessor + data["__cuOccupancyMaxActiveBlocksPerMultiprocessor"] = __cuOccupancyMaxActiveBlocksPerMultiprocessor + + global __cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags + data["__cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags"] = __cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags + + global __cuOccupancyMaxPotentialBlockSize + data["__cuOccupancyMaxPotentialBlockSize"] = __cuOccupancyMaxPotentialBlockSize + + global __cuOccupancyMaxPotentialBlockSizeWithFlags + data["__cuOccupancyMaxPotentialBlockSizeWithFlags"] = __cuOccupancyMaxPotentialBlockSizeWithFlags + + global __cuOccupancyAvailableDynamicSMemPerBlock + data["__cuOccupancyAvailableDynamicSMemPerBlock"] = __cuOccupancyAvailableDynamicSMemPerBlock + + global __cuOccupancyMaxPotentialClusterSize + data["__cuOccupancyMaxPotentialClusterSize"] = __cuOccupancyMaxPotentialClusterSize + + global __cuOccupancyMaxActiveClusters + data["__cuOccupancyMaxActiveClusters"] = __cuOccupancyMaxActiveClusters + + global __cuTexRefSetArray + data["__cuTexRefSetArray"] = __cuTexRefSetArray + + global __cuTexRefSetMipmappedArray + data["__cuTexRefSetMipmappedArray"] = __cuTexRefSetMipmappedArray + + global __cuTexRefSetAddress_v2 + data["__cuTexRefSetAddress_v2"] = __cuTexRefSetAddress_v2 + + global __cuTexRefSetAddress2D_v3 + data["__cuTexRefSetAddress2D_v3"] = __cuTexRefSetAddress2D_v3 + + global __cuTexRefSetFormat + data["__cuTexRefSetFormat"] = __cuTexRefSetFormat + + global __cuTexRefSetAddressMode + data["__cuTexRefSetAddressMode"] = __cuTexRefSetAddressMode + + global __cuTexRefSetFilterMode + data["__cuTexRefSetFilterMode"] = __cuTexRefSetFilterMode + + global __cuTexRefSetMipmapFilterMode + data["__cuTexRefSetMipmapFilterMode"] = __cuTexRefSetMipmapFilterMode + + global __cuTexRefSetMipmapLevelBias + data["__cuTexRefSetMipmapLevelBias"] = __cuTexRefSetMipmapLevelBias + + global __cuTexRefSetMipmapLevelClamp + data["__cuTexRefSetMipmapLevelClamp"] = __cuTexRefSetMipmapLevelClamp + + global __cuTexRefSetMaxAnisotropy + data["__cuTexRefSetMaxAnisotropy"] = __cuTexRefSetMaxAnisotropy + + global __cuTexRefSetBorderColor + data["__cuTexRefSetBorderColor"] = __cuTexRefSetBorderColor + + global __cuTexRefSetFlags + data["__cuTexRefSetFlags"] = __cuTexRefSetFlags + + global __cuTexRefGetAddress_v2 + data["__cuTexRefGetAddress_v2"] = __cuTexRefGetAddress_v2 + + global __cuTexRefGetArray + data["__cuTexRefGetArray"] = __cuTexRefGetArray + + global __cuTexRefGetMipmappedArray + data["__cuTexRefGetMipmappedArray"] = __cuTexRefGetMipmappedArray + + global __cuTexRefGetAddressMode + data["__cuTexRefGetAddressMode"] = __cuTexRefGetAddressMode + + global __cuTexRefGetFilterMode + data["__cuTexRefGetFilterMode"] = __cuTexRefGetFilterMode + + global __cuTexRefGetFormat + data["__cuTexRefGetFormat"] = __cuTexRefGetFormat + + global __cuTexRefGetMipmapFilterMode + data["__cuTexRefGetMipmapFilterMode"] = __cuTexRefGetMipmapFilterMode + + global __cuTexRefGetMipmapLevelBias + data["__cuTexRefGetMipmapLevelBias"] = __cuTexRefGetMipmapLevelBias + + global __cuTexRefGetMipmapLevelClamp + data["__cuTexRefGetMipmapLevelClamp"] = __cuTexRefGetMipmapLevelClamp + + global __cuTexRefGetMaxAnisotropy + data["__cuTexRefGetMaxAnisotropy"] = __cuTexRefGetMaxAnisotropy + + global __cuTexRefGetBorderColor + data["__cuTexRefGetBorderColor"] = __cuTexRefGetBorderColor + + global __cuTexRefGetFlags + data["__cuTexRefGetFlags"] = __cuTexRefGetFlags + + global __cuTexRefCreate + data["__cuTexRefCreate"] = __cuTexRefCreate + + global __cuTexRefDestroy + data["__cuTexRefDestroy"] = __cuTexRefDestroy + + global __cuSurfRefSetArray + data["__cuSurfRefSetArray"] = __cuSurfRefSetArray + + global __cuSurfRefGetArray + data["__cuSurfRefGetArray"] = __cuSurfRefGetArray + + global __cuTexObjectCreate + data["__cuTexObjectCreate"] = __cuTexObjectCreate + + global __cuTexObjectDestroy + data["__cuTexObjectDestroy"] = __cuTexObjectDestroy + + global __cuTexObjectGetResourceDesc + data["__cuTexObjectGetResourceDesc"] = __cuTexObjectGetResourceDesc + + global __cuTexObjectGetTextureDesc + data["__cuTexObjectGetTextureDesc"] = __cuTexObjectGetTextureDesc + + global __cuTexObjectGetResourceViewDesc + data["__cuTexObjectGetResourceViewDesc"] = __cuTexObjectGetResourceViewDesc + + global __cuSurfObjectCreate + data["__cuSurfObjectCreate"] = __cuSurfObjectCreate + + global __cuSurfObjectDestroy + data["__cuSurfObjectDestroy"] = __cuSurfObjectDestroy + + global __cuSurfObjectGetResourceDesc + data["__cuSurfObjectGetResourceDesc"] = __cuSurfObjectGetResourceDesc + + global __cuTensorMapEncodeTiled + data["__cuTensorMapEncodeTiled"] = __cuTensorMapEncodeTiled + + global __cuTensorMapEncodeIm2col + data["__cuTensorMapEncodeIm2col"] = __cuTensorMapEncodeIm2col + + global __cuTensorMapEncodeIm2colWide + data["__cuTensorMapEncodeIm2colWide"] = __cuTensorMapEncodeIm2colWide + + global __cuTensorMapReplaceAddress + data["__cuTensorMapReplaceAddress"] = __cuTensorMapReplaceAddress + + global __cuDeviceCanAccessPeer + data["__cuDeviceCanAccessPeer"] = __cuDeviceCanAccessPeer + + global __cuCtxEnablePeerAccess + data["__cuCtxEnablePeerAccess"] = __cuCtxEnablePeerAccess + + global __cuCtxDisablePeerAccess + data["__cuCtxDisablePeerAccess"] = __cuCtxDisablePeerAccess + + global __cuDeviceGetP2PAttribute + data["__cuDeviceGetP2PAttribute"] = __cuDeviceGetP2PAttribute + + global __cuGraphicsUnregisterResource + data["__cuGraphicsUnregisterResource"] = __cuGraphicsUnregisterResource + + global __cuGraphicsSubResourceGetMappedArray + data["__cuGraphicsSubResourceGetMappedArray"] = __cuGraphicsSubResourceGetMappedArray + + global __cuGraphicsResourceGetMappedMipmappedArray + data["__cuGraphicsResourceGetMappedMipmappedArray"] = __cuGraphicsResourceGetMappedMipmappedArray + + global __cuGraphicsResourceGetMappedPointer_v2 + data["__cuGraphicsResourceGetMappedPointer_v2"] = __cuGraphicsResourceGetMappedPointer_v2 + + global __cuGraphicsResourceSetMapFlags_v2 + data["__cuGraphicsResourceSetMapFlags_v2"] = __cuGraphicsResourceSetMapFlags_v2 + + global __cuGraphicsMapResources + data["__cuGraphicsMapResources"] = __cuGraphicsMapResources + + global __cuGraphicsUnmapResources + data["__cuGraphicsUnmapResources"] = __cuGraphicsUnmapResources + + global __cuGetProcAddress_v2 + data["__cuGetProcAddress_v2"] = __cuGetProcAddress_v2 + + global __cuCoredumpGetAttribute + data["__cuCoredumpGetAttribute"] = __cuCoredumpGetAttribute + + global __cuCoredumpGetAttributeGlobal + data["__cuCoredumpGetAttributeGlobal"] = __cuCoredumpGetAttributeGlobal + + global __cuCoredumpSetAttribute + data["__cuCoredumpSetAttribute"] = __cuCoredumpSetAttribute + + global __cuCoredumpSetAttributeGlobal + data["__cuCoredumpSetAttributeGlobal"] = __cuCoredumpSetAttributeGlobal + + global __cuGetExportTable + data["__cuGetExportTable"] = __cuGetExportTable + + global __cuGreenCtxCreate + data["__cuGreenCtxCreate"] = __cuGreenCtxCreate + + global __cuGreenCtxDestroy + data["__cuGreenCtxDestroy"] = __cuGreenCtxDestroy + + global __cuCtxFromGreenCtx + data["__cuCtxFromGreenCtx"] = __cuCtxFromGreenCtx + + global __cuDeviceGetDevResource + data["__cuDeviceGetDevResource"] = __cuDeviceGetDevResource + + global __cuCtxGetDevResource + data["__cuCtxGetDevResource"] = __cuCtxGetDevResource + + global __cuGreenCtxGetDevResource + data["__cuGreenCtxGetDevResource"] = __cuGreenCtxGetDevResource + + global __cuDevSmResourceSplitByCount + data["__cuDevSmResourceSplitByCount"] = __cuDevSmResourceSplitByCount + + global __cuDevResourceGenerateDesc + data["__cuDevResourceGenerateDesc"] = __cuDevResourceGenerateDesc + + global __cuGreenCtxRecordEvent + data["__cuGreenCtxRecordEvent"] = __cuGreenCtxRecordEvent + + global __cuGreenCtxWaitEvent + data["__cuGreenCtxWaitEvent"] = __cuGreenCtxWaitEvent + + global __cuStreamGetGreenCtx + data["__cuStreamGetGreenCtx"] = __cuStreamGetGreenCtx + + global __cuGreenCtxStreamCreate + data["__cuGreenCtxStreamCreate"] = __cuGreenCtxStreamCreate + + global __cuLogsRegisterCallback + data["__cuLogsRegisterCallback"] = __cuLogsRegisterCallback + + global __cuLogsUnregisterCallback + data["__cuLogsUnregisterCallback"] = __cuLogsUnregisterCallback + + global __cuLogsCurrent + data["__cuLogsCurrent"] = __cuLogsCurrent + + global __cuLogsDumpToFile + data["__cuLogsDumpToFile"] = __cuLogsDumpToFile + + global __cuLogsDumpToMemory + data["__cuLogsDumpToMemory"] = __cuLogsDumpToMemory + + global __cuCheckpointProcessGetRestoreThreadId + data["__cuCheckpointProcessGetRestoreThreadId"] = __cuCheckpointProcessGetRestoreThreadId + + global __cuCheckpointProcessGetState + data["__cuCheckpointProcessGetState"] = __cuCheckpointProcessGetState + + global __cuCheckpointProcessLock + data["__cuCheckpointProcessLock"] = __cuCheckpointProcessLock + + global __cuCheckpointProcessCheckpoint + data["__cuCheckpointProcessCheckpoint"] = __cuCheckpointProcessCheckpoint + + global __cuCheckpointProcessRestore + data["__cuCheckpointProcessRestore"] = __cuCheckpointProcessRestore + + global __cuCheckpointProcessUnlock + data["__cuCheckpointProcessUnlock"] = __cuCheckpointProcessUnlock + + global __cuGraphicsEGLRegisterImage + data["__cuGraphicsEGLRegisterImage"] = __cuGraphicsEGLRegisterImage + + global __cuEGLStreamConsumerConnect + data["__cuEGLStreamConsumerConnect"] = __cuEGLStreamConsumerConnect + + global __cuEGLStreamConsumerConnectWithFlags + data["__cuEGLStreamConsumerConnectWithFlags"] = __cuEGLStreamConsumerConnectWithFlags + + global __cuEGLStreamConsumerDisconnect + data["__cuEGLStreamConsumerDisconnect"] = __cuEGLStreamConsumerDisconnect + + global __cuEGLStreamConsumerAcquireFrame + data["__cuEGLStreamConsumerAcquireFrame"] = __cuEGLStreamConsumerAcquireFrame + + global __cuEGLStreamConsumerReleaseFrame + data["__cuEGLStreamConsumerReleaseFrame"] = __cuEGLStreamConsumerReleaseFrame + + global __cuEGLStreamProducerConnect + data["__cuEGLStreamProducerConnect"] = __cuEGLStreamProducerConnect + + global __cuEGLStreamProducerDisconnect + data["__cuEGLStreamProducerDisconnect"] = __cuEGLStreamProducerDisconnect + + global __cuEGLStreamProducerPresentFrame + data["__cuEGLStreamProducerPresentFrame"] = __cuEGLStreamProducerPresentFrame + + global __cuEGLStreamProducerReturnFrame + data["__cuEGLStreamProducerReturnFrame"] = __cuEGLStreamProducerReturnFrame + + global __cuGraphicsResourceGetMappedEglFrame + data["__cuGraphicsResourceGetMappedEglFrame"] = __cuGraphicsResourceGetMappedEglFrame + + global __cuEventCreateFromEGLSync + data["__cuEventCreateFromEGLSync"] = __cuEventCreateFromEGLSync + + global __cuGraphicsGLRegisterBuffer + data["__cuGraphicsGLRegisterBuffer"] = __cuGraphicsGLRegisterBuffer + + global __cuGraphicsGLRegisterImage + data["__cuGraphicsGLRegisterImage"] = __cuGraphicsGLRegisterImage + + global __cuGLGetDevices_v2 + data["__cuGLGetDevices_v2"] = __cuGLGetDevices_v2 + + global __cuGLCtxCreate_v2 + data["__cuGLCtxCreate_v2"] = __cuGLCtxCreate_v2 + + global __cuGLInit + data["__cuGLInit"] = __cuGLInit + + global __cuGLRegisterBufferObject + data["__cuGLRegisterBufferObject"] = __cuGLRegisterBufferObject + + global __cuGLMapBufferObject_v2 + data["__cuGLMapBufferObject_v2"] = __cuGLMapBufferObject_v2 + + global __cuGLUnmapBufferObject + data["__cuGLUnmapBufferObject"] = __cuGLUnmapBufferObject + + global __cuGLUnregisterBufferObject + data["__cuGLUnregisterBufferObject"] = __cuGLUnregisterBufferObject + + global __cuGLSetBufferObjectMapFlags + data["__cuGLSetBufferObjectMapFlags"] = __cuGLSetBufferObjectMapFlags + + global __cuGLMapBufferObjectAsync_v2 + data["__cuGLMapBufferObjectAsync_v2"] = __cuGLMapBufferObjectAsync_v2 + + global __cuGLUnmapBufferObjectAsync + data["__cuGLUnmapBufferObjectAsync"] = __cuGLUnmapBufferObjectAsync + + global __cuProfilerInitialize + data["__cuProfilerInitialize"] = __cuProfilerInitialize + + global __cuProfilerStart + data["__cuProfilerStart"] = __cuProfilerStart + + global __cuProfilerStop + data["__cuProfilerStop"] = __cuProfilerStop + + global __cuVDPAUGetDevice + data["__cuVDPAUGetDevice"] = __cuVDPAUGetDevice + + global __cuVDPAUCtxCreate_v2 + data["__cuVDPAUCtxCreate_v2"] = __cuVDPAUCtxCreate_v2 + + global __cuGraphicsVDPAURegisterVideoSurface + data["__cuGraphicsVDPAURegisterVideoSurface"] = __cuGraphicsVDPAURegisterVideoSurface + + global __cuGraphicsVDPAURegisterOutputSurface + data["__cuGraphicsVDPAURegisterOutputSurface"] = __cuGraphicsVDPAURegisterOutputSurface + + global __cuDeviceGetHostAtomicCapabilities + data["__cuDeviceGetHostAtomicCapabilities"] = __cuDeviceGetHostAtomicCapabilities + + global __cuCtxGetDevice_v2 + data["__cuCtxGetDevice_v2"] = __cuCtxGetDevice_v2 + + global __cuCtxSynchronize_v2 + data["__cuCtxSynchronize_v2"] = __cuCtxSynchronize_v2 + + global __cuMemcpyBatchAsync_v2 + data["__cuMemcpyBatchAsync_v2"] = __cuMemcpyBatchAsync_v2 + + global __cuMemcpy3DBatchAsync_v2 + data["__cuMemcpy3DBatchAsync_v2"] = __cuMemcpy3DBatchAsync_v2 + + global __cuMemGetDefaultMemPool + data["__cuMemGetDefaultMemPool"] = __cuMemGetDefaultMemPool + + global __cuMemGetMemPool + data["__cuMemGetMemPool"] = __cuMemGetMemPool + + global __cuMemSetMemPool + data["__cuMemSetMemPool"] = __cuMemSetMemPool + + global __cuMulticastBindMem_v2 + data["__cuMulticastBindMem_v2"] = __cuMulticastBindMem_v2 + + global __cuMulticastBindAddr_v2 + data["__cuMulticastBindAddr_v2"] = __cuMulticastBindAddr_v2 + + global __cuMemPrefetchBatchAsync + data["__cuMemPrefetchBatchAsync"] = __cuMemPrefetchBatchAsync + + global __cuMemDiscardBatchAsync + data["__cuMemDiscardBatchAsync"] = __cuMemDiscardBatchAsync + + global __cuMemDiscardAndPrefetchBatchAsync + data["__cuMemDiscardAndPrefetchBatchAsync"] = __cuMemDiscardAndPrefetchBatchAsync + + global __cuGraphNodeGetContainingGraph + data["__cuGraphNodeGetContainingGraph"] = __cuGraphNodeGetContainingGraph + + global __cuGraphNodeGetLocalId + data["__cuGraphNodeGetLocalId"] = __cuGraphNodeGetLocalId + + global __cuGraphNodeGetToolsId + data["__cuGraphNodeGetToolsId"] = __cuGraphNodeGetToolsId + + global __cuGraphGetId + data["__cuGraphGetId"] = __cuGraphGetId + + global __cuGraphExecGetId + data["__cuGraphExecGetId"] = __cuGraphExecGetId + + global __cuDeviceGetP2PAtomicCapabilities + data["__cuDeviceGetP2PAtomicCapabilities"] = __cuDeviceGetP2PAtomicCapabilities + + global __cuDevSmResourceSplit + data["__cuDevSmResourceSplit"] = __cuDevSmResourceSplit + + global __cuGreenCtxGetId + data["__cuGreenCtxGetId"] = __cuGreenCtxGetId + + global __cuStreamGetDevResource + data["__cuStreamGetDevResource"] = __cuStreamGetDevResource + + global __cuKernelGetParamCount + data["__cuKernelGetParamCount"] = __cuKernelGetParamCount + + global __cuMemcpyWithAttributesAsync + data["__cuMemcpyWithAttributesAsync"] = __cuMemcpyWithAttributesAsync + + global __cuMemcpy3DWithAttributesAsync + data["__cuMemcpy3DWithAttributesAsync"] = __cuMemcpy3DWithAttributesAsync + + global __cuStreamBeginCaptureToCig + data["__cuStreamBeginCaptureToCig"] = __cuStreamBeginCaptureToCig + + global __cuStreamEndCaptureToCig + data["__cuStreamEndCaptureToCig"] = __cuStreamEndCaptureToCig + + global __cuFuncGetParamCount + data["__cuFuncGetParamCount"] = __cuFuncGetParamCount + + global __cuLaunchHostFunc_v2 + data["__cuLaunchHostFunc_v2"] = __cuLaunchHostFunc_v2 + + global __cuGraphNodeGetParams + data["__cuGraphNodeGetParams"] = __cuGraphNodeGetParams + + global __cuCoredumpRegisterStartCallback + data["__cuCoredumpRegisterStartCallback"] = __cuCoredumpRegisterStartCallback + + global __cuCoredumpRegisterCompleteCallback + data["__cuCoredumpRegisterCompleteCallback"] = __cuCoredumpRegisterCompleteCallback + + global __cuCoredumpDeregisterStartCallback + data["__cuCoredumpDeregisterStartCallback"] = __cuCoredumpDeregisterStartCallback + + global __cuCoredumpDeregisterCompleteCallback + data["__cuCoredumpDeregisterCompleteCallback"] = __cuCoredumpDeregisterCompleteCallback + + func_ptrs = data + return data + + +cpdef _inspect_function_pointer(str name): + global func_ptrs + if func_ptrs is None: + func_ptrs = _inspect_function_pointers() + return func_ptrs[name] + + +############################################################################### +# Wrapper functions +############################################################################### + +cdef CUresult _cuGetErrorString(CUresult error, const char** pStr) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGetErrorString + _check_or_init_driver() + if __cuGetErrorString == NULL: + with gil: + raise FunctionNotFoundError("function cuGetErrorString is not found") + return (__cuGetErrorString)( + error, pStr) + + +cdef CUresult _cuGetErrorName(CUresult error, const char** pStr) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGetErrorName + _check_or_init_driver() + if __cuGetErrorName == NULL: + with gil: + raise FunctionNotFoundError("function cuGetErrorName is not found") + return (__cuGetErrorName)( + error, pStr) + + +cdef CUresult _cuInit(unsigned int Flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuInit + _check_or_init_driver() + if __cuInit == NULL: + with gil: + raise FunctionNotFoundError("function cuInit is not found") + return (__cuInit)( + Flags) + + +cdef CUresult _cuDriverGetVersion(int* driverVersion) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuDriverGetVersion + _check_or_init_driver() + if __cuDriverGetVersion == NULL: + with gil: + raise FunctionNotFoundError("function cuDriverGetVersion is not found") + return (__cuDriverGetVersion)( + driverVersion) + + +cdef CUresult _cuDeviceGet(CUdevice* device, int ordinal) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuDeviceGet + _check_or_init_driver() + if __cuDeviceGet == NULL: + with gil: + raise FunctionNotFoundError("function cuDeviceGet is not found") + return (__cuDeviceGet)( + device, ordinal) + + +cdef CUresult _cuDeviceGetCount(int* count) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuDeviceGetCount + _check_or_init_driver() + if __cuDeviceGetCount == NULL: + with gil: + raise FunctionNotFoundError("function cuDeviceGetCount is not found") + return (__cuDeviceGetCount)( + count) + + +cdef CUresult _cuDeviceGetName(char* name, int len, CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuDeviceGetName + _check_or_init_driver() + if __cuDeviceGetName == NULL: + with gil: + raise FunctionNotFoundError("function cuDeviceGetName is not found") + return (__cuDeviceGetName)( + name, len, dev) + + +cdef CUresult _cuDeviceGetUuid_v2(CUuuid* uuid, CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuDeviceGetUuid_v2 + _check_or_init_driver() + if __cuDeviceGetUuid_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuDeviceGetUuid_v2 is not found") + return (__cuDeviceGetUuid_v2)( + uuid, dev) + + +cdef CUresult _cuDeviceGetLuid(char* luid, unsigned int* deviceNodeMask, CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuDeviceGetLuid + _check_or_init_driver() + if __cuDeviceGetLuid == NULL: + with gil: + raise FunctionNotFoundError("function cuDeviceGetLuid is not found") + return (__cuDeviceGetLuid)( + luid, deviceNodeMask, dev) + + +cdef CUresult _cuDeviceTotalMem_v2(size_t* bytes, CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuDeviceTotalMem_v2 + _check_or_init_driver() + if __cuDeviceTotalMem_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuDeviceTotalMem_v2 is not found") + return (__cuDeviceTotalMem_v2)( + bytes, dev) + + +cdef CUresult _cuDeviceGetTexture1DLinearMaxWidth(size_t* maxWidthInElements, CUarray_format format, unsigned numChannels, CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuDeviceGetTexture1DLinearMaxWidth + _check_or_init_driver() + if __cuDeviceGetTexture1DLinearMaxWidth == NULL: + with gil: + raise FunctionNotFoundError("function cuDeviceGetTexture1DLinearMaxWidth is not found") + return (__cuDeviceGetTexture1DLinearMaxWidth)( + maxWidthInElements, format, numChannels, dev) + + +cdef CUresult _cuDeviceGetAttribute(int* pi, CUdevice_attribute attrib, CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuDeviceGetAttribute + _check_or_init_driver() + if __cuDeviceGetAttribute == NULL: + with gil: + raise FunctionNotFoundError("function cuDeviceGetAttribute is not found") + return (__cuDeviceGetAttribute)( + pi, attrib, dev) + + +cdef CUresult _cuDeviceGetNvSciSyncAttributes(void* nvSciSyncAttrList, CUdevice dev, int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuDeviceGetNvSciSyncAttributes + _check_or_init_driver() + if __cuDeviceGetNvSciSyncAttributes == NULL: + with gil: + raise FunctionNotFoundError("function cuDeviceGetNvSciSyncAttributes is not found") + return (__cuDeviceGetNvSciSyncAttributes)( + nvSciSyncAttrList, dev, flags) + + +cdef CUresult _cuDeviceSetMemPool(CUdevice dev, CUmemoryPool pool) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuDeviceSetMemPool + _check_or_init_driver() + if __cuDeviceSetMemPool == NULL: + with gil: + raise FunctionNotFoundError("function cuDeviceSetMemPool is not found") + return (__cuDeviceSetMemPool)( + dev, pool) + + +cdef CUresult _cuDeviceGetMemPool(CUmemoryPool* pool, CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuDeviceGetMemPool + _check_or_init_driver() + if __cuDeviceGetMemPool == NULL: + with gil: + raise FunctionNotFoundError("function cuDeviceGetMemPool is not found") + return (__cuDeviceGetMemPool)( + pool, dev) + + +cdef CUresult _cuDeviceGetDefaultMemPool(CUmemoryPool* pool_out, CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuDeviceGetDefaultMemPool + _check_or_init_driver() + if __cuDeviceGetDefaultMemPool == NULL: + with gil: + raise FunctionNotFoundError("function cuDeviceGetDefaultMemPool is not found") + return (__cuDeviceGetDefaultMemPool)( + pool_out, dev) + + +cdef CUresult _cuDeviceGetExecAffinitySupport(int* pi, CUexecAffinityType type, CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuDeviceGetExecAffinitySupport + _check_or_init_driver() + if __cuDeviceGetExecAffinitySupport == NULL: + with gil: + raise FunctionNotFoundError("function cuDeviceGetExecAffinitySupport is not found") + return (__cuDeviceGetExecAffinitySupport)( + pi, type, dev) + + +cdef CUresult _cuFlushGPUDirectRDMAWrites(CUflushGPUDirectRDMAWritesTarget target, CUflushGPUDirectRDMAWritesScope scope) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuFlushGPUDirectRDMAWrites + _check_or_init_driver() + if __cuFlushGPUDirectRDMAWrites == NULL: + with gil: + raise FunctionNotFoundError("function cuFlushGPUDirectRDMAWrites is not found") + return (__cuFlushGPUDirectRDMAWrites)( + target, scope) + + +cdef CUresult _cuDeviceGetProperties(CUdevprop* prop, CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuDeviceGetProperties + _check_or_init_driver() + if __cuDeviceGetProperties == NULL: + with gil: + raise FunctionNotFoundError("function cuDeviceGetProperties is not found") + return (__cuDeviceGetProperties)( + prop, dev) + + +cdef CUresult _cuDeviceComputeCapability(int* major, int* minor, CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuDeviceComputeCapability + _check_or_init_driver() + if __cuDeviceComputeCapability == NULL: + with gil: + raise FunctionNotFoundError("function cuDeviceComputeCapability is not found") + return (__cuDeviceComputeCapability)( + major, minor, dev) + + +cdef CUresult _cuDevicePrimaryCtxRetain(CUcontext* pctx, CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuDevicePrimaryCtxRetain + _check_or_init_driver() + if __cuDevicePrimaryCtxRetain == NULL: + with gil: + raise FunctionNotFoundError("function cuDevicePrimaryCtxRetain is not found") + return (__cuDevicePrimaryCtxRetain)( + pctx, dev) + + +cdef CUresult _cuDevicePrimaryCtxRelease_v2(CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuDevicePrimaryCtxRelease_v2 + _check_or_init_driver() + if __cuDevicePrimaryCtxRelease_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuDevicePrimaryCtxRelease_v2 is not found") + return (__cuDevicePrimaryCtxRelease_v2)( + dev) + + +cdef CUresult _cuDevicePrimaryCtxSetFlags_v2(CUdevice dev, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuDevicePrimaryCtxSetFlags_v2 + _check_or_init_driver() + if __cuDevicePrimaryCtxSetFlags_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuDevicePrimaryCtxSetFlags_v2 is not found") + return (__cuDevicePrimaryCtxSetFlags_v2)( + dev, flags) + + +cdef CUresult _cuDevicePrimaryCtxGetState(CUdevice dev, unsigned int* flags, int* active) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuDevicePrimaryCtxGetState + _check_or_init_driver() + if __cuDevicePrimaryCtxGetState == NULL: + with gil: + raise FunctionNotFoundError("function cuDevicePrimaryCtxGetState is not found") + return (__cuDevicePrimaryCtxGetState)( + dev, flags, active) + + +cdef CUresult _cuDevicePrimaryCtxReset_v2(CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuDevicePrimaryCtxReset_v2 + _check_or_init_driver() + if __cuDevicePrimaryCtxReset_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuDevicePrimaryCtxReset_v2 is not found") + return (__cuDevicePrimaryCtxReset_v2)( + dev) + + +cdef CUresult _cuCtxCreate_v4(CUcontext* pctx, CUctxCreateParams* ctxCreateParams, unsigned int flags, CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuCtxCreate_v4 + _check_or_init_driver() + if __cuCtxCreate_v4 == NULL: + with gil: + raise FunctionNotFoundError("function cuCtxCreate_v4 is not found") + return (__cuCtxCreate_v4)( + pctx, ctxCreateParams, flags, dev) + + +cdef CUresult _cuCtxDestroy_v2(CUcontext ctx) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuCtxDestroy_v2 + _check_or_init_driver() + if __cuCtxDestroy_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuCtxDestroy_v2 is not found") + return (__cuCtxDestroy_v2)( + ctx) + + +cdef CUresult _cuCtxPushCurrent_v2(CUcontext ctx) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuCtxPushCurrent_v2 + _check_or_init_driver() + if __cuCtxPushCurrent_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuCtxPushCurrent_v2 is not found") + return (__cuCtxPushCurrent_v2)( + ctx) + + +cdef CUresult _cuCtxPopCurrent_v2(CUcontext* pctx) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuCtxPopCurrent_v2 + _check_or_init_driver() + if __cuCtxPopCurrent_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuCtxPopCurrent_v2 is not found") + return (__cuCtxPopCurrent_v2)( + pctx) + + +cdef CUresult _cuCtxSetCurrent(CUcontext ctx) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuCtxSetCurrent + _check_or_init_driver() + if __cuCtxSetCurrent == NULL: + with gil: + raise FunctionNotFoundError("function cuCtxSetCurrent is not found") + return (__cuCtxSetCurrent)( + ctx) + + +cdef CUresult _cuCtxGetCurrent(CUcontext* pctx) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuCtxGetCurrent + _check_or_init_driver() + if __cuCtxGetCurrent == NULL: + with gil: + raise FunctionNotFoundError("function cuCtxGetCurrent is not found") + return (__cuCtxGetCurrent)( + pctx) + + +cdef CUresult _cuCtxGetDevice(CUdevice* device) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuCtxGetDevice + _check_or_init_driver() + if __cuCtxGetDevice == NULL: + with gil: + raise FunctionNotFoundError("function cuCtxGetDevice is not found") + return (__cuCtxGetDevice)( + device) + + +cdef CUresult _cuCtxGetFlags(unsigned int* flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuCtxGetFlags + _check_or_init_driver() + if __cuCtxGetFlags == NULL: + with gil: + raise FunctionNotFoundError("function cuCtxGetFlags is not found") + return (__cuCtxGetFlags)( + flags) + + +cdef CUresult _cuCtxSetFlags(unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuCtxSetFlags + _check_or_init_driver() + if __cuCtxSetFlags == NULL: + with gil: + raise FunctionNotFoundError("function cuCtxSetFlags is not found") + return (__cuCtxSetFlags)( + flags) + + +cdef CUresult _cuCtxGetId(CUcontext ctx, unsigned long long* ctxId) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuCtxGetId + _check_or_init_driver() + if __cuCtxGetId == NULL: + with gil: + raise FunctionNotFoundError("function cuCtxGetId is not found") + return (__cuCtxGetId)( + ctx, ctxId) + + +cdef CUresult _cuCtxSynchronize() except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuCtxSynchronize + _check_or_init_driver() + if __cuCtxSynchronize == NULL: + with gil: + raise FunctionNotFoundError("function cuCtxSynchronize is not found") + return (__cuCtxSynchronize)( + ) + + +cdef CUresult _cuCtxSetLimit(CUlimit limit, size_t value) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuCtxSetLimit + _check_or_init_driver() + if __cuCtxSetLimit == NULL: + with gil: + raise FunctionNotFoundError("function cuCtxSetLimit is not found") + return (__cuCtxSetLimit)( + limit, value) + + +cdef CUresult _cuCtxGetLimit(size_t* pvalue, CUlimit limit) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuCtxGetLimit + _check_or_init_driver() + if __cuCtxGetLimit == NULL: + with gil: + raise FunctionNotFoundError("function cuCtxGetLimit is not found") + return (__cuCtxGetLimit)( + pvalue, limit) + + +cdef CUresult _cuCtxGetCacheConfig(CUfunc_cache* pconfig) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuCtxGetCacheConfig + _check_or_init_driver() + if __cuCtxGetCacheConfig == NULL: + with gil: + raise FunctionNotFoundError("function cuCtxGetCacheConfig is not found") + return (__cuCtxGetCacheConfig)( + pconfig) + + +cdef CUresult _cuCtxSetCacheConfig(CUfunc_cache config) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuCtxSetCacheConfig + _check_or_init_driver() + if __cuCtxSetCacheConfig == NULL: + with gil: + raise FunctionNotFoundError("function cuCtxSetCacheConfig is not found") + return (__cuCtxSetCacheConfig)( + config) + + +cdef CUresult _cuCtxGetApiVersion(CUcontext ctx, unsigned int* version) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuCtxGetApiVersion + _check_or_init_driver() + if __cuCtxGetApiVersion == NULL: + with gil: + raise FunctionNotFoundError("function cuCtxGetApiVersion is not found") + return (__cuCtxGetApiVersion)( + ctx, version) + + +cdef CUresult _cuCtxGetStreamPriorityRange(int* leastPriority, int* greatestPriority) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuCtxGetStreamPriorityRange + _check_or_init_driver() + if __cuCtxGetStreamPriorityRange == NULL: + with gil: + raise FunctionNotFoundError("function cuCtxGetStreamPriorityRange is not found") + return (__cuCtxGetStreamPriorityRange)( + leastPriority, greatestPriority) + + +cdef CUresult _cuCtxResetPersistingL2Cache() except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuCtxResetPersistingL2Cache + _check_or_init_driver() + if __cuCtxResetPersistingL2Cache == NULL: + with gil: + raise FunctionNotFoundError("function cuCtxResetPersistingL2Cache is not found") + return (__cuCtxResetPersistingL2Cache)( + ) + + +cdef CUresult _cuCtxGetExecAffinity(CUexecAffinityParam* pExecAffinity, CUexecAffinityType type) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuCtxGetExecAffinity + _check_or_init_driver() + if __cuCtxGetExecAffinity == NULL: + with gil: + raise FunctionNotFoundError("function cuCtxGetExecAffinity is not found") + return (__cuCtxGetExecAffinity)( + pExecAffinity, type) + + +cdef CUresult _cuCtxRecordEvent(CUcontext hCtx, CUevent hEvent) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuCtxRecordEvent + _check_or_init_driver() + if __cuCtxRecordEvent == NULL: + with gil: + raise FunctionNotFoundError("function cuCtxRecordEvent is not found") + return (__cuCtxRecordEvent)( + hCtx, hEvent) + + +cdef CUresult _cuCtxWaitEvent(CUcontext hCtx, CUevent hEvent) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuCtxWaitEvent + _check_or_init_driver() + if __cuCtxWaitEvent == NULL: + with gil: + raise FunctionNotFoundError("function cuCtxWaitEvent is not found") + return (__cuCtxWaitEvent)( + hCtx, hEvent) + + +cdef CUresult _cuCtxAttach(CUcontext* pctx, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuCtxAttach + _check_or_init_driver() + if __cuCtxAttach == NULL: + with gil: + raise FunctionNotFoundError("function cuCtxAttach is not found") + return (__cuCtxAttach)( + pctx, flags) + + +cdef CUresult _cuCtxDetach(CUcontext ctx) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuCtxDetach + _check_or_init_driver() + if __cuCtxDetach == NULL: + with gil: + raise FunctionNotFoundError("function cuCtxDetach is not found") + return (__cuCtxDetach)( + ctx) + + +cdef CUresult _cuCtxGetSharedMemConfig(CUsharedconfig* pConfig) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuCtxGetSharedMemConfig + _check_or_init_driver() + if __cuCtxGetSharedMemConfig == NULL: + with gil: + raise FunctionNotFoundError("function cuCtxGetSharedMemConfig is not found") + return (__cuCtxGetSharedMemConfig)( + pConfig) + + +cdef CUresult _cuCtxSetSharedMemConfig(CUsharedconfig config) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuCtxSetSharedMemConfig + _check_or_init_driver() + if __cuCtxSetSharedMemConfig == NULL: + with gil: + raise FunctionNotFoundError("function cuCtxSetSharedMemConfig is not found") + return (__cuCtxSetSharedMemConfig)( + config) + + +cdef CUresult _cuModuleLoad(CUmodule* module, const char* fname) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuModuleLoad + _check_or_init_driver() + if __cuModuleLoad == NULL: + with gil: + raise FunctionNotFoundError("function cuModuleLoad is not found") + return (__cuModuleLoad)( + module, fname) + + +cdef CUresult _cuModuleLoadData(CUmodule* module, const void* image) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuModuleLoadData + _check_or_init_driver() + if __cuModuleLoadData == NULL: + with gil: + raise FunctionNotFoundError("function cuModuleLoadData is not found") + return (__cuModuleLoadData)( + module, image) + + +cdef CUresult _cuModuleLoadDataEx(CUmodule* module, const void* image, unsigned int numOptions, CUjit_option* options, void** optionValues) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuModuleLoadDataEx + _check_or_init_driver() + if __cuModuleLoadDataEx == NULL: + with gil: + raise FunctionNotFoundError("function cuModuleLoadDataEx is not found") + return (__cuModuleLoadDataEx)( + module, image, numOptions, options, optionValues) + + +cdef CUresult _cuModuleLoadFatBinary(CUmodule* module, const void* fatCubin) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuModuleLoadFatBinary + _check_or_init_driver() + if __cuModuleLoadFatBinary == NULL: + with gil: + raise FunctionNotFoundError("function cuModuleLoadFatBinary is not found") + return (__cuModuleLoadFatBinary)( + module, fatCubin) + + +cdef CUresult _cuModuleUnload(CUmodule hmod) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuModuleUnload + _check_or_init_driver() + if __cuModuleUnload == NULL: + with gil: + raise FunctionNotFoundError("function cuModuleUnload is not found") + return (__cuModuleUnload)( + hmod) + + +cdef CUresult _cuModuleGetLoadingMode(CUmoduleLoadingMode* mode) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuModuleGetLoadingMode + _check_or_init_driver() + if __cuModuleGetLoadingMode == NULL: + with gil: + raise FunctionNotFoundError("function cuModuleGetLoadingMode is not found") + return (__cuModuleGetLoadingMode)( + mode) + + +cdef CUresult _cuModuleGetFunction(CUfunction* hfunc, CUmodule hmod, const char* name) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuModuleGetFunction + _check_or_init_driver() + if __cuModuleGetFunction == NULL: + with gil: + raise FunctionNotFoundError("function cuModuleGetFunction is not found") + return (__cuModuleGetFunction)( + hfunc, hmod, name) + + +cdef CUresult _cuModuleGetFunctionCount(unsigned int* count, CUmodule mod) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuModuleGetFunctionCount + _check_or_init_driver() + if __cuModuleGetFunctionCount == NULL: + with gil: + raise FunctionNotFoundError("function cuModuleGetFunctionCount is not found") + return (__cuModuleGetFunctionCount)( + count, mod) + + +cdef CUresult _cuModuleEnumerateFunctions(CUfunction* functions, unsigned int numFunctions, CUmodule mod) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuModuleEnumerateFunctions + _check_or_init_driver() + if __cuModuleEnumerateFunctions == NULL: + with gil: + raise FunctionNotFoundError("function cuModuleEnumerateFunctions is not found") + return (__cuModuleEnumerateFunctions)( + functions, numFunctions, mod) + + +cdef CUresult _cuModuleGetGlobal_v2(CUdeviceptr* dptr, size_t* bytes, CUmodule hmod, const char* name) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuModuleGetGlobal_v2 + _check_or_init_driver() + if __cuModuleGetGlobal_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuModuleGetGlobal_v2 is not found") + return (__cuModuleGetGlobal_v2)( + dptr, bytes, hmod, name) + + +cdef CUresult _cuLinkCreate_v2(unsigned int numOptions, CUjit_option* options, void** optionValues, CUlinkState* stateOut) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuLinkCreate_v2 + _check_or_init_driver() + if __cuLinkCreate_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuLinkCreate_v2 is not found") + return (__cuLinkCreate_v2)( + numOptions, options, optionValues, stateOut) + + +cdef CUresult _cuLinkAddData_v2(CUlinkState state, CUjitInputType type, void* data, size_t size, const char* name, unsigned int numOptions, CUjit_option* options, void** optionValues) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuLinkAddData_v2 + _check_or_init_driver() + if __cuLinkAddData_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuLinkAddData_v2 is not found") + return (__cuLinkAddData_v2)( + state, type, data, size, name, numOptions, options, optionValues) + + +cdef CUresult _cuLinkAddFile_v2(CUlinkState state, CUjitInputType type, const char* path, unsigned int numOptions, CUjit_option* options, void** optionValues) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuLinkAddFile_v2 + _check_or_init_driver() + if __cuLinkAddFile_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuLinkAddFile_v2 is not found") + return (__cuLinkAddFile_v2)( + state, type, path, numOptions, options, optionValues) + + +cdef CUresult _cuLinkComplete(CUlinkState state, void** cubinOut, size_t* sizeOut) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuLinkComplete + _check_or_init_driver() + if __cuLinkComplete == NULL: + with gil: + raise FunctionNotFoundError("function cuLinkComplete is not found") + return (__cuLinkComplete)( + state, cubinOut, sizeOut) + + +cdef CUresult _cuLinkDestroy(CUlinkState state) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuLinkDestroy + _check_or_init_driver() + if __cuLinkDestroy == NULL: + with gil: + raise FunctionNotFoundError("function cuLinkDestroy is not found") + return (__cuLinkDestroy)( + state) + + +cdef CUresult _cuModuleGetTexRef(CUtexref* pTexRef, CUmodule hmod, const char* name) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuModuleGetTexRef + _check_or_init_driver() + if __cuModuleGetTexRef == NULL: + with gil: + raise FunctionNotFoundError("function cuModuleGetTexRef is not found") + return (__cuModuleGetTexRef)( + pTexRef, hmod, name) + + +cdef CUresult _cuModuleGetSurfRef(CUsurfref* pSurfRef, CUmodule hmod, const char* name) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuModuleGetSurfRef + _check_or_init_driver() + if __cuModuleGetSurfRef == NULL: + with gil: + raise FunctionNotFoundError("function cuModuleGetSurfRef is not found") + return (__cuModuleGetSurfRef)( + pSurfRef, hmod, name) + + +cdef CUresult _cuLibraryLoadData(CUlibrary* library, const void* code, CUjit_option* jitOptions, void** jitOptionsValues, unsigned int numJitOptions, CUlibraryOption* libraryOptions, void** libraryOptionValues, unsigned int numLibraryOptions) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuLibraryLoadData + _check_or_init_driver() + if __cuLibraryLoadData == NULL: + with gil: + raise FunctionNotFoundError("function cuLibraryLoadData is not found") + return (__cuLibraryLoadData)( + library, code, jitOptions, jitOptionsValues, numJitOptions, libraryOptions, libraryOptionValues, numLibraryOptions) + + +cdef CUresult _cuLibraryLoadFromFile(CUlibrary* library, const char* fileName, CUjit_option* jitOptions, void** jitOptionsValues, unsigned int numJitOptions, CUlibraryOption* libraryOptions, void** libraryOptionValues, unsigned int numLibraryOptions) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuLibraryLoadFromFile + _check_or_init_driver() + if __cuLibraryLoadFromFile == NULL: + with gil: + raise FunctionNotFoundError("function cuLibraryLoadFromFile is not found") + return (__cuLibraryLoadFromFile)( + library, fileName, jitOptions, jitOptionsValues, numJitOptions, libraryOptions, libraryOptionValues, numLibraryOptions) + + +cdef CUresult _cuLibraryUnload(CUlibrary library) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuLibraryUnload + _check_or_init_driver() + if __cuLibraryUnload == NULL: + with gil: + raise FunctionNotFoundError("function cuLibraryUnload is not found") + return (__cuLibraryUnload)( + library) + + +cdef CUresult _cuLibraryGetKernel(CUkernel* pKernel, CUlibrary library, const char* name) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuLibraryGetKernel + _check_or_init_driver() + if __cuLibraryGetKernel == NULL: + with gil: + raise FunctionNotFoundError("function cuLibraryGetKernel is not found") + return (__cuLibraryGetKernel)( + pKernel, library, name) + + +cdef CUresult _cuLibraryGetKernelCount(unsigned int* count, CUlibrary lib) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuLibraryGetKernelCount + _check_or_init_driver() + if __cuLibraryGetKernelCount == NULL: + with gil: + raise FunctionNotFoundError("function cuLibraryGetKernelCount is not found") + return (__cuLibraryGetKernelCount)( + count, lib) + + +cdef CUresult _cuLibraryEnumerateKernels(CUkernel* kernels, unsigned int numKernels, CUlibrary lib) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuLibraryEnumerateKernels + _check_or_init_driver() + if __cuLibraryEnumerateKernels == NULL: + with gil: + raise FunctionNotFoundError("function cuLibraryEnumerateKernels is not found") + return (__cuLibraryEnumerateKernels)( + kernels, numKernels, lib) + + +cdef CUresult _cuLibraryGetModule(CUmodule* pMod, CUlibrary library) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuLibraryGetModule + _check_or_init_driver() + if __cuLibraryGetModule == NULL: + with gil: + raise FunctionNotFoundError("function cuLibraryGetModule is not found") + return (__cuLibraryGetModule)( + pMod, library) + + +cdef CUresult _cuKernelGetFunction(CUfunction* pFunc, CUkernel kernel) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuKernelGetFunction + _check_or_init_driver() + if __cuKernelGetFunction == NULL: + with gil: + raise FunctionNotFoundError("function cuKernelGetFunction is not found") + return (__cuKernelGetFunction)( + pFunc, kernel) + + +cdef CUresult _cuKernelGetLibrary(CUlibrary* pLib, CUkernel kernel) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuKernelGetLibrary + _check_or_init_driver() + if __cuKernelGetLibrary == NULL: + with gil: + raise FunctionNotFoundError("function cuKernelGetLibrary is not found") + return (__cuKernelGetLibrary)( + pLib, kernel) + + +cdef CUresult _cuLibraryGetGlobal(CUdeviceptr* dptr, size_t* bytes, CUlibrary library, const char* name) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuLibraryGetGlobal + _check_or_init_driver() + if __cuLibraryGetGlobal == NULL: + with gil: + raise FunctionNotFoundError("function cuLibraryGetGlobal is not found") + return (__cuLibraryGetGlobal)( + dptr, bytes, library, name) + + +cdef CUresult _cuLibraryGetManaged(CUdeviceptr* dptr, size_t* bytes, CUlibrary library, const char* name) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuLibraryGetManaged + _check_or_init_driver() + if __cuLibraryGetManaged == NULL: + with gil: + raise FunctionNotFoundError("function cuLibraryGetManaged is not found") + return (__cuLibraryGetManaged)( + dptr, bytes, library, name) + + +cdef CUresult _cuLibraryGetUnifiedFunction(void** fptr, CUlibrary library, const char* symbol) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuLibraryGetUnifiedFunction + _check_or_init_driver() + if __cuLibraryGetUnifiedFunction == NULL: + with gil: + raise FunctionNotFoundError("function cuLibraryGetUnifiedFunction is not found") + return (__cuLibraryGetUnifiedFunction)( + fptr, library, symbol) + + +cdef CUresult _cuKernelGetAttribute(int* pi, CUfunction_attribute attrib, CUkernel kernel, CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuKernelGetAttribute + _check_or_init_driver() + if __cuKernelGetAttribute == NULL: + with gil: + raise FunctionNotFoundError("function cuKernelGetAttribute is not found") + return (__cuKernelGetAttribute)( + pi, attrib, kernel, dev) + + +cdef CUresult _cuKernelSetAttribute(CUfunction_attribute attrib, int val, CUkernel kernel, CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuKernelSetAttribute + _check_or_init_driver() + if __cuKernelSetAttribute == NULL: + with gil: + raise FunctionNotFoundError("function cuKernelSetAttribute is not found") + return (__cuKernelSetAttribute)( + attrib, val, kernel, dev) + + +cdef CUresult _cuKernelSetCacheConfig(CUkernel kernel, CUfunc_cache config, CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuKernelSetCacheConfig + _check_or_init_driver() + if __cuKernelSetCacheConfig == NULL: + with gil: + raise FunctionNotFoundError("function cuKernelSetCacheConfig is not found") + return (__cuKernelSetCacheConfig)( + kernel, config, dev) + + +cdef CUresult _cuKernelGetName(const char** name, CUkernel hfunc) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuKernelGetName + _check_or_init_driver() + if __cuKernelGetName == NULL: + with gil: + raise FunctionNotFoundError("function cuKernelGetName is not found") + return (__cuKernelGetName)( + name, hfunc) + + +cdef CUresult _cuKernelGetParamInfo(CUkernel kernel, size_t paramIndex, size_t* paramOffset, size_t* paramSize) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuKernelGetParamInfo + _check_or_init_driver() + if __cuKernelGetParamInfo == NULL: + with gil: + raise FunctionNotFoundError("function cuKernelGetParamInfo is not found") + return (__cuKernelGetParamInfo)( + kernel, paramIndex, paramOffset, paramSize) + + +cdef CUresult _cuMemGetInfo_v2(size_t* free, size_t* total) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemGetInfo_v2 + _check_or_init_driver() + if __cuMemGetInfo_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuMemGetInfo_v2 is not found") + return (__cuMemGetInfo_v2)( + free, total) + + +cdef CUresult _cuMemAlloc_v2(CUdeviceptr* dptr, size_t bytesize) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemAlloc_v2 + _check_or_init_driver() + if __cuMemAlloc_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuMemAlloc_v2 is not found") + return (__cuMemAlloc_v2)( + dptr, bytesize) + + +cdef CUresult _cuMemAllocPitch_v2(CUdeviceptr* dptr, size_t* pPitch, size_t WidthInBytes, size_t Height, unsigned int ElementSizeBytes) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemAllocPitch_v2 + _check_or_init_driver() + if __cuMemAllocPitch_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuMemAllocPitch_v2 is not found") + return (__cuMemAllocPitch_v2)( + dptr, pPitch, WidthInBytes, Height, ElementSizeBytes) + + +cdef CUresult _cuMemFree_v2(CUdeviceptr dptr) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemFree_v2 + _check_or_init_driver() + if __cuMemFree_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuMemFree_v2 is not found") + return (__cuMemFree_v2)( + dptr) + + +cdef CUresult _cuMemGetAddressRange_v2(CUdeviceptr* pbase, size_t* psize, CUdeviceptr dptr) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemGetAddressRange_v2 + _check_or_init_driver() + if __cuMemGetAddressRange_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuMemGetAddressRange_v2 is not found") + return (__cuMemGetAddressRange_v2)( + pbase, psize, dptr) + + +cdef CUresult _cuMemAllocHost_v2(void** pp, size_t bytesize) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemAllocHost_v2 + _check_or_init_driver() + if __cuMemAllocHost_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuMemAllocHost_v2 is not found") + return (__cuMemAllocHost_v2)( + pp, bytesize) + + +cdef CUresult _cuMemFreeHost(void* p) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemFreeHost + _check_or_init_driver() + if __cuMemFreeHost == NULL: + with gil: + raise FunctionNotFoundError("function cuMemFreeHost is not found") + return (__cuMemFreeHost)( + p) + + +cdef CUresult _cuMemHostAlloc(void** pp, size_t bytesize, unsigned int Flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemHostAlloc + _check_or_init_driver() + if __cuMemHostAlloc == NULL: + with gil: + raise FunctionNotFoundError("function cuMemHostAlloc is not found") + return (__cuMemHostAlloc)( + pp, bytesize, Flags) + + +cdef CUresult _cuMemHostGetDevicePointer_v2(CUdeviceptr* pdptr, void* p, unsigned int Flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemHostGetDevicePointer_v2 + _check_or_init_driver() + if __cuMemHostGetDevicePointer_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuMemHostGetDevicePointer_v2 is not found") + return (__cuMemHostGetDevicePointer_v2)( + pdptr, p, Flags) + + +cdef CUresult _cuMemHostGetFlags(unsigned int* pFlags, void* p) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemHostGetFlags + _check_or_init_driver() + if __cuMemHostGetFlags == NULL: + with gil: + raise FunctionNotFoundError("function cuMemHostGetFlags is not found") + return (__cuMemHostGetFlags)( + pFlags, p) + + +cdef CUresult _cuMemAllocManaged(CUdeviceptr* dptr, size_t bytesize, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemAllocManaged + _check_or_init_driver() + if __cuMemAllocManaged == NULL: + with gil: + raise FunctionNotFoundError("function cuMemAllocManaged is not found") + return (__cuMemAllocManaged)( + dptr, bytesize, flags) + + +cdef CUresult _cuDeviceRegisterAsyncNotification(CUdevice device, CUasyncCallback callbackFunc, void* userData, CUasyncCallbackHandle* callback) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuDeviceRegisterAsyncNotification + _check_or_init_driver() + if __cuDeviceRegisterAsyncNotification == NULL: + with gil: + raise FunctionNotFoundError("function cuDeviceRegisterAsyncNotification is not found") + return (__cuDeviceRegisterAsyncNotification)( + device, callbackFunc, userData, callback) + + +cdef CUresult _cuDeviceUnregisterAsyncNotification(CUdevice device, CUasyncCallbackHandle callback) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuDeviceUnregisterAsyncNotification + _check_or_init_driver() + if __cuDeviceUnregisterAsyncNotification == NULL: + with gil: + raise FunctionNotFoundError("function cuDeviceUnregisterAsyncNotification is not found") + return (__cuDeviceUnregisterAsyncNotification)( + device, callback) + + +cdef CUresult _cuDeviceGetByPCIBusId(CUdevice* dev, const char* pciBusId) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuDeviceGetByPCIBusId + _check_or_init_driver() + if __cuDeviceGetByPCIBusId == NULL: + with gil: + raise FunctionNotFoundError("function cuDeviceGetByPCIBusId is not found") + return (__cuDeviceGetByPCIBusId)( + dev, pciBusId) + + +cdef CUresult _cuDeviceGetPCIBusId(char* pciBusId, int len, CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuDeviceGetPCIBusId + _check_or_init_driver() + if __cuDeviceGetPCIBusId == NULL: + with gil: + raise FunctionNotFoundError("function cuDeviceGetPCIBusId is not found") + return (__cuDeviceGetPCIBusId)( + pciBusId, len, dev) + + +cdef CUresult _cuIpcGetEventHandle(CUipcEventHandle* pHandle, CUevent event) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuIpcGetEventHandle + _check_or_init_driver() + if __cuIpcGetEventHandle == NULL: + with gil: + raise FunctionNotFoundError("function cuIpcGetEventHandle is not found") + return (__cuIpcGetEventHandle)( + pHandle, event) + + +cdef CUresult _cuIpcOpenEventHandle(CUevent* phEvent, CUipcEventHandle handle) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuIpcOpenEventHandle + _check_or_init_driver() + if __cuIpcOpenEventHandle == NULL: + with gil: + raise FunctionNotFoundError("function cuIpcOpenEventHandle is not found") + return (__cuIpcOpenEventHandle)( + phEvent, handle) + + +cdef CUresult _cuIpcGetMemHandle(CUipcMemHandle* pHandle, CUdeviceptr dptr) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuIpcGetMemHandle + _check_or_init_driver() + if __cuIpcGetMemHandle == NULL: + with gil: + raise FunctionNotFoundError("function cuIpcGetMemHandle is not found") + return (__cuIpcGetMemHandle)( + pHandle, dptr) + + +cdef CUresult _cuIpcOpenMemHandle_v2(CUdeviceptr* pdptr, CUipcMemHandle handle, unsigned int Flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuIpcOpenMemHandle_v2 + _check_or_init_driver() + if __cuIpcOpenMemHandle_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuIpcOpenMemHandle_v2 is not found") + return (__cuIpcOpenMemHandle_v2)( + pdptr, handle, Flags) + + +cdef CUresult _cuIpcCloseMemHandle(CUdeviceptr dptr) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuIpcCloseMemHandle + _check_or_init_driver() + if __cuIpcCloseMemHandle == NULL: + with gil: + raise FunctionNotFoundError("function cuIpcCloseMemHandle is not found") + return (__cuIpcCloseMemHandle)( + dptr) + + +cdef CUresult _cuMemHostRegister_v2(void* p, size_t bytesize, unsigned int Flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemHostRegister_v2 + _check_or_init_driver() + if __cuMemHostRegister_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuMemHostRegister_v2 is not found") + return (__cuMemHostRegister_v2)( + p, bytesize, Flags) + + +cdef CUresult _cuMemHostUnregister(void* p) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemHostUnregister + _check_or_init_driver() + if __cuMemHostUnregister == NULL: + with gil: + raise FunctionNotFoundError("function cuMemHostUnregister is not found") + return (__cuMemHostUnregister)( + p) + + +cdef CUresult _cuMemcpy(CUdeviceptr dst, CUdeviceptr src, size_t ByteCount) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemcpy + _check_or_init_driver() + if __cuMemcpy == NULL: + with gil: + raise FunctionNotFoundError("function cuMemcpy is not found") + return (__cuMemcpy)( + dst, src, ByteCount) + + +cdef CUresult _cuMemcpyPeer(CUdeviceptr dstDevice, CUcontext dstContext, CUdeviceptr srcDevice, CUcontext srcContext, size_t ByteCount) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemcpyPeer + _check_or_init_driver() + if __cuMemcpyPeer == NULL: + with gil: + raise FunctionNotFoundError("function cuMemcpyPeer is not found") + return (__cuMemcpyPeer)( + dstDevice, dstContext, srcDevice, srcContext, ByteCount) + + +cdef CUresult _cuMemcpyHtoD_v2(CUdeviceptr dstDevice, const void* srcHost, size_t ByteCount) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemcpyHtoD_v2 + _check_or_init_driver() + if __cuMemcpyHtoD_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuMemcpyHtoD_v2 is not found") + return (__cuMemcpyHtoD_v2)( + dstDevice, srcHost, ByteCount) + + +cdef CUresult _cuMemcpyDtoH_v2(void* dstHost, CUdeviceptr srcDevice, size_t ByteCount) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemcpyDtoH_v2 + _check_or_init_driver() + if __cuMemcpyDtoH_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuMemcpyDtoH_v2 is not found") + return (__cuMemcpyDtoH_v2)( + dstHost, srcDevice, ByteCount) + + +cdef CUresult _cuMemcpyDtoD_v2(CUdeviceptr dstDevice, CUdeviceptr srcDevice, size_t ByteCount) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemcpyDtoD_v2 + _check_or_init_driver() + if __cuMemcpyDtoD_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuMemcpyDtoD_v2 is not found") + return (__cuMemcpyDtoD_v2)( + dstDevice, srcDevice, ByteCount) + + +cdef CUresult _cuMemcpyDtoA_v2(CUarray dstArray, size_t dstOffset, CUdeviceptr srcDevice, size_t ByteCount) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemcpyDtoA_v2 + _check_or_init_driver() + if __cuMemcpyDtoA_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuMemcpyDtoA_v2 is not found") + return (__cuMemcpyDtoA_v2)( + dstArray, dstOffset, srcDevice, ByteCount) + + +cdef CUresult _cuMemcpyAtoD_v2(CUdeviceptr dstDevice, CUarray srcArray, size_t srcOffset, size_t ByteCount) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemcpyAtoD_v2 + _check_or_init_driver() + if __cuMemcpyAtoD_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuMemcpyAtoD_v2 is not found") + return (__cuMemcpyAtoD_v2)( + dstDevice, srcArray, srcOffset, ByteCount) + + +cdef CUresult _cuMemcpyHtoA_v2(CUarray dstArray, size_t dstOffset, const void* srcHost, size_t ByteCount) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemcpyHtoA_v2 + _check_or_init_driver() + if __cuMemcpyHtoA_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuMemcpyHtoA_v2 is not found") + return (__cuMemcpyHtoA_v2)( + dstArray, dstOffset, srcHost, ByteCount) + + +cdef CUresult _cuMemcpyAtoH_v2(void* dstHost, CUarray srcArray, size_t srcOffset, size_t ByteCount) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemcpyAtoH_v2 + _check_or_init_driver() + if __cuMemcpyAtoH_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuMemcpyAtoH_v2 is not found") + return (__cuMemcpyAtoH_v2)( + dstHost, srcArray, srcOffset, ByteCount) + + +cdef CUresult _cuMemcpyAtoA_v2(CUarray dstArray, size_t dstOffset, CUarray srcArray, size_t srcOffset, size_t ByteCount) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemcpyAtoA_v2 + _check_or_init_driver() + if __cuMemcpyAtoA_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuMemcpyAtoA_v2 is not found") + return (__cuMemcpyAtoA_v2)( + dstArray, dstOffset, srcArray, srcOffset, ByteCount) + + +cdef CUresult _cuMemcpy2D_v2(const CUDA_MEMCPY2D* pCopy) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemcpy2D_v2 + _check_or_init_driver() + if __cuMemcpy2D_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuMemcpy2D_v2 is not found") + return (__cuMemcpy2D_v2)( + pCopy) + + +cdef CUresult _cuMemcpy2DUnaligned_v2(const CUDA_MEMCPY2D* pCopy) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemcpy2DUnaligned_v2 + _check_or_init_driver() + if __cuMemcpy2DUnaligned_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuMemcpy2DUnaligned_v2 is not found") + return (__cuMemcpy2DUnaligned_v2)( + pCopy) + + +cdef CUresult _cuMemcpy3D_v2(const CUDA_MEMCPY3D* pCopy) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemcpy3D_v2 + _check_or_init_driver() + if __cuMemcpy3D_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuMemcpy3D_v2 is not found") + return (__cuMemcpy3D_v2)( + pCopy) + + +cdef CUresult _cuMemcpy3DPeer(const CUDA_MEMCPY3D_PEER* pCopy) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemcpy3DPeer + _check_or_init_driver() + if __cuMemcpy3DPeer == NULL: + with gil: + raise FunctionNotFoundError("function cuMemcpy3DPeer is not found") + return (__cuMemcpy3DPeer)( + pCopy) + + +cdef CUresult _cuMemcpyAsync(CUdeviceptr dst, CUdeviceptr src, size_t ByteCount, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemcpyAsync + _check_or_init_driver() + if __cuMemcpyAsync == NULL: + with gil: + raise FunctionNotFoundError("function cuMemcpyAsync is not found") + return (__cuMemcpyAsync)( + dst, src, ByteCount, hStream) + + +cdef CUresult _cuMemcpyPeerAsync(CUdeviceptr dstDevice, CUcontext dstContext, CUdeviceptr srcDevice, CUcontext srcContext, size_t ByteCount, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemcpyPeerAsync + _check_or_init_driver() + if __cuMemcpyPeerAsync == NULL: + with gil: + raise FunctionNotFoundError("function cuMemcpyPeerAsync is not found") + return (__cuMemcpyPeerAsync)( + dstDevice, dstContext, srcDevice, srcContext, ByteCount, hStream) + + +cdef CUresult _cuMemcpyHtoDAsync_v2(CUdeviceptr dstDevice, const void* srcHost, size_t ByteCount, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemcpyHtoDAsync_v2 + _check_or_init_driver() + if __cuMemcpyHtoDAsync_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuMemcpyHtoDAsync_v2 is not found") + return (__cuMemcpyHtoDAsync_v2)( + dstDevice, srcHost, ByteCount, hStream) + + +cdef CUresult _cuMemcpyDtoHAsync_v2(void* dstHost, CUdeviceptr srcDevice, size_t ByteCount, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemcpyDtoHAsync_v2 + _check_or_init_driver() + if __cuMemcpyDtoHAsync_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuMemcpyDtoHAsync_v2 is not found") + return (__cuMemcpyDtoHAsync_v2)( + dstHost, srcDevice, ByteCount, hStream) + + +cdef CUresult _cuMemcpyDtoDAsync_v2(CUdeviceptr dstDevice, CUdeviceptr srcDevice, size_t ByteCount, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemcpyDtoDAsync_v2 + _check_or_init_driver() + if __cuMemcpyDtoDAsync_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuMemcpyDtoDAsync_v2 is not found") + return (__cuMemcpyDtoDAsync_v2)( + dstDevice, srcDevice, ByteCount, hStream) + + +cdef CUresult _cuMemcpyHtoAAsync_v2(CUarray dstArray, size_t dstOffset, const void* srcHost, size_t ByteCount, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemcpyHtoAAsync_v2 + _check_or_init_driver() + if __cuMemcpyHtoAAsync_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuMemcpyHtoAAsync_v2 is not found") + return (__cuMemcpyHtoAAsync_v2)( + dstArray, dstOffset, srcHost, ByteCount, hStream) + + +cdef CUresult _cuMemcpyAtoHAsync_v2(void* dstHost, CUarray srcArray, size_t srcOffset, size_t ByteCount, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemcpyAtoHAsync_v2 + _check_or_init_driver() + if __cuMemcpyAtoHAsync_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuMemcpyAtoHAsync_v2 is not found") + return (__cuMemcpyAtoHAsync_v2)( + dstHost, srcArray, srcOffset, ByteCount, hStream) + + +cdef CUresult _cuMemcpy2DAsync_v2(const CUDA_MEMCPY2D* pCopy, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemcpy2DAsync_v2 + _check_or_init_driver() + if __cuMemcpy2DAsync_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuMemcpy2DAsync_v2 is not found") + return (__cuMemcpy2DAsync_v2)( + pCopy, hStream) + + +cdef CUresult _cuMemcpy3DAsync_v2(const CUDA_MEMCPY3D* pCopy, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemcpy3DAsync_v2 + _check_or_init_driver() + if __cuMemcpy3DAsync_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuMemcpy3DAsync_v2 is not found") + return (__cuMemcpy3DAsync_v2)( + pCopy, hStream) + + +cdef CUresult _cuMemcpy3DPeerAsync(const CUDA_MEMCPY3D_PEER* pCopy, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemcpy3DPeerAsync + _check_or_init_driver() + if __cuMemcpy3DPeerAsync == NULL: + with gil: + raise FunctionNotFoundError("function cuMemcpy3DPeerAsync is not found") + return (__cuMemcpy3DPeerAsync)( + pCopy, hStream) + + +cdef CUresult _cuMemsetD8_v2(CUdeviceptr dstDevice, unsigned char uc, size_t N) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemsetD8_v2 + _check_or_init_driver() + if __cuMemsetD8_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuMemsetD8_v2 is not found") + return (__cuMemsetD8_v2)( + dstDevice, uc, N) + + +cdef CUresult _cuMemsetD16_v2(CUdeviceptr dstDevice, unsigned short us, size_t N) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemsetD16_v2 + _check_or_init_driver() + if __cuMemsetD16_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuMemsetD16_v2 is not found") + return (__cuMemsetD16_v2)( + dstDevice, us, N) + + +cdef CUresult _cuMemsetD32_v2(CUdeviceptr dstDevice, unsigned int ui, size_t N) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemsetD32_v2 + _check_or_init_driver() + if __cuMemsetD32_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuMemsetD32_v2 is not found") + return (__cuMemsetD32_v2)( + dstDevice, ui, N) + + +cdef CUresult _cuMemsetD2D8_v2(CUdeviceptr dstDevice, size_t dstPitch, unsigned char uc, size_t Width, size_t Height) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemsetD2D8_v2 + _check_or_init_driver() + if __cuMemsetD2D8_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuMemsetD2D8_v2 is not found") + return (__cuMemsetD2D8_v2)( + dstDevice, dstPitch, uc, Width, Height) + + +cdef CUresult _cuMemsetD2D16_v2(CUdeviceptr dstDevice, size_t dstPitch, unsigned short us, size_t Width, size_t Height) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemsetD2D16_v2 + _check_or_init_driver() + if __cuMemsetD2D16_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuMemsetD2D16_v2 is not found") + return (__cuMemsetD2D16_v2)( + dstDevice, dstPitch, us, Width, Height) + + +cdef CUresult _cuMemsetD2D32_v2(CUdeviceptr dstDevice, size_t dstPitch, unsigned int ui, size_t Width, size_t Height) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemsetD2D32_v2 + _check_or_init_driver() + if __cuMemsetD2D32_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuMemsetD2D32_v2 is not found") + return (__cuMemsetD2D32_v2)( + dstDevice, dstPitch, ui, Width, Height) + + +cdef CUresult _cuMemsetD8Async(CUdeviceptr dstDevice, unsigned char uc, size_t N, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemsetD8Async + _check_or_init_driver() + if __cuMemsetD8Async == NULL: + with gil: + raise FunctionNotFoundError("function cuMemsetD8Async is not found") + return (__cuMemsetD8Async)( + dstDevice, uc, N, hStream) + + +cdef CUresult _cuMemsetD16Async(CUdeviceptr dstDevice, unsigned short us, size_t N, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemsetD16Async + _check_or_init_driver() + if __cuMemsetD16Async == NULL: + with gil: + raise FunctionNotFoundError("function cuMemsetD16Async is not found") + return (__cuMemsetD16Async)( + dstDevice, us, N, hStream) + + +cdef CUresult _cuMemsetD32Async(CUdeviceptr dstDevice, unsigned int ui, size_t N, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemsetD32Async + _check_or_init_driver() + if __cuMemsetD32Async == NULL: + with gil: + raise FunctionNotFoundError("function cuMemsetD32Async is not found") + return (__cuMemsetD32Async)( + dstDevice, ui, N, hStream) + + +cdef CUresult _cuMemsetD2D8Async(CUdeviceptr dstDevice, size_t dstPitch, unsigned char uc, size_t Width, size_t Height, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemsetD2D8Async + _check_or_init_driver() + if __cuMemsetD2D8Async == NULL: + with gil: + raise FunctionNotFoundError("function cuMemsetD2D8Async is not found") + return (__cuMemsetD2D8Async)( + dstDevice, dstPitch, uc, Width, Height, hStream) + + +cdef CUresult _cuMemsetD2D16Async(CUdeviceptr dstDevice, size_t dstPitch, unsigned short us, size_t Width, size_t Height, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemsetD2D16Async + _check_or_init_driver() + if __cuMemsetD2D16Async == NULL: + with gil: + raise FunctionNotFoundError("function cuMemsetD2D16Async is not found") + return (__cuMemsetD2D16Async)( + dstDevice, dstPitch, us, Width, Height, hStream) + + +cdef CUresult _cuMemsetD2D32Async(CUdeviceptr dstDevice, size_t dstPitch, unsigned int ui, size_t Width, size_t Height, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemsetD2D32Async + _check_or_init_driver() + if __cuMemsetD2D32Async == NULL: + with gil: + raise FunctionNotFoundError("function cuMemsetD2D32Async is not found") + return (__cuMemsetD2D32Async)( + dstDevice, dstPitch, ui, Width, Height, hStream) + + +cdef CUresult _cuArrayCreate_v2(CUarray* pHandle, const CUDA_ARRAY_DESCRIPTOR* pAllocateArray) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuArrayCreate_v2 + _check_or_init_driver() + if __cuArrayCreate_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuArrayCreate_v2 is not found") + return (__cuArrayCreate_v2)( + pHandle, pAllocateArray) + + +cdef CUresult _cuArrayGetDescriptor_v2(CUDA_ARRAY_DESCRIPTOR* pArrayDescriptor, CUarray hArray) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuArrayGetDescriptor_v2 + _check_or_init_driver() + if __cuArrayGetDescriptor_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuArrayGetDescriptor_v2 is not found") + return (__cuArrayGetDescriptor_v2)( + pArrayDescriptor, hArray) + + +cdef CUresult _cuArrayGetSparseProperties(CUDA_ARRAY_SPARSE_PROPERTIES* sparseProperties, CUarray array) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuArrayGetSparseProperties + _check_or_init_driver() + if __cuArrayGetSparseProperties == NULL: + with gil: + raise FunctionNotFoundError("function cuArrayGetSparseProperties is not found") + return (__cuArrayGetSparseProperties)( + sparseProperties, array) + + +cdef CUresult _cuMipmappedArrayGetSparseProperties(CUDA_ARRAY_SPARSE_PROPERTIES* sparseProperties, CUmipmappedArray mipmap) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMipmappedArrayGetSparseProperties + _check_or_init_driver() + if __cuMipmappedArrayGetSparseProperties == NULL: + with gil: + raise FunctionNotFoundError("function cuMipmappedArrayGetSparseProperties is not found") + return (__cuMipmappedArrayGetSparseProperties)( + sparseProperties, mipmap) + + +cdef CUresult _cuArrayGetMemoryRequirements(CUDA_ARRAY_MEMORY_REQUIREMENTS* memoryRequirements, CUarray array, CUdevice device) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuArrayGetMemoryRequirements + _check_or_init_driver() + if __cuArrayGetMemoryRequirements == NULL: + with gil: + raise FunctionNotFoundError("function cuArrayGetMemoryRequirements is not found") + return (__cuArrayGetMemoryRequirements)( + memoryRequirements, array, device) + + +cdef CUresult _cuMipmappedArrayGetMemoryRequirements(CUDA_ARRAY_MEMORY_REQUIREMENTS* memoryRequirements, CUmipmappedArray mipmap, CUdevice device) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMipmappedArrayGetMemoryRequirements + _check_or_init_driver() + if __cuMipmappedArrayGetMemoryRequirements == NULL: + with gil: + raise FunctionNotFoundError("function cuMipmappedArrayGetMemoryRequirements is not found") + return (__cuMipmappedArrayGetMemoryRequirements)( + memoryRequirements, mipmap, device) + + +cdef CUresult _cuArrayGetPlane(CUarray* pPlaneArray, CUarray hArray, unsigned int planeIdx) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuArrayGetPlane + _check_or_init_driver() + if __cuArrayGetPlane == NULL: + with gil: + raise FunctionNotFoundError("function cuArrayGetPlane is not found") + return (__cuArrayGetPlane)( + pPlaneArray, hArray, planeIdx) + + +cdef CUresult _cuArrayDestroy(CUarray hArray) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuArrayDestroy + _check_or_init_driver() + if __cuArrayDestroy == NULL: + with gil: + raise FunctionNotFoundError("function cuArrayDestroy is not found") + return (__cuArrayDestroy)( + hArray) + + +cdef CUresult _cuArray3DCreate_v2(CUarray* pHandle, const CUDA_ARRAY3D_DESCRIPTOR* pAllocateArray) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuArray3DCreate_v2 + _check_or_init_driver() + if __cuArray3DCreate_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuArray3DCreate_v2 is not found") + return (__cuArray3DCreate_v2)( + pHandle, pAllocateArray) + + +cdef CUresult _cuArray3DGetDescriptor_v2(CUDA_ARRAY3D_DESCRIPTOR* pArrayDescriptor, CUarray hArray) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuArray3DGetDescriptor_v2 + _check_or_init_driver() + if __cuArray3DGetDescriptor_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuArray3DGetDescriptor_v2 is not found") + return (__cuArray3DGetDescriptor_v2)( + pArrayDescriptor, hArray) + + +cdef CUresult _cuMipmappedArrayCreate(CUmipmappedArray* pHandle, const CUDA_ARRAY3D_DESCRIPTOR* pMipmappedArrayDesc, unsigned int numMipmapLevels) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMipmappedArrayCreate + _check_or_init_driver() + if __cuMipmappedArrayCreate == NULL: + with gil: + raise FunctionNotFoundError("function cuMipmappedArrayCreate is not found") + return (__cuMipmappedArrayCreate)( + pHandle, pMipmappedArrayDesc, numMipmapLevels) + + +cdef CUresult _cuMipmappedArrayGetLevel(CUarray* pLevelArray, CUmipmappedArray hMipmappedArray, unsigned int level) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMipmappedArrayGetLevel + _check_or_init_driver() + if __cuMipmappedArrayGetLevel == NULL: + with gil: + raise FunctionNotFoundError("function cuMipmappedArrayGetLevel is not found") + return (__cuMipmappedArrayGetLevel)( + pLevelArray, hMipmappedArray, level) + + +cdef CUresult _cuMipmappedArrayDestroy(CUmipmappedArray hMipmappedArray) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMipmappedArrayDestroy + _check_or_init_driver() + if __cuMipmappedArrayDestroy == NULL: + with gil: + raise FunctionNotFoundError("function cuMipmappedArrayDestroy is not found") + return (__cuMipmappedArrayDestroy)( + hMipmappedArray) + + +cdef CUresult _cuMemGetHandleForAddressRange(void* handle, CUdeviceptr dptr, size_t size, CUmemRangeHandleType handleType, unsigned long long flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemGetHandleForAddressRange + _check_or_init_driver() + if __cuMemGetHandleForAddressRange == NULL: + with gil: + raise FunctionNotFoundError("function cuMemGetHandleForAddressRange is not found") + return (__cuMemGetHandleForAddressRange)( + handle, dptr, size, handleType, flags) + + +cdef CUresult _cuMemBatchDecompressAsync(CUmemDecompressParams* paramsArray, size_t count, unsigned int flags, size_t* errorIndex, CUstream stream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemBatchDecompressAsync + _check_or_init_driver() + if __cuMemBatchDecompressAsync == NULL: + with gil: + raise FunctionNotFoundError("function cuMemBatchDecompressAsync is not found") + return (__cuMemBatchDecompressAsync)( + paramsArray, count, flags, errorIndex, stream) + + +cdef CUresult _cuMemAddressReserve(CUdeviceptr* ptr, size_t size, size_t alignment, CUdeviceptr addr, unsigned long long flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemAddressReserve + _check_or_init_driver() + if __cuMemAddressReserve == NULL: + with gil: + raise FunctionNotFoundError("function cuMemAddressReserve is not found") + return (__cuMemAddressReserve)( + ptr, size, alignment, addr, flags) + + +cdef CUresult _cuMemAddressFree(CUdeviceptr ptr, size_t size) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemAddressFree + _check_or_init_driver() + if __cuMemAddressFree == NULL: + with gil: + raise FunctionNotFoundError("function cuMemAddressFree is not found") + return (__cuMemAddressFree)( + ptr, size) + + +cdef CUresult _cuMemCreate(CUmemGenericAllocationHandle* handle, size_t size, const CUmemAllocationProp* prop, unsigned long long flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemCreate + _check_or_init_driver() + if __cuMemCreate == NULL: + with gil: + raise FunctionNotFoundError("function cuMemCreate is not found") + return (__cuMemCreate)( + handle, size, prop, flags) + + +cdef CUresult _cuMemRelease(CUmemGenericAllocationHandle handle) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemRelease + _check_or_init_driver() + if __cuMemRelease == NULL: + with gil: + raise FunctionNotFoundError("function cuMemRelease is not found") + return (__cuMemRelease)( + handle) + + +cdef CUresult _cuMemMap(CUdeviceptr ptr, size_t size, size_t offset, CUmemGenericAllocationHandle handle, unsigned long long flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemMap + _check_or_init_driver() + if __cuMemMap == NULL: + with gil: + raise FunctionNotFoundError("function cuMemMap is not found") + return (__cuMemMap)( + ptr, size, offset, handle, flags) + + +cdef CUresult _cuMemMapArrayAsync(CUarrayMapInfo* mapInfoList, unsigned int count, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemMapArrayAsync + _check_or_init_driver() + if __cuMemMapArrayAsync == NULL: + with gil: + raise FunctionNotFoundError("function cuMemMapArrayAsync is not found") + return (__cuMemMapArrayAsync)( + mapInfoList, count, hStream) + + +cdef CUresult _cuMemUnmap(CUdeviceptr ptr, size_t size) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemUnmap + _check_or_init_driver() + if __cuMemUnmap == NULL: + with gil: + raise FunctionNotFoundError("function cuMemUnmap is not found") + return (__cuMemUnmap)( + ptr, size) + + +cdef CUresult _cuMemSetAccess(CUdeviceptr ptr, size_t size, const CUmemAccessDesc* desc, size_t count) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemSetAccess + _check_or_init_driver() + if __cuMemSetAccess == NULL: + with gil: + raise FunctionNotFoundError("function cuMemSetAccess is not found") + return (__cuMemSetAccess)( + ptr, size, desc, count) + + +cdef CUresult _cuMemGetAccess(unsigned long long* flags, const CUmemLocation* location, CUdeviceptr ptr) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemGetAccess + _check_or_init_driver() + if __cuMemGetAccess == NULL: + with gil: + raise FunctionNotFoundError("function cuMemGetAccess is not found") + return (__cuMemGetAccess)( + flags, location, ptr) + + +cdef CUresult _cuMemExportToShareableHandle(void* shareableHandle, CUmemGenericAllocationHandle handle, CUmemAllocationHandleType handleType, unsigned long long flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemExportToShareableHandle + _check_or_init_driver() + if __cuMemExportToShareableHandle == NULL: + with gil: + raise FunctionNotFoundError("function cuMemExportToShareableHandle is not found") + return (__cuMemExportToShareableHandle)( + shareableHandle, handle, handleType, flags) + + +cdef CUresult _cuMemImportFromShareableHandle(CUmemGenericAllocationHandle* handle, void* osHandle, CUmemAllocationHandleType shHandleType) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemImportFromShareableHandle + _check_or_init_driver() + if __cuMemImportFromShareableHandle == NULL: + with gil: + raise FunctionNotFoundError("function cuMemImportFromShareableHandle is not found") + return (__cuMemImportFromShareableHandle)( + handle, osHandle, shHandleType) + + +cdef CUresult _cuMemGetAllocationGranularity(size_t* granularity, const CUmemAllocationProp* prop, CUmemAllocationGranularity_flags option) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemGetAllocationGranularity + _check_or_init_driver() + if __cuMemGetAllocationGranularity == NULL: + with gil: + raise FunctionNotFoundError("function cuMemGetAllocationGranularity is not found") + return (__cuMemGetAllocationGranularity)( + granularity, prop, option) + + +cdef CUresult _cuMemGetAllocationPropertiesFromHandle(CUmemAllocationProp* prop, CUmemGenericAllocationHandle handle) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemGetAllocationPropertiesFromHandle + _check_or_init_driver() + if __cuMemGetAllocationPropertiesFromHandle == NULL: + with gil: + raise FunctionNotFoundError("function cuMemGetAllocationPropertiesFromHandle is not found") + return (__cuMemGetAllocationPropertiesFromHandle)( + prop, handle) + + +cdef CUresult _cuMemRetainAllocationHandle(CUmemGenericAllocationHandle* handle, void* addr) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemRetainAllocationHandle + _check_or_init_driver() + if __cuMemRetainAllocationHandle == NULL: + with gil: + raise FunctionNotFoundError("function cuMemRetainAllocationHandle is not found") + return (__cuMemRetainAllocationHandle)( + handle, addr) + + +cdef CUresult _cuMemFreeAsync(CUdeviceptr dptr, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemFreeAsync + _check_or_init_driver() + if __cuMemFreeAsync == NULL: + with gil: + raise FunctionNotFoundError("function cuMemFreeAsync is not found") + return (__cuMemFreeAsync)( + dptr, hStream) + + +cdef CUresult _cuMemAllocAsync(CUdeviceptr* dptr, size_t bytesize, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemAllocAsync + _check_or_init_driver() + if __cuMemAllocAsync == NULL: + with gil: + raise FunctionNotFoundError("function cuMemAllocAsync is not found") + return (__cuMemAllocAsync)( + dptr, bytesize, hStream) + + +cdef CUresult _cuMemPoolTrimTo(CUmemoryPool pool, size_t minBytesToKeep) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemPoolTrimTo + _check_or_init_driver() + if __cuMemPoolTrimTo == NULL: + with gil: + raise FunctionNotFoundError("function cuMemPoolTrimTo is not found") + return (__cuMemPoolTrimTo)( + pool, minBytesToKeep) + + +cdef CUresult _cuMemPoolSetAttribute(CUmemoryPool pool, CUmemPool_attribute attr, void* value) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemPoolSetAttribute + _check_or_init_driver() + if __cuMemPoolSetAttribute == NULL: + with gil: + raise FunctionNotFoundError("function cuMemPoolSetAttribute is not found") + return (__cuMemPoolSetAttribute)( + pool, attr, value) + + +cdef CUresult _cuMemPoolGetAttribute(CUmemoryPool pool, CUmemPool_attribute attr, void* value) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemPoolGetAttribute + _check_or_init_driver() + if __cuMemPoolGetAttribute == NULL: + with gil: + raise FunctionNotFoundError("function cuMemPoolGetAttribute is not found") + return (__cuMemPoolGetAttribute)( + pool, attr, value) + + +cdef CUresult _cuMemPoolSetAccess(CUmemoryPool pool, const CUmemAccessDesc* map, size_t count) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemPoolSetAccess + _check_or_init_driver() + if __cuMemPoolSetAccess == NULL: + with gil: + raise FunctionNotFoundError("function cuMemPoolSetAccess is not found") + return (__cuMemPoolSetAccess)( + pool, map, count) + + +cdef CUresult _cuMemPoolGetAccess(CUmemAccess_flags* flags, CUmemoryPool memPool, CUmemLocation* location) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemPoolGetAccess + _check_or_init_driver() + if __cuMemPoolGetAccess == NULL: + with gil: + raise FunctionNotFoundError("function cuMemPoolGetAccess is not found") + return (__cuMemPoolGetAccess)( + flags, memPool, location) + + +cdef CUresult _cuMemPoolCreate(CUmemoryPool* pool, const CUmemPoolProps* poolProps) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemPoolCreate + _check_or_init_driver() + if __cuMemPoolCreate == NULL: + with gil: + raise FunctionNotFoundError("function cuMemPoolCreate is not found") + return (__cuMemPoolCreate)( + pool, poolProps) + + +cdef CUresult _cuMemPoolDestroy(CUmemoryPool pool) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemPoolDestroy + _check_or_init_driver() + if __cuMemPoolDestroy == NULL: + with gil: + raise FunctionNotFoundError("function cuMemPoolDestroy is not found") + return (__cuMemPoolDestroy)( + pool) + + +cdef CUresult _cuMemAllocFromPoolAsync(CUdeviceptr* dptr, size_t bytesize, CUmemoryPool pool, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemAllocFromPoolAsync + _check_or_init_driver() + if __cuMemAllocFromPoolAsync == NULL: + with gil: + raise FunctionNotFoundError("function cuMemAllocFromPoolAsync is not found") + return (__cuMemAllocFromPoolAsync)( + dptr, bytesize, pool, hStream) + + +cdef CUresult _cuMemPoolExportToShareableHandle(void* handle_out, CUmemoryPool pool, CUmemAllocationHandleType handleType, unsigned long long flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemPoolExportToShareableHandle + _check_or_init_driver() + if __cuMemPoolExportToShareableHandle == NULL: + with gil: + raise FunctionNotFoundError("function cuMemPoolExportToShareableHandle is not found") + return (__cuMemPoolExportToShareableHandle)( + handle_out, pool, handleType, flags) + + +cdef CUresult _cuMemPoolImportFromShareableHandle(CUmemoryPool* pool_out, void* handle, CUmemAllocationHandleType handleType, unsigned long long flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemPoolImportFromShareableHandle + _check_or_init_driver() + if __cuMemPoolImportFromShareableHandle == NULL: + with gil: + raise FunctionNotFoundError("function cuMemPoolImportFromShareableHandle is not found") + return (__cuMemPoolImportFromShareableHandle)( + pool_out, handle, handleType, flags) + + +cdef CUresult _cuMemPoolExportPointer(CUmemPoolPtrExportData* shareData_out, CUdeviceptr ptr) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemPoolExportPointer + _check_or_init_driver() + if __cuMemPoolExportPointer == NULL: + with gil: + raise FunctionNotFoundError("function cuMemPoolExportPointer is not found") + return (__cuMemPoolExportPointer)( + shareData_out, ptr) + + +cdef CUresult _cuMemPoolImportPointer(CUdeviceptr* ptr_out, CUmemoryPool pool, CUmemPoolPtrExportData* shareData) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemPoolImportPointer + _check_or_init_driver() + if __cuMemPoolImportPointer == NULL: + with gil: + raise FunctionNotFoundError("function cuMemPoolImportPointer is not found") + return (__cuMemPoolImportPointer)( + ptr_out, pool, shareData) + + +cdef CUresult _cuMulticastCreate(CUmemGenericAllocationHandle* mcHandle, const CUmulticastObjectProp* prop) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMulticastCreate + _check_or_init_driver() + if __cuMulticastCreate == NULL: + with gil: + raise FunctionNotFoundError("function cuMulticastCreate is not found") + return (__cuMulticastCreate)( + mcHandle, prop) + + +cdef CUresult _cuMulticastAddDevice(CUmemGenericAllocationHandle mcHandle, CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMulticastAddDevice + _check_or_init_driver() + if __cuMulticastAddDevice == NULL: + with gil: + raise FunctionNotFoundError("function cuMulticastAddDevice is not found") + return (__cuMulticastAddDevice)( + mcHandle, dev) + + +cdef CUresult _cuMulticastBindMem(CUmemGenericAllocationHandle mcHandle, size_t mcOffset, CUmemGenericAllocationHandle memHandle, size_t memOffset, size_t size, unsigned long long flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMulticastBindMem + _check_or_init_driver() + if __cuMulticastBindMem == NULL: + with gil: + raise FunctionNotFoundError("function cuMulticastBindMem is not found") + return (__cuMulticastBindMem)( + mcHandle, mcOffset, memHandle, memOffset, size, flags) + + +cdef CUresult _cuMulticastBindAddr(CUmemGenericAllocationHandle mcHandle, size_t mcOffset, CUdeviceptr memptr, size_t size, unsigned long long flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMulticastBindAddr + _check_or_init_driver() + if __cuMulticastBindAddr == NULL: + with gil: + raise FunctionNotFoundError("function cuMulticastBindAddr is not found") + return (__cuMulticastBindAddr)( + mcHandle, mcOffset, memptr, size, flags) + + +cdef CUresult _cuMulticastUnbind(CUmemGenericAllocationHandle mcHandle, CUdevice dev, size_t mcOffset, size_t size) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMulticastUnbind + _check_or_init_driver() + if __cuMulticastUnbind == NULL: + with gil: + raise FunctionNotFoundError("function cuMulticastUnbind is not found") + return (__cuMulticastUnbind)( + mcHandle, dev, mcOffset, size) + + +cdef CUresult _cuMulticastGetGranularity(size_t* granularity, const CUmulticastObjectProp* prop, CUmulticastGranularity_flags option) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMulticastGetGranularity + _check_or_init_driver() + if __cuMulticastGetGranularity == NULL: + with gil: + raise FunctionNotFoundError("function cuMulticastGetGranularity is not found") + return (__cuMulticastGetGranularity)( + granularity, prop, option) + + +cdef CUresult _cuPointerGetAttribute(void* data, CUpointer_attribute attribute, CUdeviceptr ptr) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuPointerGetAttribute + _check_or_init_driver() + if __cuPointerGetAttribute == NULL: + with gil: + raise FunctionNotFoundError("function cuPointerGetAttribute is not found") + return (__cuPointerGetAttribute)( + data, attribute, ptr) + + +cdef CUresult _cuMemPrefetchAsync_v2(CUdeviceptr devPtr, size_t count, CUmemLocation location, unsigned int flags, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemPrefetchAsync_v2 + _check_or_init_driver() + if __cuMemPrefetchAsync_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuMemPrefetchAsync_v2 is not found") + return (__cuMemPrefetchAsync_v2)( + devPtr, count, location, flags, hStream) + + +cdef CUresult _cuMemAdvise_v2(CUdeviceptr devPtr, size_t count, CUmem_advise advice, CUmemLocation location) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemAdvise_v2 + _check_or_init_driver() + if __cuMemAdvise_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuMemAdvise_v2 is not found") + return (__cuMemAdvise_v2)( + devPtr, count, advice, location) + + +cdef CUresult _cuMemRangeGetAttribute(void* data, size_t dataSize, CUmem_range_attribute attribute, CUdeviceptr devPtr, size_t count) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemRangeGetAttribute + _check_or_init_driver() + if __cuMemRangeGetAttribute == NULL: + with gil: + raise FunctionNotFoundError("function cuMemRangeGetAttribute is not found") + return (__cuMemRangeGetAttribute)( + data, dataSize, attribute, devPtr, count) + + +cdef CUresult _cuMemRangeGetAttributes(void** data, size_t* dataSizes, CUmem_range_attribute* attributes, size_t numAttributes, CUdeviceptr devPtr, size_t count) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemRangeGetAttributes + _check_or_init_driver() + if __cuMemRangeGetAttributes == NULL: + with gil: + raise FunctionNotFoundError("function cuMemRangeGetAttributes is not found") + return (__cuMemRangeGetAttributes)( + data, dataSizes, attributes, numAttributes, devPtr, count) + + +cdef CUresult _cuPointerSetAttribute(const void* value, CUpointer_attribute attribute, CUdeviceptr ptr) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuPointerSetAttribute + _check_or_init_driver() + if __cuPointerSetAttribute == NULL: + with gil: + raise FunctionNotFoundError("function cuPointerSetAttribute is not found") + return (__cuPointerSetAttribute)( + value, attribute, ptr) + + +cdef CUresult _cuPointerGetAttributes(unsigned int numAttributes, CUpointer_attribute* attributes, void** data, CUdeviceptr ptr) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuPointerGetAttributes + _check_or_init_driver() + if __cuPointerGetAttributes == NULL: + with gil: + raise FunctionNotFoundError("function cuPointerGetAttributes is not found") + return (__cuPointerGetAttributes)( + numAttributes, attributes, data, ptr) + + +cdef CUresult _cuStreamCreate(CUstream* phStream, unsigned int Flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuStreamCreate + _check_or_init_driver() + if __cuStreamCreate == NULL: + with gil: + raise FunctionNotFoundError("function cuStreamCreate is not found") + return (__cuStreamCreate)( + phStream, Flags) + + +cdef CUresult _cuStreamCreateWithPriority(CUstream* phStream, unsigned int flags, int priority) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuStreamCreateWithPriority + _check_or_init_driver() + if __cuStreamCreateWithPriority == NULL: + with gil: + raise FunctionNotFoundError("function cuStreamCreateWithPriority is not found") + return (__cuStreamCreateWithPriority)( + phStream, flags, priority) + + +cdef CUresult _cuStreamGetPriority(CUstream hStream, int* priority) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuStreamGetPriority + _check_or_init_driver() + if __cuStreamGetPriority == NULL: + with gil: + raise FunctionNotFoundError("function cuStreamGetPriority is not found") + return (__cuStreamGetPriority)( + hStream, priority) + + +cdef CUresult _cuStreamGetDevice(CUstream hStream, CUdevice* device) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuStreamGetDevice + _check_or_init_driver() + if __cuStreamGetDevice == NULL: + with gil: + raise FunctionNotFoundError("function cuStreamGetDevice is not found") + return (__cuStreamGetDevice)( + hStream, device) + + +cdef CUresult _cuStreamGetFlags(CUstream hStream, unsigned int* flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuStreamGetFlags + _check_or_init_driver() + if __cuStreamGetFlags == NULL: + with gil: + raise FunctionNotFoundError("function cuStreamGetFlags is not found") + return (__cuStreamGetFlags)( + hStream, flags) + + +cdef CUresult _cuStreamGetId(CUstream hStream, unsigned long long* streamId) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuStreamGetId + _check_or_init_driver() + if __cuStreamGetId == NULL: + with gil: + raise FunctionNotFoundError("function cuStreamGetId is not found") + return (__cuStreamGetId)( + hStream, streamId) + + +cdef CUresult _cuStreamGetCtx(CUstream hStream, CUcontext* pctx) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuStreamGetCtx + _check_or_init_driver() + if __cuStreamGetCtx == NULL: + with gil: + raise FunctionNotFoundError("function cuStreamGetCtx is not found") + return (__cuStreamGetCtx)( + hStream, pctx) + + +cdef CUresult _cuStreamGetCtx_v2(CUstream hStream, CUcontext* pCtx, CUgreenCtx* pGreenCtx) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuStreamGetCtx_v2 + _check_or_init_driver() + if __cuStreamGetCtx_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuStreamGetCtx_v2 is not found") + return (__cuStreamGetCtx_v2)( + hStream, pCtx, pGreenCtx) + + +cdef CUresult _cuStreamWaitEvent(CUstream hStream, CUevent hEvent, unsigned int Flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuStreamWaitEvent + _check_or_init_driver() + if __cuStreamWaitEvent == NULL: + with gil: + raise FunctionNotFoundError("function cuStreamWaitEvent is not found") + return (__cuStreamWaitEvent)( + hStream, hEvent, Flags) + + +cdef CUresult _cuStreamAddCallback(CUstream hStream, CUstreamCallback callback, void* userData, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuStreamAddCallback + _check_or_init_driver() + if __cuStreamAddCallback == NULL: + with gil: + raise FunctionNotFoundError("function cuStreamAddCallback is not found") + return (__cuStreamAddCallback)( + hStream, callback, userData, flags) + + +cdef CUresult _cuStreamBeginCapture_v2(CUstream hStream, CUstreamCaptureMode mode) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuStreamBeginCapture_v2 + _check_or_init_driver() + if __cuStreamBeginCapture_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuStreamBeginCapture_v2 is not found") + return (__cuStreamBeginCapture_v2)( + hStream, mode) + + +cdef CUresult _cuStreamBeginCaptureToGraph(CUstream hStream, CUgraph hGraph, const CUgraphNode* dependencies, const CUgraphEdgeData* dependencyData, size_t numDependencies, CUstreamCaptureMode mode) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuStreamBeginCaptureToGraph + _check_or_init_driver() + if __cuStreamBeginCaptureToGraph == NULL: + with gil: + raise FunctionNotFoundError("function cuStreamBeginCaptureToGraph is not found") + return (__cuStreamBeginCaptureToGraph)( + hStream, hGraph, dependencies, dependencyData, numDependencies, mode) + + +cdef CUresult _cuThreadExchangeStreamCaptureMode(CUstreamCaptureMode* mode) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuThreadExchangeStreamCaptureMode + _check_or_init_driver() + if __cuThreadExchangeStreamCaptureMode == NULL: + with gil: + raise FunctionNotFoundError("function cuThreadExchangeStreamCaptureMode is not found") + return (__cuThreadExchangeStreamCaptureMode)( + mode) + + +cdef CUresult _cuStreamEndCapture(CUstream hStream, CUgraph* phGraph) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuStreamEndCapture + _check_or_init_driver() + if __cuStreamEndCapture == NULL: + with gil: + raise FunctionNotFoundError("function cuStreamEndCapture is not found") + return (__cuStreamEndCapture)( + hStream, phGraph) + + +cdef CUresult _cuStreamIsCapturing(CUstream hStream, CUstreamCaptureStatus* captureStatus) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuStreamIsCapturing + _check_or_init_driver() + if __cuStreamIsCapturing == NULL: + with gil: + raise FunctionNotFoundError("function cuStreamIsCapturing is not found") + return (__cuStreamIsCapturing)( + hStream, captureStatus) + + +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?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuStreamGetCaptureInfo_v3 + _check_or_init_driver() + if __cuStreamGetCaptureInfo_v3 == NULL: + with gil: + raise FunctionNotFoundError("function cuStreamGetCaptureInfo_v3 is not found") + return (__cuStreamGetCaptureInfo_v3)( + hStream, captureStatus_out, id_out, graph_out, dependencies_out, edgeData_out, numDependencies_out) + + +cdef CUresult _cuStreamUpdateCaptureDependencies_v2(CUstream hStream, CUgraphNode* dependencies, const CUgraphEdgeData* dependencyData, size_t numDependencies, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuStreamUpdateCaptureDependencies_v2 + _check_or_init_driver() + if __cuStreamUpdateCaptureDependencies_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuStreamUpdateCaptureDependencies_v2 is not found") + return (__cuStreamUpdateCaptureDependencies_v2)( + hStream, dependencies, dependencyData, numDependencies, flags) + + +cdef CUresult _cuStreamAttachMemAsync(CUstream hStream, CUdeviceptr dptr, size_t length, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuStreamAttachMemAsync + _check_or_init_driver() + if __cuStreamAttachMemAsync == NULL: + with gil: + raise FunctionNotFoundError("function cuStreamAttachMemAsync is not found") + return (__cuStreamAttachMemAsync)( + hStream, dptr, length, flags) + + +cdef CUresult _cuStreamQuery(CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuStreamQuery + _check_or_init_driver() + if __cuStreamQuery == NULL: + with gil: + raise FunctionNotFoundError("function cuStreamQuery is not found") + return (__cuStreamQuery)( + hStream) + + +cdef CUresult _cuStreamSynchronize(CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuStreamSynchronize + _check_or_init_driver() + if __cuStreamSynchronize == NULL: + with gil: + raise FunctionNotFoundError("function cuStreamSynchronize is not found") + return (__cuStreamSynchronize)( + hStream) + + +cdef CUresult _cuStreamDestroy_v2(CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuStreamDestroy_v2 + _check_or_init_driver() + if __cuStreamDestroy_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuStreamDestroy_v2 is not found") + return (__cuStreamDestroy_v2)( + hStream) + + +cdef CUresult _cuStreamCopyAttributes(CUstream dst, CUstream src) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuStreamCopyAttributes + _check_or_init_driver() + if __cuStreamCopyAttributes == NULL: + with gil: + raise FunctionNotFoundError("function cuStreamCopyAttributes is not found") + return (__cuStreamCopyAttributes)( + dst, src) + + +cdef CUresult _cuStreamGetAttribute(CUstream hStream, CUstreamAttrID attr, CUstreamAttrValue* value_out) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuStreamGetAttribute + _check_or_init_driver() + if __cuStreamGetAttribute == NULL: + with gil: + raise FunctionNotFoundError("function cuStreamGetAttribute is not found") + return (__cuStreamGetAttribute)( + hStream, attr, value_out) + + +cdef CUresult _cuStreamSetAttribute(CUstream hStream, CUstreamAttrID attr, const CUstreamAttrValue* value) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuStreamSetAttribute + _check_or_init_driver() + if __cuStreamSetAttribute == NULL: + with gil: + raise FunctionNotFoundError("function cuStreamSetAttribute is not found") + return (__cuStreamSetAttribute)( + hStream, attr, value) + + +cdef CUresult _cuEventCreate(CUevent* phEvent, unsigned int Flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuEventCreate + _check_or_init_driver() + if __cuEventCreate == NULL: + with gil: + raise FunctionNotFoundError("function cuEventCreate is not found") + return (__cuEventCreate)( + phEvent, Flags) + + +cdef CUresult _cuEventRecord(CUevent hEvent, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuEventRecord + _check_or_init_driver() + if __cuEventRecord == NULL: + with gil: + raise FunctionNotFoundError("function cuEventRecord is not found") + return (__cuEventRecord)( + hEvent, hStream) + + +cdef CUresult _cuEventRecordWithFlags(CUevent hEvent, CUstream hStream, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuEventRecordWithFlags + _check_or_init_driver() + if __cuEventRecordWithFlags == NULL: + with gil: + raise FunctionNotFoundError("function cuEventRecordWithFlags is not found") + return (__cuEventRecordWithFlags)( + hEvent, hStream, flags) + + +cdef CUresult _cuEventQuery(CUevent hEvent) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuEventQuery + _check_or_init_driver() + if __cuEventQuery == NULL: + with gil: + raise FunctionNotFoundError("function cuEventQuery is not found") + return (__cuEventQuery)( + hEvent) + + +cdef CUresult _cuEventSynchronize(CUevent hEvent) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuEventSynchronize + _check_or_init_driver() + if __cuEventSynchronize == NULL: + with gil: + raise FunctionNotFoundError("function cuEventSynchronize is not found") + return (__cuEventSynchronize)( + hEvent) + + +cdef CUresult _cuEventDestroy_v2(CUevent hEvent) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuEventDestroy_v2 + _check_or_init_driver() + if __cuEventDestroy_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuEventDestroy_v2 is not found") + return (__cuEventDestroy_v2)( + hEvent) + + +cdef CUresult _cuEventElapsedTime_v2(float* pMilliseconds, CUevent hStart, CUevent hEnd) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuEventElapsedTime_v2 + _check_or_init_driver() + if __cuEventElapsedTime_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuEventElapsedTime_v2 is not found") + return (__cuEventElapsedTime_v2)( + pMilliseconds, hStart, hEnd) + + +cdef CUresult _cuImportExternalMemory(CUexternalMemory* extMem_out, const CUDA_EXTERNAL_MEMORY_HANDLE_DESC* memHandleDesc) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuImportExternalMemory + _check_or_init_driver() + if __cuImportExternalMemory == NULL: + with gil: + raise FunctionNotFoundError("function cuImportExternalMemory is not found") + return (__cuImportExternalMemory)( + extMem_out, memHandleDesc) + + +cdef CUresult _cuExternalMemoryGetMappedBuffer(CUdeviceptr* devPtr, CUexternalMemory extMem, const CUDA_EXTERNAL_MEMORY_BUFFER_DESC* bufferDesc) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuExternalMemoryGetMappedBuffer + _check_or_init_driver() + if __cuExternalMemoryGetMappedBuffer == NULL: + with gil: + raise FunctionNotFoundError("function cuExternalMemoryGetMappedBuffer is not found") + return (__cuExternalMemoryGetMappedBuffer)( + devPtr, extMem, bufferDesc) + + +cdef CUresult _cuExternalMemoryGetMappedMipmappedArray(CUmipmappedArray* mipmap, CUexternalMemory extMem, const CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC* mipmapDesc) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuExternalMemoryGetMappedMipmappedArray + _check_or_init_driver() + if __cuExternalMemoryGetMappedMipmappedArray == NULL: + with gil: + raise FunctionNotFoundError("function cuExternalMemoryGetMappedMipmappedArray is not found") + return (__cuExternalMemoryGetMappedMipmappedArray)( + mipmap, extMem, mipmapDesc) + + +cdef CUresult _cuDestroyExternalMemory(CUexternalMemory extMem) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuDestroyExternalMemory + _check_or_init_driver() + if __cuDestroyExternalMemory == NULL: + with gil: + raise FunctionNotFoundError("function cuDestroyExternalMemory is not found") + return (__cuDestroyExternalMemory)( + extMem) + + +cdef CUresult _cuImportExternalSemaphore(CUexternalSemaphore* extSem_out, const CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC* semHandleDesc) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuImportExternalSemaphore + _check_or_init_driver() + if __cuImportExternalSemaphore == NULL: + with gil: + raise FunctionNotFoundError("function cuImportExternalSemaphore is not found") + return (__cuImportExternalSemaphore)( + extSem_out, semHandleDesc) + + +cdef CUresult _cuSignalExternalSemaphoresAsync(const CUexternalSemaphore* extSemArray, const CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS* paramsArray, unsigned int numExtSems, CUstream stream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuSignalExternalSemaphoresAsync + _check_or_init_driver() + if __cuSignalExternalSemaphoresAsync == NULL: + with gil: + raise FunctionNotFoundError("function cuSignalExternalSemaphoresAsync is not found") + return (__cuSignalExternalSemaphoresAsync)( + extSemArray, paramsArray, numExtSems, stream) + + +cdef CUresult _cuWaitExternalSemaphoresAsync(const CUexternalSemaphore* extSemArray, const CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS* paramsArray, unsigned int numExtSems, CUstream stream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuWaitExternalSemaphoresAsync + _check_or_init_driver() + if __cuWaitExternalSemaphoresAsync == NULL: + with gil: + raise FunctionNotFoundError("function cuWaitExternalSemaphoresAsync is not found") + return (__cuWaitExternalSemaphoresAsync)( + extSemArray, paramsArray, numExtSems, stream) + + +cdef CUresult _cuDestroyExternalSemaphore(CUexternalSemaphore extSem) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuDestroyExternalSemaphore + _check_or_init_driver() + if __cuDestroyExternalSemaphore == NULL: + with gil: + raise FunctionNotFoundError("function cuDestroyExternalSemaphore is not found") + return (__cuDestroyExternalSemaphore)( + extSem) + + +cdef CUresult _cuStreamWaitValue32_v2(CUstream stream, CUdeviceptr addr, cuuint32_t value, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuStreamWaitValue32_v2 + _check_or_init_driver() + if __cuStreamWaitValue32_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuStreamWaitValue32_v2 is not found") + return (__cuStreamWaitValue32_v2)( + stream, addr, value, flags) + + +cdef CUresult _cuStreamWaitValue64_v2(CUstream stream, CUdeviceptr addr, cuuint64_t value, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuStreamWaitValue64_v2 + _check_or_init_driver() + if __cuStreamWaitValue64_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuStreamWaitValue64_v2 is not found") + return (__cuStreamWaitValue64_v2)( + stream, addr, value, flags) + + +cdef CUresult _cuStreamWriteValue32_v2(CUstream stream, CUdeviceptr addr, cuuint32_t value, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuStreamWriteValue32_v2 + _check_or_init_driver() + if __cuStreamWriteValue32_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuStreamWriteValue32_v2 is not found") + return (__cuStreamWriteValue32_v2)( + stream, addr, value, flags) + + +cdef CUresult _cuStreamWriteValue64_v2(CUstream stream, CUdeviceptr addr, cuuint64_t value, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuStreamWriteValue64_v2 + _check_or_init_driver() + if __cuStreamWriteValue64_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuStreamWriteValue64_v2 is not found") + return (__cuStreamWriteValue64_v2)( + stream, addr, value, flags) + + +cdef CUresult _cuStreamBatchMemOp_v2(CUstream stream, unsigned int count, CUstreamBatchMemOpParams* paramArray, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuStreamBatchMemOp_v2 + _check_or_init_driver() + if __cuStreamBatchMemOp_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuStreamBatchMemOp_v2 is not found") + return (__cuStreamBatchMemOp_v2)( + stream, count, paramArray, flags) + + +cdef CUresult _cuFuncGetAttribute(int* pi, CUfunction_attribute attrib, CUfunction hfunc) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuFuncGetAttribute + _check_or_init_driver() + if __cuFuncGetAttribute == NULL: + with gil: + raise FunctionNotFoundError("function cuFuncGetAttribute is not found") + return (__cuFuncGetAttribute)( + pi, attrib, hfunc) + + +cdef CUresult _cuFuncSetAttribute(CUfunction hfunc, CUfunction_attribute attrib, int value) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuFuncSetAttribute + _check_or_init_driver() + if __cuFuncSetAttribute == NULL: + with gil: + raise FunctionNotFoundError("function cuFuncSetAttribute is not found") + return (__cuFuncSetAttribute)( + hfunc, attrib, value) + + +cdef CUresult _cuFuncSetCacheConfig(CUfunction hfunc, CUfunc_cache config) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuFuncSetCacheConfig + _check_or_init_driver() + if __cuFuncSetCacheConfig == NULL: + with gil: + raise FunctionNotFoundError("function cuFuncSetCacheConfig is not found") + return (__cuFuncSetCacheConfig)( + hfunc, config) + + +cdef CUresult _cuFuncGetModule(CUmodule* hmod, CUfunction hfunc) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuFuncGetModule + _check_or_init_driver() + if __cuFuncGetModule == NULL: + with gil: + raise FunctionNotFoundError("function cuFuncGetModule is not found") + return (__cuFuncGetModule)( + hmod, hfunc) + + +cdef CUresult _cuFuncGetName(const char** name, CUfunction hfunc) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuFuncGetName + _check_or_init_driver() + if __cuFuncGetName == NULL: + with gil: + raise FunctionNotFoundError("function cuFuncGetName is not found") + return (__cuFuncGetName)( + name, hfunc) + + +cdef CUresult _cuFuncGetParamInfo(CUfunction func, size_t paramIndex, size_t* paramOffset, size_t* paramSize) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuFuncGetParamInfo + _check_or_init_driver() + if __cuFuncGetParamInfo == NULL: + with gil: + raise FunctionNotFoundError("function cuFuncGetParamInfo is not found") + return (__cuFuncGetParamInfo)( + func, paramIndex, paramOffset, paramSize) + + +cdef CUresult _cuFuncIsLoaded(CUfunctionLoadingState* state, CUfunction function) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuFuncIsLoaded + _check_or_init_driver() + if __cuFuncIsLoaded == NULL: + with gil: + raise FunctionNotFoundError("function cuFuncIsLoaded is not found") + return (__cuFuncIsLoaded)( + state, function) + + +cdef CUresult _cuFuncLoad(CUfunction function) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuFuncLoad + _check_or_init_driver() + if __cuFuncLoad == NULL: + with gil: + raise FunctionNotFoundError("function cuFuncLoad is not found") + return (__cuFuncLoad)( + function) + + +cdef CUresult _cuLaunchKernel(CUfunction f, unsigned int gridDimX, unsigned int gridDimY, unsigned int gridDimZ, unsigned int blockDimX, unsigned int blockDimY, unsigned int blockDimZ, unsigned int sharedMemBytes, CUstream hStream, void** kernelParams, void** extra) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuLaunchKernel + _check_or_init_driver() + if __cuLaunchKernel == NULL: + with gil: + raise FunctionNotFoundError("function cuLaunchKernel is not found") + return (__cuLaunchKernel)( + f, gridDimX, gridDimY, gridDimZ, blockDimX, blockDimY, blockDimZ, sharedMemBytes, hStream, kernelParams, extra) + + +cdef CUresult _cuLaunchKernelEx(const CUlaunchConfig* config, CUfunction f, void** kernelParams, void** extra) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuLaunchKernelEx + _check_or_init_driver() + if __cuLaunchKernelEx == NULL: + with gil: + raise FunctionNotFoundError("function cuLaunchKernelEx is not found") + return (__cuLaunchKernelEx)( + config, f, kernelParams, extra) + + +cdef CUresult _cuLaunchCooperativeKernel(CUfunction f, unsigned int gridDimX, unsigned int gridDimY, unsigned int gridDimZ, unsigned int blockDimX, unsigned int blockDimY, unsigned int blockDimZ, unsigned int sharedMemBytes, CUstream hStream, void** kernelParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuLaunchCooperativeKernel + _check_or_init_driver() + if __cuLaunchCooperativeKernel == NULL: + with gil: + raise FunctionNotFoundError("function cuLaunchCooperativeKernel is not found") + return (__cuLaunchCooperativeKernel)( + f, gridDimX, gridDimY, gridDimZ, blockDimX, blockDimY, blockDimZ, sharedMemBytes, hStream, kernelParams) + + +cdef CUresult _cuLaunchCooperativeKernelMultiDevice(CUDA_LAUNCH_PARAMS* launchParamsList, unsigned int numDevices, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuLaunchCooperativeKernelMultiDevice + _check_or_init_driver() + if __cuLaunchCooperativeKernelMultiDevice == NULL: + with gil: + raise FunctionNotFoundError("function cuLaunchCooperativeKernelMultiDevice is not found") + return (__cuLaunchCooperativeKernelMultiDevice)( + launchParamsList, numDevices, flags) + + +cdef CUresult _cuLaunchHostFunc(CUstream hStream, CUhostFn fn, void* userData) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuLaunchHostFunc + _check_or_init_driver() + if __cuLaunchHostFunc == NULL: + with gil: + raise FunctionNotFoundError("function cuLaunchHostFunc is not found") + return (__cuLaunchHostFunc)( + hStream, fn, userData) + + +cdef CUresult _cuFuncSetBlockShape(CUfunction hfunc, int x, int y, int z) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuFuncSetBlockShape + _check_or_init_driver() + if __cuFuncSetBlockShape == NULL: + with gil: + raise FunctionNotFoundError("function cuFuncSetBlockShape is not found") + return (__cuFuncSetBlockShape)( + hfunc, x, y, z) + + +cdef CUresult _cuFuncSetSharedSize(CUfunction hfunc, unsigned int bytes) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuFuncSetSharedSize + _check_or_init_driver() + if __cuFuncSetSharedSize == NULL: + with gil: + raise FunctionNotFoundError("function cuFuncSetSharedSize is not found") + return (__cuFuncSetSharedSize)( + hfunc, bytes) + + +cdef CUresult _cuParamSetSize(CUfunction hfunc, unsigned int numbytes) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuParamSetSize + _check_or_init_driver() + if __cuParamSetSize == NULL: + with gil: + raise FunctionNotFoundError("function cuParamSetSize is not found") + return (__cuParamSetSize)( + hfunc, numbytes) + + +cdef CUresult _cuParamSeti(CUfunction hfunc, int offset, unsigned int value) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuParamSeti + _check_or_init_driver() + if __cuParamSeti == NULL: + with gil: + raise FunctionNotFoundError("function cuParamSeti is not found") + return (__cuParamSeti)( + hfunc, offset, value) + + +cdef CUresult _cuParamSetf(CUfunction hfunc, int offset, float value) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuParamSetf + _check_or_init_driver() + if __cuParamSetf == NULL: + with gil: + raise FunctionNotFoundError("function cuParamSetf is not found") + return (__cuParamSetf)( + hfunc, offset, value) + + +cdef CUresult _cuParamSetv(CUfunction hfunc, int offset, void* ptr, unsigned int numbytes) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuParamSetv + _check_or_init_driver() + if __cuParamSetv == NULL: + with gil: + raise FunctionNotFoundError("function cuParamSetv is not found") + return (__cuParamSetv)( + hfunc, offset, ptr, numbytes) + + +cdef CUresult _cuLaunch(CUfunction f) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuLaunch + _check_or_init_driver() + if __cuLaunch == NULL: + with gil: + raise FunctionNotFoundError("function cuLaunch is not found") + return (__cuLaunch)( + f) + + +cdef CUresult _cuLaunchGrid(CUfunction f, int grid_width, int grid_height) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuLaunchGrid + _check_or_init_driver() + if __cuLaunchGrid == NULL: + with gil: + raise FunctionNotFoundError("function cuLaunchGrid is not found") + return (__cuLaunchGrid)( + f, grid_width, grid_height) + + +cdef CUresult _cuLaunchGridAsync(CUfunction f, int grid_width, int grid_height, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuLaunchGridAsync + _check_or_init_driver() + if __cuLaunchGridAsync == NULL: + with gil: + raise FunctionNotFoundError("function cuLaunchGridAsync is not found") + return (__cuLaunchGridAsync)( + f, grid_width, grid_height, hStream) + + +cdef CUresult _cuParamSetTexRef(CUfunction hfunc, int texunit, CUtexref hTexRef) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuParamSetTexRef + _check_or_init_driver() + if __cuParamSetTexRef == NULL: + with gil: + raise FunctionNotFoundError("function cuParamSetTexRef is not found") + return (__cuParamSetTexRef)( + hfunc, texunit, hTexRef) + + +cdef CUresult _cuFuncSetSharedMemConfig(CUfunction hfunc, CUsharedconfig config) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuFuncSetSharedMemConfig + _check_or_init_driver() + if __cuFuncSetSharedMemConfig == NULL: + with gil: + raise FunctionNotFoundError("function cuFuncSetSharedMemConfig is not found") + return (__cuFuncSetSharedMemConfig)( + hfunc, config) + + +cdef CUresult _cuGraphCreate(CUgraph* phGraph, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphCreate + _check_or_init_driver() + if __cuGraphCreate == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphCreate is not found") + return (__cuGraphCreate)( + phGraph, flags) + + +cdef CUresult _cuGraphAddKernelNode_v2(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, const CUDA_KERNEL_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphAddKernelNode_v2 + _check_or_init_driver() + if __cuGraphAddKernelNode_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphAddKernelNode_v2 is not found") + return (__cuGraphAddKernelNode_v2)( + phGraphNode, hGraph, dependencies, numDependencies, nodeParams) + + +cdef CUresult _cuGraphKernelNodeGetParams_v2(CUgraphNode hNode, CUDA_KERNEL_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphKernelNodeGetParams_v2 + _check_or_init_driver() + if __cuGraphKernelNodeGetParams_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphKernelNodeGetParams_v2 is not found") + return (__cuGraphKernelNodeGetParams_v2)( + hNode, nodeParams) + + +cdef CUresult _cuGraphKernelNodeSetParams_v2(CUgraphNode hNode, const CUDA_KERNEL_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphKernelNodeSetParams_v2 + _check_or_init_driver() + if __cuGraphKernelNodeSetParams_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphKernelNodeSetParams_v2 is not found") + return (__cuGraphKernelNodeSetParams_v2)( + hNode, nodeParams) + + +cdef CUresult _cuGraphAddMemcpyNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, const CUDA_MEMCPY3D* copyParams, CUcontext ctx) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphAddMemcpyNode + _check_or_init_driver() + if __cuGraphAddMemcpyNode == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphAddMemcpyNode is not found") + return (__cuGraphAddMemcpyNode)( + phGraphNode, hGraph, dependencies, numDependencies, copyParams, ctx) + + +cdef CUresult _cuGraphMemcpyNodeGetParams(CUgraphNode hNode, CUDA_MEMCPY3D* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphMemcpyNodeGetParams + _check_or_init_driver() + if __cuGraphMemcpyNodeGetParams == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphMemcpyNodeGetParams is not found") + return (__cuGraphMemcpyNodeGetParams)( + hNode, nodeParams) + + +cdef CUresult _cuGraphMemcpyNodeSetParams(CUgraphNode hNode, const CUDA_MEMCPY3D* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphMemcpyNodeSetParams + _check_or_init_driver() + if __cuGraphMemcpyNodeSetParams == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphMemcpyNodeSetParams is not found") + return (__cuGraphMemcpyNodeSetParams)( + hNode, nodeParams) + + +cdef CUresult _cuGraphAddMemsetNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, const CUDA_MEMSET_NODE_PARAMS* memsetParams, CUcontext ctx) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphAddMemsetNode + _check_or_init_driver() + if __cuGraphAddMemsetNode == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphAddMemsetNode is not found") + return (__cuGraphAddMemsetNode)( + phGraphNode, hGraph, dependencies, numDependencies, memsetParams, ctx) + + +cdef CUresult _cuGraphMemsetNodeGetParams(CUgraphNode hNode, CUDA_MEMSET_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphMemsetNodeGetParams + _check_or_init_driver() + if __cuGraphMemsetNodeGetParams == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphMemsetNodeGetParams is not found") + return (__cuGraphMemsetNodeGetParams)( + hNode, nodeParams) + + +cdef CUresult _cuGraphMemsetNodeSetParams(CUgraphNode hNode, const CUDA_MEMSET_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphMemsetNodeSetParams + _check_or_init_driver() + if __cuGraphMemsetNodeSetParams == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphMemsetNodeSetParams is not found") + return (__cuGraphMemsetNodeSetParams)( + hNode, nodeParams) + + +cdef CUresult _cuGraphAddHostNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, const CUDA_HOST_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphAddHostNode + _check_or_init_driver() + if __cuGraphAddHostNode == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphAddHostNode is not found") + return (__cuGraphAddHostNode)( + phGraphNode, hGraph, dependencies, numDependencies, nodeParams) + + +cdef CUresult _cuGraphHostNodeGetParams(CUgraphNode hNode, CUDA_HOST_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphHostNodeGetParams + _check_or_init_driver() + if __cuGraphHostNodeGetParams == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphHostNodeGetParams is not found") + return (__cuGraphHostNodeGetParams)( + hNode, nodeParams) + + +cdef CUresult _cuGraphHostNodeSetParams(CUgraphNode hNode, const CUDA_HOST_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphHostNodeSetParams + _check_or_init_driver() + if __cuGraphHostNodeSetParams == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphHostNodeSetParams is not found") + return (__cuGraphHostNodeSetParams)( + hNode, nodeParams) + + +cdef CUresult _cuGraphAddChildGraphNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, CUgraph childGraph) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphAddChildGraphNode + _check_or_init_driver() + if __cuGraphAddChildGraphNode == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphAddChildGraphNode is not found") + return (__cuGraphAddChildGraphNode)( + phGraphNode, hGraph, dependencies, numDependencies, childGraph) + + +cdef CUresult _cuGraphChildGraphNodeGetGraph(CUgraphNode hNode, CUgraph* phGraph) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphChildGraphNodeGetGraph + _check_or_init_driver() + if __cuGraphChildGraphNodeGetGraph == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphChildGraphNodeGetGraph is not found") + return (__cuGraphChildGraphNodeGetGraph)( + hNode, phGraph) + + +cdef CUresult _cuGraphAddEmptyNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphAddEmptyNode + _check_or_init_driver() + if __cuGraphAddEmptyNode == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphAddEmptyNode is not found") + return (__cuGraphAddEmptyNode)( + phGraphNode, hGraph, dependencies, numDependencies) + + +cdef CUresult _cuGraphAddEventRecordNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, CUevent event) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphAddEventRecordNode + _check_or_init_driver() + if __cuGraphAddEventRecordNode == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphAddEventRecordNode is not found") + return (__cuGraphAddEventRecordNode)( + phGraphNode, hGraph, dependencies, numDependencies, event) + + +cdef CUresult _cuGraphEventRecordNodeGetEvent(CUgraphNode hNode, CUevent* event_out) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphEventRecordNodeGetEvent + _check_or_init_driver() + if __cuGraphEventRecordNodeGetEvent == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphEventRecordNodeGetEvent is not found") + return (__cuGraphEventRecordNodeGetEvent)( + hNode, event_out) + + +cdef CUresult _cuGraphEventRecordNodeSetEvent(CUgraphNode hNode, CUevent event) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphEventRecordNodeSetEvent + _check_or_init_driver() + if __cuGraphEventRecordNodeSetEvent == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphEventRecordNodeSetEvent is not found") + return (__cuGraphEventRecordNodeSetEvent)( + hNode, event) + + +cdef CUresult _cuGraphAddEventWaitNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, CUevent event) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphAddEventWaitNode + _check_or_init_driver() + if __cuGraphAddEventWaitNode == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphAddEventWaitNode is not found") + return (__cuGraphAddEventWaitNode)( + phGraphNode, hGraph, dependencies, numDependencies, event) + + +cdef CUresult _cuGraphEventWaitNodeGetEvent(CUgraphNode hNode, CUevent* event_out) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphEventWaitNodeGetEvent + _check_or_init_driver() + if __cuGraphEventWaitNodeGetEvent == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphEventWaitNodeGetEvent is not found") + return (__cuGraphEventWaitNodeGetEvent)( + hNode, event_out) + + +cdef CUresult _cuGraphEventWaitNodeSetEvent(CUgraphNode hNode, CUevent event) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphEventWaitNodeSetEvent + _check_or_init_driver() + if __cuGraphEventWaitNodeSetEvent == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphEventWaitNodeSetEvent is not found") + return (__cuGraphEventWaitNodeSetEvent)( + hNode, event) + + +cdef CUresult _cuGraphAddExternalSemaphoresSignalNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, const CUDA_EXT_SEM_SIGNAL_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphAddExternalSemaphoresSignalNode + _check_or_init_driver() + if __cuGraphAddExternalSemaphoresSignalNode == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphAddExternalSemaphoresSignalNode is not found") + return (__cuGraphAddExternalSemaphoresSignalNode)( + phGraphNode, hGraph, dependencies, numDependencies, nodeParams) + + +cdef CUresult _cuGraphExternalSemaphoresSignalNodeGetParams(CUgraphNode hNode, CUDA_EXT_SEM_SIGNAL_NODE_PARAMS* params_out) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphExternalSemaphoresSignalNodeGetParams + _check_or_init_driver() + if __cuGraphExternalSemaphoresSignalNodeGetParams == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphExternalSemaphoresSignalNodeGetParams is not found") + return (__cuGraphExternalSemaphoresSignalNodeGetParams)( + hNode, params_out) + + +cdef CUresult _cuGraphExternalSemaphoresSignalNodeSetParams(CUgraphNode hNode, const CUDA_EXT_SEM_SIGNAL_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphExternalSemaphoresSignalNodeSetParams + _check_or_init_driver() + if __cuGraphExternalSemaphoresSignalNodeSetParams == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphExternalSemaphoresSignalNodeSetParams is not found") + return (__cuGraphExternalSemaphoresSignalNodeSetParams)( + hNode, nodeParams) + + +cdef CUresult _cuGraphAddExternalSemaphoresWaitNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, const CUDA_EXT_SEM_WAIT_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphAddExternalSemaphoresWaitNode + _check_or_init_driver() + if __cuGraphAddExternalSemaphoresWaitNode == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphAddExternalSemaphoresWaitNode is not found") + return (__cuGraphAddExternalSemaphoresWaitNode)( + phGraphNode, hGraph, dependencies, numDependencies, nodeParams) + + +cdef CUresult _cuGraphExternalSemaphoresWaitNodeGetParams(CUgraphNode hNode, CUDA_EXT_SEM_WAIT_NODE_PARAMS* params_out) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphExternalSemaphoresWaitNodeGetParams + _check_or_init_driver() + if __cuGraphExternalSemaphoresWaitNodeGetParams == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphExternalSemaphoresWaitNodeGetParams is not found") + return (__cuGraphExternalSemaphoresWaitNodeGetParams)( + hNode, params_out) + + +cdef CUresult _cuGraphExternalSemaphoresWaitNodeSetParams(CUgraphNode hNode, const CUDA_EXT_SEM_WAIT_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphExternalSemaphoresWaitNodeSetParams + _check_or_init_driver() + if __cuGraphExternalSemaphoresWaitNodeSetParams == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphExternalSemaphoresWaitNodeSetParams is not found") + return (__cuGraphExternalSemaphoresWaitNodeSetParams)( + hNode, nodeParams) + + +cdef CUresult _cuGraphAddBatchMemOpNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, const CUDA_BATCH_MEM_OP_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphAddBatchMemOpNode + _check_or_init_driver() + if __cuGraphAddBatchMemOpNode == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphAddBatchMemOpNode is not found") + return (__cuGraphAddBatchMemOpNode)( + phGraphNode, hGraph, dependencies, numDependencies, nodeParams) + + +cdef CUresult _cuGraphBatchMemOpNodeGetParams(CUgraphNode hNode, CUDA_BATCH_MEM_OP_NODE_PARAMS* nodeParams_out) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphBatchMemOpNodeGetParams + _check_or_init_driver() + if __cuGraphBatchMemOpNodeGetParams == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphBatchMemOpNodeGetParams is not found") + return (__cuGraphBatchMemOpNodeGetParams)( + hNode, nodeParams_out) + + +cdef CUresult _cuGraphBatchMemOpNodeSetParams(CUgraphNode hNode, const CUDA_BATCH_MEM_OP_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphBatchMemOpNodeSetParams + _check_or_init_driver() + if __cuGraphBatchMemOpNodeSetParams == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphBatchMemOpNodeSetParams is not found") + return (__cuGraphBatchMemOpNodeSetParams)( + hNode, nodeParams) + + +cdef CUresult _cuGraphExecBatchMemOpNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_BATCH_MEM_OP_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphExecBatchMemOpNodeSetParams + _check_or_init_driver() + if __cuGraphExecBatchMemOpNodeSetParams == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphExecBatchMemOpNodeSetParams is not found") + return (__cuGraphExecBatchMemOpNodeSetParams)( + hGraphExec, hNode, nodeParams) + + +cdef CUresult _cuGraphAddMemAllocNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, CUDA_MEM_ALLOC_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphAddMemAllocNode + _check_or_init_driver() + if __cuGraphAddMemAllocNode == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphAddMemAllocNode is not found") + return (__cuGraphAddMemAllocNode)( + phGraphNode, hGraph, dependencies, numDependencies, nodeParams) + + +cdef CUresult _cuGraphMemAllocNodeGetParams(CUgraphNode hNode, CUDA_MEM_ALLOC_NODE_PARAMS* params_out) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphMemAllocNodeGetParams + _check_or_init_driver() + if __cuGraphMemAllocNodeGetParams == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphMemAllocNodeGetParams is not found") + return (__cuGraphMemAllocNodeGetParams)( + hNode, params_out) + + +cdef CUresult _cuGraphAddMemFreeNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, CUdeviceptr dptr) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphAddMemFreeNode + _check_or_init_driver() + if __cuGraphAddMemFreeNode == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphAddMemFreeNode is not found") + return (__cuGraphAddMemFreeNode)( + phGraphNode, hGraph, dependencies, numDependencies, dptr) + + +cdef CUresult _cuGraphMemFreeNodeGetParams(CUgraphNode hNode, CUdeviceptr* dptr_out) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphMemFreeNodeGetParams + _check_or_init_driver() + if __cuGraphMemFreeNodeGetParams == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphMemFreeNodeGetParams is not found") + return (__cuGraphMemFreeNodeGetParams)( + hNode, dptr_out) + + +cdef CUresult _cuDeviceGraphMemTrim(CUdevice device) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuDeviceGraphMemTrim + _check_or_init_driver() + if __cuDeviceGraphMemTrim == NULL: + with gil: + raise FunctionNotFoundError("function cuDeviceGraphMemTrim is not found") + return (__cuDeviceGraphMemTrim)( + device) + + +cdef CUresult _cuDeviceGetGraphMemAttribute(CUdevice device, CUgraphMem_attribute attr, void* value) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuDeviceGetGraphMemAttribute + _check_or_init_driver() + if __cuDeviceGetGraphMemAttribute == NULL: + with gil: + raise FunctionNotFoundError("function cuDeviceGetGraphMemAttribute is not found") + return (__cuDeviceGetGraphMemAttribute)( + device, attr, value) + + +cdef CUresult _cuDeviceSetGraphMemAttribute(CUdevice device, CUgraphMem_attribute attr, void* value) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuDeviceSetGraphMemAttribute + _check_or_init_driver() + if __cuDeviceSetGraphMemAttribute == NULL: + with gil: + raise FunctionNotFoundError("function cuDeviceSetGraphMemAttribute is not found") + return (__cuDeviceSetGraphMemAttribute)( + device, attr, value) + + +cdef CUresult _cuGraphClone(CUgraph* phGraphClone, CUgraph originalGraph) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphClone + _check_or_init_driver() + if __cuGraphClone == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphClone is not found") + return (__cuGraphClone)( + phGraphClone, originalGraph) + + +cdef CUresult _cuGraphNodeFindInClone(CUgraphNode* phNode, CUgraphNode hOriginalNode, CUgraph hClonedGraph) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphNodeFindInClone + _check_or_init_driver() + if __cuGraphNodeFindInClone == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphNodeFindInClone is not found") + return (__cuGraphNodeFindInClone)( + phNode, hOriginalNode, hClonedGraph) + + +cdef CUresult _cuGraphNodeGetType(CUgraphNode hNode, CUgraphNodeType* type) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphNodeGetType + _check_or_init_driver() + if __cuGraphNodeGetType == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphNodeGetType is not found") + return (__cuGraphNodeGetType)( + hNode, type) + + +cdef CUresult _cuGraphGetNodes(CUgraph hGraph, CUgraphNode* nodes, size_t* numNodes) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphGetNodes + _check_or_init_driver() + if __cuGraphGetNodes == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphGetNodes is not found") + return (__cuGraphGetNodes)( + hGraph, nodes, numNodes) + + +cdef CUresult _cuGraphGetRootNodes(CUgraph hGraph, CUgraphNode* rootNodes, size_t* numRootNodes) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphGetRootNodes + _check_or_init_driver() + if __cuGraphGetRootNodes == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphGetRootNodes is not found") + return (__cuGraphGetRootNodes)( + hGraph, rootNodes, numRootNodes) + + +cdef CUresult _cuGraphGetEdges_v2(CUgraph hGraph, CUgraphNode* from_, CUgraphNode* to, CUgraphEdgeData* edgeData, size_t* numEdges) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphGetEdges_v2 + _check_or_init_driver() + if __cuGraphGetEdges_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphGetEdges_v2 is not found") + return (__cuGraphGetEdges_v2)( + hGraph, from_, to, edgeData, numEdges) + + +cdef CUresult _cuGraphNodeGetDependencies_v2(CUgraphNode hNode, CUgraphNode* dependencies, CUgraphEdgeData* edgeData, size_t* numDependencies) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphNodeGetDependencies_v2 + _check_or_init_driver() + if __cuGraphNodeGetDependencies_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphNodeGetDependencies_v2 is not found") + return (__cuGraphNodeGetDependencies_v2)( + hNode, dependencies, edgeData, numDependencies) + + +cdef CUresult _cuGraphNodeGetDependentNodes_v2(CUgraphNode hNode, CUgraphNode* dependentNodes, CUgraphEdgeData* edgeData, size_t* numDependentNodes) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphNodeGetDependentNodes_v2 + _check_or_init_driver() + if __cuGraphNodeGetDependentNodes_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphNodeGetDependentNodes_v2 is not found") + return (__cuGraphNodeGetDependentNodes_v2)( + hNode, dependentNodes, edgeData, numDependentNodes) + + +cdef CUresult _cuGraphAddDependencies_v2(CUgraph hGraph, const CUgraphNode* from_, const CUgraphNode* to, const CUgraphEdgeData* edgeData, size_t numDependencies) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphAddDependencies_v2 + _check_or_init_driver() + if __cuGraphAddDependencies_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphAddDependencies_v2 is not found") + return (__cuGraphAddDependencies_v2)( + hGraph, from_, to, edgeData, numDependencies) + + +cdef CUresult _cuGraphRemoveDependencies_v2(CUgraph hGraph, const CUgraphNode* from_, const CUgraphNode* to, const CUgraphEdgeData* edgeData, size_t numDependencies) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphRemoveDependencies_v2 + _check_or_init_driver() + if __cuGraphRemoveDependencies_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphRemoveDependencies_v2 is not found") + return (__cuGraphRemoveDependencies_v2)( + hGraph, from_, to, edgeData, numDependencies) + + +cdef CUresult _cuGraphDestroyNode(CUgraphNode hNode) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphDestroyNode + _check_or_init_driver() + if __cuGraphDestroyNode == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphDestroyNode is not found") + return (__cuGraphDestroyNode)( + hNode) + + +cdef CUresult _cuGraphInstantiateWithFlags(CUgraphExec* phGraphExec, CUgraph hGraph, unsigned long long flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphInstantiateWithFlags + _check_or_init_driver() + if __cuGraphInstantiateWithFlags == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphInstantiateWithFlags is not found") + return (__cuGraphInstantiateWithFlags)( + phGraphExec, hGraph, flags) + + +cdef CUresult _cuGraphInstantiateWithParams(CUgraphExec* phGraphExec, CUgraph hGraph, CUDA_GRAPH_INSTANTIATE_PARAMS* instantiateParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphInstantiateWithParams + _check_or_init_driver() + if __cuGraphInstantiateWithParams == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphInstantiateWithParams is not found") + return (__cuGraphInstantiateWithParams)( + phGraphExec, hGraph, instantiateParams) + + +cdef CUresult _cuGraphExecGetFlags(CUgraphExec hGraphExec, cuuint64_t* flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphExecGetFlags + _check_or_init_driver() + if __cuGraphExecGetFlags == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphExecGetFlags is not found") + return (__cuGraphExecGetFlags)( + hGraphExec, flags) + + +cdef CUresult _cuGraphExecKernelNodeSetParams_v2(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_KERNEL_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphExecKernelNodeSetParams_v2 + _check_or_init_driver() + if __cuGraphExecKernelNodeSetParams_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphExecKernelNodeSetParams_v2 is not found") + return (__cuGraphExecKernelNodeSetParams_v2)( + hGraphExec, hNode, nodeParams) + + +cdef CUresult _cuGraphExecMemcpyNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_MEMCPY3D* copyParams, CUcontext ctx) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphExecMemcpyNodeSetParams + _check_or_init_driver() + if __cuGraphExecMemcpyNodeSetParams == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphExecMemcpyNodeSetParams is not found") + return (__cuGraphExecMemcpyNodeSetParams)( + hGraphExec, hNode, copyParams, ctx) + + +cdef CUresult _cuGraphExecMemsetNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_MEMSET_NODE_PARAMS* memsetParams, CUcontext ctx) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphExecMemsetNodeSetParams + _check_or_init_driver() + if __cuGraphExecMemsetNodeSetParams == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphExecMemsetNodeSetParams is not found") + return (__cuGraphExecMemsetNodeSetParams)( + hGraphExec, hNode, memsetParams, ctx) + + +cdef CUresult _cuGraphExecHostNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_HOST_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphExecHostNodeSetParams + _check_or_init_driver() + if __cuGraphExecHostNodeSetParams == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphExecHostNodeSetParams is not found") + return (__cuGraphExecHostNodeSetParams)( + hGraphExec, hNode, nodeParams) + + +cdef CUresult _cuGraphExecChildGraphNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, CUgraph childGraph) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphExecChildGraphNodeSetParams + _check_or_init_driver() + if __cuGraphExecChildGraphNodeSetParams == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphExecChildGraphNodeSetParams is not found") + return (__cuGraphExecChildGraphNodeSetParams)( + hGraphExec, hNode, childGraph) + + +cdef CUresult _cuGraphExecEventRecordNodeSetEvent(CUgraphExec hGraphExec, CUgraphNode hNode, CUevent event) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphExecEventRecordNodeSetEvent + _check_or_init_driver() + if __cuGraphExecEventRecordNodeSetEvent == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphExecEventRecordNodeSetEvent is not found") + return (__cuGraphExecEventRecordNodeSetEvent)( + hGraphExec, hNode, event) + + +cdef CUresult _cuGraphExecEventWaitNodeSetEvent(CUgraphExec hGraphExec, CUgraphNode hNode, CUevent event) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphExecEventWaitNodeSetEvent + _check_or_init_driver() + if __cuGraphExecEventWaitNodeSetEvent == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphExecEventWaitNodeSetEvent is not found") + return (__cuGraphExecEventWaitNodeSetEvent)( + hGraphExec, hNode, event) + + +cdef CUresult _cuGraphExecExternalSemaphoresSignalNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_EXT_SEM_SIGNAL_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphExecExternalSemaphoresSignalNodeSetParams + _check_or_init_driver() + if __cuGraphExecExternalSemaphoresSignalNodeSetParams == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphExecExternalSemaphoresSignalNodeSetParams is not found") + return (__cuGraphExecExternalSemaphoresSignalNodeSetParams)( + hGraphExec, hNode, nodeParams) + + +cdef CUresult _cuGraphExecExternalSemaphoresWaitNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_EXT_SEM_WAIT_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphExecExternalSemaphoresWaitNodeSetParams + _check_or_init_driver() + if __cuGraphExecExternalSemaphoresWaitNodeSetParams == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphExecExternalSemaphoresWaitNodeSetParams is not found") + return (__cuGraphExecExternalSemaphoresWaitNodeSetParams)( + hGraphExec, hNode, nodeParams) + + +cdef CUresult _cuGraphNodeSetEnabled(CUgraphExec hGraphExec, CUgraphNode hNode, unsigned int isEnabled) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphNodeSetEnabled + _check_or_init_driver() + if __cuGraphNodeSetEnabled == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphNodeSetEnabled is not found") + return (__cuGraphNodeSetEnabled)( + hGraphExec, hNode, isEnabled) + + +cdef CUresult _cuGraphNodeGetEnabled(CUgraphExec hGraphExec, CUgraphNode hNode, unsigned int* isEnabled) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphNodeGetEnabled + _check_or_init_driver() + if __cuGraphNodeGetEnabled == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphNodeGetEnabled is not found") + return (__cuGraphNodeGetEnabled)( + hGraphExec, hNode, isEnabled) + + +cdef CUresult _cuGraphUpload(CUgraphExec hGraphExec, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphUpload + _check_or_init_driver() + if __cuGraphUpload == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphUpload is not found") + return (__cuGraphUpload)( + hGraphExec, hStream) + + +cdef CUresult _cuGraphLaunch(CUgraphExec hGraphExec, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphLaunch + _check_or_init_driver() + if __cuGraphLaunch == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphLaunch is not found") + return (__cuGraphLaunch)( + hGraphExec, hStream) + + +cdef CUresult _cuGraphExecDestroy(CUgraphExec hGraphExec) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphExecDestroy + _check_or_init_driver() + if __cuGraphExecDestroy == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphExecDestroy is not found") + return (__cuGraphExecDestroy)( + hGraphExec) + + +cdef CUresult _cuGraphDestroy(CUgraph hGraph) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphDestroy + _check_or_init_driver() + if __cuGraphDestroy == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphDestroy is not found") + return (__cuGraphDestroy)( + hGraph) + + +cdef CUresult _cuGraphExecUpdate_v2(CUgraphExec hGraphExec, CUgraph hGraph, CUgraphExecUpdateResultInfo* resultInfo) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphExecUpdate_v2 + _check_or_init_driver() + if __cuGraphExecUpdate_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphExecUpdate_v2 is not found") + return (__cuGraphExecUpdate_v2)( + hGraphExec, hGraph, resultInfo) + + +cdef CUresult _cuGraphKernelNodeCopyAttributes(CUgraphNode dst, CUgraphNode src) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphKernelNodeCopyAttributes + _check_or_init_driver() + if __cuGraphKernelNodeCopyAttributes == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphKernelNodeCopyAttributes is not found") + return (__cuGraphKernelNodeCopyAttributes)( + dst, src) + + +cdef CUresult _cuGraphKernelNodeGetAttribute(CUgraphNode hNode, CUkernelNodeAttrID attr, CUkernelNodeAttrValue* value_out) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphKernelNodeGetAttribute + _check_or_init_driver() + if __cuGraphKernelNodeGetAttribute == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphKernelNodeGetAttribute is not found") + return (__cuGraphKernelNodeGetAttribute)( + hNode, attr, value_out) + + +cdef CUresult _cuGraphKernelNodeSetAttribute(CUgraphNode hNode, CUkernelNodeAttrID attr, const CUkernelNodeAttrValue* value) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphKernelNodeSetAttribute + _check_or_init_driver() + if __cuGraphKernelNodeSetAttribute == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphKernelNodeSetAttribute is not found") + return (__cuGraphKernelNodeSetAttribute)( + hNode, attr, value) + + +cdef CUresult _cuGraphDebugDotPrint(CUgraph hGraph, const char* path, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphDebugDotPrint + _check_or_init_driver() + if __cuGraphDebugDotPrint == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphDebugDotPrint is not found") + return (__cuGraphDebugDotPrint)( + hGraph, path, flags) + + +cdef CUresult _cuUserObjectCreate(CUuserObject* object_out, void* ptr, CUhostFn destroy, unsigned int initialRefcount, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuUserObjectCreate + _check_or_init_driver() + if __cuUserObjectCreate == NULL: + with gil: + raise FunctionNotFoundError("function cuUserObjectCreate is not found") + return (__cuUserObjectCreate)( + object_out, ptr, destroy, initialRefcount, flags) + + +cdef CUresult _cuUserObjectRetain(CUuserObject object, unsigned int count) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuUserObjectRetain + _check_or_init_driver() + if __cuUserObjectRetain == NULL: + with gil: + raise FunctionNotFoundError("function cuUserObjectRetain is not found") + return (__cuUserObjectRetain)( + object, count) + + +cdef CUresult _cuUserObjectRelease(CUuserObject object, unsigned int count) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuUserObjectRelease + _check_or_init_driver() + if __cuUserObjectRelease == NULL: + with gil: + raise FunctionNotFoundError("function cuUserObjectRelease is not found") + return (__cuUserObjectRelease)( + object, count) + + +cdef CUresult _cuGraphRetainUserObject(CUgraph graph, CUuserObject object, unsigned int count, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphRetainUserObject + _check_or_init_driver() + if __cuGraphRetainUserObject == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphRetainUserObject is not found") + return (__cuGraphRetainUserObject)( + graph, object, count, flags) + + +cdef CUresult _cuGraphReleaseUserObject(CUgraph graph, CUuserObject object, unsigned int count) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphReleaseUserObject + _check_or_init_driver() + if __cuGraphReleaseUserObject == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphReleaseUserObject is not found") + return (__cuGraphReleaseUserObject)( + graph, object, count) + + +cdef CUresult _cuGraphAddNode_v2(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, const CUgraphEdgeData* dependencyData, size_t numDependencies, CUgraphNodeParams* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphAddNode_v2 + _check_or_init_driver() + if __cuGraphAddNode_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphAddNode_v2 is not found") + return (__cuGraphAddNode_v2)( + phGraphNode, hGraph, dependencies, dependencyData, numDependencies, nodeParams) + + +cdef CUresult _cuGraphNodeSetParams(CUgraphNode hNode, CUgraphNodeParams* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphNodeSetParams + _check_or_init_driver() + if __cuGraphNodeSetParams == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphNodeSetParams is not found") + return (__cuGraphNodeSetParams)( + hNode, nodeParams) + + +cdef CUresult _cuGraphExecNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, CUgraphNodeParams* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphExecNodeSetParams + _check_or_init_driver() + if __cuGraphExecNodeSetParams == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphExecNodeSetParams is not found") + return (__cuGraphExecNodeSetParams)( + hGraphExec, hNode, nodeParams) + + +cdef CUresult _cuGraphConditionalHandleCreate(CUgraphConditionalHandle* pHandle_out, CUgraph hGraph, CUcontext ctx, unsigned int defaultLaunchValue, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphConditionalHandleCreate + _check_or_init_driver() + if __cuGraphConditionalHandleCreate == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphConditionalHandleCreate is not found") + return (__cuGraphConditionalHandleCreate)( + pHandle_out, hGraph, ctx, defaultLaunchValue, flags) + + +cdef CUresult _cuOccupancyMaxActiveBlocksPerMultiprocessor(int* numBlocks, CUfunction func, int blockSize, size_t dynamicSMemSize) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuOccupancyMaxActiveBlocksPerMultiprocessor + _check_or_init_driver() + if __cuOccupancyMaxActiveBlocksPerMultiprocessor == NULL: + with gil: + raise FunctionNotFoundError("function cuOccupancyMaxActiveBlocksPerMultiprocessor is not found") + return (__cuOccupancyMaxActiveBlocksPerMultiprocessor)( + numBlocks, func, blockSize, dynamicSMemSize) + + +cdef CUresult _cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(int* numBlocks, CUfunction func, int blockSize, size_t dynamicSMemSize, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags + _check_or_init_driver() + if __cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags == NULL: + with gil: + raise FunctionNotFoundError("function cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags is not found") + return (__cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags)( + numBlocks, func, blockSize, dynamicSMemSize, flags) + + +cdef CUresult _cuOccupancyMaxPotentialBlockSize(int* minGridSize, int* blockSize, CUfunction func, CUoccupancyB2DSize blockSizeToDynamicSMemSize, size_t dynamicSMemSize, int blockSizeLimit) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuOccupancyMaxPotentialBlockSize + _check_or_init_driver() + if __cuOccupancyMaxPotentialBlockSize == NULL: + with gil: + raise FunctionNotFoundError("function cuOccupancyMaxPotentialBlockSize is not found") + return (__cuOccupancyMaxPotentialBlockSize)( + minGridSize, blockSize, func, blockSizeToDynamicSMemSize, dynamicSMemSize, blockSizeLimit) + + +cdef CUresult _cuOccupancyMaxPotentialBlockSizeWithFlags(int* minGridSize, int* blockSize, CUfunction func, CUoccupancyB2DSize blockSizeToDynamicSMemSize, size_t dynamicSMemSize, int blockSizeLimit, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuOccupancyMaxPotentialBlockSizeWithFlags + _check_or_init_driver() + if __cuOccupancyMaxPotentialBlockSizeWithFlags == NULL: + with gil: + raise FunctionNotFoundError("function cuOccupancyMaxPotentialBlockSizeWithFlags is not found") + return (__cuOccupancyMaxPotentialBlockSizeWithFlags)( + minGridSize, blockSize, func, blockSizeToDynamicSMemSize, dynamicSMemSize, blockSizeLimit, flags) + + +cdef CUresult _cuOccupancyAvailableDynamicSMemPerBlock(size_t* dynamicSmemSize, CUfunction func, int numBlocks, int blockSize) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuOccupancyAvailableDynamicSMemPerBlock + _check_or_init_driver() + if __cuOccupancyAvailableDynamicSMemPerBlock == NULL: + with gil: + raise FunctionNotFoundError("function cuOccupancyAvailableDynamicSMemPerBlock is not found") + return (__cuOccupancyAvailableDynamicSMemPerBlock)( + dynamicSmemSize, func, numBlocks, blockSize) + + +cdef CUresult _cuOccupancyMaxPotentialClusterSize(int* clusterSize, CUfunction func, const CUlaunchConfig* config) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuOccupancyMaxPotentialClusterSize + _check_or_init_driver() + if __cuOccupancyMaxPotentialClusterSize == NULL: + with gil: + raise FunctionNotFoundError("function cuOccupancyMaxPotentialClusterSize is not found") + return (__cuOccupancyMaxPotentialClusterSize)( + clusterSize, func, config) + + +cdef CUresult _cuOccupancyMaxActiveClusters(int* numClusters, CUfunction func, const CUlaunchConfig* config) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuOccupancyMaxActiveClusters + _check_or_init_driver() + if __cuOccupancyMaxActiveClusters == NULL: + with gil: + raise FunctionNotFoundError("function cuOccupancyMaxActiveClusters is not found") + return (__cuOccupancyMaxActiveClusters)( + numClusters, func, config) + + +cdef CUresult _cuTexRefSetArray(CUtexref hTexRef, CUarray hArray, unsigned int Flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuTexRefSetArray + _check_or_init_driver() + if __cuTexRefSetArray == NULL: + with gil: + raise FunctionNotFoundError("function cuTexRefSetArray is not found") + return (__cuTexRefSetArray)( + hTexRef, hArray, Flags) + + +cdef CUresult _cuTexRefSetMipmappedArray(CUtexref hTexRef, CUmipmappedArray hMipmappedArray, unsigned int Flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuTexRefSetMipmappedArray + _check_or_init_driver() + if __cuTexRefSetMipmappedArray == NULL: + with gil: + raise FunctionNotFoundError("function cuTexRefSetMipmappedArray is not found") + return (__cuTexRefSetMipmappedArray)( + hTexRef, hMipmappedArray, Flags) + + +cdef CUresult _cuTexRefSetAddress_v2(size_t* ByteOffset, CUtexref hTexRef, CUdeviceptr dptr, size_t bytes) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuTexRefSetAddress_v2 + _check_or_init_driver() + if __cuTexRefSetAddress_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuTexRefSetAddress_v2 is not found") + return (__cuTexRefSetAddress_v2)( + ByteOffset, hTexRef, dptr, bytes) + + +cdef CUresult _cuTexRefSetAddress2D_v3(CUtexref hTexRef, const CUDA_ARRAY_DESCRIPTOR* desc, CUdeviceptr dptr, size_t Pitch) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuTexRefSetAddress2D_v3 + _check_or_init_driver() + if __cuTexRefSetAddress2D_v3 == NULL: + with gil: + raise FunctionNotFoundError("function cuTexRefSetAddress2D_v3 is not found") + return (__cuTexRefSetAddress2D_v3)( + hTexRef, desc, dptr, Pitch) + + +cdef CUresult _cuTexRefSetFormat(CUtexref hTexRef, CUarray_format fmt, int NumPackedComponents) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuTexRefSetFormat + _check_or_init_driver() + if __cuTexRefSetFormat == NULL: + with gil: + raise FunctionNotFoundError("function cuTexRefSetFormat is not found") + return (__cuTexRefSetFormat)( + hTexRef, fmt, NumPackedComponents) + + +cdef CUresult _cuTexRefSetAddressMode(CUtexref hTexRef, int dim, CUaddress_mode am) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuTexRefSetAddressMode + _check_or_init_driver() + if __cuTexRefSetAddressMode == NULL: + with gil: + raise FunctionNotFoundError("function cuTexRefSetAddressMode is not found") + return (__cuTexRefSetAddressMode)( + hTexRef, dim, am) + + +cdef CUresult _cuTexRefSetFilterMode(CUtexref hTexRef, CUfilter_mode fm) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuTexRefSetFilterMode + _check_or_init_driver() + if __cuTexRefSetFilterMode == NULL: + with gil: + raise FunctionNotFoundError("function cuTexRefSetFilterMode is not found") + return (__cuTexRefSetFilterMode)( + hTexRef, fm) + + +cdef CUresult _cuTexRefSetMipmapFilterMode(CUtexref hTexRef, CUfilter_mode fm) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuTexRefSetMipmapFilterMode + _check_or_init_driver() + if __cuTexRefSetMipmapFilterMode == NULL: + with gil: + raise FunctionNotFoundError("function cuTexRefSetMipmapFilterMode is not found") + return (__cuTexRefSetMipmapFilterMode)( + hTexRef, fm) + + +cdef CUresult _cuTexRefSetMipmapLevelBias(CUtexref hTexRef, float bias) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuTexRefSetMipmapLevelBias + _check_or_init_driver() + if __cuTexRefSetMipmapLevelBias == NULL: + with gil: + raise FunctionNotFoundError("function cuTexRefSetMipmapLevelBias is not found") + return (__cuTexRefSetMipmapLevelBias)( + hTexRef, bias) + + +cdef CUresult _cuTexRefSetMipmapLevelClamp(CUtexref hTexRef, float minMipmapLevelClamp, float maxMipmapLevelClamp) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuTexRefSetMipmapLevelClamp + _check_or_init_driver() + if __cuTexRefSetMipmapLevelClamp == NULL: + with gil: + raise FunctionNotFoundError("function cuTexRefSetMipmapLevelClamp is not found") + return (__cuTexRefSetMipmapLevelClamp)( + hTexRef, minMipmapLevelClamp, maxMipmapLevelClamp) + + +cdef CUresult _cuTexRefSetMaxAnisotropy(CUtexref hTexRef, unsigned int maxAniso) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuTexRefSetMaxAnisotropy + _check_or_init_driver() + if __cuTexRefSetMaxAnisotropy == NULL: + with gil: + raise FunctionNotFoundError("function cuTexRefSetMaxAnisotropy is not found") + return (__cuTexRefSetMaxAnisotropy)( + hTexRef, maxAniso) + + +cdef CUresult _cuTexRefSetBorderColor(CUtexref hTexRef, float* pBorderColor) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuTexRefSetBorderColor + _check_or_init_driver() + if __cuTexRefSetBorderColor == NULL: + with gil: + raise FunctionNotFoundError("function cuTexRefSetBorderColor is not found") + return (__cuTexRefSetBorderColor)( + hTexRef, pBorderColor) + + +cdef CUresult _cuTexRefSetFlags(CUtexref hTexRef, unsigned int Flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuTexRefSetFlags + _check_or_init_driver() + if __cuTexRefSetFlags == NULL: + with gil: + raise FunctionNotFoundError("function cuTexRefSetFlags is not found") + return (__cuTexRefSetFlags)( + hTexRef, Flags) + + +cdef CUresult _cuTexRefGetAddress_v2(CUdeviceptr* pdptr, CUtexref hTexRef) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuTexRefGetAddress_v2 + _check_or_init_driver() + if __cuTexRefGetAddress_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuTexRefGetAddress_v2 is not found") + return (__cuTexRefGetAddress_v2)( + pdptr, hTexRef) + + +cdef CUresult _cuTexRefGetArray(CUarray* phArray, CUtexref hTexRef) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuTexRefGetArray + _check_or_init_driver() + if __cuTexRefGetArray == NULL: + with gil: + raise FunctionNotFoundError("function cuTexRefGetArray is not found") + return (__cuTexRefGetArray)( + phArray, hTexRef) + + +cdef CUresult _cuTexRefGetMipmappedArray(CUmipmappedArray* phMipmappedArray, CUtexref hTexRef) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuTexRefGetMipmappedArray + _check_or_init_driver() + if __cuTexRefGetMipmappedArray == NULL: + with gil: + raise FunctionNotFoundError("function cuTexRefGetMipmappedArray is not found") + return (__cuTexRefGetMipmappedArray)( + phMipmappedArray, hTexRef) + + +cdef CUresult _cuTexRefGetAddressMode(CUaddress_mode* pam, CUtexref hTexRef, int dim) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuTexRefGetAddressMode + _check_or_init_driver() + if __cuTexRefGetAddressMode == NULL: + with gil: + raise FunctionNotFoundError("function cuTexRefGetAddressMode is not found") + return (__cuTexRefGetAddressMode)( + pam, hTexRef, dim) + + +cdef CUresult _cuTexRefGetFilterMode(CUfilter_mode* pfm, CUtexref hTexRef) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuTexRefGetFilterMode + _check_or_init_driver() + if __cuTexRefGetFilterMode == NULL: + with gil: + raise FunctionNotFoundError("function cuTexRefGetFilterMode is not found") + return (__cuTexRefGetFilterMode)( + pfm, hTexRef) + + +cdef CUresult _cuTexRefGetFormat(CUarray_format* pFormat, int* pNumChannels, CUtexref hTexRef) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuTexRefGetFormat + _check_or_init_driver() + if __cuTexRefGetFormat == NULL: + with gil: + raise FunctionNotFoundError("function cuTexRefGetFormat is not found") + return (__cuTexRefGetFormat)( + pFormat, pNumChannels, hTexRef) + + +cdef CUresult _cuTexRefGetMipmapFilterMode(CUfilter_mode* pfm, CUtexref hTexRef) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuTexRefGetMipmapFilterMode + _check_or_init_driver() + if __cuTexRefGetMipmapFilterMode == NULL: + with gil: + raise FunctionNotFoundError("function cuTexRefGetMipmapFilterMode is not found") + return (__cuTexRefGetMipmapFilterMode)( + pfm, hTexRef) + + +cdef CUresult _cuTexRefGetMipmapLevelBias(float* pbias, CUtexref hTexRef) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuTexRefGetMipmapLevelBias + _check_or_init_driver() + if __cuTexRefGetMipmapLevelBias == NULL: + with gil: + raise FunctionNotFoundError("function cuTexRefGetMipmapLevelBias is not found") + return (__cuTexRefGetMipmapLevelBias)( + pbias, hTexRef) + + +cdef CUresult _cuTexRefGetMipmapLevelClamp(float* pminMipmapLevelClamp, float* pmaxMipmapLevelClamp, CUtexref hTexRef) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuTexRefGetMipmapLevelClamp + _check_or_init_driver() + if __cuTexRefGetMipmapLevelClamp == NULL: + with gil: + raise FunctionNotFoundError("function cuTexRefGetMipmapLevelClamp is not found") + return (__cuTexRefGetMipmapLevelClamp)( + pminMipmapLevelClamp, pmaxMipmapLevelClamp, hTexRef) + + +cdef CUresult _cuTexRefGetMaxAnisotropy(int* pmaxAniso, CUtexref hTexRef) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuTexRefGetMaxAnisotropy + _check_or_init_driver() + if __cuTexRefGetMaxAnisotropy == NULL: + with gil: + raise FunctionNotFoundError("function cuTexRefGetMaxAnisotropy is not found") + return (__cuTexRefGetMaxAnisotropy)( + pmaxAniso, hTexRef) + + +cdef CUresult _cuTexRefGetBorderColor(float* pBorderColor, CUtexref hTexRef) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuTexRefGetBorderColor + _check_or_init_driver() + if __cuTexRefGetBorderColor == NULL: + with gil: + raise FunctionNotFoundError("function cuTexRefGetBorderColor is not found") + return (__cuTexRefGetBorderColor)( + pBorderColor, hTexRef) + + +cdef CUresult _cuTexRefGetFlags(unsigned int* pFlags, CUtexref hTexRef) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuTexRefGetFlags + _check_or_init_driver() + if __cuTexRefGetFlags == NULL: + with gil: + raise FunctionNotFoundError("function cuTexRefGetFlags is not found") + return (__cuTexRefGetFlags)( + pFlags, hTexRef) + + +cdef CUresult _cuTexRefCreate(CUtexref* pTexRef) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuTexRefCreate + _check_or_init_driver() + if __cuTexRefCreate == NULL: + with gil: + raise FunctionNotFoundError("function cuTexRefCreate is not found") + return (__cuTexRefCreate)( + pTexRef) + + +cdef CUresult _cuTexRefDestroy(CUtexref hTexRef) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuTexRefDestroy + _check_or_init_driver() + if __cuTexRefDestroy == NULL: + with gil: + raise FunctionNotFoundError("function cuTexRefDestroy is not found") + return (__cuTexRefDestroy)( + hTexRef) + + +cdef CUresult _cuSurfRefSetArray(CUsurfref hSurfRef, CUarray hArray, unsigned int Flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuSurfRefSetArray + _check_or_init_driver() + if __cuSurfRefSetArray == NULL: + with gil: + raise FunctionNotFoundError("function cuSurfRefSetArray is not found") + return (__cuSurfRefSetArray)( + hSurfRef, hArray, Flags) + + +cdef CUresult _cuSurfRefGetArray(CUarray* phArray, CUsurfref hSurfRef) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuSurfRefGetArray + _check_or_init_driver() + if __cuSurfRefGetArray == NULL: + with gil: + raise FunctionNotFoundError("function cuSurfRefGetArray is not found") + return (__cuSurfRefGetArray)( + phArray, hSurfRef) + + +cdef CUresult _cuTexObjectCreate(CUtexObject* pTexObject, const CUDA_RESOURCE_DESC* pResDesc, const CUDA_TEXTURE_DESC* pTexDesc, const CUDA_RESOURCE_VIEW_DESC* pResViewDesc) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuTexObjectCreate + _check_or_init_driver() + if __cuTexObjectCreate == NULL: + with gil: + raise FunctionNotFoundError("function cuTexObjectCreate is not found") + return (__cuTexObjectCreate)( + pTexObject, pResDesc, pTexDesc, pResViewDesc) + + +cdef CUresult _cuTexObjectDestroy(CUtexObject texObject) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuTexObjectDestroy + _check_or_init_driver() + if __cuTexObjectDestroy == NULL: + with gil: + raise FunctionNotFoundError("function cuTexObjectDestroy is not found") + return (__cuTexObjectDestroy)( + texObject) + + +cdef CUresult _cuTexObjectGetResourceDesc(CUDA_RESOURCE_DESC* pResDesc, CUtexObject texObject) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuTexObjectGetResourceDesc + _check_or_init_driver() + if __cuTexObjectGetResourceDesc == NULL: + with gil: + raise FunctionNotFoundError("function cuTexObjectGetResourceDesc is not found") + return (__cuTexObjectGetResourceDesc)( + pResDesc, texObject) + + +cdef CUresult _cuTexObjectGetTextureDesc(CUDA_TEXTURE_DESC* pTexDesc, CUtexObject texObject) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuTexObjectGetTextureDesc + _check_or_init_driver() + if __cuTexObjectGetTextureDesc == NULL: + with gil: + raise FunctionNotFoundError("function cuTexObjectGetTextureDesc is not found") + return (__cuTexObjectGetTextureDesc)( + pTexDesc, texObject) + + +cdef CUresult _cuTexObjectGetResourceViewDesc(CUDA_RESOURCE_VIEW_DESC* pResViewDesc, CUtexObject texObject) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuTexObjectGetResourceViewDesc + _check_or_init_driver() + if __cuTexObjectGetResourceViewDesc == NULL: + with gil: + raise FunctionNotFoundError("function cuTexObjectGetResourceViewDesc is not found") + return (__cuTexObjectGetResourceViewDesc)( + pResViewDesc, texObject) + + +cdef CUresult _cuSurfObjectCreate(CUsurfObject* pSurfObject, const CUDA_RESOURCE_DESC* pResDesc) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuSurfObjectCreate + _check_or_init_driver() + if __cuSurfObjectCreate == NULL: + with gil: + raise FunctionNotFoundError("function cuSurfObjectCreate is not found") + return (__cuSurfObjectCreate)( + pSurfObject, pResDesc) + + +cdef CUresult _cuSurfObjectDestroy(CUsurfObject surfObject) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuSurfObjectDestroy + _check_or_init_driver() + if __cuSurfObjectDestroy == NULL: + with gil: + raise FunctionNotFoundError("function cuSurfObjectDestroy is not found") + return (__cuSurfObjectDestroy)( + surfObject) + + +cdef CUresult _cuSurfObjectGetResourceDesc(CUDA_RESOURCE_DESC* pResDesc, CUsurfObject surfObject) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuSurfObjectGetResourceDesc + _check_or_init_driver() + if __cuSurfObjectGetResourceDesc == NULL: + with gil: + raise FunctionNotFoundError("function cuSurfObjectGetResourceDesc is not found") + return (__cuSurfObjectGetResourceDesc)( + pResDesc, surfObject) + + +cdef CUresult _cuTensorMapEncodeTiled(CUtensorMap* tensorMap, CUtensorMapDataType tensorDataType, cuuint32_t tensorRank, void* globalAddress, const cuuint64_t* globalDim, const cuuint64_t* globalStrides, const cuuint32_t* boxDim, const cuuint32_t* elementStrides, CUtensorMapInterleave interleave, CUtensorMapSwizzle swizzle, CUtensorMapL2promotion l2Promotion, CUtensorMapFloatOOBfill oobFill) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuTensorMapEncodeTiled + _check_or_init_driver() + if __cuTensorMapEncodeTiled == NULL: + with gil: + raise FunctionNotFoundError("function cuTensorMapEncodeTiled is not found") + return (__cuTensorMapEncodeTiled)( + tensorMap, tensorDataType, tensorRank, globalAddress, globalDim, globalStrides, boxDim, elementStrides, interleave, swizzle, l2Promotion, oobFill) + + +cdef CUresult _cuTensorMapEncodeIm2col(CUtensorMap* tensorMap, CUtensorMapDataType tensorDataType, cuuint32_t tensorRank, void* globalAddress, const cuuint64_t* globalDim, const cuuint64_t* globalStrides, const int* pixelBoxLowerCorner, const int* pixelBoxUpperCorner, cuuint32_t channelsPerPixel, cuuint32_t pixelsPerColumn, const cuuint32_t* elementStrides, CUtensorMapInterleave interleave, CUtensorMapSwizzle swizzle, CUtensorMapL2promotion l2Promotion, CUtensorMapFloatOOBfill oobFill) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuTensorMapEncodeIm2col + _check_or_init_driver() + if __cuTensorMapEncodeIm2col == NULL: + with gil: + raise FunctionNotFoundError("function cuTensorMapEncodeIm2col is not found") + return (__cuTensorMapEncodeIm2col)( + tensorMap, tensorDataType, tensorRank, globalAddress, globalDim, globalStrides, pixelBoxLowerCorner, pixelBoxUpperCorner, channelsPerPixel, pixelsPerColumn, elementStrides, interleave, swizzle, l2Promotion, oobFill) + + +cdef CUresult _cuTensorMapEncodeIm2colWide(CUtensorMap* tensorMap, CUtensorMapDataType tensorDataType, cuuint32_t tensorRank, void* globalAddress, const cuuint64_t* globalDim, const cuuint64_t* globalStrides, int pixelBoxLowerCornerWidth, int pixelBoxUpperCornerWidth, cuuint32_t channelsPerPixel, cuuint32_t pixelsPerColumn, const cuuint32_t* elementStrides, CUtensorMapInterleave interleave, CUtensorMapIm2ColWideMode mode, CUtensorMapSwizzle swizzle, CUtensorMapL2promotion l2Promotion, CUtensorMapFloatOOBfill oobFill) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuTensorMapEncodeIm2colWide + _check_or_init_driver() + if __cuTensorMapEncodeIm2colWide == NULL: + with gil: + raise FunctionNotFoundError("function cuTensorMapEncodeIm2colWide is not found") + return (__cuTensorMapEncodeIm2colWide)( + tensorMap, tensorDataType, tensorRank, globalAddress, globalDim, globalStrides, pixelBoxLowerCornerWidth, pixelBoxUpperCornerWidth, channelsPerPixel, pixelsPerColumn, elementStrides, interleave, mode, swizzle, l2Promotion, oobFill) + + +cdef CUresult _cuTensorMapReplaceAddress(CUtensorMap* tensorMap, void* globalAddress) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuTensorMapReplaceAddress + _check_or_init_driver() + if __cuTensorMapReplaceAddress == NULL: + with gil: + raise FunctionNotFoundError("function cuTensorMapReplaceAddress is not found") + return (__cuTensorMapReplaceAddress)( + tensorMap, globalAddress) + + +cdef CUresult _cuDeviceCanAccessPeer(int* canAccessPeer, CUdevice dev, CUdevice peerDev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuDeviceCanAccessPeer + _check_or_init_driver() + if __cuDeviceCanAccessPeer == NULL: + with gil: + raise FunctionNotFoundError("function cuDeviceCanAccessPeer is not found") + return (__cuDeviceCanAccessPeer)( + canAccessPeer, dev, peerDev) + + +cdef CUresult _cuCtxEnablePeerAccess(CUcontext peerContext, unsigned int Flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuCtxEnablePeerAccess + _check_or_init_driver() + if __cuCtxEnablePeerAccess == NULL: + with gil: + raise FunctionNotFoundError("function cuCtxEnablePeerAccess is not found") + return (__cuCtxEnablePeerAccess)( + peerContext, Flags) + + +cdef CUresult _cuCtxDisablePeerAccess(CUcontext peerContext) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuCtxDisablePeerAccess + _check_or_init_driver() + if __cuCtxDisablePeerAccess == NULL: + with gil: + raise FunctionNotFoundError("function cuCtxDisablePeerAccess is not found") + return (__cuCtxDisablePeerAccess)( + peerContext) + + +cdef CUresult _cuDeviceGetP2PAttribute(int* value, CUdevice_P2PAttribute attrib, CUdevice srcDevice, CUdevice dstDevice) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuDeviceGetP2PAttribute + _check_or_init_driver() + if __cuDeviceGetP2PAttribute == NULL: + with gil: + raise FunctionNotFoundError("function cuDeviceGetP2PAttribute is not found") + return (__cuDeviceGetP2PAttribute)( + value, attrib, srcDevice, dstDevice) + + +cdef CUresult _cuGraphicsUnregisterResource(CUgraphicsResource resource) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphicsUnregisterResource + _check_or_init_driver() + if __cuGraphicsUnregisterResource == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphicsUnregisterResource is not found") + return (__cuGraphicsUnregisterResource)( + resource) + + +cdef CUresult _cuGraphicsSubResourceGetMappedArray(CUarray* pArray, CUgraphicsResource resource, unsigned int arrayIndex, unsigned int mipLevel) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphicsSubResourceGetMappedArray + _check_or_init_driver() + if __cuGraphicsSubResourceGetMappedArray == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphicsSubResourceGetMappedArray is not found") + return (__cuGraphicsSubResourceGetMappedArray)( + pArray, resource, arrayIndex, mipLevel) + + +cdef CUresult _cuGraphicsResourceGetMappedMipmappedArray(CUmipmappedArray* pMipmappedArray, CUgraphicsResource resource) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphicsResourceGetMappedMipmappedArray + _check_or_init_driver() + if __cuGraphicsResourceGetMappedMipmappedArray == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphicsResourceGetMappedMipmappedArray is not found") + return (__cuGraphicsResourceGetMappedMipmappedArray)( + pMipmappedArray, resource) + + +cdef CUresult _cuGraphicsResourceGetMappedPointer_v2(CUdeviceptr* pDevPtr, size_t* pSize, CUgraphicsResource resource) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphicsResourceGetMappedPointer_v2 + _check_or_init_driver() + if __cuGraphicsResourceGetMappedPointer_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphicsResourceGetMappedPointer_v2 is not found") + return (__cuGraphicsResourceGetMappedPointer_v2)( + pDevPtr, pSize, resource) + + +cdef CUresult _cuGraphicsResourceSetMapFlags_v2(CUgraphicsResource resource, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphicsResourceSetMapFlags_v2 + _check_or_init_driver() + if __cuGraphicsResourceSetMapFlags_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphicsResourceSetMapFlags_v2 is not found") + return (__cuGraphicsResourceSetMapFlags_v2)( + resource, flags) + + +cdef CUresult _cuGraphicsMapResources(unsigned int count, CUgraphicsResource* resources, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphicsMapResources + _check_or_init_driver() + if __cuGraphicsMapResources == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphicsMapResources is not found") + return (__cuGraphicsMapResources)( + count, resources, hStream) + + +cdef CUresult _cuGraphicsUnmapResources(unsigned int count, CUgraphicsResource* resources, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphicsUnmapResources + _check_or_init_driver() + if __cuGraphicsUnmapResources == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphicsUnmapResources is not found") + return (__cuGraphicsUnmapResources)( + count, resources, hStream) + + +cdef CUresult _cuGetProcAddress_v2(const char* symbol, void** pfn, int cudaVersion, cuuint64_t flags, CUdriverProcAddressQueryResult* symbolStatus) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGetProcAddress_v2 + _check_or_init_driver() + if __cuGetProcAddress_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuGetProcAddress_v2 is not found") + return (__cuGetProcAddress_v2)( + symbol, pfn, cudaVersion, flags, symbolStatus) + + +cdef CUresult _cuCoredumpGetAttribute(CUcoredumpSettings attrib, void* value, size_t* size) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuCoredumpGetAttribute + _check_or_init_driver() + if __cuCoredumpGetAttribute == NULL: + with gil: + raise FunctionNotFoundError("function cuCoredumpGetAttribute is not found") + return (__cuCoredumpGetAttribute)( + attrib, value, size) + + +cdef CUresult _cuCoredumpGetAttributeGlobal(CUcoredumpSettings attrib, void* value, size_t* size) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuCoredumpGetAttributeGlobal + _check_or_init_driver() + if __cuCoredumpGetAttributeGlobal == NULL: + with gil: + raise FunctionNotFoundError("function cuCoredumpGetAttributeGlobal is not found") + return (__cuCoredumpGetAttributeGlobal)( + attrib, value, size) + + +cdef CUresult _cuCoredumpSetAttribute(CUcoredumpSettings attrib, void* value, size_t* size) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuCoredumpSetAttribute + _check_or_init_driver() + if __cuCoredumpSetAttribute == NULL: + with gil: + raise FunctionNotFoundError("function cuCoredumpSetAttribute is not found") + return (__cuCoredumpSetAttribute)( + attrib, value, size) + + +cdef CUresult _cuCoredumpSetAttributeGlobal(CUcoredumpSettings attrib, void* value, size_t* size) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuCoredumpSetAttributeGlobal + _check_or_init_driver() + if __cuCoredumpSetAttributeGlobal == NULL: + with gil: + raise FunctionNotFoundError("function cuCoredumpSetAttributeGlobal is not found") + return (__cuCoredumpSetAttributeGlobal)( + attrib, value, size) + + +cdef CUresult _cuGetExportTable(const void** ppExportTable, const CUuuid* pExportTableId) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGetExportTable + _check_or_init_driver() + if __cuGetExportTable == NULL: + with gil: + raise FunctionNotFoundError("function cuGetExportTable is not found") + return (__cuGetExportTable)( + ppExportTable, pExportTableId) + + +cdef CUresult _cuGreenCtxCreate(CUgreenCtx* phCtx, CUdevResourceDesc desc, CUdevice dev, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGreenCtxCreate + _check_or_init_driver() + if __cuGreenCtxCreate == NULL: + with gil: + raise FunctionNotFoundError("function cuGreenCtxCreate is not found") + return (__cuGreenCtxCreate)( + phCtx, desc, dev, flags) + + +cdef CUresult _cuGreenCtxDestroy(CUgreenCtx hCtx) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGreenCtxDestroy + _check_or_init_driver() + if __cuGreenCtxDestroy == NULL: + with gil: + raise FunctionNotFoundError("function cuGreenCtxDestroy is not found") + return (__cuGreenCtxDestroy)( + hCtx) + + +cdef CUresult _cuCtxFromGreenCtx(CUcontext* pContext, CUgreenCtx hCtx) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuCtxFromGreenCtx + _check_or_init_driver() + if __cuCtxFromGreenCtx == NULL: + with gil: + raise FunctionNotFoundError("function cuCtxFromGreenCtx is not found") + return (__cuCtxFromGreenCtx)( + pContext, hCtx) + + +cdef CUresult _cuDeviceGetDevResource(CUdevice device, CUdevResource* resource, CUdevResourceType type) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuDeviceGetDevResource + _check_or_init_driver() + if __cuDeviceGetDevResource == NULL: + with gil: + raise FunctionNotFoundError("function cuDeviceGetDevResource is not found") + return (__cuDeviceGetDevResource)( + device, resource, type) + + +cdef CUresult _cuCtxGetDevResource(CUcontext hCtx, CUdevResource* resource, CUdevResourceType type) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuCtxGetDevResource + _check_or_init_driver() + if __cuCtxGetDevResource == NULL: + with gil: + raise FunctionNotFoundError("function cuCtxGetDevResource is not found") + return (__cuCtxGetDevResource)( + hCtx, resource, type) + + +cdef CUresult _cuGreenCtxGetDevResource(CUgreenCtx hCtx, CUdevResource* resource, CUdevResourceType type) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGreenCtxGetDevResource + _check_or_init_driver() + if __cuGreenCtxGetDevResource == NULL: + with gil: + raise FunctionNotFoundError("function cuGreenCtxGetDevResource is not found") + return (__cuGreenCtxGetDevResource)( + hCtx, resource, type) + + +cdef CUresult _cuDevSmResourceSplitByCount(CUdevResource* result, unsigned int* nbGroups, const CUdevResource* input, CUdevResource* remainder, unsigned int flags, unsigned int minCount) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuDevSmResourceSplitByCount + _check_or_init_driver() + if __cuDevSmResourceSplitByCount == NULL: + with gil: + raise FunctionNotFoundError("function cuDevSmResourceSplitByCount is not found") + return (__cuDevSmResourceSplitByCount)( + result, nbGroups, input, remainder, flags, minCount) + + +cdef CUresult _cuDevResourceGenerateDesc(CUdevResourceDesc* phDesc, CUdevResource* resources, unsigned int nbResources) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuDevResourceGenerateDesc + _check_or_init_driver() + if __cuDevResourceGenerateDesc == NULL: + with gil: + raise FunctionNotFoundError("function cuDevResourceGenerateDesc is not found") + return (__cuDevResourceGenerateDesc)( + phDesc, resources, nbResources) + + +cdef CUresult _cuGreenCtxRecordEvent(CUgreenCtx hCtx, CUevent hEvent) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGreenCtxRecordEvent + _check_or_init_driver() + if __cuGreenCtxRecordEvent == NULL: + with gil: + raise FunctionNotFoundError("function cuGreenCtxRecordEvent is not found") + return (__cuGreenCtxRecordEvent)( + hCtx, hEvent) + + +cdef CUresult _cuGreenCtxWaitEvent(CUgreenCtx hCtx, CUevent hEvent) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGreenCtxWaitEvent + _check_or_init_driver() + if __cuGreenCtxWaitEvent == NULL: + with gil: + raise FunctionNotFoundError("function cuGreenCtxWaitEvent is not found") + return (__cuGreenCtxWaitEvent)( + hCtx, hEvent) + + +cdef CUresult _cuStreamGetGreenCtx(CUstream hStream, CUgreenCtx* phCtx) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuStreamGetGreenCtx + _check_or_init_driver() + if __cuStreamGetGreenCtx == NULL: + with gil: + raise FunctionNotFoundError("function cuStreamGetGreenCtx is not found") + return (__cuStreamGetGreenCtx)( + hStream, phCtx) + + +cdef CUresult _cuGreenCtxStreamCreate(CUstream* phStream, CUgreenCtx greenCtx, unsigned int flags, int priority) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGreenCtxStreamCreate + _check_or_init_driver() + if __cuGreenCtxStreamCreate == NULL: + with gil: + raise FunctionNotFoundError("function cuGreenCtxStreamCreate is not found") + return (__cuGreenCtxStreamCreate)( + phStream, greenCtx, flags, priority) + + +cdef CUresult _cuLogsRegisterCallback(CUlogsCallback callbackFunc, void* userData, CUlogsCallbackHandle* callback_out) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuLogsRegisterCallback + _check_or_init_driver() + if __cuLogsRegisterCallback == NULL: + with gil: + raise FunctionNotFoundError("function cuLogsRegisterCallback is not found") + return (__cuLogsRegisterCallback)( + callbackFunc, userData, callback_out) + + +cdef CUresult _cuLogsUnregisterCallback(CUlogsCallbackHandle callback) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuLogsUnregisterCallback + _check_or_init_driver() + if __cuLogsUnregisterCallback == NULL: + with gil: + raise FunctionNotFoundError("function cuLogsUnregisterCallback is not found") + return (__cuLogsUnregisterCallback)( + callback) + + +cdef CUresult _cuLogsCurrent(CUlogIterator* iterator_out, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuLogsCurrent + _check_or_init_driver() + if __cuLogsCurrent == NULL: + with gil: + raise FunctionNotFoundError("function cuLogsCurrent is not found") + return (__cuLogsCurrent)( + iterator_out, flags) + + +cdef CUresult _cuLogsDumpToFile(CUlogIterator* iterator, const char* pathToFile, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuLogsDumpToFile + _check_or_init_driver() + if __cuLogsDumpToFile == NULL: + with gil: + raise FunctionNotFoundError("function cuLogsDumpToFile is not found") + return (__cuLogsDumpToFile)( + iterator, pathToFile, flags) + + +cdef CUresult _cuLogsDumpToMemory(CUlogIterator* iterator, char* buffer, size_t* size, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuLogsDumpToMemory + _check_or_init_driver() + if __cuLogsDumpToMemory == NULL: + with gil: + raise FunctionNotFoundError("function cuLogsDumpToMemory is not found") + return (__cuLogsDumpToMemory)( + iterator, buffer, size, flags) + + +cdef CUresult _cuCheckpointProcessGetRestoreThreadId(int pid, int* tid) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuCheckpointProcessGetRestoreThreadId + _check_or_init_driver() + if __cuCheckpointProcessGetRestoreThreadId == NULL: + with gil: + raise FunctionNotFoundError("function cuCheckpointProcessGetRestoreThreadId is not found") + return (__cuCheckpointProcessGetRestoreThreadId)( + pid, tid) + + +cdef CUresult _cuCheckpointProcessGetState(int pid, CUprocessState* state) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuCheckpointProcessGetState + _check_or_init_driver() + if __cuCheckpointProcessGetState == NULL: + with gil: + raise FunctionNotFoundError("function cuCheckpointProcessGetState is not found") + return (__cuCheckpointProcessGetState)( + pid, state) + + +cdef CUresult _cuCheckpointProcessLock(int pid, CUcheckpointLockArgs* args) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuCheckpointProcessLock + _check_or_init_driver() + if __cuCheckpointProcessLock == NULL: + with gil: + raise FunctionNotFoundError("function cuCheckpointProcessLock is not found") + return (__cuCheckpointProcessLock)( + pid, args) + + +cdef CUresult _cuCheckpointProcessCheckpoint(int pid, CUcheckpointCheckpointArgs* args) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuCheckpointProcessCheckpoint + _check_or_init_driver() + if __cuCheckpointProcessCheckpoint == NULL: + with gil: + raise FunctionNotFoundError("function cuCheckpointProcessCheckpoint is not found") + return (__cuCheckpointProcessCheckpoint)( + pid, args) + + +cdef CUresult _cuCheckpointProcessRestore(int pid, CUcheckpointRestoreArgs* args) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuCheckpointProcessRestore + _check_or_init_driver() + if __cuCheckpointProcessRestore == NULL: + with gil: + raise FunctionNotFoundError("function cuCheckpointProcessRestore is not found") + return (__cuCheckpointProcessRestore)( + pid, args) + + +cdef CUresult _cuCheckpointProcessUnlock(int pid, CUcheckpointUnlockArgs* args) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuCheckpointProcessUnlock + _check_or_init_driver() + if __cuCheckpointProcessUnlock == NULL: + with gil: + raise FunctionNotFoundError("function cuCheckpointProcessUnlock is not found") + return (__cuCheckpointProcessUnlock)( + pid, args) + + +cdef CUresult _cuGraphicsEGLRegisterImage(CUgraphicsResource* pCudaResource, EGLImageKHR image, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphicsEGLRegisterImage + _check_or_init_driver() + if __cuGraphicsEGLRegisterImage == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphicsEGLRegisterImage is not found") + return (__cuGraphicsEGLRegisterImage)( + pCudaResource, image, flags) + + +cdef CUresult _cuEGLStreamConsumerConnect(CUeglStreamConnection* conn, EGLStreamKHR stream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuEGLStreamConsumerConnect + _check_or_init_driver() + if __cuEGLStreamConsumerConnect == NULL: + with gil: + raise FunctionNotFoundError("function cuEGLStreamConsumerConnect is not found") + return (__cuEGLStreamConsumerConnect)( + conn, stream) + + +cdef CUresult _cuEGLStreamConsumerConnectWithFlags(CUeglStreamConnection* conn, EGLStreamKHR stream, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuEGLStreamConsumerConnectWithFlags + _check_or_init_driver() + if __cuEGLStreamConsumerConnectWithFlags == NULL: + with gil: + raise FunctionNotFoundError("function cuEGLStreamConsumerConnectWithFlags is not found") + return (__cuEGLStreamConsumerConnectWithFlags)( + conn, stream, flags) + + +cdef CUresult _cuEGLStreamConsumerDisconnect(CUeglStreamConnection* conn) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuEGLStreamConsumerDisconnect + _check_or_init_driver() + if __cuEGLStreamConsumerDisconnect == NULL: + with gil: + raise FunctionNotFoundError("function cuEGLStreamConsumerDisconnect is not found") + return (__cuEGLStreamConsumerDisconnect)( + conn) + + +cdef CUresult _cuEGLStreamConsumerAcquireFrame(CUeglStreamConnection* conn, CUgraphicsResource* pCudaResource, CUstream* pStream, unsigned int timeout) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuEGLStreamConsumerAcquireFrame + _check_or_init_driver() + if __cuEGLStreamConsumerAcquireFrame == NULL: + with gil: + raise FunctionNotFoundError("function cuEGLStreamConsumerAcquireFrame is not found") + return (__cuEGLStreamConsumerAcquireFrame)( + conn, pCudaResource, pStream, timeout) + + +cdef CUresult _cuEGLStreamConsumerReleaseFrame(CUeglStreamConnection* conn, CUgraphicsResource pCudaResource, CUstream* pStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuEGLStreamConsumerReleaseFrame + _check_or_init_driver() + if __cuEGLStreamConsumerReleaseFrame == NULL: + with gil: + raise FunctionNotFoundError("function cuEGLStreamConsumerReleaseFrame is not found") + return (__cuEGLStreamConsumerReleaseFrame)( + conn, pCudaResource, pStream) + + +cdef CUresult _cuEGLStreamProducerConnect(CUeglStreamConnection* conn, EGLStreamKHR stream, EGLint width, EGLint height) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuEGLStreamProducerConnect + _check_or_init_driver() + if __cuEGLStreamProducerConnect == NULL: + with gil: + raise FunctionNotFoundError("function cuEGLStreamProducerConnect is not found") + return (__cuEGLStreamProducerConnect)( + conn, stream, width, height) + + +cdef CUresult _cuEGLStreamProducerDisconnect(CUeglStreamConnection* conn) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuEGLStreamProducerDisconnect + _check_or_init_driver() + if __cuEGLStreamProducerDisconnect == NULL: + with gil: + raise FunctionNotFoundError("function cuEGLStreamProducerDisconnect is not found") + return (__cuEGLStreamProducerDisconnect)( + conn) + + +cdef CUresult _cuEGLStreamProducerPresentFrame(CUeglStreamConnection* conn, CUeglFrame eglframe, CUstream* pStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuEGLStreamProducerPresentFrame + _check_or_init_driver() + if __cuEGLStreamProducerPresentFrame == NULL: + with gil: + raise FunctionNotFoundError("function cuEGLStreamProducerPresentFrame is not found") + return (__cuEGLStreamProducerPresentFrame)( + conn, eglframe, pStream) + + +cdef CUresult _cuEGLStreamProducerReturnFrame(CUeglStreamConnection* conn, CUeglFrame* eglframe, CUstream* pStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuEGLStreamProducerReturnFrame + _check_or_init_driver() + if __cuEGLStreamProducerReturnFrame == NULL: + with gil: + raise FunctionNotFoundError("function cuEGLStreamProducerReturnFrame is not found") + return (__cuEGLStreamProducerReturnFrame)( + conn, eglframe, pStream) + + +cdef CUresult _cuGraphicsResourceGetMappedEglFrame(CUeglFrame* eglFrame, CUgraphicsResource resource, unsigned int index, unsigned int mipLevel) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphicsResourceGetMappedEglFrame + _check_or_init_driver() + if __cuGraphicsResourceGetMappedEglFrame == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphicsResourceGetMappedEglFrame is not found") + return (__cuGraphicsResourceGetMappedEglFrame)( + eglFrame, resource, index, mipLevel) + + +cdef CUresult _cuEventCreateFromEGLSync(CUevent* phEvent, EGLSyncKHR eglSync, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuEventCreateFromEGLSync + _check_or_init_driver() + if __cuEventCreateFromEGLSync == NULL: + with gil: + raise FunctionNotFoundError("function cuEventCreateFromEGLSync is not found") + return (__cuEventCreateFromEGLSync)( + phEvent, eglSync, flags) + + +cdef CUresult _cuGraphicsGLRegisterBuffer(CUgraphicsResource* pCudaResource, GLuint buffer, unsigned int Flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphicsGLRegisterBuffer + _check_or_init_driver() + if __cuGraphicsGLRegisterBuffer == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphicsGLRegisterBuffer is not found") + return (__cuGraphicsGLRegisterBuffer)( + pCudaResource, buffer, Flags) + + +cdef CUresult _cuGraphicsGLRegisterImage(CUgraphicsResource* pCudaResource, GLuint image, GLenum target, unsigned int Flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphicsGLRegisterImage + _check_or_init_driver() + if __cuGraphicsGLRegisterImage == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphicsGLRegisterImage is not found") + return (__cuGraphicsGLRegisterImage)( + pCudaResource, image, target, Flags) + + +cdef CUresult _cuGLGetDevices_v2(unsigned int* pCudaDeviceCount, CUdevice* pCudaDevices, unsigned int cudaDeviceCount, CUGLDeviceList deviceList) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGLGetDevices_v2 + _check_or_init_driver() + if __cuGLGetDevices_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuGLGetDevices_v2 is not found") + return (__cuGLGetDevices_v2)( + pCudaDeviceCount, pCudaDevices, cudaDeviceCount, deviceList) + + +cdef CUresult _cuGLCtxCreate_v2(CUcontext* pCtx, unsigned int Flags, CUdevice device) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGLCtxCreate_v2 + _check_or_init_driver() + if __cuGLCtxCreate_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuGLCtxCreate_v2 is not found") + return (__cuGLCtxCreate_v2)( + pCtx, Flags, device) + + +cdef CUresult _cuGLInit() except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGLInit + _check_or_init_driver() + if __cuGLInit == NULL: + with gil: + raise FunctionNotFoundError("function cuGLInit is not found") + return (__cuGLInit)( + ) + + +cdef CUresult _cuGLRegisterBufferObject(GLuint buffer) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGLRegisterBufferObject + _check_or_init_driver() + if __cuGLRegisterBufferObject == NULL: + with gil: + raise FunctionNotFoundError("function cuGLRegisterBufferObject is not found") + return (__cuGLRegisterBufferObject)( + buffer) + + +cdef CUresult _cuGLMapBufferObject_v2(CUdeviceptr* dptr, size_t* size, GLuint buffer) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGLMapBufferObject_v2 + _check_or_init_driver() + if __cuGLMapBufferObject_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuGLMapBufferObject_v2 is not found") + return (__cuGLMapBufferObject_v2)( + dptr, size, buffer) + + +cdef CUresult _cuGLUnmapBufferObject(GLuint buffer) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGLUnmapBufferObject + _check_or_init_driver() + if __cuGLUnmapBufferObject == NULL: + with gil: + raise FunctionNotFoundError("function cuGLUnmapBufferObject is not found") + return (__cuGLUnmapBufferObject)( + buffer) + + +cdef CUresult _cuGLUnregisterBufferObject(GLuint buffer) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGLUnregisterBufferObject + _check_or_init_driver() + if __cuGLUnregisterBufferObject == NULL: + with gil: + raise FunctionNotFoundError("function cuGLUnregisterBufferObject is not found") + return (__cuGLUnregisterBufferObject)( + buffer) + + +cdef CUresult _cuGLSetBufferObjectMapFlags(GLuint buffer, unsigned int Flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGLSetBufferObjectMapFlags + _check_or_init_driver() + if __cuGLSetBufferObjectMapFlags == NULL: + with gil: + raise FunctionNotFoundError("function cuGLSetBufferObjectMapFlags is not found") + return (__cuGLSetBufferObjectMapFlags)( + buffer, Flags) + + +cdef CUresult _cuGLMapBufferObjectAsync_v2(CUdeviceptr* dptr, size_t* size, GLuint buffer, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGLMapBufferObjectAsync_v2 + _check_or_init_driver() + if __cuGLMapBufferObjectAsync_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuGLMapBufferObjectAsync_v2 is not found") + return (__cuGLMapBufferObjectAsync_v2)( + dptr, size, buffer, hStream) + + +cdef CUresult _cuGLUnmapBufferObjectAsync(GLuint buffer, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGLUnmapBufferObjectAsync + _check_or_init_driver() + if __cuGLUnmapBufferObjectAsync == NULL: + with gil: + raise FunctionNotFoundError("function cuGLUnmapBufferObjectAsync is not found") + return (__cuGLUnmapBufferObjectAsync)( + buffer, hStream) + + +cdef CUresult _cuProfilerInitialize(const char* configFile, const char* outputFile, CUoutput_mode outputMode) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuProfilerInitialize + _check_or_init_driver() + if __cuProfilerInitialize == NULL: + with gil: + raise FunctionNotFoundError("function cuProfilerInitialize is not found") + return (__cuProfilerInitialize)( + configFile, outputFile, outputMode) + + +cdef CUresult _cuProfilerStart() except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuProfilerStart + _check_or_init_driver() + if __cuProfilerStart == NULL: + with gil: + raise FunctionNotFoundError("function cuProfilerStart is not found") + return (__cuProfilerStart)( + ) + + +cdef CUresult _cuProfilerStop() except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuProfilerStop + _check_or_init_driver() + if __cuProfilerStop == NULL: + with gil: + raise FunctionNotFoundError("function cuProfilerStop is not found") + return (__cuProfilerStop)( + ) + + +cdef CUresult _cuVDPAUGetDevice(CUdevice* pDevice, VdpDevice vdpDevice, VdpGetProcAddress* vdpGetProcAddress) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuVDPAUGetDevice + _check_or_init_driver() + if __cuVDPAUGetDevice == NULL: + with gil: + raise FunctionNotFoundError("function cuVDPAUGetDevice is not found") + return (__cuVDPAUGetDevice)( + pDevice, vdpDevice, vdpGetProcAddress) + + +cdef CUresult _cuVDPAUCtxCreate_v2(CUcontext* pCtx, unsigned int flags, CUdevice device, VdpDevice vdpDevice, VdpGetProcAddress* vdpGetProcAddress) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuVDPAUCtxCreate_v2 + _check_or_init_driver() + if __cuVDPAUCtxCreate_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuVDPAUCtxCreate_v2 is not found") + return (__cuVDPAUCtxCreate_v2)( + pCtx, flags, device, vdpDevice, vdpGetProcAddress) + + +cdef CUresult _cuGraphicsVDPAURegisterVideoSurface(CUgraphicsResource* pCudaResource, VdpVideoSurface vdpSurface, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphicsVDPAURegisterVideoSurface + _check_or_init_driver() + if __cuGraphicsVDPAURegisterVideoSurface == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphicsVDPAURegisterVideoSurface is not found") + return (__cuGraphicsVDPAURegisterVideoSurface)( + pCudaResource, vdpSurface, flags) + + +cdef CUresult _cuGraphicsVDPAURegisterOutputSurface(CUgraphicsResource* pCudaResource, VdpOutputSurface vdpSurface, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphicsVDPAURegisterOutputSurface + _check_or_init_driver() + if __cuGraphicsVDPAURegisterOutputSurface == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphicsVDPAURegisterOutputSurface is not found") + return (__cuGraphicsVDPAURegisterOutputSurface)( + pCudaResource, vdpSurface, flags) + + +cdef CUresult _cuDeviceGetHostAtomicCapabilities(unsigned int* capabilities, const CUatomicOperation* operations, unsigned int count, CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuDeviceGetHostAtomicCapabilities + _check_or_init_driver() + if __cuDeviceGetHostAtomicCapabilities == NULL: + with gil: + raise FunctionNotFoundError("function cuDeviceGetHostAtomicCapabilities is not found") + return (__cuDeviceGetHostAtomicCapabilities)( + capabilities, operations, count, dev) + + +cdef CUresult _cuCtxGetDevice_v2(CUdevice* device, CUcontext ctx) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuCtxGetDevice_v2 + _check_or_init_driver() + if __cuCtxGetDevice_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuCtxGetDevice_v2 is not found") + return (__cuCtxGetDevice_v2)( + device, ctx) + + +cdef CUresult _cuCtxSynchronize_v2(CUcontext ctx) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuCtxSynchronize_v2 + _check_or_init_driver() + if __cuCtxSynchronize_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuCtxSynchronize_v2 is not found") + return (__cuCtxSynchronize_v2)( + ctx) + + +cdef CUresult _cuMemcpyBatchAsync_v2(CUdeviceptr* dsts, CUdeviceptr* srcs, size_t* sizes, size_t count, CUmemcpyAttributes* attrs, size_t* attrsIdxs, size_t numAttrs, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemcpyBatchAsync_v2 + _check_or_init_driver() + if __cuMemcpyBatchAsync_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuMemcpyBatchAsync_v2 is not found") + return (__cuMemcpyBatchAsync_v2)( + dsts, srcs, sizes, count, attrs, attrsIdxs, numAttrs, hStream) + + +cdef CUresult _cuMemcpy3DBatchAsync_v2(size_t numOps, CUDA_MEMCPY3D_BATCH_OP* opList, unsigned long long flags, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemcpy3DBatchAsync_v2 + _check_or_init_driver() + if __cuMemcpy3DBatchAsync_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuMemcpy3DBatchAsync_v2 is not found") + return (__cuMemcpy3DBatchAsync_v2)( + numOps, opList, flags, hStream) + + +cdef CUresult _cuMemGetDefaultMemPool(CUmemoryPool* pool_out, CUmemLocation* location, CUmemAllocationType type) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemGetDefaultMemPool + _check_or_init_driver() + if __cuMemGetDefaultMemPool == NULL: + with gil: + raise FunctionNotFoundError("function cuMemGetDefaultMemPool is not found") + return (__cuMemGetDefaultMemPool)( + pool_out, location, type) + + +cdef CUresult _cuMemGetMemPool(CUmemoryPool* pool, CUmemLocation* location, CUmemAllocationType type) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemGetMemPool + _check_or_init_driver() + if __cuMemGetMemPool == NULL: + with gil: + raise FunctionNotFoundError("function cuMemGetMemPool is not found") + return (__cuMemGetMemPool)( + pool, location, type) + + +cdef CUresult _cuMemSetMemPool(CUmemLocation* location, CUmemAllocationType type, CUmemoryPool pool) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemSetMemPool + _check_or_init_driver() + if __cuMemSetMemPool == NULL: + with gil: + raise FunctionNotFoundError("function cuMemSetMemPool is not found") + return (__cuMemSetMemPool)( + location, type, pool) + + +cdef CUresult _cuMulticastBindMem_v2(CUmemGenericAllocationHandle mcHandle, CUdevice dev, size_t mcOffset, CUmemGenericAllocationHandle memHandle, size_t memOffset, size_t size, unsigned long long flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMulticastBindMem_v2 + _check_or_init_driver() + if __cuMulticastBindMem_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuMulticastBindMem_v2 is not found") + return (__cuMulticastBindMem_v2)( + mcHandle, dev, mcOffset, memHandle, memOffset, size, flags) + + +cdef CUresult _cuMulticastBindAddr_v2(CUmemGenericAllocationHandle mcHandle, CUdevice dev, size_t mcOffset, CUdeviceptr memptr, size_t size, unsigned long long flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMulticastBindAddr_v2 + _check_or_init_driver() + if __cuMulticastBindAddr_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuMulticastBindAddr_v2 is not found") + return (__cuMulticastBindAddr_v2)( + mcHandle, dev, mcOffset, memptr, size, flags) + + +cdef CUresult _cuMemPrefetchBatchAsync(CUdeviceptr* dptrs, size_t* sizes, size_t count, CUmemLocation* prefetchLocs, size_t* prefetchLocIdxs, size_t numPrefetchLocs, unsigned long long flags, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemPrefetchBatchAsync + _check_or_init_driver() + if __cuMemPrefetchBatchAsync == NULL: + with gil: + raise FunctionNotFoundError("function cuMemPrefetchBatchAsync is not found") + return (__cuMemPrefetchBatchAsync)( + dptrs, sizes, count, prefetchLocs, prefetchLocIdxs, numPrefetchLocs, flags, hStream) + + +cdef CUresult _cuMemDiscardBatchAsync(CUdeviceptr* dptrs, size_t* sizes, size_t count, unsigned long long flags, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemDiscardBatchAsync + _check_or_init_driver() + if __cuMemDiscardBatchAsync == NULL: + with gil: + raise FunctionNotFoundError("function cuMemDiscardBatchAsync is not found") + return (__cuMemDiscardBatchAsync)( + dptrs, sizes, count, flags, hStream) + + +cdef CUresult _cuMemDiscardAndPrefetchBatchAsync(CUdeviceptr* dptrs, size_t* sizes, size_t count, CUmemLocation* prefetchLocs, size_t* prefetchLocIdxs, size_t numPrefetchLocs, unsigned long long flags, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemDiscardAndPrefetchBatchAsync + _check_or_init_driver() + if __cuMemDiscardAndPrefetchBatchAsync == NULL: + with gil: + raise FunctionNotFoundError("function cuMemDiscardAndPrefetchBatchAsync is not found") + return (__cuMemDiscardAndPrefetchBatchAsync)( + dptrs, sizes, count, prefetchLocs, prefetchLocIdxs, numPrefetchLocs, flags, hStream) + + +cdef CUresult _cuGraphNodeGetContainingGraph(CUgraphNode hNode, CUgraph* phGraph) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphNodeGetContainingGraph + _check_or_init_driver() + if __cuGraphNodeGetContainingGraph == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphNodeGetContainingGraph is not found") + return (__cuGraphNodeGetContainingGraph)( + hNode, phGraph) + + +cdef CUresult _cuGraphNodeGetLocalId(CUgraphNode hNode, unsigned int* nodeId) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphNodeGetLocalId + _check_or_init_driver() + if __cuGraphNodeGetLocalId == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphNodeGetLocalId is not found") + return (__cuGraphNodeGetLocalId)( + hNode, nodeId) + + +cdef CUresult _cuGraphNodeGetToolsId(CUgraphNode hNode, unsigned long long* toolsNodeId) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphNodeGetToolsId + _check_or_init_driver() + if __cuGraphNodeGetToolsId == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphNodeGetToolsId is not found") + return (__cuGraphNodeGetToolsId)( + hNode, toolsNodeId) + + +cdef CUresult _cuGraphGetId(CUgraph hGraph, unsigned int* graphId) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphGetId + _check_or_init_driver() + if __cuGraphGetId == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphGetId is not found") + return (__cuGraphGetId)( + hGraph, graphId) + + +cdef CUresult _cuGraphExecGetId(CUgraphExec hGraphExec, unsigned int* graphId) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphExecGetId + _check_or_init_driver() + if __cuGraphExecGetId == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphExecGetId is not found") + return (__cuGraphExecGetId)( + hGraphExec, graphId) + + +cdef CUresult _cuDeviceGetP2PAtomicCapabilities(unsigned int* capabilities, const CUatomicOperation* operations, unsigned int count, CUdevice srcDevice, CUdevice dstDevice) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuDeviceGetP2PAtomicCapabilities + _check_or_init_driver() + if __cuDeviceGetP2PAtomicCapabilities == NULL: + with gil: + raise FunctionNotFoundError("function cuDeviceGetP2PAtomicCapabilities is not found") + return (__cuDeviceGetP2PAtomicCapabilities)( + capabilities, operations, count, srcDevice, dstDevice) + + +cdef CUresult _cuDevSmResourceSplit(CUdevResource* result, unsigned int nbGroups, const CUdevResource* input, CUdevResource* remainder, unsigned int flags, CU_DEV_SM_RESOURCE_GROUP_PARAMS* groupParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuDevSmResourceSplit + _check_or_init_driver() + if __cuDevSmResourceSplit == NULL: + with gil: + raise FunctionNotFoundError("function cuDevSmResourceSplit is not found") + return (__cuDevSmResourceSplit)( + result, nbGroups, input, remainder, flags, groupParams) + + +cdef CUresult _cuGreenCtxGetId(CUgreenCtx greenCtx, unsigned long long* greenCtxId) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGreenCtxGetId + _check_or_init_driver() + if __cuGreenCtxGetId == NULL: + with gil: + raise FunctionNotFoundError("function cuGreenCtxGetId is not found") + return (__cuGreenCtxGetId)( + greenCtx, greenCtxId) + + +cdef CUresult _cuStreamGetDevResource(CUstream hStream, CUdevResource* resource, CUdevResourceType type) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuStreamGetDevResource + _check_or_init_driver() + if __cuStreamGetDevResource == NULL: + with gil: + raise FunctionNotFoundError("function cuStreamGetDevResource is not found") + return (__cuStreamGetDevResource)( + hStream, resource, type) + + +cdef CUresult _cuKernelGetParamCount(CUkernel kernel, size_t* paramCount) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuKernelGetParamCount + _check_or_init_driver() + if __cuKernelGetParamCount == NULL: + with gil: + raise FunctionNotFoundError("function cuKernelGetParamCount is not found") + return (__cuKernelGetParamCount)( + kernel, paramCount) + + +cdef CUresult _cuMemcpyWithAttributesAsync(CUdeviceptr dst, CUdeviceptr src, size_t size, CUmemcpyAttributes* attr, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemcpyWithAttributesAsync + _check_or_init_driver() + if __cuMemcpyWithAttributesAsync == NULL: + with gil: + raise FunctionNotFoundError("function cuMemcpyWithAttributesAsync is not found") + return (__cuMemcpyWithAttributesAsync)( + dst, src, size, attr, hStream) + + +cdef CUresult _cuMemcpy3DWithAttributesAsync(CUDA_MEMCPY3D_BATCH_OP* op, unsigned long long flags, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuMemcpy3DWithAttributesAsync + _check_or_init_driver() + if __cuMemcpy3DWithAttributesAsync == NULL: + with gil: + raise FunctionNotFoundError("function cuMemcpy3DWithAttributesAsync is not found") + return (__cuMemcpy3DWithAttributesAsync)( + op, flags, hStream) + + +cdef CUresult _cuStreamBeginCaptureToCig(CUstream hStream, CUstreamCigCaptureParams* streamCigCaptureParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuStreamBeginCaptureToCig + _check_or_init_driver() + if __cuStreamBeginCaptureToCig == NULL: + with gil: + raise FunctionNotFoundError("function cuStreamBeginCaptureToCig is not found") + return (__cuStreamBeginCaptureToCig)( + hStream, streamCigCaptureParams) + + +cdef CUresult _cuStreamEndCaptureToCig(CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuStreamEndCaptureToCig + _check_or_init_driver() + if __cuStreamEndCaptureToCig == NULL: + with gil: + raise FunctionNotFoundError("function cuStreamEndCaptureToCig is not found") + return (__cuStreamEndCaptureToCig)( + hStream) + + +cdef CUresult _cuFuncGetParamCount(CUfunction func, size_t* paramCount) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuFuncGetParamCount + _check_or_init_driver() + if __cuFuncGetParamCount == NULL: + with gil: + raise FunctionNotFoundError("function cuFuncGetParamCount is not found") + return (__cuFuncGetParamCount)( + func, paramCount) + + +cdef CUresult _cuLaunchHostFunc_v2(CUstream hStream, CUhostFn fn, void* userData, unsigned int syncMode) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuLaunchHostFunc_v2 + _check_or_init_driver() + if __cuLaunchHostFunc_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuLaunchHostFunc_v2 is not found") + return (__cuLaunchHostFunc_v2)( + hStream, fn, userData, syncMode) + + +cdef CUresult _cuGraphNodeGetParams(CUgraphNode hNode, CUgraphNodeParams* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuGraphNodeGetParams + _check_or_init_driver() + if __cuGraphNodeGetParams == NULL: + with gil: + raise FunctionNotFoundError("function cuGraphNodeGetParams is not found") + return (__cuGraphNodeGetParams)( + hNode, nodeParams) + + +cdef CUresult _cuCoredumpRegisterStartCallback(CUcoredumpStatusCallback callback, void* userData, CUcoredumpCallbackHandle* callbackOut) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuCoredumpRegisterStartCallback + _check_or_init_driver() + if __cuCoredumpRegisterStartCallback == NULL: + with gil: + raise FunctionNotFoundError("function cuCoredumpRegisterStartCallback is not found") + return (__cuCoredumpRegisterStartCallback)( + callback, userData, callbackOut) + + +cdef CUresult _cuCoredumpRegisterCompleteCallback(CUcoredumpStatusCallback callback, void* userData, CUcoredumpCallbackHandle* callbackOut) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuCoredumpRegisterCompleteCallback + _check_or_init_driver() + if __cuCoredumpRegisterCompleteCallback == NULL: + with gil: + raise FunctionNotFoundError("function cuCoredumpRegisterCompleteCallback is not found") + return (__cuCoredumpRegisterCompleteCallback)( + callback, userData, callbackOut) + + +cdef CUresult _cuCoredumpDeregisterStartCallback(CUcoredumpCallbackHandle callback) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuCoredumpDeregisterStartCallback + _check_or_init_driver() + if __cuCoredumpDeregisterStartCallback == NULL: + with gil: + raise FunctionNotFoundError("function cuCoredumpDeregisterStartCallback is not found") + return (__cuCoredumpDeregisterStartCallback)( + callback) + + +cdef CUresult _cuCoredumpDeregisterCompleteCallback(CUcoredumpCallbackHandle callback) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + global __cuCoredumpDeregisterCompleteCallback + _check_or_init_driver() + if __cuCoredumpDeregisterCompleteCallback == NULL: + with gil: + raise FunctionNotFoundError("function cuCoredumpDeregisterCompleteCallback is not found") + return (__cuCoredumpDeregisterCompleteCallback)( + callback) diff --git a/cuda_bindings/cuda/bindings/_internal/nvrtc.pxd b/cuda_bindings/cuda/bindings/_internal/nvrtc.pxd index 1964af1f16b..e837c0ab091 100644 --- a/cuda_bindings/cuda/bindings/_internal/nvrtc.pxd +++ b/cuda_bindings/cuda/bindings/_internal/nvrtc.pxd @@ -2,62 +2,38 @@ # # SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE # -# This code was automatically generated with version 13.2.0, generator version 0.3.1.dev1364+ged01d643e. Do not modify it directly. +# This code was automatically generated across versions from 12.9.0 to 13.2.0, generator version 0.3.1.dev1630+gadce055ea.d20260422. Do not modify it directly. from ..cynvrtc cimport * + ############################################################################### # Wrapper functions ############################################################################### -cdef const char* _nvrtcGetErrorString(nvrtcResult result) except ?NULL nogil - -cdef nvrtcResult _nvrtcVersion(int* major, int* minor) except ?NVRTC_ERROR_INVALID_INPUT nogil - -cdef nvrtcResult _nvrtcGetNumSupportedArchs(int* numArchs) except ?NVRTC_ERROR_INVALID_INPUT nogil - -cdef nvrtcResult _nvrtcGetSupportedArchs(int* supportedArchs) except ?NVRTC_ERROR_INVALID_INPUT nogil - -cdef nvrtcResult _nvrtcCreateProgram(nvrtcProgram* prog, const char* src, const char* name, int numHeaders, const char** headers, const char** includeNames) except ?NVRTC_ERROR_INVALID_INPUT nogil - -cdef nvrtcResult _nvrtcDestroyProgram(nvrtcProgram* prog) except ?NVRTC_ERROR_INVALID_INPUT nogil - -cdef nvrtcResult _nvrtcCompileProgram(nvrtcProgram prog, int numOptions, const char** options) except ?NVRTC_ERROR_INVALID_INPUT nogil - -cdef nvrtcResult _nvrtcGetPTXSize(nvrtcProgram prog, size_t* ptxSizeRet) except ?NVRTC_ERROR_INVALID_INPUT nogil - -cdef nvrtcResult _nvrtcGetPTX(nvrtcProgram prog, char* ptx) except ?NVRTC_ERROR_INVALID_INPUT nogil - -cdef nvrtcResult _nvrtcGetCUBINSize(nvrtcProgram prog, size_t* cubinSizeRet) except ?NVRTC_ERROR_INVALID_INPUT nogil - -cdef nvrtcResult _nvrtcGetCUBIN(nvrtcProgram prog, char* cubin) except ?NVRTC_ERROR_INVALID_INPUT nogil - -cdef nvrtcResult _nvrtcGetLTOIRSize(nvrtcProgram prog, size_t* LTOIRSizeRet) except ?NVRTC_ERROR_INVALID_INPUT nogil - -cdef nvrtcResult _nvrtcGetLTOIR(nvrtcProgram prog, char* LTOIR) except ?NVRTC_ERROR_INVALID_INPUT nogil - -cdef nvrtcResult _nvrtcGetOptiXIRSize(nvrtcProgram prog, size_t* optixirSizeRet) except ?NVRTC_ERROR_INVALID_INPUT nogil - -cdef nvrtcResult _nvrtcGetOptiXIR(nvrtcProgram prog, char* optixir) except ?NVRTC_ERROR_INVALID_INPUT nogil - -cdef nvrtcResult _nvrtcGetProgramLogSize(nvrtcProgram prog, size_t* logSizeRet) except ?NVRTC_ERROR_INVALID_INPUT nogil - -cdef nvrtcResult _nvrtcGetProgramLog(nvrtcProgram prog, char* log) except ?NVRTC_ERROR_INVALID_INPUT nogil - -cdef nvrtcResult _nvrtcAddNameExpression(nvrtcProgram prog, const char* name_expression) except ?NVRTC_ERROR_INVALID_INPUT nogil - -cdef nvrtcResult _nvrtcGetLoweredName(nvrtcProgram prog, const char* name_expression, const char** lowered_name) except ?NVRTC_ERROR_INVALID_INPUT nogil - -cdef nvrtcResult _nvrtcGetPCHHeapSize(size_t* ret) except ?NVRTC_ERROR_INVALID_INPUT nogil - -cdef nvrtcResult _nvrtcSetPCHHeapSize(size_t size) except ?NVRTC_ERROR_INVALID_INPUT nogil - -cdef nvrtcResult _nvrtcGetPCHCreateStatus(nvrtcProgram prog) except ?NVRTC_ERROR_INVALID_INPUT nogil - -cdef nvrtcResult _nvrtcGetPCHHeapSizeRequired(nvrtcProgram prog, size_t* size) except ?NVRTC_ERROR_INVALID_INPUT nogil - -cdef nvrtcResult _nvrtcSetFlowCallback(nvrtcProgram prog, void* callback, void* payload) except ?NVRTC_ERROR_INVALID_INPUT nogil - -cdef nvrtcResult _nvrtcGetTileIRSize(nvrtcProgram prog, size_t* TileIRSizeRet) except ?NVRTC_ERROR_INVALID_INPUT nogil - -cdef nvrtcResult _nvrtcGetTileIR(nvrtcProgram prog, char* TileIR) except ?NVRTC_ERROR_INVALID_INPUT nogil +cdef const char* _nvrtcGetErrorString(nvrtcResult result) except?NULL nogil +cdef nvrtcResult _nvrtcVersion(int* major, int* minor) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil +cdef nvrtcResult _nvrtcGetNumSupportedArchs(int* numArchs) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil +cdef nvrtcResult _nvrtcGetSupportedArchs(int* supportedArchs) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil +cdef nvrtcResult _nvrtcCreateProgram(nvrtcProgram* prog, const char* src, const char* name, int numHeaders, const char* const* headers, const char* const* includeNames) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil +cdef nvrtcResult _nvrtcDestroyProgram(nvrtcProgram* prog) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil +cdef nvrtcResult _nvrtcCompileProgram(nvrtcProgram prog, int numOptions, const char* const* options) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil +cdef nvrtcResult _nvrtcGetPTXSize(nvrtcProgram prog, size_t* ptxSizeRet) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil +cdef nvrtcResult _nvrtcGetPTX(nvrtcProgram prog, char* ptx) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil +cdef nvrtcResult _nvrtcGetCUBINSize(nvrtcProgram prog, size_t* cubinSizeRet) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil +cdef nvrtcResult _nvrtcGetCUBIN(nvrtcProgram prog, char* cubin) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil +cdef nvrtcResult _nvrtcGetLTOIRSize(nvrtcProgram prog, size_t* LTOIRSizeRet) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil +cdef nvrtcResult _nvrtcGetLTOIR(nvrtcProgram prog, char* LTOIR) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil +cdef nvrtcResult _nvrtcGetOptiXIRSize(nvrtcProgram prog, size_t* optixirSizeRet) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil +cdef nvrtcResult _nvrtcGetOptiXIR(nvrtcProgram prog, char* optixir) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil +cdef nvrtcResult _nvrtcGetProgramLogSize(nvrtcProgram prog, size_t* logSizeRet) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil +cdef nvrtcResult _nvrtcGetProgramLog(nvrtcProgram prog, char* log) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil +cdef nvrtcResult _nvrtcAddNameExpression(nvrtcProgram prog, const char* const name_expression) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil +cdef nvrtcResult _nvrtcGetLoweredName(nvrtcProgram prog, const char* const name_expression, const char** lowered_name) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil +cdef nvrtcResult _nvrtcGetPCHHeapSize(size_t* ret) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil +cdef nvrtcResult _nvrtcSetPCHHeapSize(size_t size) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil +cdef nvrtcResult _nvrtcGetPCHCreateStatus(nvrtcProgram prog) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil +cdef nvrtcResult _nvrtcGetPCHHeapSizeRequired(nvrtcProgram prog, size_t* size) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil +cdef nvrtcResult _nvrtcSetFlowCallback(nvrtcProgram prog, void * callback, void* payload) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil +cdef nvrtcResult _nvrtcGetTileIRSize(nvrtcProgram prog, size_t* TileIRSizeRet) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil +cdef nvrtcResult _nvrtcGetTileIR(nvrtcProgram prog, char* TileIR) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil diff --git a/cuda_bindings/cuda/bindings/_internal/nvrtc_linux.pyx b/cuda_bindings/cuda/bindings/_internal/nvrtc_linux.pyx index 780042a8cdc..16fa3b38707 100644 --- a/cuda_bindings/cuda/bindings/_internal/nvrtc_linux.pyx +++ b/cuda_bindings/cuda/bindings/_internal/nvrtc_linux.pyx @@ -2,7 +2,7 @@ # # SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE # -# This code was automatically generated with version 13.2.0, generator version 0.3.1.dev1364+ged01d643e. Do not modify it directly. +# This code was automatically generated across versions from 12.9.0 to 13.2.0, generator version 0.3.1.dev1630+gadce055ea.d20260422. Do not modify it directly. from libc.stdint cimport intptr_t, uintptr_t @@ -11,6 +11,7 @@ from .utils import FunctionNotFoundError, NotSupportedError from cuda.pathfinder import load_nvidia_dynamic_lib + ############################################################################### # Extern ############################################################################### @@ -49,6 +50,8 @@ cdef int get_cuda_version(): return driver_ver + + ############################################################################### # Wrapper init ############################################################################### @@ -83,10 +86,12 @@ cdef void* __nvrtcSetFlowCallback = NULL cdef void* __nvrtcGetTileIRSize = NULL cdef void* __nvrtcGetTileIR = NULL + cdef void* load_library() except* with gil: cdef uintptr_t handle = load_nvidia_dynamic_lib("nvrtc")._handle_uint return handle + cdef int _init_nvrtc() except -1 nogil: global __py_nvrtc_init @@ -283,6 +288,7 @@ cdef int _init_nvrtc() except -1 nogil: __py_nvrtc_init = True return 0 + cdef inline int _check_or_init_nvrtc() except -1 nogil: if __py_nvrtc_init: return 0 @@ -291,6 +297,7 @@ cdef inline int _check_or_init_nvrtc() except -1 nogil: cdef dict func_ptrs = None + cpdef dict _inspect_function_pointers(): global func_ptrs if func_ptrs is not None: @@ -380,220 +387,273 @@ cpdef dict _inspect_function_pointers(): func_ptrs = data return data + cpdef _inspect_function_pointer(str name): global func_ptrs if func_ptrs is None: func_ptrs = _inspect_function_pointers() return func_ptrs[name] + ############################################################################### # Wrapper functions ############################################################################### -cdef const char* _nvrtcGetErrorString(nvrtcResult result) except ?NULL nogil: +cdef const char* _nvrtcGetErrorString(nvrtcResult result) except?NULL nogil: global __nvrtcGetErrorString _check_or_init_nvrtc() if __nvrtcGetErrorString == NULL: with gil: raise FunctionNotFoundError("function nvrtcGetErrorString is not found") - return (__nvrtcGetErrorString)(result) + return (__nvrtcGetErrorString)( + result) -cdef nvrtcResult _nvrtcVersion(int* major, int* minor) except ?NVRTC_ERROR_INVALID_INPUT nogil: + +cdef nvrtcResult _nvrtcVersion(int* major, int* minor) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: global __nvrtcVersion _check_or_init_nvrtc() if __nvrtcVersion == NULL: with gil: raise FunctionNotFoundError("function nvrtcVersion is not found") - return (__nvrtcVersion)(major, minor) + return (__nvrtcVersion)( + major, minor) + -cdef nvrtcResult _nvrtcGetNumSupportedArchs(int* numArchs) except ?NVRTC_ERROR_INVALID_INPUT nogil: +cdef nvrtcResult _nvrtcGetNumSupportedArchs(int* numArchs) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: global __nvrtcGetNumSupportedArchs _check_or_init_nvrtc() if __nvrtcGetNumSupportedArchs == NULL: with gil: raise FunctionNotFoundError("function nvrtcGetNumSupportedArchs is not found") - return (__nvrtcGetNumSupportedArchs)(numArchs) + return (__nvrtcGetNumSupportedArchs)( + numArchs) -cdef nvrtcResult _nvrtcGetSupportedArchs(int* supportedArchs) except ?NVRTC_ERROR_INVALID_INPUT nogil: + +cdef nvrtcResult _nvrtcGetSupportedArchs(int* supportedArchs) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: global __nvrtcGetSupportedArchs _check_or_init_nvrtc() if __nvrtcGetSupportedArchs == NULL: with gil: raise FunctionNotFoundError("function nvrtcGetSupportedArchs is not found") - return (__nvrtcGetSupportedArchs)(supportedArchs) + return (__nvrtcGetSupportedArchs)( + supportedArchs) + -cdef nvrtcResult _nvrtcCreateProgram(nvrtcProgram* prog, const char* src, const char* name, int numHeaders, const char** headers, const char** includeNames) except ?NVRTC_ERROR_INVALID_INPUT nogil: +cdef nvrtcResult _nvrtcCreateProgram(nvrtcProgram* prog, const char* src, const char* name, int numHeaders, const char* const* headers, const char* const* includeNames) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: global __nvrtcCreateProgram _check_or_init_nvrtc() if __nvrtcCreateProgram == NULL: with gil: raise FunctionNotFoundError("function nvrtcCreateProgram is not found") - return (__nvrtcCreateProgram)(prog, src, name, numHeaders, headers, includeNames) + return (__nvrtcCreateProgram)( + prog, src, name, numHeaders, headers, includeNames) -cdef nvrtcResult _nvrtcDestroyProgram(nvrtcProgram* prog) except ?NVRTC_ERROR_INVALID_INPUT nogil: + +cdef nvrtcResult _nvrtcDestroyProgram(nvrtcProgram* prog) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: global __nvrtcDestroyProgram _check_or_init_nvrtc() if __nvrtcDestroyProgram == NULL: with gil: raise FunctionNotFoundError("function nvrtcDestroyProgram is not found") - return (__nvrtcDestroyProgram)(prog) + return (__nvrtcDestroyProgram)( + prog) + -cdef nvrtcResult _nvrtcCompileProgram(nvrtcProgram prog, int numOptions, const char** options) except ?NVRTC_ERROR_INVALID_INPUT nogil: +cdef nvrtcResult _nvrtcCompileProgram(nvrtcProgram prog, int numOptions, const char* const* options) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: global __nvrtcCompileProgram _check_or_init_nvrtc() if __nvrtcCompileProgram == NULL: with gil: raise FunctionNotFoundError("function nvrtcCompileProgram is not found") - return (__nvrtcCompileProgram)(prog, numOptions, options) + return (__nvrtcCompileProgram)( + prog, numOptions, options) -cdef nvrtcResult _nvrtcGetPTXSize(nvrtcProgram prog, size_t* ptxSizeRet) except ?NVRTC_ERROR_INVALID_INPUT nogil: + +cdef nvrtcResult _nvrtcGetPTXSize(nvrtcProgram prog, size_t* ptxSizeRet) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: global __nvrtcGetPTXSize _check_or_init_nvrtc() if __nvrtcGetPTXSize == NULL: with gil: raise FunctionNotFoundError("function nvrtcGetPTXSize is not found") - return (__nvrtcGetPTXSize)(prog, ptxSizeRet) + return (__nvrtcGetPTXSize)( + prog, ptxSizeRet) + -cdef nvrtcResult _nvrtcGetPTX(nvrtcProgram prog, char* ptx) except ?NVRTC_ERROR_INVALID_INPUT nogil: +cdef nvrtcResult _nvrtcGetPTX(nvrtcProgram prog, char* ptx) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: global __nvrtcGetPTX _check_or_init_nvrtc() if __nvrtcGetPTX == NULL: with gil: raise FunctionNotFoundError("function nvrtcGetPTX is not found") - return (__nvrtcGetPTX)(prog, ptx) + return (__nvrtcGetPTX)( + prog, ptx) -cdef nvrtcResult _nvrtcGetCUBINSize(nvrtcProgram prog, size_t* cubinSizeRet) except ?NVRTC_ERROR_INVALID_INPUT nogil: + +cdef nvrtcResult _nvrtcGetCUBINSize(nvrtcProgram prog, size_t* cubinSizeRet) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: global __nvrtcGetCUBINSize _check_or_init_nvrtc() if __nvrtcGetCUBINSize == NULL: with gil: raise FunctionNotFoundError("function nvrtcGetCUBINSize is not found") - return (__nvrtcGetCUBINSize)(prog, cubinSizeRet) + return (__nvrtcGetCUBINSize)( + prog, cubinSizeRet) + -cdef nvrtcResult _nvrtcGetCUBIN(nvrtcProgram prog, char* cubin) except ?NVRTC_ERROR_INVALID_INPUT nogil: +cdef nvrtcResult _nvrtcGetCUBIN(nvrtcProgram prog, char* cubin) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: global __nvrtcGetCUBIN _check_or_init_nvrtc() if __nvrtcGetCUBIN == NULL: with gil: raise FunctionNotFoundError("function nvrtcGetCUBIN is not found") - return (__nvrtcGetCUBIN)(prog, cubin) + return (__nvrtcGetCUBIN)( + prog, cubin) + -cdef nvrtcResult _nvrtcGetLTOIRSize(nvrtcProgram prog, size_t* LTOIRSizeRet) except ?NVRTC_ERROR_INVALID_INPUT nogil: +cdef nvrtcResult _nvrtcGetLTOIRSize(nvrtcProgram prog, size_t* LTOIRSizeRet) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: global __nvrtcGetLTOIRSize _check_or_init_nvrtc() if __nvrtcGetLTOIRSize == NULL: with gil: raise FunctionNotFoundError("function nvrtcGetLTOIRSize is not found") - return (__nvrtcGetLTOIRSize)(prog, LTOIRSizeRet) + return (__nvrtcGetLTOIRSize)( + prog, LTOIRSizeRet) -cdef nvrtcResult _nvrtcGetLTOIR(nvrtcProgram prog, char* LTOIR) except ?NVRTC_ERROR_INVALID_INPUT nogil: + +cdef nvrtcResult _nvrtcGetLTOIR(nvrtcProgram prog, char* LTOIR) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: global __nvrtcGetLTOIR _check_or_init_nvrtc() if __nvrtcGetLTOIR == NULL: with gil: raise FunctionNotFoundError("function nvrtcGetLTOIR is not found") - return (__nvrtcGetLTOIR)(prog, LTOIR) + return (__nvrtcGetLTOIR)( + prog, LTOIR) + -cdef nvrtcResult _nvrtcGetOptiXIRSize(nvrtcProgram prog, size_t* optixirSizeRet) except ?NVRTC_ERROR_INVALID_INPUT nogil: +cdef nvrtcResult _nvrtcGetOptiXIRSize(nvrtcProgram prog, size_t* optixirSizeRet) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: global __nvrtcGetOptiXIRSize _check_or_init_nvrtc() if __nvrtcGetOptiXIRSize == NULL: with gil: raise FunctionNotFoundError("function nvrtcGetOptiXIRSize is not found") - return (__nvrtcGetOptiXIRSize)(prog, optixirSizeRet) + return (__nvrtcGetOptiXIRSize)( + prog, optixirSizeRet) -cdef nvrtcResult _nvrtcGetOptiXIR(nvrtcProgram prog, char* optixir) except ?NVRTC_ERROR_INVALID_INPUT nogil: + +cdef nvrtcResult _nvrtcGetOptiXIR(nvrtcProgram prog, char* optixir) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: global __nvrtcGetOptiXIR _check_or_init_nvrtc() if __nvrtcGetOptiXIR == NULL: with gil: raise FunctionNotFoundError("function nvrtcGetOptiXIR is not found") - return (__nvrtcGetOptiXIR)(prog, optixir) + return (__nvrtcGetOptiXIR)( + prog, optixir) + -cdef nvrtcResult _nvrtcGetProgramLogSize(nvrtcProgram prog, size_t* logSizeRet) except ?NVRTC_ERROR_INVALID_INPUT nogil: +cdef nvrtcResult _nvrtcGetProgramLogSize(nvrtcProgram prog, size_t* logSizeRet) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: global __nvrtcGetProgramLogSize _check_or_init_nvrtc() if __nvrtcGetProgramLogSize == NULL: with gil: raise FunctionNotFoundError("function nvrtcGetProgramLogSize is not found") - return (__nvrtcGetProgramLogSize)(prog, logSizeRet) + return (__nvrtcGetProgramLogSize)( + prog, logSizeRet) -cdef nvrtcResult _nvrtcGetProgramLog(nvrtcProgram prog, char* log) except ?NVRTC_ERROR_INVALID_INPUT nogil: + +cdef nvrtcResult _nvrtcGetProgramLog(nvrtcProgram prog, char* log) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: global __nvrtcGetProgramLog _check_or_init_nvrtc() if __nvrtcGetProgramLog == NULL: with gil: raise FunctionNotFoundError("function nvrtcGetProgramLog is not found") - return (__nvrtcGetProgramLog)(prog, log) + return (__nvrtcGetProgramLog)( + prog, log) + -cdef nvrtcResult _nvrtcAddNameExpression(nvrtcProgram prog, const char* name_expression) except ?NVRTC_ERROR_INVALID_INPUT nogil: +cdef nvrtcResult _nvrtcAddNameExpression(nvrtcProgram prog, const char* const name_expression) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: global __nvrtcAddNameExpression _check_or_init_nvrtc() if __nvrtcAddNameExpression == NULL: with gil: raise FunctionNotFoundError("function nvrtcAddNameExpression is not found") - return (__nvrtcAddNameExpression)(prog, name_expression) + return (__nvrtcAddNameExpression)( + prog, name_expression) -cdef nvrtcResult _nvrtcGetLoweredName(nvrtcProgram prog, const char* name_expression, const char** lowered_name) except ?NVRTC_ERROR_INVALID_INPUT nogil: + +cdef nvrtcResult _nvrtcGetLoweredName(nvrtcProgram prog, const char* const name_expression, const char** lowered_name) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: global __nvrtcGetLoweredName _check_or_init_nvrtc() if __nvrtcGetLoweredName == NULL: with gil: raise FunctionNotFoundError("function nvrtcGetLoweredName is not found") - return (__nvrtcGetLoweredName)(prog, name_expression, lowered_name) + return (__nvrtcGetLoweredName)( + prog, name_expression, lowered_name) + -cdef nvrtcResult _nvrtcGetPCHHeapSize(size_t* ret) except ?NVRTC_ERROR_INVALID_INPUT nogil: +cdef nvrtcResult _nvrtcGetPCHHeapSize(size_t* ret) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: global __nvrtcGetPCHHeapSize _check_or_init_nvrtc() if __nvrtcGetPCHHeapSize == NULL: with gil: raise FunctionNotFoundError("function nvrtcGetPCHHeapSize is not found") - return (__nvrtcGetPCHHeapSize)(ret) + return (__nvrtcGetPCHHeapSize)( + ret) -cdef nvrtcResult _nvrtcSetPCHHeapSize(size_t size) except ?NVRTC_ERROR_INVALID_INPUT nogil: + +cdef nvrtcResult _nvrtcSetPCHHeapSize(size_t size) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: global __nvrtcSetPCHHeapSize _check_or_init_nvrtc() if __nvrtcSetPCHHeapSize == NULL: with gil: raise FunctionNotFoundError("function nvrtcSetPCHHeapSize is not found") - return (__nvrtcSetPCHHeapSize)(size) + return (__nvrtcSetPCHHeapSize)( + size) + -cdef nvrtcResult _nvrtcGetPCHCreateStatus(nvrtcProgram prog) except ?NVRTC_ERROR_INVALID_INPUT nogil: +cdef nvrtcResult _nvrtcGetPCHCreateStatus(nvrtcProgram prog) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: global __nvrtcGetPCHCreateStatus _check_or_init_nvrtc() if __nvrtcGetPCHCreateStatus == NULL: with gil: raise FunctionNotFoundError("function nvrtcGetPCHCreateStatus is not found") - return (__nvrtcGetPCHCreateStatus)(prog) + return (__nvrtcGetPCHCreateStatus)( + prog) -cdef nvrtcResult _nvrtcGetPCHHeapSizeRequired(nvrtcProgram prog, size_t* size) except ?NVRTC_ERROR_INVALID_INPUT nogil: + +cdef nvrtcResult _nvrtcGetPCHHeapSizeRequired(nvrtcProgram prog, size_t* size) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: global __nvrtcGetPCHHeapSizeRequired _check_or_init_nvrtc() if __nvrtcGetPCHHeapSizeRequired == NULL: with gil: raise FunctionNotFoundError("function nvrtcGetPCHHeapSizeRequired is not found") - return (__nvrtcGetPCHHeapSizeRequired)(prog, size) + return (__nvrtcGetPCHHeapSizeRequired)( + prog, size) + -cdef nvrtcResult _nvrtcSetFlowCallback(nvrtcProgram prog, void* callback, void* payload) except ?NVRTC_ERROR_INVALID_INPUT nogil: +cdef nvrtcResult _nvrtcSetFlowCallback(nvrtcProgram prog, void * callback, void* payload) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: global __nvrtcSetFlowCallback _check_or_init_nvrtc() if __nvrtcSetFlowCallback == NULL: with gil: raise FunctionNotFoundError("function nvrtcSetFlowCallback is not found") - return (__nvrtcSetFlowCallback)(prog, callback, payload) + return (__nvrtcSetFlowCallback)( + prog, callback, payload) -cdef nvrtcResult _nvrtcGetTileIRSize(nvrtcProgram prog, size_t* TileIRSizeRet) except ?NVRTC_ERROR_INVALID_INPUT nogil: + +cdef nvrtcResult _nvrtcGetTileIRSize(nvrtcProgram prog, size_t* TileIRSizeRet) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: global __nvrtcGetTileIRSize _check_or_init_nvrtc() if __nvrtcGetTileIRSize == NULL: with gil: raise FunctionNotFoundError("function nvrtcGetTileIRSize is not found") - return (__nvrtcGetTileIRSize)(prog, TileIRSizeRet) + return (__nvrtcGetTileIRSize)( + prog, TileIRSizeRet) + -cdef nvrtcResult _nvrtcGetTileIR(nvrtcProgram prog, char* TileIR) except ?NVRTC_ERROR_INVALID_INPUT nogil: +cdef nvrtcResult _nvrtcGetTileIR(nvrtcProgram prog, char* TileIR) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: global __nvrtcGetTileIR _check_or_init_nvrtc() if __nvrtcGetTileIR == NULL: with gil: raise FunctionNotFoundError("function nvrtcGetTileIR is not found") - return (__nvrtcGetTileIR)(prog, TileIR) + return (__nvrtcGetTileIR)( + prog, TileIR) diff --git a/cuda_bindings/cuda/bindings/_internal/nvrtc_windows.pyx b/cuda_bindings/cuda/bindings/_internal/nvrtc_windows.pyx index 1fb555644e1..ce05a3fc30a 100644 --- a/cuda_bindings/cuda/bindings/_internal/nvrtc_windows.pyx +++ b/cuda_bindings/cuda/bindings/_internal/nvrtc_windows.pyx @@ -2,7 +2,7 @@ # # SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE # -# This code was automatically generated with version 13.2.0, generator version 0.3.1.dev1364+ged01d643e. Do not modify it directly. +# This code was automatically generated across versions from 12.9.0 to 13.2.0, generator version 0.3.1.dev1630+gadce055ea.d20260422. Do not modify it directly. from libc.stdint cimport intptr_t @@ -68,6 +68,8 @@ cdef int get_cuda_version(): return driver_ver + + ############################################################################### # Wrapper init ############################################################################### @@ -102,6 +104,7 @@ cdef void* __nvrtcSetFlowCallback = NULL cdef void* __nvrtcGetTileIRSize = NULL cdef void* __nvrtcGetTileIR = NULL + cdef int _init_nvrtc() except -1 nogil: global __py_nvrtc_init @@ -195,6 +198,7 @@ cdef int _init_nvrtc() except -1 nogil: __py_nvrtc_init = True return 0 + cdef inline int _check_or_init_nvrtc() except -1 nogil: if __py_nvrtc_init: return 0 @@ -203,6 +207,7 @@ cdef inline int _check_or_init_nvrtc() except -1 nogil: cdef dict func_ptrs = None + cpdef dict _inspect_function_pointers(): global func_ptrs if func_ptrs is not None: @@ -292,220 +297,273 @@ cpdef dict _inspect_function_pointers(): func_ptrs = data return data + cpdef _inspect_function_pointer(str name): global func_ptrs if func_ptrs is None: func_ptrs = _inspect_function_pointers() return func_ptrs[name] + ############################################################################### # Wrapper functions ############################################################################### -cdef const char* _nvrtcGetErrorString(nvrtcResult result) except ?NULL nogil: +cdef const char* _nvrtcGetErrorString(nvrtcResult result) except?NULL nogil: global __nvrtcGetErrorString _check_or_init_nvrtc() if __nvrtcGetErrorString == NULL: with gil: raise FunctionNotFoundError("function nvrtcGetErrorString is not found") - return (__nvrtcGetErrorString)(result) + return (__nvrtcGetErrorString)( + result) + -cdef nvrtcResult _nvrtcVersion(int* major, int* minor) except ?NVRTC_ERROR_INVALID_INPUT nogil: +cdef nvrtcResult _nvrtcVersion(int* major, int* minor) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: global __nvrtcVersion _check_or_init_nvrtc() if __nvrtcVersion == NULL: with gil: raise FunctionNotFoundError("function nvrtcVersion is not found") - return (__nvrtcVersion)(major, minor) + return (__nvrtcVersion)( + major, minor) -cdef nvrtcResult _nvrtcGetNumSupportedArchs(int* numArchs) except ?NVRTC_ERROR_INVALID_INPUT nogil: + +cdef nvrtcResult _nvrtcGetNumSupportedArchs(int* numArchs) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: global __nvrtcGetNumSupportedArchs _check_or_init_nvrtc() if __nvrtcGetNumSupportedArchs == NULL: with gil: raise FunctionNotFoundError("function nvrtcGetNumSupportedArchs is not found") - return (__nvrtcGetNumSupportedArchs)(numArchs) + return (__nvrtcGetNumSupportedArchs)( + numArchs) + -cdef nvrtcResult _nvrtcGetSupportedArchs(int* supportedArchs) except ?NVRTC_ERROR_INVALID_INPUT nogil: +cdef nvrtcResult _nvrtcGetSupportedArchs(int* supportedArchs) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: global __nvrtcGetSupportedArchs _check_or_init_nvrtc() if __nvrtcGetSupportedArchs == NULL: with gil: raise FunctionNotFoundError("function nvrtcGetSupportedArchs is not found") - return (__nvrtcGetSupportedArchs)(supportedArchs) + return (__nvrtcGetSupportedArchs)( + supportedArchs) -cdef nvrtcResult _nvrtcCreateProgram(nvrtcProgram* prog, const char* src, const char* name, int numHeaders, const char** headers, const char** includeNames) except ?NVRTC_ERROR_INVALID_INPUT nogil: + +cdef nvrtcResult _nvrtcCreateProgram(nvrtcProgram* prog, const char* src, const char* name, int numHeaders, const char* const* headers, const char* const* includeNames) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: global __nvrtcCreateProgram _check_or_init_nvrtc() if __nvrtcCreateProgram == NULL: with gil: raise FunctionNotFoundError("function nvrtcCreateProgram is not found") - return (__nvrtcCreateProgram)(prog, src, name, numHeaders, headers, includeNames) + return (__nvrtcCreateProgram)( + prog, src, name, numHeaders, headers, includeNames) + -cdef nvrtcResult _nvrtcDestroyProgram(nvrtcProgram* prog) except ?NVRTC_ERROR_INVALID_INPUT nogil: +cdef nvrtcResult _nvrtcDestroyProgram(nvrtcProgram* prog) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: global __nvrtcDestroyProgram _check_or_init_nvrtc() if __nvrtcDestroyProgram == NULL: with gil: raise FunctionNotFoundError("function nvrtcDestroyProgram is not found") - return (__nvrtcDestroyProgram)(prog) + return (__nvrtcDestroyProgram)( + prog) -cdef nvrtcResult _nvrtcCompileProgram(nvrtcProgram prog, int numOptions, const char** options) except ?NVRTC_ERROR_INVALID_INPUT nogil: + +cdef nvrtcResult _nvrtcCompileProgram(nvrtcProgram prog, int numOptions, const char* const* options) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: global __nvrtcCompileProgram _check_or_init_nvrtc() if __nvrtcCompileProgram == NULL: with gil: raise FunctionNotFoundError("function nvrtcCompileProgram is not found") - return (__nvrtcCompileProgram)(prog, numOptions, options) + return (__nvrtcCompileProgram)( + prog, numOptions, options) + -cdef nvrtcResult _nvrtcGetPTXSize(nvrtcProgram prog, size_t* ptxSizeRet) except ?NVRTC_ERROR_INVALID_INPUT nogil: +cdef nvrtcResult _nvrtcGetPTXSize(nvrtcProgram prog, size_t* ptxSizeRet) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: global __nvrtcGetPTXSize _check_or_init_nvrtc() if __nvrtcGetPTXSize == NULL: with gil: raise FunctionNotFoundError("function nvrtcGetPTXSize is not found") - return (__nvrtcGetPTXSize)(prog, ptxSizeRet) + return (__nvrtcGetPTXSize)( + prog, ptxSizeRet) -cdef nvrtcResult _nvrtcGetPTX(nvrtcProgram prog, char* ptx) except ?NVRTC_ERROR_INVALID_INPUT nogil: + +cdef nvrtcResult _nvrtcGetPTX(nvrtcProgram prog, char* ptx) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: global __nvrtcGetPTX _check_or_init_nvrtc() if __nvrtcGetPTX == NULL: with gil: raise FunctionNotFoundError("function nvrtcGetPTX is not found") - return (__nvrtcGetPTX)(prog, ptx) + return (__nvrtcGetPTX)( + prog, ptx) + -cdef nvrtcResult _nvrtcGetCUBINSize(nvrtcProgram prog, size_t* cubinSizeRet) except ?NVRTC_ERROR_INVALID_INPUT nogil: +cdef nvrtcResult _nvrtcGetCUBINSize(nvrtcProgram prog, size_t* cubinSizeRet) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: global __nvrtcGetCUBINSize _check_or_init_nvrtc() if __nvrtcGetCUBINSize == NULL: with gil: raise FunctionNotFoundError("function nvrtcGetCUBINSize is not found") - return (__nvrtcGetCUBINSize)(prog, cubinSizeRet) + return (__nvrtcGetCUBINSize)( + prog, cubinSizeRet) -cdef nvrtcResult _nvrtcGetCUBIN(nvrtcProgram prog, char* cubin) except ?NVRTC_ERROR_INVALID_INPUT nogil: + +cdef nvrtcResult _nvrtcGetCUBIN(nvrtcProgram prog, char* cubin) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: global __nvrtcGetCUBIN _check_or_init_nvrtc() if __nvrtcGetCUBIN == NULL: with gil: raise FunctionNotFoundError("function nvrtcGetCUBIN is not found") - return (__nvrtcGetCUBIN)(prog, cubin) + return (__nvrtcGetCUBIN)( + prog, cubin) + -cdef nvrtcResult _nvrtcGetLTOIRSize(nvrtcProgram prog, size_t* LTOIRSizeRet) except ?NVRTC_ERROR_INVALID_INPUT nogil: +cdef nvrtcResult _nvrtcGetLTOIRSize(nvrtcProgram prog, size_t* LTOIRSizeRet) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: global __nvrtcGetLTOIRSize _check_or_init_nvrtc() if __nvrtcGetLTOIRSize == NULL: with gil: raise FunctionNotFoundError("function nvrtcGetLTOIRSize is not found") - return (__nvrtcGetLTOIRSize)(prog, LTOIRSizeRet) + return (__nvrtcGetLTOIRSize)( + prog, LTOIRSizeRet) -cdef nvrtcResult _nvrtcGetLTOIR(nvrtcProgram prog, char* LTOIR) except ?NVRTC_ERROR_INVALID_INPUT nogil: + +cdef nvrtcResult _nvrtcGetLTOIR(nvrtcProgram prog, char* LTOIR) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: global __nvrtcGetLTOIR _check_or_init_nvrtc() if __nvrtcGetLTOIR == NULL: with gil: raise FunctionNotFoundError("function nvrtcGetLTOIR is not found") - return (__nvrtcGetLTOIR)(prog, LTOIR) + return (__nvrtcGetLTOIR)( + prog, LTOIR) + -cdef nvrtcResult _nvrtcGetOptiXIRSize(nvrtcProgram prog, size_t* optixirSizeRet) except ?NVRTC_ERROR_INVALID_INPUT nogil: +cdef nvrtcResult _nvrtcGetOptiXIRSize(nvrtcProgram prog, size_t* optixirSizeRet) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: global __nvrtcGetOptiXIRSize _check_or_init_nvrtc() if __nvrtcGetOptiXIRSize == NULL: with gil: raise FunctionNotFoundError("function nvrtcGetOptiXIRSize is not found") - return (__nvrtcGetOptiXIRSize)(prog, optixirSizeRet) + return (__nvrtcGetOptiXIRSize)( + prog, optixirSizeRet) -cdef nvrtcResult _nvrtcGetOptiXIR(nvrtcProgram prog, char* optixir) except ?NVRTC_ERROR_INVALID_INPUT nogil: + +cdef nvrtcResult _nvrtcGetOptiXIR(nvrtcProgram prog, char* optixir) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: global __nvrtcGetOptiXIR _check_or_init_nvrtc() if __nvrtcGetOptiXIR == NULL: with gil: raise FunctionNotFoundError("function nvrtcGetOptiXIR is not found") - return (__nvrtcGetOptiXIR)(prog, optixir) + return (__nvrtcGetOptiXIR)( + prog, optixir) + -cdef nvrtcResult _nvrtcGetProgramLogSize(nvrtcProgram prog, size_t* logSizeRet) except ?NVRTC_ERROR_INVALID_INPUT nogil: +cdef nvrtcResult _nvrtcGetProgramLogSize(nvrtcProgram prog, size_t* logSizeRet) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: global __nvrtcGetProgramLogSize _check_or_init_nvrtc() if __nvrtcGetProgramLogSize == NULL: with gil: raise FunctionNotFoundError("function nvrtcGetProgramLogSize is not found") - return (__nvrtcGetProgramLogSize)(prog, logSizeRet) + return (__nvrtcGetProgramLogSize)( + prog, logSizeRet) -cdef nvrtcResult _nvrtcGetProgramLog(nvrtcProgram prog, char* log) except ?NVRTC_ERROR_INVALID_INPUT nogil: + +cdef nvrtcResult _nvrtcGetProgramLog(nvrtcProgram prog, char* log) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: global __nvrtcGetProgramLog _check_or_init_nvrtc() if __nvrtcGetProgramLog == NULL: with gil: raise FunctionNotFoundError("function nvrtcGetProgramLog is not found") - return (__nvrtcGetProgramLog)(prog, log) + return (__nvrtcGetProgramLog)( + prog, log) + -cdef nvrtcResult _nvrtcAddNameExpression(nvrtcProgram prog, const char* name_expression) except ?NVRTC_ERROR_INVALID_INPUT nogil: +cdef nvrtcResult _nvrtcAddNameExpression(nvrtcProgram prog, const char* const name_expression) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: global __nvrtcAddNameExpression _check_or_init_nvrtc() if __nvrtcAddNameExpression == NULL: with gil: raise FunctionNotFoundError("function nvrtcAddNameExpression is not found") - return (__nvrtcAddNameExpression)(prog, name_expression) + return (__nvrtcAddNameExpression)( + prog, name_expression) -cdef nvrtcResult _nvrtcGetLoweredName(nvrtcProgram prog, const char* name_expression, const char** lowered_name) except ?NVRTC_ERROR_INVALID_INPUT nogil: + +cdef nvrtcResult _nvrtcGetLoweredName(nvrtcProgram prog, const char* const name_expression, const char** lowered_name) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: global __nvrtcGetLoweredName _check_or_init_nvrtc() if __nvrtcGetLoweredName == NULL: with gil: raise FunctionNotFoundError("function nvrtcGetLoweredName is not found") - return (__nvrtcGetLoweredName)(prog, name_expression, lowered_name) + return (__nvrtcGetLoweredName)( + prog, name_expression, lowered_name) + -cdef nvrtcResult _nvrtcGetPCHHeapSize(size_t* ret) except ?NVRTC_ERROR_INVALID_INPUT nogil: +cdef nvrtcResult _nvrtcGetPCHHeapSize(size_t* ret) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: global __nvrtcGetPCHHeapSize _check_or_init_nvrtc() if __nvrtcGetPCHHeapSize == NULL: with gil: raise FunctionNotFoundError("function nvrtcGetPCHHeapSize is not found") - return (__nvrtcGetPCHHeapSize)(ret) + return (__nvrtcGetPCHHeapSize)( + ret) -cdef nvrtcResult _nvrtcSetPCHHeapSize(size_t size) except ?NVRTC_ERROR_INVALID_INPUT nogil: + +cdef nvrtcResult _nvrtcSetPCHHeapSize(size_t size) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: global __nvrtcSetPCHHeapSize _check_or_init_nvrtc() if __nvrtcSetPCHHeapSize == NULL: with gil: raise FunctionNotFoundError("function nvrtcSetPCHHeapSize is not found") - return (__nvrtcSetPCHHeapSize)(size) + return (__nvrtcSetPCHHeapSize)( + size) + -cdef nvrtcResult _nvrtcGetPCHCreateStatus(nvrtcProgram prog) except ?NVRTC_ERROR_INVALID_INPUT nogil: +cdef nvrtcResult _nvrtcGetPCHCreateStatus(nvrtcProgram prog) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: global __nvrtcGetPCHCreateStatus _check_or_init_nvrtc() if __nvrtcGetPCHCreateStatus == NULL: with gil: raise FunctionNotFoundError("function nvrtcGetPCHCreateStatus is not found") - return (__nvrtcGetPCHCreateStatus)(prog) + return (__nvrtcGetPCHCreateStatus)( + prog) -cdef nvrtcResult _nvrtcGetPCHHeapSizeRequired(nvrtcProgram prog, size_t* size) except ?NVRTC_ERROR_INVALID_INPUT nogil: + +cdef nvrtcResult _nvrtcGetPCHHeapSizeRequired(nvrtcProgram prog, size_t* size) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: global __nvrtcGetPCHHeapSizeRequired _check_or_init_nvrtc() if __nvrtcGetPCHHeapSizeRequired == NULL: with gil: raise FunctionNotFoundError("function nvrtcGetPCHHeapSizeRequired is not found") - return (__nvrtcGetPCHHeapSizeRequired)(prog, size) + return (__nvrtcGetPCHHeapSizeRequired)( + prog, size) + -cdef nvrtcResult _nvrtcSetFlowCallback(nvrtcProgram prog, void* callback, void* payload) except ?NVRTC_ERROR_INVALID_INPUT nogil: +cdef nvrtcResult _nvrtcSetFlowCallback(nvrtcProgram prog, void * callback, void* payload) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: global __nvrtcSetFlowCallback _check_or_init_nvrtc() if __nvrtcSetFlowCallback == NULL: with gil: raise FunctionNotFoundError("function nvrtcSetFlowCallback is not found") - return (__nvrtcSetFlowCallback)(prog, callback, payload) + return (__nvrtcSetFlowCallback)( + prog, callback, payload) -cdef nvrtcResult _nvrtcGetTileIRSize(nvrtcProgram prog, size_t* TileIRSizeRet) except ?NVRTC_ERROR_INVALID_INPUT nogil: + +cdef nvrtcResult _nvrtcGetTileIRSize(nvrtcProgram prog, size_t* TileIRSizeRet) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: global __nvrtcGetTileIRSize _check_or_init_nvrtc() if __nvrtcGetTileIRSize == NULL: with gil: raise FunctionNotFoundError("function nvrtcGetTileIRSize is not found") - return (__nvrtcGetTileIRSize)(prog, TileIRSizeRet) + return (__nvrtcGetTileIRSize)( + prog, TileIRSizeRet) + -cdef nvrtcResult _nvrtcGetTileIR(nvrtcProgram prog, char* TileIR) except ?NVRTC_ERROR_INVALID_INPUT nogil: +cdef nvrtcResult _nvrtcGetTileIR(nvrtcProgram prog, char* TileIR) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: global __nvrtcGetTileIR _check_or_init_nvrtc() if __nvrtcGetTileIR == NULL: with gil: raise FunctionNotFoundError("function nvrtcGetTileIR is not found") - return (__nvrtcGetTileIR)(prog, TileIR) + return (__nvrtcGetTileIR)( + prog, TileIR) diff --git a/cuda_bindings/cuda/bindings/_lib/cyruntime/cyruntime.pxd b/cuda_bindings/cuda/bindings/_lib/cyruntime/cyruntime.pxd index 48f87f29caf..e84c2e8b255 100644 --- a/cuda_bindings/cuda/bindings/_lib/cyruntime/cyruntime.pxd +++ b/cuda_bindings/cuda/bindings/_lib/cyruntime/cyruntime.pxd @@ -1,8 +1,8 @@ -# SPDX-FileCopyrightText: Copyright (c) 2021-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# 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._bindings.cydriver as _cydriver +cimport cuda.bindings._internal.driver as _cydriver # These graphics API are the reimplemented version of what's supported by CUDA Runtime. # Issue https://github.com/NVIDIA/cuda-python/issues/488 will remove them by letting us diff --git a/cuda_bindings/cuda/bindings/_lib/cyruntime/cyruntime.pxi b/cuda_bindings/cuda/bindings/_lib/cyruntime/cyruntime.pxi index c18bd1ca2ea..ad186557ce8 100644 --- a/cuda_bindings/cuda/bindings/_lib/cyruntime/cyruntime.pxi +++ b/cuda_bindings/cuda/bindings/_lib/cyruntime/cyruntime.pxi @@ -1,4 +1,4 @@ -# SPDX-FileCopyrightText: Copyright (c) 2021-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-FileCopyrightText: Copyright (c) 2021-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. # SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE # These graphics API are the reimplemented version of what's supported by CUDA Runtime. @@ -13,7 +13,7 @@ # c.b._lib.cyruntime.utils), but was merged into one. from libc.string cimport memset -cimport cuda.bindings._bindings.cydriver as cydriver +cimport cuda.bindings._internal.driver as cydriver cdef cudaError_t _cudaEGLStreamProducerPresentFrame(cyruntime.cudaEglStreamConnection* conn, cyruntime.cudaEglFrame eglframe, cudaStream_t* pStream) except ?cudaErrorCallRequiresNewerDriver nogil: cdef cudaError_t err = cudaSuccess @@ -25,7 +25,7 @@ cdef cudaError_t _cudaEGLStreamProducerPresentFrame(cyruntime.cudaEglStreamConne err = getDriverEglFrame(&cueglFrame, eglframe) if err != cudaSuccess: return err - err = cydriver._cuEGLStreamProducerPresentFrame(conn, cueglFrame, pStream) + err = cydriver._cuEGLStreamProducerPresentFrame(conn, cueglFrame, pStream) return err cdef cudaError_t _cudaEGLStreamProducerReturnFrame(cyruntime.cudaEglStreamConnection* conn, cyruntime.cudaEglFrame* eglframe, cudaStream_t* pStream) except ?cudaErrorCallRequiresNewerDriver nogil: @@ -38,7 +38,7 @@ cdef cudaError_t _cudaEGLStreamProducerReturnFrame(cyruntime.cudaEglStreamConnec err = cudaErrorInvalidResourceHandle return err cdef cydriver.CUeglFrame cueglFrame - err = cydriver._cuEGLStreamProducerReturnFrame(conn, &cueglFrame, pStream) + err = cydriver._cuEGLStreamProducerReturnFrame(conn, &cueglFrame, pStream) if err != cudaSuccess: return err err = getRuntimeEglFrame(eglframe, cueglFrame) diff --git a/cuda_bindings/cuda/bindings/_lib/utils.pxd.in b/cuda_bindings/cuda/bindings/_lib/utils.pxd similarity index 84% rename from cuda_bindings/cuda/bindings/_lib/utils.pxd.in rename to cuda_bindings/cuda/bindings/_lib/utils.pxd index 353a07a09c4..93041b6853d 100644 --- a/cuda_bindings/cuda/bindings/_lib/utils.pxd.in +++ b/cuda_bindings/cuda/bindings/_lib/utils.pxd @@ -19,7 +19,7 @@ cdef struct _HelperInputVoidPtrStruct: Py_buffer _pybuffer cdef class _HelperInputVoidPtr: - cdef _HelperInputVoidPtrStruct _helper + cdef _HelperInputVoidPtrStruct _helper cdef void* _cptr cdef void * _helper_input_void_ptr(ptr, _HelperInputVoidPtrStruct *buffer) @@ -28,7 +28,7 @@ cdef inline void * _helper_input_void_ptr_free(_HelperInputVoidPtrStruct *helper if helper[0]._pybuffer.buf != NULL: PyBuffer_Release(&helper[0]._pybuffer) -{{if 'CUmemPool_attribute_enum' in found_types}} + cdef class _HelperCUmemPool_attribute: cdef void* _cptr @@ -38,8 +38,8 @@ cdef class _HelperCUmemPool_attribute: # Return values cdef int _int_val cdef driver.cuuint64_t _cuuint64_t_val -{{endif}} -{{if 'CUmem_range_attribute_enum' in found_types}} + + cdef class _HelperCUmem_range_attribute: cdef void* _cptr @@ -49,8 +49,8 @@ cdef class _HelperCUmem_range_attribute: # Return values cdef int _int_val # 32 bit integer cdef int* _int_val_list # 32 bit integer array -{{endif}} -{{if 'CUpointer_attribute_enum' in found_types}} + + cdef class _HelperCUpointer_attribute: cdef void* _cptr @@ -68,8 +68,8 @@ cdef class _HelperCUpointer_attribute: cdef unsigned long long _ull cdef size_t _size cdef driver.CUmemoryPool _mempool -{{endif}} -{{if 'CUgraphMem_attribute_enum' in found_types}} + + cdef class _HelperCUgraphMem_attribute: cdef void* _cptr @@ -78,8 +78,8 @@ cdef class _HelperCUgraphMem_attribute: # Return values cdef driver.cuuint64_t _cuuint64_t_val -{{endif}} -{{if 'CUjit_option_enum' in found_types}} + + cdef class _HelperCUjit_option: cdef void* _cptr @@ -95,8 +95,8 @@ cdef class _HelperCUjit_option: cdef cydriver.CUjit_cacheMode_enum _cacheMode cdef vector[char*] _charstarstar # list of names cdef _InputVoidPtrPtrHelper _voidstarstar # list of addresses -{{endif}} -{{if 'cudaJitOption' in found_types}} + + cdef class _HelperCudaJitOption: cdef void* _cptr @@ -109,8 +109,8 @@ cdef class _HelperCudaJitOption: cdef cyruntime.cudaJit_Fallback _fallback cdef int _int cdef cyruntime.cudaJit_CacheMode _cacheMode -{{endif}} -{{if 'CUlibraryOption_enum' in found_types}} + + cdef class _HelperCUlibraryOption: cdef void* _cptr @@ -118,8 +118,8 @@ cdef class _HelperCUlibraryOption: # Return values cdef unsigned int _uint -{{endif}} -{{if 'cudaLibraryOption' in found_types}} + + cdef class _HelperCudaLibraryOption: cdef void* _cptr @@ -127,8 +127,8 @@ cdef class _HelperCudaLibraryOption: # Return values cdef unsigned int _uint -{{endif}} -{{if 'CUmemAllocationHandleType_enum' in found_types}} + + cdef class _HelperCUmemAllocationHandleType: cdef void* _cptr @@ -138,16 +138,16 @@ cdef class _HelperCUmemAllocationHandleType: cdef int _int cdef void* _handle cdef unsigned int _d3dkmt_handle - {{if 'CUmemFabricHandle' in found_types}} + cdef driver.CUmemFabricHandle _mem_fabric_handle - {{endif}} -{{endif}} + + cdef class _InputVoidPtrPtrHelper: cdef object _references cdef void** _cptr -{{if 'CUcoredumpSettings_enum' in found_types}} + cdef class _HelperCUcoredumpSettings: cdef void* _cptr @@ -158,4 +158,3 @@ cdef class _HelperCUcoredumpSettings: # Return values cdef bint _bool cdef char* _charstar -{{endif}} diff --git a/cuda_bindings/cuda/bindings/_lib/utils.pxi b/cuda_bindings/cuda/bindings/_lib/utils.pxi new file mode 100644 index 00000000000..1f33a0c102c --- /dev/null +++ b/cuda_bindings/cuda/bindings/_lib/utils.pxi @@ -0,0 +1,663 @@ +# SPDX-FileCopyrightText: Copyright (c) 2021-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE + +from cpython.buffer cimport PyObject_CheckBuffer, PyObject_GetBuffer, PyBuffer_Release, PyBUF_SIMPLE, PyBUF_ANY_CONTIGUOUS +from libc.stdlib cimport calloc, free +from libc.stdint cimport int32_t, uint32_t, int64_t, uint64_t +from libc.stddef cimport wchar_t +from libc.string cimport memcpy +from cuda.bindings._internal._fast_enum import FastEnum as _FastEnum +import ctypes as _ctypes +cimport cuda.bindings.cydriver as cydriver +cimport cuda.bindings._lib.param_packer as param_packer + +cdef void* _callocWrapper(length, size): + cdef void* out = calloc(length, size) + if out is NULL: + raise MemoryError('Failed to allocated length x size memory: {}x{}'.format(length, size)) + return out + +cdef class _HelperKernelParams: + supported_types = { # excluding void_p and None, which are handled specially + _ctypes.c_bool, + _ctypes.c_char, + _ctypes.c_wchar, + _ctypes.c_byte, + _ctypes.c_ubyte, + _ctypes.c_short, + _ctypes.c_ushort, + _ctypes.c_int, + _ctypes.c_uint, + _ctypes.c_long, + _ctypes.c_ulong, + _ctypes.c_longlong, + _ctypes.c_ulonglong, + _ctypes.c_size_t, + _ctypes.c_float, + _ctypes.c_double + } + + max_param_size = max(_ctypes.sizeof(max(_HelperKernelParams.supported_types, key=lambda t:_ctypes.sizeof(t))), sizeof(void_ptr)) + + def __cinit__(self, kernelParams): + self._pyobj_acquired = False + self._malloc_list_created = False + if kernelParams is None: + self._ckernelParams = NULL + elif isinstance(kernelParams, (int)): + # Easy run, user gave us an already configured void** address + self._ckernelParams = kernelParams + elif PyObject_CheckBuffer(kernelParams): + # Easy run, get address from Python Buffer Protocol + err_buffer = PyObject_GetBuffer(kernelParams, &self._pybuffer, PyBUF_SIMPLE | PyBUF_ANY_CONTIGUOUS) + if err_buffer == -1: + raise RuntimeError("Argument 'kernelParams' failed to retrieve buffer through Buffer Protocol") + self._pyobj_acquired = True + self._ckernelParams = self._pybuffer.buf + elif isinstance(kernelParams, (tuple)) and len(kernelParams) == 2 and isinstance(kernelParams[0], (tuple)) and isinstance(kernelParams[1], (tuple)): + # Hard run, construct and fill out contigues memory using provided kernel values and types based + if len(kernelParams[0]) != len(kernelParams[1]): + raise TypeError("Argument 'kernelParams' has tuples with different length") + if len(kernelParams[0]) != 0: + self._length = len(kernelParams[0]) + self._ckernelParams = _callocWrapper(len(kernelParams[0]), sizeof(void*)) + self._ckernelParamsData = _callocWrapper(len(kernelParams[0]), _HelperKernelParams.max_param_size) + self._malloc_list_created = True + + idx = 0 + data_idx = 0 + for value, ctype in zip(kernelParams[0], kernelParams[1]): + if ctype is None: + # special cases for None + if callable(getattr(value, 'getPtr', None)): + self._ckernelParams[idx] = value.getPtr() + elif isinstance(value, (_ctypes.Structure)): + self._ckernelParams[idx] = _ctypes.addressof(value) + elif isinstance(value, (_FastEnum)): + self._ckernelParams[idx] = &(self._ckernelParamsData[data_idx]) + (self._ckernelParams[idx])[0] = value.value + data_idx += sizeof(int) + else: + raise TypeError("Provided argument is of type {} but expected Type {}, {} or CUDA Binding structure with getPtr() attribute".format(type(value), type(_ctypes.Structure), type(_ctypes.c_void_p))) + elif ctype in _HelperKernelParams.supported_types: + self._ckernelParams[idx] = &(self._ckernelParamsData[data_idx]) + + # handle case where a float is passed as a double + if ctype == _ctypes.c_double and isinstance(value, _ctypes.c_float): + value = ctype(value.value) + if not isinstance(value, ctype): # make it a ctype + size = param_packer.feed(self._ckernelParams[idx], value, ctype) + if size == 0: # feed failed + value = ctype(value) + size = _ctypes.sizeof(ctype) + addr = (_ctypes.addressof(value)) + memcpy(self._ckernelParams[idx], addr, size) + else: + size = _ctypes.sizeof(ctype) + addr = (_ctypes.addressof(value)) + memcpy(self._ckernelParams[idx], addr, size) + data_idx += size + elif ctype == _ctypes.c_void_p: + # special cases for void_p + if isinstance(value, (int, _ctypes.c_void_p)): + self._ckernelParams[idx] = &(self._ckernelParamsData[data_idx]) + (self._ckernelParams[idx])[0] = value.value if isinstance(value, (_ctypes.c_void_p)) else value + data_idx += sizeof(void_ptr) + elif callable(getattr(value, 'getPtr', None)): + self._ckernelParams[idx] = &(self._ckernelParamsData[data_idx]) + (self._ckernelParams[idx])[0] = value.getPtr() + data_idx += sizeof(void_ptr) + else: + raise TypeError("Provided argument is of type {} but expected Type {}, {} or CUDA Binding structure with getPtr() attribute".format(type(value), type(int), type(_ctypes.c_void_p))) + else: + raise TypeError("Unsupported type: " + str(type(ctype))) + idx += 1 + else: + raise TypeError("Argument 'kernelParams' is not a valid type: tuple[tuple[Any, ...], tuple[Any, ...]] or PyObject implimenting Buffer Protocol or Int") + + def __dealloc__(self): + if self._pyobj_acquired is True: + PyBuffer_Release(&self._pybuffer) + if self._malloc_list_created is True: + free(self._ckernelParams) + free(self._ckernelParamsData) + + @property + def ckernelParams(self): + return self._ckernelParams + +cdef class _HelperInputVoidPtr: + def __cinit__(self, ptr): + self._cptr = _helper_input_void_ptr(ptr, &self._helper) + + def __dealloc__(self): + _helper_input_void_ptr_free(&self._helper) + + @property + def cptr(self): + return self._cptr + + +cdef void * _helper_input_void_ptr(ptr, _HelperInputVoidPtrStruct *helper): + helper[0]._pybuffer.buf = NULL + try: + return ptr + except: + if ptr is None: + return NULL + elif PyObject_CheckBuffer(ptr): + # Easy run, get address from Python Buffer Protocol + err_buffer = PyObject_GetBuffer(ptr, &helper[0]._pybuffer, PyBUF_SIMPLE | PyBUF_ANY_CONTIGUOUS) + if err_buffer == -1: + raise RuntimeError("Failed to retrieve buffer through Buffer Protocol") + return (helper[0]._pybuffer.buf) + else: + raise TypeError("Provided argument is of type {} but expected Type {}, {} or object with Buffer Protocol".format(type(ptr), type(None), type(int))) + + + + +cdef class _HelperCUmemPool_attribute: + def __cinit__(self, attr, init_value, is_getter=False): + self._is_getter = is_getter + self._attr = attr.value + if self._attr in (cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_REUSE_FOLLOW_EVENT_DEPENDENCIES, + cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_REUSE_ALLOW_OPPORTUNISTIC, + cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_REUSE_ALLOW_INTERNAL_DEPENDENCIES,): + self._int_val = init_value + self._cptr = &self._int_val + elif self._attr in (cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_RELEASE_THRESHOLD, + cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_RESERVED_MEM_CURRENT, + cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_RESERVED_MEM_HIGH, + cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_USED_MEM_CURRENT, + cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_USED_MEM_HIGH,): + if self._is_getter: + self._cuuint64_t_val = _driver["cuuint64_t"]() + self._cptr = self._cuuint64_t_val.getPtr() + else: + self._cptr = init_value.getPtr() + else: + raise TypeError('Unsupported attribute: {}'.format(attr.name)) + + def __dealloc__(self): + pass + + @property + def cptr(self): + return self._cptr + + def pyObj(self): + assert(self._is_getter == True) + if self._attr in (cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_REUSE_FOLLOW_EVENT_DEPENDENCIES, + cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_REUSE_ALLOW_OPPORTUNISTIC, + cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_REUSE_ALLOW_INTERNAL_DEPENDENCIES,): + return self._int_val + elif self._attr in (cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_RELEASE_THRESHOLD, + cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_RESERVED_MEM_CURRENT, + cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_RESERVED_MEM_HIGH, + cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_USED_MEM_CURRENT, + cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_USED_MEM_HIGH,): + return self._cuuint64_t_val + else: + raise TypeError('Unsupported attribute value: {}'.format(self._attr)) + + + +cdef class _HelperCUmem_range_attribute: + def __cinit__(self, attr, data_size): + self._data_size = data_size + self._attr = attr.value + if self._attr in (cydriver.CUmem_range_attribute_enum.CU_MEM_RANGE_ATTRIBUTE_READ_MOSTLY, + cydriver.CUmem_range_attribute_enum.CU_MEM_RANGE_ATTRIBUTE_PREFERRED_LOCATION, + cydriver.CUmem_range_attribute_enum.CU_MEM_RANGE_ATTRIBUTE_LAST_PREFETCH_LOCATION,): + self._cptr = &self._int_val + elif self._attr in (cydriver.CUmem_range_attribute_enum.CU_MEM_RANGE_ATTRIBUTE_ACCESSED_BY,): + self._cptr = _callocWrapper(1, self._data_size) + self._int_val_list = self._cptr + else: + raise TypeError('Unsupported attribute: {}'.format(attr.name)) + + def __dealloc__(self): + if self._attr in (cydriver.CUmem_range_attribute_enum.CU_MEM_RANGE_ATTRIBUTE_ACCESSED_BY,): + free(self._cptr) + + @property + def cptr(self): + return self._cptr + + def pyObj(self): + if self._attr in (cydriver.CUmem_range_attribute_enum.CU_MEM_RANGE_ATTRIBUTE_READ_MOSTLY, + cydriver.CUmem_range_attribute_enum.CU_MEM_RANGE_ATTRIBUTE_PREFERRED_LOCATION, + cydriver.CUmem_range_attribute_enum.CU_MEM_RANGE_ATTRIBUTE_LAST_PREFETCH_LOCATION,): + return self._int_val + elif self._attr in (cydriver.CUmem_range_attribute_enum.CU_MEM_RANGE_ATTRIBUTE_ACCESSED_BY,): + return [self._int_val_list[idx] for idx in range(int(self._data_size/4))] + else: + raise TypeError('Unsupported attribute value: {}'.format(self._attr)) + + + +cdef class _HelperCUpointer_attribute: + def __cinit__(self, attr, init_value, is_getter=False): + self._is_getter = is_getter + self._attr = attr.value + if self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_CONTEXT,): + if self._is_getter: + self._ctx = _driver["CUcontext"]() + self._cptr = self._ctx.getPtr() + else: + self._cptr = init_value.getPtr() + elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_MEMORY_TYPE, + cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_ALLOWED_HANDLE_TYPES, + cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_IS_GPU_DIRECT_RDMA_CAPABLE, + cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_ACCESS_FLAGS,): + self._uint = init_value + self._cptr = &self._uint + elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_DEVICE_ORDINAL,): + self._int = init_value + self._cptr = &self._int + elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_DEVICE_POINTER, + cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_RANGE_START_ADDR,): + if self._is_getter: + self._devptr = _driver["CUdeviceptr"]() + self._cptr = self._devptr.getPtr() + else: + self._cptr = init_value.getPtr() + elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_HOST_POINTER,): + self._void = init_value + self._cptr = &self._void + elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_P2P_TOKENS,): + if self._is_getter: + self._token = _driver["CUDA_POINTER_ATTRIBUTE_P2P_TOKENS"]() + self._cptr = self._token.getPtr() + else: + self._cptr = init_value.getPtr() + elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_SYNC_MEMOPS, + cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_IS_MANAGED, + cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_IS_LEGACY_CUDA_IPC_CAPABLE, + cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_MAPPED,): + self._bool = init_value + self._cptr = &self._bool + elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_BUFFER_ID,): + self._ull = init_value + self._cptr = &self._ull + elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_RANGE_SIZE,): + self._size = init_value + self._cptr = &self._size + elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_MEMPOOL_HANDLE,): + if self._is_getter: + self._mempool = _driver["CUmemoryPool"]() + self._cptr = self._mempool.getPtr() + else: + self._cptr = init_value.getPtr() + else: + raise TypeError('Unsupported attribute: {}'.format(attr.name)) + + def __dealloc__(self): + pass + + @property + def cptr(self): + return self._cptr + + def pyObj(self): + assert(self._is_getter == True) + if self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_CONTEXT,): + return self._ctx + elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_MEMORY_TYPE, + cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_DEVICE_ORDINAL, + cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_ALLOWED_HANDLE_TYPES, + cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_IS_GPU_DIRECT_RDMA_CAPABLE, + cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_ACCESS_FLAGS,): + return self._uint + elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_DEVICE_POINTER, + cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_RANGE_START_ADDR,): + return self._devptr + elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_HOST_POINTER,): + return self._void + elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_P2P_TOKENS,): + return self._token + elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_SYNC_MEMOPS, + cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_IS_MANAGED, + cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_IS_LEGACY_CUDA_IPC_CAPABLE, + cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_MAPPED,): + return self._bool + elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_BUFFER_ID,): + return self._ull + elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_RANGE_SIZE,): + return self._size + elif self._attr in (cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_MEMPOOL_HANDLE,): + return self._mempool + else: + raise TypeError('Unsupported attribute value: {}'.format(self._attr)) + + + +cdef class _HelperCUgraphMem_attribute: + def __cinit__(self, attr, init_value, is_getter=False): + self._is_getter = is_getter + self._attr = attr.value + if self._attr in (cydriver.CUgraphMem_attribute_enum.CU_GRAPH_MEM_ATTR_USED_MEM_CURRENT, + cydriver.CUgraphMem_attribute_enum.CU_GRAPH_MEM_ATTR_USED_MEM_HIGH, + cydriver.CUgraphMem_attribute_enum.CU_GRAPH_MEM_ATTR_RESERVED_MEM_CURRENT, + cydriver.CUgraphMem_attribute_enum.CU_GRAPH_MEM_ATTR_RESERVED_MEM_HIGH,): + if self._is_getter: + self._cuuint64_t_val = _driver["cuuint64_t"]() + self._cptr = self._cuuint64_t_val.getPtr() + else: + self._cptr = init_value.getPtr() + else: + raise TypeError('Unsupported attribute: {}'.format(attr.name)) + + def __dealloc__(self): + pass + + @property + def cptr(self): + return self._cptr + + def pyObj(self): + assert(self._is_getter == True) + if self._attr in (cydriver.CUgraphMem_attribute_enum.CU_GRAPH_MEM_ATTR_USED_MEM_CURRENT, + cydriver.CUgraphMem_attribute_enum.CU_GRAPH_MEM_ATTR_USED_MEM_HIGH, + cydriver.CUgraphMem_attribute_enum.CU_GRAPH_MEM_ATTR_RESERVED_MEM_CURRENT, + cydriver.CUgraphMem_attribute_enum.CU_GRAPH_MEM_ATTR_RESERVED_MEM_HIGH,): + return self._cuuint64_t_val + else: + raise TypeError('Unsupported attribute value: {}'.format(self._attr)) + + + +cdef class _HelperCUjit_option: + def __cinit__(self, attr, init_value): + self._attr = attr.value + if self._attr in (cydriver.CUjit_option_enum.CU_JIT_MAX_REGISTERS, + cydriver.CUjit_option_enum.CU_JIT_THREADS_PER_BLOCK, + cydriver.CUjit_option_enum.CU_JIT_INFO_LOG_BUFFER_SIZE_BYTES, + cydriver.CUjit_option_enum.CU_JIT_ERROR_LOG_BUFFER_SIZE_BYTES, + cydriver.CUjit_option_enum.CU_JIT_OPTIMIZATION_LEVEL, + cydriver.CUjit_option_enum.CU_JIT_GLOBAL_SYMBOL_COUNT, + cydriver.CUjit_option_enum.CU_JIT_TARGET_FROM_CUCONTEXT, + cydriver.CUjit_option_enum.CU_JIT_REFERENCED_KERNEL_COUNT, + cydriver.CUjit_option_enum.CU_JIT_REFERENCED_VARIABLE_COUNT, + cydriver.CUjit_option_enum.CU_JIT_MIN_CTA_PER_SM, + cydriver.CUjit_option_enum.CU_JIT_SPLIT_COMPILE,): + self._uint = init_value + self._cptr = self._uint + elif self._attr in (cydriver.CUjit_option_enum.CU_JIT_WALL_TIME,): + self._float = init_value + self._cptr = self._float + elif self._attr in (cydriver.CUjit_option_enum.CU_JIT_INFO_LOG_BUFFER, + cydriver.CUjit_option_enum.CU_JIT_ERROR_LOG_BUFFER): + self._charstar = init_value + self._cptr = self._charstar + elif self._attr in (cydriver.CUjit_option_enum.CU_JIT_TARGET,): + self._target = init_value.value + self._cptr = self._target + elif self._attr in (cydriver.CUjit_option_enum.CU_JIT_FALLBACK_STRATEGY,): + self._fallback = init_value.value + self._cptr = self._fallback + elif self._attr in (cydriver.CUjit_option_enum.CU_JIT_GENERATE_DEBUG_INFO, + cydriver.CUjit_option_enum.CU_JIT_LOG_VERBOSE, + cydriver.CUjit_option_enum.CU_JIT_GENERATE_LINE_INFO, + cydriver.CUjit_option_enum.CU_JIT_LTO, + cydriver.CUjit_option_enum.CU_JIT_FTZ, + cydriver.CUjit_option_enum.CU_JIT_PREC_DIV, + cydriver.CUjit_option_enum.CU_JIT_PREC_SQRT, + cydriver.CUjit_option_enum.CU_JIT_FMA, + cydriver.CUjit_option_enum.CU_JIT_OPTIMIZE_UNUSED_DEVICE_VARIABLES,): + self._int = init_value + self._cptr = self._int + elif self._attr in (cydriver.CUjit_option_enum.CU_JIT_CACHE_MODE,): + self._cacheMode = init_value.value + self._cptr = self._cacheMode + elif self._attr in (cydriver.CUjit_option_enum.CU_JIT_GLOBAL_SYMBOL_NAMES, + cydriver.CUjit_option_enum.CU_JIT_REFERENCED_KERNEL_NAMES, + cydriver.CUjit_option_enum.CU_JIT_REFERENCED_VARIABLE_NAMES,): + self._charstarstar = init_value + self._cptr = &self._charstarstar[0] + elif self._attr in (cydriver.CUjit_option_enum.CU_JIT_GLOBAL_SYMBOL_ADDRESSES,): + pylist = [_HelperInputVoidPtr(val) for val in init_value] + self._voidstarstar = _InputVoidPtrPtrHelper(pylist) + self._cptr = self._voidstarstar.cptr + else: + raise TypeError('Unsupported attribute: {}'.format(attr.name)) + + def __dealloc__(self): + pass + + @property + def cptr(self): + return self._cptr + + + + +cdef class _HelperCudaJitOption: + def __cinit__(self, attr, init_value): + self._attr = attr.value + if self._attr in (cyruntime.cudaJitOption.cudaJitMaxRegisters, + cyruntime.cudaJitOption.cudaJitThreadsPerBlock, + cyruntime.cudaJitOption.cudaJitInfoLogBufferSizeBytes, + cyruntime.cudaJitOption.cudaJitErrorLogBufferSizeBytes, + cyruntime.cudaJitOption.cudaJitOptimizationLevel, + cyruntime.cudaJitOption.cudaJitMinCtaPerSm,): + self._uint = init_value + self._cptr = self._uint + elif self._attr in (cyruntime.cudaJitOption.cudaJitWallTime,): + self._float = init_value + self._cptr = self._float + elif self._attr in (cyruntime.cudaJitOption.cudaJitInfoLogBuffer, + cyruntime.cudaJitOption.cudaJitErrorLogBuffer): + self._charstar = init_value + self._cptr = self._charstar + elif self._attr in (cyruntime.cudaJitOption.cudaJitFallbackStrategy,): + self._fallback = init_value.value + self._cptr = self._fallback + elif self._attr in (cyruntime.cudaJitOption.cudaJitGenerateDebugInfo, + cyruntime.cudaJitOption.cudaJitLogVerbose, + cyruntime.cudaJitOption.cudaJitGenerateLineInfo, + cyruntime.cudaJitOption.cudaJitPositionIndependentCode, + cyruntime.cudaJitOption.cudaJitMaxThreadsPerBlock, + cyruntime.cudaJitOption.cudaJitOverrideDirectiveValues,): + self._int = init_value + self._cptr = self._int + elif self._attr in (cyruntime.cudaJitOption.cudaJitCacheMode,): + self._cacheMode = init_value.value + self._cptr = self._cacheMode + else: + raise TypeError('Unsupported attribute: {}'.format(attr.name)) + + def __dealloc__(self): + pass + + @property + def cptr(self): + return self._cptr + + + + +cdef class _HelperCUlibraryOption: + def __cinit__(self, attr, init_value): + self._attr = attr.value + if False: + pass + + elif self._attr in (cydriver.CUlibraryOption_enum.CU_LIBRARY_HOST_UNIVERSAL_FUNCTION_AND_DATA_TABLE,): + self._cptr = init_value.getPtr() + + + elif self._attr in (cydriver.CUlibraryOption_enum.CU_LIBRARY_BINARY_IS_PRESERVED,): + self._uint = init_value + self._cptr = self._uint + + else: + raise TypeError('Unsupported attribute: {}'.format(attr.name)) + + def __dealloc__(self): + pass + + @property + def cptr(self): + return self._cptr + + + + +cdef class _HelperCudaLibraryOption: + def __cinit__(self, attr, init_value): + self._attr = attr.value + if False: + pass + + elif self._attr in (cyruntime.cudaLibraryOption.cudaLibraryHostUniversalFunctionAndDataTable,): + self._cptr = init_value.getPtr() + + + elif self._attr in (cyruntime.cudaLibraryOption.cudaLibraryBinaryIsPreserved,): + self._uint = init_value + self._cptr = self._uint + + else: + raise TypeError('Unsupported attribute: {}'.format(attr.name)) + + def __dealloc__(self): + pass + + @property + def cptr(self): + return self._cptr + + + + +cdef class _HelperCUmemAllocationHandleType: + def __cinit__(self, attr): + self._type = attr.value + if False: + pass + + elif self._type in (cydriver.CUmemAllocationHandleType_enum.CU_MEM_HANDLE_TYPE_NONE,): + self._cptr = &self._int + + + elif self._type in (cydriver.CUmemAllocationHandleType_enum.CU_MEM_HANDLE_TYPE_POSIX_FILE_DESCRIPTOR,): + self._cptr = &self._int + + + elif self._type in (cydriver.CUmemAllocationHandleType_enum.CU_MEM_HANDLE_TYPE_WIN32,): + self._cptr = &self._handle + + + elif self._type in (cydriver.CUmemAllocationHandleType_enum.CU_MEM_HANDLE_TYPE_WIN32_KMT,): + self._cptr = &self._d3dkmt_handle + + + elif self._type in (cydriver.CUmemAllocationHandleType_enum.CU_MEM_HANDLE_TYPE_FABRIC,): + self._mem_fabric_handle = _driver["CUmemFabricHandle"]() + self._cptr = self._mem_fabric_handle.getPtr() + + else: + raise TypeError('Unsupported attribute: {}'.format(attr.name)) + + def __dealloc__(self): + pass + + @property + def cptr(self): + return self._cptr + + def pyObj(self): + if False: + pass + + elif self._type in (cydriver.CUmemAllocationHandleType_enum.CU_MEM_HANDLE_TYPE_NONE,): + return self._int + + + elif self._type in (cydriver.CUmemAllocationHandleType_enum.CU_MEM_HANDLE_TYPE_POSIX_FILE_DESCRIPTOR,): + return self._int + + + elif self._type in (cydriver.CUmemAllocationHandleType_enum.CU_MEM_HANDLE_TYPE_WIN32,): + return self._handle + + + elif self._type in (cydriver.CUmemAllocationHandleType_enum.CU_MEM_HANDLE_TYPE_WIN32_KMT,): + return self._d3dkmt_handle + + + elif self._type in (cydriver.CUmemAllocationHandleType_enum.CU_MEM_HANDLE_TYPE_FABRIC,): + return self._mem_fabric_handle + + else: + raise TypeError('Unsupported attribute: {}'.format(self._type)) + + +cdef class _InputVoidPtrPtrHelper: + def __cinit__(self, lst): + # Hold onto references to the original buffers so they + # won't be free'd behind our back + self._references = lst + self._cptr = _callocWrapper(len(lst), sizeof(void*)) + for idx in range(len(lst)): + self._cptr[idx] = lst[idx].cptr + + def __dealloc__(self): + free(self._cptr) + + @property + def cptr(self): + return self._cptr + + + +cdef class _HelperCUcoredumpSettings: + def __cinit__(self, attr, init_value, is_getter=False): + self._is_getter = is_getter + self._attrib = attr.value + if self._attrib in (cydriver.CUcoredumpSettings_enum.CU_COREDUMP_FILE, + cydriver.CUcoredumpSettings_enum.CU_COREDUMP_PIPE,): + if self._is_getter: + self._charstar = _callocWrapper(1024, 1) + self._cptr = self._charstar + self._size = 1024 + else: + self._charstar = init_value + self._cptr = self._charstar + self._size = len(init_value) + elif self._attrib in (cydriver.CUcoredumpSettings_enum.CU_COREDUMP_ENABLE_ON_EXCEPTION, + cydriver.CUcoredumpSettings_enum.CU_COREDUMP_TRIGGER_HOST, + cydriver.CUcoredumpSettings_enum.CU_COREDUMP_LIGHTWEIGHT, + cydriver.CUcoredumpSettings_enum.CU_COREDUMP_ENABLE_USER_TRIGGER,): + if self._is_getter == False: + self._bool = init_value + + self._cptr = &self._bool + self._size = 1 + else: + raise TypeError('Unsupported attribute: {}'.format(attr.name)) + + def __dealloc__(self): + pass + + @property + def cptr(self): + return self._cptr + + def size(self): + return self._size + + def pyObj(self): + assert(self._is_getter == True) + if self._attrib in (cydriver.CUcoredumpSettings_enum.CU_COREDUMP_FILE, + cydriver.CUcoredumpSettings_enum.CU_COREDUMP_PIPE,): + return self._charstar + elif self._attrib in (cydriver.CUcoredumpSettings_enum.CU_COREDUMP_ENABLE_ON_EXCEPTION, + cydriver.CUcoredumpSettings_enum.CU_COREDUMP_TRIGGER_HOST, + cydriver.CUcoredumpSettings_enum.CU_COREDUMP_LIGHTWEIGHT, + cydriver.CUcoredumpSettings_enum.CU_COREDUMP_ENABLE_USER_TRIGGER,): + return self._bool + else: + raise TypeError('Unsupported attribute value: {}'.format(self._attrib)) diff --git a/cuda_bindings/cuda/bindings/_lib/utils.pxi.in b/cuda_bindings/cuda/bindings/_lib/utils.pxi.in deleted file mode 100644 index c88ec497215..00000000000 --- a/cuda_bindings/cuda/bindings/_lib/utils.pxi.in +++ /dev/null @@ -1,664 +0,0 @@ -# SPDX-FileCopyrightText: Copyright (c) 2021-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. -# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE - -from cpython.buffer cimport PyObject_CheckBuffer, PyObject_GetBuffer, PyBuffer_Release, PyBUF_SIMPLE, PyBUF_ANY_CONTIGUOUS -from libc.stdlib cimport calloc, free -from libc.stdint cimport int32_t, uint32_t, int64_t, uint64_t -from libc.stddef cimport wchar_t -from libc.string cimport memcpy -from cuda.bindings._internal._fast_enum import FastEnum as _FastEnum -import ctypes as _ctypes -cimport cuda.bindings.cydriver as cydriver -cimport cuda.bindings._lib.param_packer as param_packer - -cdef void* _callocWrapper(length, size): - cdef void* out = calloc(length, size) - if out is NULL: - raise MemoryError('Failed to allocated length x size memory: {}x{}'.format(length, size)) - return out - -cdef class _HelperKernelParams: - supported_types = { # excluding void_p and None, which are handled specially - _ctypes.c_bool, - _ctypes.c_char, - _ctypes.c_wchar, - _ctypes.c_byte, - _ctypes.c_ubyte, - _ctypes.c_short, - _ctypes.c_ushort, - _ctypes.c_int, - _ctypes.c_uint, - _ctypes.c_long, - _ctypes.c_ulong, - _ctypes.c_longlong, - _ctypes.c_ulonglong, - _ctypes.c_size_t, - _ctypes.c_float, - _ctypes.c_double - } - - max_param_size = max(_ctypes.sizeof(max(_HelperKernelParams.supported_types, key=lambda t:_ctypes.sizeof(t))), sizeof(void_ptr)) - - def __cinit__(self, kernelParams): - self._pyobj_acquired = False - self._malloc_list_created = False - if kernelParams is None: - self._ckernelParams = NULL - elif isinstance(kernelParams, (int)): - # Easy run, user gave us an already configured void** address - self._ckernelParams = kernelParams - elif PyObject_CheckBuffer(kernelParams): - # Easy run, get address from Python Buffer Protocol - err_buffer = PyObject_GetBuffer(kernelParams, &self._pybuffer, PyBUF_SIMPLE | PyBUF_ANY_CONTIGUOUS) - if err_buffer == -1: - raise RuntimeError("Argument 'kernelParams' failed to retrieve buffer through Buffer Protocol") - self._pyobj_acquired = True - self._ckernelParams = self._pybuffer.buf - elif isinstance(kernelParams, (tuple)) and len(kernelParams) == 2 and isinstance(kernelParams[0], (tuple)) and isinstance(kernelParams[1], (tuple)): - # Hard run, construct and fill out contigues memory using provided kernel values and types based - if len(kernelParams[0]) != len(kernelParams[1]): - raise TypeError("Argument 'kernelParams' has tuples with different length") - if len(kernelParams[0]) != 0: - self._length = len(kernelParams[0]) - self._ckernelParams = _callocWrapper(len(kernelParams[0]), sizeof(void*)) - self._ckernelParamsData = _callocWrapper(len(kernelParams[0]), _HelperKernelParams.max_param_size) - self._malloc_list_created = True - - idx = 0 - data_idx = 0 - for value, ctype in zip(kernelParams[0], kernelParams[1]): - if ctype is None: - # special cases for None - if callable(getattr(value, 'getPtr', None)): - self._ckernelParams[idx] = value.getPtr() - elif isinstance(value, (_ctypes.Structure)): - self._ckernelParams[idx] = _ctypes.addressof(value) - elif isinstance(value, (_FastEnum)): - self._ckernelParams[idx] = &(self._ckernelParamsData[data_idx]) - (self._ckernelParams[idx])[0] = value.value - data_idx += sizeof(int) - else: - raise TypeError("Provided argument is of type {} but expected Type {}, {} or CUDA Binding structure with getPtr() attribute".format(type(value), type(_ctypes.Structure), type(_ctypes.c_void_p))) - elif ctype in _HelperKernelParams.supported_types: - self._ckernelParams[idx] = &(self._ckernelParamsData[data_idx]) - - # handle case where a float is passed as a double - if ctype == _ctypes.c_double and isinstance(value, _ctypes.c_float): - value = ctype(value.value) - if not isinstance(value, ctype): # make it a ctype - size = param_packer.feed(self._ckernelParams[idx], value, ctype) - if size == 0: # feed failed - value = ctype(value) - size = _ctypes.sizeof(ctype) - addr = (_ctypes.addressof(value)) - memcpy(self._ckernelParams[idx], addr, size) - else: - size = _ctypes.sizeof(ctype) - addr = (_ctypes.addressof(value)) - memcpy(self._ckernelParams[idx], addr, size) - data_idx += size - elif ctype == _ctypes.c_void_p: - # special cases for void_p - if isinstance(value, (int, _ctypes.c_void_p)): - self._ckernelParams[idx] = &(self._ckernelParamsData[data_idx]) - (self._ckernelParams[idx])[0] = value.value if isinstance(value, (_ctypes.c_void_p)) else value - data_idx += sizeof(void_ptr) - elif callable(getattr(value, 'getPtr', None)): - self._ckernelParams[idx] = &(self._ckernelParamsData[data_idx]) - (self._ckernelParams[idx])[0] = value.getPtr() - data_idx += sizeof(void_ptr) - else: - raise TypeError("Provided argument is of type {} but expected Type {}, {} or CUDA Binding structure with getPtr() attribute".format(type(value), type(int), type(_ctypes.c_void_p))) - else: - raise TypeError("Unsupported type: " + str(type(ctype))) - idx += 1 - else: - raise TypeError("Argument 'kernelParams' is not a valid type: tuple[tuple[Any, ...], tuple[Any, ...]] or PyObject implimenting Buffer Protocol or Int") - - def __dealloc__(self): - if self._pyobj_acquired is True: - PyBuffer_Release(&self._pybuffer) - if self._malloc_list_created is True: - free(self._ckernelParams) - free(self._ckernelParamsData) - - @property - def ckernelParams(self): - return self._ckernelParams - -cdef class _HelperInputVoidPtr: - def __cinit__(self, ptr): - self._cptr = _helper_input_void_ptr(ptr, &self._helper) - - def __dealloc__(self): - _helper_input_void_ptr_free(&self._helper) - - @property - def cptr(self): - return self._cptr - - -cdef void * _helper_input_void_ptr(ptr, _HelperInputVoidPtrStruct *helper): - helper[0]._pybuffer.buf = NULL - try: - return ptr - except: - if ptr is None: - return NULL - elif PyObject_CheckBuffer(ptr): - # Easy run, get address from Python Buffer Protocol - err_buffer = PyObject_GetBuffer(ptr, &helper[0]._pybuffer, PyBUF_SIMPLE | PyBUF_ANY_CONTIGUOUS) - if err_buffer == -1: - raise RuntimeError("Failed to retrieve buffer through Buffer Protocol") - return (helper[0]._pybuffer.buf) - else: - raise TypeError("Provided argument is of type {} but expected Type {}, {} or object with Buffer Protocol".format(type(ptr), type(None), type(int))) - - -{{if 'CUmemPool_attribute_enum' in found_types}} - -cdef class _HelperCUmemPool_attribute: - def __cinit__(self, attr, init_value, is_getter=False): - self._is_getter = is_getter - self._attr = attr.value - if self._attr in ({{if 'CU_MEMPOOL_ATTR_REUSE_FOLLOW_EVENT_DEPENDENCIES'}}cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_REUSE_FOLLOW_EVENT_DEPENDENCIES,{{endif}} - {{if 'CU_MEMPOOL_ATTR_REUSE_ALLOW_OPPORTUNISTIC'}}cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_REUSE_ALLOW_OPPORTUNISTIC,{{endif}} - {{if 'CU_MEMPOOL_ATTR_REUSE_ALLOW_INTERNAL_DEPENDENCIES'}}cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_REUSE_ALLOW_INTERNAL_DEPENDENCIES,{{endif}}): - self._int_val = init_value - self._cptr = &self._int_val - elif self._attr in ({{if 'CU_MEMPOOL_ATTR_RELEASE_THRESHOLD'}}cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_RELEASE_THRESHOLD,{{endif}} - {{if 'CU_MEMPOOL_ATTR_RESERVED_MEM_CURRENT'}}cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_RESERVED_MEM_CURRENT,{{endif}} - {{if 'CU_MEMPOOL_ATTR_RESERVED_MEM_HIGH'}}cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_RESERVED_MEM_HIGH,{{endif}} - {{if 'CU_MEMPOOL_ATTR_USED_MEM_CURRENT'}}cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_USED_MEM_CURRENT,{{endif}} - {{if 'CU_MEMPOOL_ATTR_USED_MEM_HIGH'}}cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_USED_MEM_HIGH,{{endif}}): - if self._is_getter: - self._cuuint64_t_val = _driver["cuuint64_t"]() - self._cptr = self._cuuint64_t_val.getPtr() - else: - self._cptr = init_value.getPtr() - else: - raise TypeError('Unsupported attribute: {}'.format(attr.name)) - - def __dealloc__(self): - pass - - @property - def cptr(self): - return self._cptr - - def pyObj(self): - assert(self._is_getter == True) - if self._attr in ({{if 'CU_MEMPOOL_ATTR_REUSE_FOLLOW_EVENT_DEPENDENCIES'}}cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_REUSE_FOLLOW_EVENT_DEPENDENCIES,{{endif}} - {{if 'CU_MEMPOOL_ATTR_REUSE_ALLOW_OPPORTUNISTIC'}}cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_REUSE_ALLOW_OPPORTUNISTIC,{{endif}} - {{if 'CU_MEMPOOL_ATTR_REUSE_ALLOW_INTERNAL_DEPENDENCIES'}}cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_REUSE_ALLOW_INTERNAL_DEPENDENCIES,{{endif}}): - return self._int_val - elif self._attr in ({{if 'CU_MEMPOOL_ATTR_RELEASE_THRESHOLD'}}cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_RELEASE_THRESHOLD,{{endif}} - {{if 'CU_MEMPOOL_ATTR_RESERVED_MEM_CURRENT'}}cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_RESERVED_MEM_CURRENT,{{endif}} - {{if 'CU_MEMPOOL_ATTR_RESERVED_MEM_HIGH'}}cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_RESERVED_MEM_HIGH,{{endif}} - {{if 'CU_MEMPOOL_ATTR_USED_MEM_CURRENT'}}cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_USED_MEM_CURRENT,{{endif}} - {{if 'CU_MEMPOOL_ATTR_USED_MEM_HIGH'}}cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_USED_MEM_HIGH,{{endif}}): - return self._cuuint64_t_val - else: - raise TypeError('Unsupported attribute value: {}'.format(self._attr)) -{{endif}} -{{if 'CUmem_range_attribute_enum' in found_types}} - -cdef class _HelperCUmem_range_attribute: - def __cinit__(self, attr, data_size): - self._data_size = data_size - self._attr = attr.value - if self._attr in ({{if 'CU_MEM_RANGE_ATTRIBUTE_READ_MOSTLY'}}cydriver.CUmem_range_attribute_enum.CU_MEM_RANGE_ATTRIBUTE_READ_MOSTLY,{{endif}} - {{if 'CU_MEM_RANGE_ATTRIBUTE_PREFERRED_LOCATION'}}cydriver.CUmem_range_attribute_enum.CU_MEM_RANGE_ATTRIBUTE_PREFERRED_LOCATION,{{endif}} - {{if 'CU_MEM_RANGE_ATTRIBUTE_LAST_PREFETCH_LOCATION'}}cydriver.CUmem_range_attribute_enum.CU_MEM_RANGE_ATTRIBUTE_LAST_PREFETCH_LOCATION,{{endif}}): - self._cptr = &self._int_val - elif self._attr in ({{if 'CU_MEM_RANGE_ATTRIBUTE_ACCESSED_BY'}}cydriver.CUmem_range_attribute_enum.CU_MEM_RANGE_ATTRIBUTE_ACCESSED_BY,{{endif}}): - self._cptr = _callocWrapper(1, self._data_size) - self._int_val_list = self._cptr - else: - raise TypeError('Unsupported attribute: {}'.format(attr.name)) - - def __dealloc__(self): - if self._attr in ({{if 'CU_MEM_RANGE_ATTRIBUTE_ACCESSED_BY'}}cydriver.CUmem_range_attribute_enum.CU_MEM_RANGE_ATTRIBUTE_ACCESSED_BY,{{endif}}): - free(self._cptr) - - @property - def cptr(self): - return self._cptr - - def pyObj(self): - if self._attr in ({{if 'CU_MEM_RANGE_ATTRIBUTE_READ_MOSTLY'}}cydriver.CUmem_range_attribute_enum.CU_MEM_RANGE_ATTRIBUTE_READ_MOSTLY,{{endif}} - {{if 'CU_MEM_RANGE_ATTRIBUTE_PREFERRED_LOCATION'}}cydriver.CUmem_range_attribute_enum.CU_MEM_RANGE_ATTRIBUTE_PREFERRED_LOCATION,{{endif}} - {{if 'CU_MEM_RANGE_ATTRIBUTE_LAST_PREFETCH_LOCATION'}}cydriver.CUmem_range_attribute_enum.CU_MEM_RANGE_ATTRIBUTE_LAST_PREFETCH_LOCATION,{{endif}}): - return self._int_val - elif self._attr in ({{if 'CU_MEM_RANGE_ATTRIBUTE_ACCESSED_BY'}}cydriver.CUmem_range_attribute_enum.CU_MEM_RANGE_ATTRIBUTE_ACCESSED_BY,{{endif}}): - return [self._int_val_list[idx] for idx in range(int(self._data_size/4))] - else: - raise TypeError('Unsupported attribute value: {}'.format(self._attr)) -{{endif}} -{{if 'CUpointer_attribute_enum' in found_types}} - -cdef class _HelperCUpointer_attribute: - def __cinit__(self, attr, init_value, is_getter=False): - self._is_getter = is_getter - self._attr = attr.value - if self._attr in ({{if 'CU_POINTER_ATTRIBUTE_CONTEXT'}}cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_CONTEXT,{{endif}}): - if self._is_getter: - self._ctx = _driver["CUcontext"]() - self._cptr = self._ctx.getPtr() - else: - self._cptr = init_value.getPtr() - elif self._attr in ({{if 'CU_POINTER_ATTRIBUTE_MEMORY_TYPE'}}cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_MEMORY_TYPE,{{endif}} - {{if 'CU_POINTER_ATTRIBUTE_ALLOWED_HANDLE_TYPES'}}cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_ALLOWED_HANDLE_TYPES,{{endif}} - {{if 'CU_POINTER_ATTRIBUTE_IS_GPU_DIRECT_RDMA_CAPABLE'}}cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_IS_GPU_DIRECT_RDMA_CAPABLE,{{endif}} - {{if 'CU_POINTER_ATTRIBUTE_ACCESS_FLAGS'}}cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_ACCESS_FLAGS,{{endif}}): - self._uint = init_value - self._cptr = &self._uint - elif self._attr in ({{if 'CU_POINTER_ATTRIBUTE_DEVICE_ORDINAL'}}cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_DEVICE_ORDINAL,{{endif}}): - self._int = init_value - self._cptr = &self._int - elif self._attr in ({{if 'CU_POINTER_ATTRIBUTE_DEVICE_POINTER'}}cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_DEVICE_POINTER,{{endif}} - {{if 'CU_POINTER_ATTRIBUTE_RANGE_START_ADDR'}}cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_RANGE_START_ADDR,{{endif}}): - if self._is_getter: - self._devptr = _driver["CUdeviceptr"]() - self._cptr = self._devptr.getPtr() - else: - self._cptr = init_value.getPtr() - elif self._attr in ({{if 'CU_POINTER_ATTRIBUTE_HOST_POINTER'}}cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_HOST_POINTER,{{endif}}): - self._void = init_value - self._cptr = &self._void - elif self._attr in ({{if 'CU_POINTER_ATTRIBUTE_P2P_TOKENS'}}cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_P2P_TOKENS,{{endif}}): - if self._is_getter: - self._token = _driver["CUDA_POINTER_ATTRIBUTE_P2P_TOKENS"]() - self._cptr = self._token.getPtr() - else: - self._cptr = init_value.getPtr() - elif self._attr in ({{if 'CU_POINTER_ATTRIBUTE_SYNC_MEMOPS'}}cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_SYNC_MEMOPS,{{endif}} - {{if 'CU_POINTER_ATTRIBUTE_IS_MANAGED'}}cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_IS_MANAGED,{{endif}} - {{if 'CU_POINTER_ATTRIBUTE_IS_LEGACY_CUDA_IPC_CAPABLE'}}cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_IS_LEGACY_CUDA_IPC_CAPABLE,{{endif}} - {{if 'CU_POINTER_ATTRIBUTE_MAPPED'}}cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_MAPPED,{{endif}}): - self._bool = init_value - self._cptr = &self._bool - elif self._attr in ({{if 'CU_POINTER_ATTRIBUTE_BUFFER_ID'}}cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_BUFFER_ID,{{endif}}): - self._ull = init_value - self._cptr = &self._ull - elif self._attr in ({{if 'CU_POINTER_ATTRIBUTE_RANGE_SIZE'}}cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_RANGE_SIZE,{{endif}}): - self._size = init_value - self._cptr = &self._size - elif self._attr in ({{if 'CU_POINTER_ATTRIBUTE_MEMPOOL_HANDLE'}}cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_MEMPOOL_HANDLE,{{endif}}): - if self._is_getter: - self._mempool = _driver["CUmemoryPool"]() - self._cptr = self._mempool.getPtr() - else: - self._cptr = init_value.getPtr() - else: - raise TypeError('Unsupported attribute: {}'.format(attr.name)) - - def __dealloc__(self): - pass - - @property - def cptr(self): - return self._cptr - - def pyObj(self): - assert(self._is_getter == True) - if self._attr in ({{if 'CU_POINTER_ATTRIBUTE_CONTEXT'}}cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_CONTEXT,{{endif}}): - return self._ctx - elif self._attr in ({{if 'CU_POINTER_ATTRIBUTE_MEMORY_TYPE'}}cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_MEMORY_TYPE,{{endif}} - {{if 'CU_POINTER_ATTRIBUTE_DEVICE_ORDINAL'}}cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_DEVICE_ORDINAL,{{endif}} - {{if 'CU_POINTER_ATTRIBUTE_ALLOWED_HANDLE_TYPES'}}cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_ALLOWED_HANDLE_TYPES,{{endif}} - {{if 'CU_POINTER_ATTRIBUTE_IS_GPU_DIRECT_RDMA_CAPABLE'}}cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_IS_GPU_DIRECT_RDMA_CAPABLE,{{endif}} - {{if 'CU_POINTER_ATTRIBUTE_ACCESS_FLAGS'}}cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_ACCESS_FLAGS,{{endif}}): - return self._uint - elif self._attr in ({{if 'CU_POINTER_ATTRIBUTE_DEVICE_POINTER'}}cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_DEVICE_POINTER,{{endif}} - {{if 'CU_POINTER_ATTRIBUTE_RANGE_START_ADDR'}}cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_RANGE_START_ADDR,{{endif}}): - return self._devptr - elif self._attr in ({{if 'CU_POINTER_ATTRIBUTE_HOST_POINTER'}}cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_HOST_POINTER,{{endif}}): - return self._void - elif self._attr in ({{if 'CU_POINTER_ATTRIBUTE_P2P_TOKENS'}}cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_P2P_TOKENS,{{endif}}): - return self._token - elif self._attr in ({{if 'CU_POINTER_ATTRIBUTE_SYNC_MEMOPS'}}cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_SYNC_MEMOPS,{{endif}} - {{if 'CU_POINTER_ATTRIBUTE_IS_MANAGED'}}cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_IS_MANAGED,{{endif}} - {{if 'CU_POINTER_ATTRIBUTE_IS_LEGACY_CUDA_IPC_CAPABLE'}}cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_IS_LEGACY_CUDA_IPC_CAPABLE,{{endif}} - {{if 'CU_POINTER_ATTRIBUTE_MAPPED'}}cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_MAPPED,{{endif}}): - return self._bool - elif self._attr in ({{if 'CU_POINTER_ATTRIBUTE_BUFFER_ID'}}cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_BUFFER_ID,{{endif}}): - return self._ull - elif self._attr in ({{if 'CU_POINTER_ATTRIBUTE_RANGE_SIZE'}}cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_RANGE_SIZE,{{endif}}): - return self._size - elif self._attr in ({{if 'CU_POINTER_ATTRIBUTE_MEMPOOL_HANDLE'}}cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_MEMPOOL_HANDLE,{{endif}}): - return self._mempool - else: - raise TypeError('Unsupported attribute value: {}'.format(self._attr)) -{{endif}} -{{if 'CUgraphMem_attribute_enum' in found_types}} - -cdef class _HelperCUgraphMem_attribute: - def __cinit__(self, attr, init_value, is_getter=False): - self._is_getter = is_getter - self._attr = attr.value - if self._attr in ({{if 'CU_GRAPH_MEM_ATTR_USED_MEM_CURRENT' in found_values}}cydriver.CUgraphMem_attribute_enum.CU_GRAPH_MEM_ATTR_USED_MEM_CURRENT,{{endif}} - {{if 'CU_GRAPH_MEM_ATTR_USED_MEM_HIGH' in found_values}}cydriver.CUgraphMem_attribute_enum.CU_GRAPH_MEM_ATTR_USED_MEM_HIGH,{{endif}} - {{if 'CU_GRAPH_MEM_ATTR_RESERVED_MEM_CURRENT' in found_values}}cydriver.CUgraphMem_attribute_enum.CU_GRAPH_MEM_ATTR_RESERVED_MEM_CURRENT,{{endif}} - {{if 'CU_GRAPH_MEM_ATTR_RESERVED_MEM_HIGH' in found_values}}cydriver.CUgraphMem_attribute_enum.CU_GRAPH_MEM_ATTR_RESERVED_MEM_HIGH,{{endif}}): - if self._is_getter: - self._cuuint64_t_val = _driver["cuuint64_t"]() - self._cptr = self._cuuint64_t_val.getPtr() - else: - self._cptr = init_value.getPtr() - else: - raise TypeError('Unsupported attribute: {}'.format(attr.name)) - - def __dealloc__(self): - pass - - @property - def cptr(self): - return self._cptr - - def pyObj(self): - assert(self._is_getter == True) - if self._attr in ({{if 'CU_GRAPH_MEM_ATTR_USED_MEM_CURRENT' in found_values}}cydriver.CUgraphMem_attribute_enum.CU_GRAPH_MEM_ATTR_USED_MEM_CURRENT,{{endif}} - {{if 'CU_GRAPH_MEM_ATTR_USED_MEM_HIGH' in found_values}}cydriver.CUgraphMem_attribute_enum.CU_GRAPH_MEM_ATTR_USED_MEM_HIGH,{{endif}} - {{if 'CU_GRAPH_MEM_ATTR_RESERVED_MEM_CURRENT' in found_values}}cydriver.CUgraphMem_attribute_enum.CU_GRAPH_MEM_ATTR_RESERVED_MEM_CURRENT,{{endif}} - {{if 'CU_GRAPH_MEM_ATTR_RESERVED_MEM_HIGH' in found_values}}cydriver.CUgraphMem_attribute_enum.CU_GRAPH_MEM_ATTR_RESERVED_MEM_HIGH,{{endif}}): - return self._cuuint64_t_val - else: - raise TypeError('Unsupported attribute value: {}'.format(self._attr)) -{{endif}} -{{if 'CUjit_option_enum' in found_types}} - -cdef class _HelperCUjit_option: - def __cinit__(self, attr, init_value): - self._attr = attr.value - if self._attr in ({{if 'CU_JIT_MAX_REGISTERS' in found_values}}cydriver.CUjit_option_enum.CU_JIT_MAX_REGISTERS,{{endif}} - {{if 'CU_JIT_THREADS_PER_BLOCK' in found_values}}cydriver.CUjit_option_enum.CU_JIT_THREADS_PER_BLOCK,{{endif}} - {{if 'CU_JIT_INFO_LOG_BUFFER_SIZE_BYTES' in found_values}}cydriver.CUjit_option_enum.CU_JIT_INFO_LOG_BUFFER_SIZE_BYTES,{{endif}} - {{if 'CU_JIT_ERROR_LOG_BUFFER_SIZE_BYTES' in found_values}}cydriver.CUjit_option_enum.CU_JIT_ERROR_LOG_BUFFER_SIZE_BYTES,{{endif}} - {{if 'CU_JIT_OPTIMIZATION_LEVEL' in found_values}}cydriver.CUjit_option_enum.CU_JIT_OPTIMIZATION_LEVEL,{{endif}} - {{if 'CU_JIT_GLOBAL_SYMBOL_COUNT' in found_values}}cydriver.CUjit_option_enum.CU_JIT_GLOBAL_SYMBOL_COUNT,{{endif}} - {{if 'CU_JIT_TARGET_FROM_CUCONTEXT' in found_values}}cydriver.CUjit_option_enum.CU_JIT_TARGET_FROM_CUCONTEXT,{{endif}} - {{if 'CU_JIT_REFERENCED_KERNEL_COUNT' in found_values}}cydriver.CUjit_option_enum.CU_JIT_REFERENCED_KERNEL_COUNT,{{endif}} - {{if 'CU_JIT_REFERENCED_VARIABLE_COUNT' in found_values}}cydriver.CUjit_option_enum.CU_JIT_REFERENCED_VARIABLE_COUNT,{{endif}} - {{if 'CU_JIT_MIN_CTA_PER_SM' in found_values}}cydriver.CUjit_option_enum.CU_JIT_MIN_CTA_PER_SM,{{endif}} - {{if 'CU_JIT_SPLIT_COMPILE' in found_values}}cydriver.CUjit_option_enum.CU_JIT_SPLIT_COMPILE,{{endif}}): - self._uint = init_value - self._cptr = self._uint - elif self._attr in ({{if 'CU_JIT_WALL_TIME' in found_values}}cydriver.CUjit_option_enum.CU_JIT_WALL_TIME,{{endif}}): - self._float = init_value - self._cptr = self._float - elif self._attr in ({{if 'CU_JIT_INFO_LOG_BUFFER' in found_values}}cydriver.CUjit_option_enum.CU_JIT_INFO_LOG_BUFFER,{{endif}} - {{if 'CU_JIT_ERROR_LOG_BUFFER' in found_values}}cydriver.CUjit_option_enum.CU_JIT_ERROR_LOG_BUFFER{{endif}}): - self._charstar = init_value - self._cptr = self._charstar - elif self._attr in ({{if 'CU_JIT_TARGET' in found_values}}cydriver.CUjit_option_enum.CU_JIT_TARGET,{{endif}}): - self._target = init_value.value - self._cptr = self._target - elif self._attr in ({{if 'CU_JIT_FALLBACK_STRATEGY' in found_values}}cydriver.CUjit_option_enum.CU_JIT_FALLBACK_STRATEGY,{{endif}}): - self._fallback = init_value.value - self._cptr = self._fallback - elif self._attr in ({{if 'CU_JIT_GENERATE_DEBUG_INFO' in found_values}}cydriver.CUjit_option_enum.CU_JIT_GENERATE_DEBUG_INFO,{{endif}} - {{if 'CU_JIT_LOG_VERBOSE' in found_values}}cydriver.CUjit_option_enum.CU_JIT_LOG_VERBOSE,{{endif}} - {{if 'CU_JIT_GENERATE_LINE_INFO' in found_values}}cydriver.CUjit_option_enum.CU_JIT_GENERATE_LINE_INFO,{{endif}} - {{if 'CU_JIT_LTO' in found_values}}cydriver.CUjit_option_enum.CU_JIT_LTO,{{endif}} - {{if 'CU_JIT_FTZ' in found_values}}cydriver.CUjit_option_enum.CU_JIT_FTZ,{{endif}} - {{if 'CU_JIT_PREC_DIV' in found_values}}cydriver.CUjit_option_enum.CU_JIT_PREC_DIV,{{endif}} - {{if 'CU_JIT_PREC_SQRT' in found_values}}cydriver.CUjit_option_enum.CU_JIT_PREC_SQRT,{{endif}} - {{if 'CU_JIT_FMA' in found_values}}cydriver.CUjit_option_enum.CU_JIT_FMA,{{endif}} - {{if 'CU_JIT_OPTIMIZE_UNUSED_DEVICE_VARIABLES' in found_values}}cydriver.CUjit_option_enum.CU_JIT_OPTIMIZE_UNUSED_DEVICE_VARIABLES,{{endif}}): - self._int = init_value - self._cptr = self._int - elif self._attr in ({{if 'CU_JIT_CACHE_MODE' in found_values}}cydriver.CUjit_option_enum.CU_JIT_CACHE_MODE,{{endif}}): - self._cacheMode = init_value.value - self._cptr = self._cacheMode - elif self._attr in ({{if 'CU_JIT_GLOBAL_SYMBOL_NAMES' in found_values}}cydriver.CUjit_option_enum.CU_JIT_GLOBAL_SYMBOL_NAMES,{{endif}} - {{if 'CU_JIT_REFERENCED_KERNEL_NAMES' in found_values}}cydriver.CUjit_option_enum.CU_JIT_REFERENCED_KERNEL_NAMES,{{endif}} - {{if 'CU_JIT_REFERENCED_VARIABLE_NAMES' in found_values}}cydriver.CUjit_option_enum.CU_JIT_REFERENCED_VARIABLE_NAMES,{{endif}}): - self._charstarstar = init_value - self._cptr = &self._charstarstar[0] - elif self._attr in ({{if 'CU_JIT_GLOBAL_SYMBOL_ADDRESSES' in found_values}}cydriver.CUjit_option_enum.CU_JIT_GLOBAL_SYMBOL_ADDRESSES,{{endif}}): - pylist = [_HelperInputVoidPtr(val) for val in init_value] - self._voidstarstar = _InputVoidPtrPtrHelper(pylist) - self._cptr = self._voidstarstar.cptr - else: - raise TypeError('Unsupported attribute: {}'.format(attr.name)) - - def __dealloc__(self): - pass - - @property - def cptr(self): - return self._cptr -{{endif}} - -{{if 'cudaJitOption' in found_types}} - -cdef class _HelperCudaJitOption: - def __cinit__(self, attr, init_value): - self._attr = attr.value - if self._attr in ({{if 'cudaJitMaxRegisters' in found_values}}cyruntime.cudaJitOption.cudaJitMaxRegisters,{{endif}} - {{if 'cudaJitThreadsPerBlock' in found_values}}cyruntime.cudaJitOption.cudaJitThreadsPerBlock,{{endif}} - {{if 'cudaJitInfoLogBufferSizeBytes' in found_values}}cyruntime.cudaJitOption.cudaJitInfoLogBufferSizeBytes,{{endif}} - {{if 'cudaJitErrorLogBufferSizeBytes' in found_values}}cyruntime.cudaJitOption.cudaJitErrorLogBufferSizeBytes,{{endif}} - {{if 'cudaJitOptimizationLevel' in found_values}}cyruntime.cudaJitOption.cudaJitOptimizationLevel,{{endif}} - {{if 'cudaJitMinCtaPerSm' in found_values}}cyruntime.cudaJitOption.cudaJitMinCtaPerSm,{{endif}}): - self._uint = init_value - self._cptr = self._uint - elif self._attr in ({{if 'cudaJitWallTime' in found_values}}cyruntime.cudaJitOption.cudaJitWallTime,{{endif}}): - self._float = init_value - self._cptr = self._float - elif self._attr in ({{if 'cudaJitInfoLogBuffer' in found_values}}cyruntime.cudaJitOption.cudaJitInfoLogBuffer,{{endif}} - {{if 'cudaJitErrorLogBuffer' in found_values}}cyruntime.cudaJitOption.cudaJitErrorLogBuffer{{endif}}): - self._charstar = init_value - self._cptr = self._charstar - elif self._attr in ({{if 'cudaJitFallbackStrategy' in found_values}}cyruntime.cudaJitOption.cudaJitFallbackStrategy,{{endif}}): - self._fallback = init_value.value - self._cptr = self._fallback - elif self._attr in ({{if 'cudaJitGenerateDebugInfo' in found_values}}cyruntime.cudaJitOption.cudaJitGenerateDebugInfo,{{endif}} - {{if 'cudaJitLogVerbose' in found_values}}cyruntime.cudaJitOption.cudaJitLogVerbose,{{endif}} - {{if 'cudaJitGenerateLineInfo' in found_values}}cyruntime.cudaJitOption.cudaJitGenerateLineInfo,{{endif}} - {{if 'cudaJitPositionIndependentCode' in found_values}}cyruntime.cudaJitOption.cudaJitPositionIndependentCode,{{endif}} - {{if 'cudaJitMaxThreadsPerBlock' in found_values}}cyruntime.cudaJitOption.cudaJitMaxThreadsPerBlock,{{endif}} - {{if 'cudaJitOverrideDirectiveValues' in found_values}}cyruntime.cudaJitOption.cudaJitOverrideDirectiveValues,{{endif}}): - self._int = init_value - self._cptr = self._int - elif self._attr in ({{if 'cudaJitCacheMode' in found_values}}cyruntime.cudaJitOption.cudaJitCacheMode,{{endif}}): - self._cacheMode = init_value.value - self._cptr = self._cacheMode - else: - raise TypeError('Unsupported attribute: {}'.format(attr.name)) - - def __dealloc__(self): - pass - - @property - def cptr(self): - return self._cptr -{{endif}} - -{{if 'CUlibraryOption_enum' in found_types}} - -cdef class _HelperCUlibraryOption: - def __cinit__(self, attr, init_value): - self._attr = attr.value - if False: - pass - {{if 'CU_LIBRARY_HOST_UNIVERSAL_FUNCTION_AND_DATA_TABLE' in found_values}} - elif self._attr in (cydriver.CUlibraryOption_enum.CU_LIBRARY_HOST_UNIVERSAL_FUNCTION_AND_DATA_TABLE,): - self._cptr = init_value.getPtr() - {{endif}} - {{if 'CU_LIBRARY_BINARY_IS_PRESERVED' in found_values}} - elif self._attr in (cydriver.CUlibraryOption_enum.CU_LIBRARY_BINARY_IS_PRESERVED,): - self._uint = init_value - self._cptr = self._uint - {{endif}} - else: - raise TypeError('Unsupported attribute: {}'.format(attr.name)) - - def __dealloc__(self): - pass - - @property - def cptr(self): - return self._cptr -{{endif}} - -{{if 'cudaLibraryOption' in found_types}} - -cdef class _HelperCudaLibraryOption: - def __cinit__(self, attr, init_value): - self._attr = attr.value - if False: - pass - {{if 'cudaLibraryHostUniversalFunctionAndDataTable' in found_values}} - elif self._attr in (cyruntime.cudaLibraryOption.cudaLibraryHostUniversalFunctionAndDataTable,): - self._cptr = init_value.getPtr() - {{endif}} - {{if 'cudaLibraryBinaryIsPreserved' in found_values}} - elif self._attr in (cyruntime.cudaLibraryOption.cudaLibraryBinaryIsPreserved,): - self._uint = init_value - self._cptr = self._uint - {{endif}} - else: - raise TypeError('Unsupported attribute: {}'.format(attr.name)) - - def __dealloc__(self): - pass - - @property - def cptr(self): - return self._cptr -{{endif}} - -{{if 'CUmemAllocationHandleType_enum' in found_types}} - -cdef class _HelperCUmemAllocationHandleType: - def __cinit__(self, attr): - self._type = attr.value - if False: - pass - {{if 'CU_MEM_HANDLE_TYPE_NONE' in found_values}} - elif self._type in (cydriver.CUmemAllocationHandleType_enum.CU_MEM_HANDLE_TYPE_NONE,): - self._cptr = &self._int - {{endif}} - {{if 'CU_MEM_HANDLE_TYPE_POSIX_FILE_DESCRIPTOR' in found_values}} - elif self._type in (cydriver.CUmemAllocationHandleType_enum.CU_MEM_HANDLE_TYPE_POSIX_FILE_DESCRIPTOR,): - self._cptr = &self._int - {{endif}} - {{if 'CU_MEM_HANDLE_TYPE_WIN32' in found_values}} - elif self._type in (cydriver.CUmemAllocationHandleType_enum.CU_MEM_HANDLE_TYPE_WIN32,): - self._cptr = &self._handle - {{endif}} - {{if 'CU_MEM_HANDLE_TYPE_WIN32_KMT' in found_values}} - elif self._type in (cydriver.CUmemAllocationHandleType_enum.CU_MEM_HANDLE_TYPE_WIN32_KMT,): - self._cptr = &self._d3dkmt_handle - {{endif}} - {{if 'CU_MEM_HANDLE_TYPE_FABRIC' in found_values}} - elif self._type in (cydriver.CUmemAllocationHandleType_enum.CU_MEM_HANDLE_TYPE_FABRIC,): - self._mem_fabric_handle = _driver["CUmemFabricHandle"]() - self._cptr = self._mem_fabric_handle.getPtr() - {{endif}} - else: - raise TypeError('Unsupported attribute: {}'.format(attr.name)) - - def __dealloc__(self): - pass - - @property - def cptr(self): - return self._cptr - - def pyObj(self): - if False: - pass - {{if 'CU_MEM_HANDLE_TYPE_NONE' in found_values}} - elif self._type in (cydriver.CUmemAllocationHandleType_enum.CU_MEM_HANDLE_TYPE_NONE,): - return self._int - {{endif}} - {{if 'CU_MEM_HANDLE_TYPE_POSIX_FILE_DESCRIPTOR' in found_values}} - elif self._type in (cydriver.CUmemAllocationHandleType_enum.CU_MEM_HANDLE_TYPE_POSIX_FILE_DESCRIPTOR,): - return self._int - {{endif}} - {{if 'CU_MEM_HANDLE_TYPE_WIN32' in found_values}} - elif self._type in (cydriver.CUmemAllocationHandleType_enum.CU_MEM_HANDLE_TYPE_WIN32,): - return self._handle - {{endif}} - {{if 'CU_MEM_HANDLE_TYPE_WIN32_KMT' in found_values}} - elif self._type in (cydriver.CUmemAllocationHandleType_enum.CU_MEM_HANDLE_TYPE_WIN32_KMT,): - return self._d3dkmt_handle - {{endif}} - {{if 'CU_MEM_HANDLE_TYPE_FABRIC' in found_values}} - elif self._type in (cydriver.CUmemAllocationHandleType_enum.CU_MEM_HANDLE_TYPE_FABRIC,): - return self._mem_fabric_handle - {{endif}} - else: - raise TypeError('Unsupported attribute: {}'.format(self._type)) -{{endif}} - -cdef class _InputVoidPtrPtrHelper: - def __cinit__(self, lst): - # Hold onto references to the original buffers so they - # won't be free'd behind our back - self._references = lst - self._cptr = _callocWrapper(len(lst), sizeof(void*)) - for idx in range(len(lst)): - self._cptr[idx] = lst[idx].cptr - - def __dealloc__(self): - free(self._cptr) - - @property - def cptr(self): - return self._cptr - -{{if 'CUcoredumpSettings_enum' in found_types}} - -cdef class _HelperCUcoredumpSettings: - def __cinit__(self, attr, init_value, is_getter=False): - self._is_getter = is_getter - self._attrib = attr.value - if self._attrib in ({{if 'CU_COREDUMP_FILE' in found_values}}cydriver.CUcoredumpSettings_enum.CU_COREDUMP_FILE,{{endif}} - {{if 'CU_COREDUMP_PIPE' in found_values}}cydriver.CUcoredumpSettings_enum.CU_COREDUMP_PIPE,{{endif}}): - if self._is_getter: - self._charstar = _callocWrapper(1024, 1) - self._cptr = self._charstar - self._size = 1024 - else: - self._charstar = init_value - self._cptr = self._charstar - self._size = len(init_value) - elif self._attrib in ({{if 'CU_COREDUMP_ENABLE_ON_EXCEPTION' in found_values}}cydriver.CUcoredumpSettings_enum.CU_COREDUMP_ENABLE_ON_EXCEPTION,{{endif}} - {{if 'CU_COREDUMP_TRIGGER_HOST' in found_values}}cydriver.CUcoredumpSettings_enum.CU_COREDUMP_TRIGGER_HOST,{{endif}} - {{if 'CU_COREDUMP_LIGHTWEIGHT' in found_values}}cydriver.CUcoredumpSettings_enum.CU_COREDUMP_LIGHTWEIGHT,{{endif}} - {{if 'CU_COREDUMP_ENABLE_USER_TRIGGER' in found_values}}cydriver.CUcoredumpSettings_enum.CU_COREDUMP_ENABLE_USER_TRIGGER,{{endif}}): - if self._is_getter == False: - self._bool = init_value - - self._cptr = &self._bool - self._size = 1 - else: - raise TypeError('Unsupported attribute: {}'.format(attr.name)) - - def __dealloc__(self): - pass - - @property - def cptr(self): - return self._cptr - - def size(self): - return self._size - - def pyObj(self): - assert(self._is_getter == True) - if self._attrib in ({{if 'CU_COREDUMP_FILE' in found_values}}cydriver.CUcoredumpSettings_enum.CU_COREDUMP_FILE,{{endif}} - {{if 'CU_COREDUMP_PIPE' in found_values}}cydriver.CUcoredumpSettings_enum.CU_COREDUMP_PIPE,{{endif}}): - return self._charstar - elif self._attrib in ({{if 'CU_COREDUMP_ENABLE_ON_EXCEPTION' in found_values}}cydriver.CUcoredumpSettings_enum.CU_COREDUMP_ENABLE_ON_EXCEPTION,{{endif}} - {{if 'CU_COREDUMP_TRIGGER_HOST' in found_values}}cydriver.CUcoredumpSettings_enum.CU_COREDUMP_TRIGGER_HOST,{{endif}} - {{if 'CU_COREDUMP_LIGHTWEIGHT' in found_values}}cydriver.CUcoredumpSettings_enum.CU_COREDUMP_LIGHTWEIGHT,{{endif}} - {{if 'CU_COREDUMP_ENABLE_USER_TRIGGER' in found_values}}cydriver.CUcoredumpSettings_enum.CU_COREDUMP_ENABLE_USER_TRIGGER,{{endif}}): - return self._bool - else: - raise TypeError('Unsupported attribute value: {}'.format(self._attrib)) -{{endif}} diff --git a/cuda_bindings/cuda/bindings/cydriver.pxd b/cuda_bindings/cuda/bindings/cydriver.pxd new file mode 100644 index 00000000000..f814063aeb3 --- /dev/null +++ b/cuda_bindings/cuda/bindings/cydriver.pxd @@ -0,0 +1,3645 @@ +# 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.2.0, generator version 0.3.1.dev1630+gadce055ea.d20260422. Do not modify it directly. + +from libc.stdint cimport uint32_t, uint64_t + + +# Overridden types from _extras.h + +# 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 + + +# ENUMS +cdef extern from '': + ctypedef enum CUipcMem_flags_enum: + CU_IPC_MEM_LAZY_ENABLE_PEER_ACCESS + ctypedef CUipcMem_flags_enum CUipcMem_flags + +cdef extern from '': + ctypedef 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 '': + ctypedef enum CUctx_flags_enum: + CU_CTX_SCHED_AUTO + CU_CTX_SCHED_SPIN + CU_CTX_SCHED_YIELD + CU_CTX_SCHED_BLOCKING_SYNC + CU_CTX_BLOCKING_SYNC + CU_CTX_SCHED_MASK + CU_CTX_MAP_HOST + CU_CTX_LMEM_RESIZE_TO_MAX + CU_CTX_COREDUMP_ENABLE + CU_CTX_USER_COREDUMP_ENABLE + CU_CTX_SYNC_MEMOPS + CU_CTX_FLAGS_MASK + ctypedef CUctx_flags_enum CUctx_flags + +cdef extern from '': + ctypedef enum CUevent_sched_flags_enum: + CU_EVENT_SCHED_AUTO + CU_EVENT_SCHED_SPIN + CU_EVENT_SCHED_YIELD + CU_EVENT_SCHED_BLOCKING_SYNC + ctypedef CUevent_sched_flags_enum CUevent_sched_flags + +cdef extern from '': + ctypedef enum cl_event_flags_enum: + NVCL_EVENT_SCHED_AUTO + NVCL_EVENT_SCHED_SPIN + NVCL_EVENT_SCHED_YIELD + NVCL_EVENT_SCHED_BLOCKING_SYNC + ctypedef cl_event_flags_enum cl_event_flags + +cdef extern from '': + ctypedef enum cl_context_flags_enum: + NVCL_CTX_SCHED_AUTO + NVCL_CTX_SCHED_SPIN + NVCL_CTX_SCHED_YIELD + NVCL_CTX_SCHED_BLOCKING_SYNC + ctypedef cl_context_flags_enum cl_context_flags + +cdef extern from '': + ctypedef enum CUstream_flags_enum: + CU_STREAM_DEFAULT + CU_STREAM_NON_BLOCKING + ctypedef CUstream_flags_enum CUstream_flags + +cdef extern from '': + ctypedef enum CUevent_flags_enum: + CU_EVENT_DEFAULT + CU_EVENT_BLOCKING_SYNC + CU_EVENT_DISABLE_TIMING + CU_EVENT_INTERPROCESS + ctypedef CUevent_flags_enum CUevent_flags + +cdef extern from '': + ctypedef enum CUevent_record_flags_enum: + CU_EVENT_RECORD_DEFAULT + CU_EVENT_RECORD_EXTERNAL + ctypedef CUevent_record_flags_enum CUevent_record_flags + +cdef extern from '': + ctypedef enum CUevent_wait_flags_enum: + CU_EVENT_WAIT_DEFAULT + CU_EVENT_WAIT_EXTERNAL + ctypedef CUevent_wait_flags_enum CUevent_wait_flags + +cdef extern from '': + ctypedef enum CUstreamWaitValue_flags_enum: + CU_STREAM_WAIT_VALUE_GEQ + CU_STREAM_WAIT_VALUE_EQ + CU_STREAM_WAIT_VALUE_AND + CU_STREAM_WAIT_VALUE_NOR + CU_STREAM_WAIT_VALUE_FLUSH + ctypedef CUstreamWaitValue_flags_enum CUstreamWaitValue_flags + +cdef extern from '': + ctypedef 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 '': + ctypedef enum CUstreamBatchMemOpType_enum: + CU_STREAM_MEM_OP_WAIT_VALUE_32 + CU_STREAM_MEM_OP_WRITE_VALUE_32 + CU_STREAM_MEM_OP_WAIT_VALUE_64 + CU_STREAM_MEM_OP_WRITE_VALUE_64 + CU_STREAM_MEM_OP_BARRIER + CU_STREAM_MEM_OP_ATOMIC_REDUCTION + CU_STREAM_MEM_OP_FLUSH_REMOTE_WRITES + ctypedef CUstreamBatchMemOpType_enum CUstreamBatchMemOpType + +cdef extern from '': + ctypedef 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 '': + ctypedef enum CUoccupancy_flags_enum: + CU_OCCUPANCY_DEFAULT + CU_OCCUPANCY_DISABLE_CACHING_OVERRIDE + ctypedef CUoccupancy_flags_enum CUoccupancy_flags + +cdef extern from '': + ctypedef enum CUstreamUpdateCaptureDependencies_flags_enum: + CU_STREAM_ADD_CAPTURE_DEPENDENCIES + CU_STREAM_SET_CAPTURE_DEPENDENCIES + ctypedef CUstreamUpdateCaptureDependencies_flags_enum CUstreamUpdateCaptureDependencies_flags + +cdef extern from '': + ctypedef enum CUasyncNotificationType_enum: + CU_ASYNC_NOTIFICATION_TYPE_OVER_BUDGET + ctypedef CUasyncNotificationType_enum CUasyncNotificationType + +cdef extern from '': + ctypedef enum CUarray_format_enum: + CU_AD_FORMAT_UNSIGNED_INT8 + CU_AD_FORMAT_UNSIGNED_INT16 + CU_AD_FORMAT_UNSIGNED_INT32 + CU_AD_FORMAT_SIGNED_INT8 + CU_AD_FORMAT_SIGNED_INT16 + CU_AD_FORMAT_SIGNED_INT32 + CU_AD_FORMAT_HALF + CU_AD_FORMAT_FLOAT + CU_AD_FORMAT_NV12 + CU_AD_FORMAT_UNORM_INT8X1 + CU_AD_FORMAT_UNORM_INT8X2 + CU_AD_FORMAT_UNORM_INT8X4 + CU_AD_FORMAT_UNORM_INT16X1 + CU_AD_FORMAT_UNORM_INT16X2 + CU_AD_FORMAT_UNORM_INT16X4 + CU_AD_FORMAT_SNORM_INT8X1 + CU_AD_FORMAT_SNORM_INT8X2 + CU_AD_FORMAT_SNORM_INT8X4 + CU_AD_FORMAT_SNORM_INT16X1 + CU_AD_FORMAT_SNORM_INT16X2 + CU_AD_FORMAT_SNORM_INT16X4 + CU_AD_FORMAT_BC1_UNORM + CU_AD_FORMAT_BC1_UNORM_SRGB + CU_AD_FORMAT_BC2_UNORM + CU_AD_FORMAT_BC2_UNORM_SRGB + CU_AD_FORMAT_BC3_UNORM + CU_AD_FORMAT_BC3_UNORM_SRGB + CU_AD_FORMAT_BC4_UNORM + CU_AD_FORMAT_BC4_SNORM + CU_AD_FORMAT_BC5_UNORM + CU_AD_FORMAT_BC5_SNORM + CU_AD_FORMAT_BC6H_UF16 + CU_AD_FORMAT_BC6H_SF16 + CU_AD_FORMAT_BC7_UNORM + CU_AD_FORMAT_BC7_UNORM_SRGB + CU_AD_FORMAT_P010 + CU_AD_FORMAT_P016 + CU_AD_FORMAT_NV16 + CU_AD_FORMAT_P210 + CU_AD_FORMAT_P216 + CU_AD_FORMAT_YUY2 + CU_AD_FORMAT_Y210 + CU_AD_FORMAT_Y216 + CU_AD_FORMAT_AYUV + CU_AD_FORMAT_Y410 + CU_AD_FORMAT_Y416 + CU_AD_FORMAT_Y444_PLANAR8 + CU_AD_FORMAT_Y444_PLANAR10 + CU_AD_FORMAT_YUV444_8bit_SemiPlanar + CU_AD_FORMAT_YUV444_16bit_SemiPlanar + CU_AD_FORMAT_UNORM_INT_101010_2 + CU_AD_FORMAT_UINT8_PACKED_422 + CU_AD_FORMAT_UINT8_PACKED_444 + CU_AD_FORMAT_UINT8_SEMIPLANAR_420 + CU_AD_FORMAT_UINT16_SEMIPLANAR_420 + CU_AD_FORMAT_UINT8_SEMIPLANAR_422 + CU_AD_FORMAT_UINT16_SEMIPLANAR_422 + CU_AD_FORMAT_UINT8_SEMIPLANAR_444 + CU_AD_FORMAT_UINT16_SEMIPLANAR_444 + CU_AD_FORMAT_UINT8_PLANAR_420 + CU_AD_FORMAT_UINT16_PLANAR_420 + CU_AD_FORMAT_UINT8_PLANAR_422 + CU_AD_FORMAT_UINT16_PLANAR_422 + CU_AD_FORMAT_UINT8_PLANAR_444 + CU_AD_FORMAT_UINT16_PLANAR_444 + CU_AD_FORMAT_MAX + ctypedef CUarray_format_enum CUarray_format + +cdef extern from '': + ctypedef enum CUaddress_mode_enum: + CU_TR_ADDRESS_MODE_WRAP + CU_TR_ADDRESS_MODE_CLAMP + CU_TR_ADDRESS_MODE_MIRROR + CU_TR_ADDRESS_MODE_BORDER + ctypedef CUaddress_mode_enum CUaddress_mode + +cdef extern from '': + ctypedef enum CUfilter_mode_enum: + CU_TR_FILTER_MODE_POINT + CU_TR_FILTER_MODE_LINEAR + ctypedef CUfilter_mode_enum CUfilter_mode + +cdef extern from '': + ctypedef 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 + CU_DEVICE_ATTRIBUTE_MAX_BLOCK_DIM_Z + CU_DEVICE_ATTRIBUTE_MAX_GRID_DIM_X + CU_DEVICE_ATTRIBUTE_MAX_GRID_DIM_Y + CU_DEVICE_ATTRIBUTE_MAX_GRID_DIM_Z + CU_DEVICE_ATTRIBUTE_MAX_SHARED_MEMORY_PER_BLOCK + CU_DEVICE_ATTRIBUTE_SHARED_MEMORY_PER_BLOCK + CU_DEVICE_ATTRIBUTE_TOTAL_CONSTANT_MEMORY + CU_DEVICE_ATTRIBUTE_WARP_SIZE + CU_DEVICE_ATTRIBUTE_MAX_PITCH + CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_BLOCK + CU_DEVICE_ATTRIBUTE_REGISTERS_PER_BLOCK + CU_DEVICE_ATTRIBUTE_CLOCK_RATE + CU_DEVICE_ATTRIBUTE_TEXTURE_ALIGNMENT + CU_DEVICE_ATTRIBUTE_GPU_OVERLAP + CU_DEVICE_ATTRIBUTE_MULTIPROCESSOR_COUNT + CU_DEVICE_ATTRIBUTE_KERNEL_EXEC_TIMEOUT + CU_DEVICE_ATTRIBUTE_INTEGRATED + CU_DEVICE_ATTRIBUTE_CAN_MAP_HOST_MEMORY + CU_DEVICE_ATTRIBUTE_COMPUTE_MODE + CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE1D_WIDTH + CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_WIDTH + CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_HEIGHT + CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE3D_WIDTH + CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE3D_HEIGHT + CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE3D_DEPTH + CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_LAYERED_WIDTH + CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_LAYERED_HEIGHT + CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_LAYERED_LAYERS + CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_ARRAY_WIDTH + CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_ARRAY_HEIGHT + CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_ARRAY_NUMSLICES + CU_DEVICE_ATTRIBUTE_SURFACE_ALIGNMENT + CU_DEVICE_ATTRIBUTE_CONCURRENT_KERNELS + CU_DEVICE_ATTRIBUTE_ECC_ENABLED + CU_DEVICE_ATTRIBUTE_PCI_BUS_ID + CU_DEVICE_ATTRIBUTE_PCI_DEVICE_ID + CU_DEVICE_ATTRIBUTE_TCC_DRIVER + CU_DEVICE_ATTRIBUTE_MEMORY_CLOCK_RATE + CU_DEVICE_ATTRIBUTE_GLOBAL_MEMORY_BUS_WIDTH + CU_DEVICE_ATTRIBUTE_L2_CACHE_SIZE + CU_DEVICE_ATTRIBUTE_MAX_THREADS_PER_MULTIPROCESSOR + CU_DEVICE_ATTRIBUTE_ASYNC_ENGINE_COUNT + CU_DEVICE_ATTRIBUTE_UNIFIED_ADDRESSING + CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE1D_LAYERED_WIDTH + CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE1D_LAYERED_LAYERS + CU_DEVICE_ATTRIBUTE_CAN_TEX2D_GATHER + CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_GATHER_WIDTH + CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_GATHER_HEIGHT + CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE3D_WIDTH_ALTERNATE + CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE3D_HEIGHT_ALTERNATE + CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE3D_DEPTH_ALTERNATE + CU_DEVICE_ATTRIBUTE_PCI_DOMAIN_ID + CU_DEVICE_ATTRIBUTE_TEXTURE_PITCH_ALIGNMENT + CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURECUBEMAP_WIDTH + CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURECUBEMAP_LAYERED_WIDTH + CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURECUBEMAP_LAYERED_LAYERS + CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE1D_WIDTH + CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE2D_WIDTH + CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE2D_HEIGHT + CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE3D_WIDTH + CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE3D_HEIGHT + CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE3D_DEPTH + CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE1D_LAYERED_WIDTH + CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE1D_LAYERED_LAYERS + CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE2D_LAYERED_WIDTH + CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE2D_LAYERED_HEIGHT + CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE2D_LAYERED_LAYERS + CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACECUBEMAP_WIDTH + CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACECUBEMAP_LAYERED_WIDTH + CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACECUBEMAP_LAYERED_LAYERS + CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE1D_LINEAR_WIDTH + CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_LINEAR_WIDTH + CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_LINEAR_HEIGHT + CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_LINEAR_PITCH + CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_MIPMAPPED_WIDTH + CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_MIPMAPPED_HEIGHT + CU_DEVICE_ATTRIBUTE_COMPUTE_CAPABILITY_MAJOR + CU_DEVICE_ATTRIBUTE_COMPUTE_CAPABILITY_MINOR + CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE1D_MIPMAPPED_WIDTH + CU_DEVICE_ATTRIBUTE_STREAM_PRIORITIES_SUPPORTED + CU_DEVICE_ATTRIBUTE_GLOBAL_L1_CACHE_SUPPORTED + CU_DEVICE_ATTRIBUTE_LOCAL_L1_CACHE_SUPPORTED + CU_DEVICE_ATTRIBUTE_MAX_SHARED_MEMORY_PER_MULTIPROCESSOR + CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR + CU_DEVICE_ATTRIBUTE_MANAGED_MEMORY + CU_DEVICE_ATTRIBUTE_MULTI_GPU_BOARD + CU_DEVICE_ATTRIBUTE_MULTI_GPU_BOARD_GROUP_ID + CU_DEVICE_ATTRIBUTE_HOST_NATIVE_ATOMIC_SUPPORTED + CU_DEVICE_ATTRIBUTE_SINGLE_TO_DOUBLE_PRECISION_PERF_RATIO + CU_DEVICE_ATTRIBUTE_PAGEABLE_MEMORY_ACCESS + CU_DEVICE_ATTRIBUTE_CONCURRENT_MANAGED_ACCESS + CU_DEVICE_ATTRIBUTE_COMPUTE_PREEMPTION_SUPPORTED + CU_DEVICE_ATTRIBUTE_CAN_USE_HOST_POINTER_FOR_REGISTERED_MEM + CU_DEVICE_ATTRIBUTE_CAN_USE_STREAM_MEM_OPS_V1 + CU_DEVICE_ATTRIBUTE_CAN_USE_64_BIT_STREAM_MEM_OPS_V1 + CU_DEVICE_ATTRIBUTE_CAN_USE_STREAM_WAIT_VALUE_NOR_V1 + CU_DEVICE_ATTRIBUTE_COOPERATIVE_LAUNCH + CU_DEVICE_ATTRIBUTE_COOPERATIVE_MULTI_DEVICE_LAUNCH + CU_DEVICE_ATTRIBUTE_MAX_SHARED_MEMORY_PER_BLOCK_OPTIN + CU_DEVICE_ATTRIBUTE_CAN_FLUSH_REMOTE_WRITES + CU_DEVICE_ATTRIBUTE_HOST_REGISTER_SUPPORTED + CU_DEVICE_ATTRIBUTE_PAGEABLE_MEMORY_ACCESS_USES_HOST_PAGE_TABLES + CU_DEVICE_ATTRIBUTE_DIRECT_MANAGED_MEM_ACCESS_FROM_HOST + CU_DEVICE_ATTRIBUTE_VIRTUAL_ADDRESS_MANAGEMENT_SUPPORTED + CU_DEVICE_ATTRIBUTE_VIRTUAL_MEMORY_MANAGEMENT_SUPPORTED + CU_DEVICE_ATTRIBUTE_HANDLE_TYPE_POSIX_FILE_DESCRIPTOR_SUPPORTED + CU_DEVICE_ATTRIBUTE_HANDLE_TYPE_WIN32_HANDLE_SUPPORTED + CU_DEVICE_ATTRIBUTE_HANDLE_TYPE_WIN32_KMT_HANDLE_SUPPORTED + CU_DEVICE_ATTRIBUTE_MAX_BLOCKS_PER_MULTIPROCESSOR + CU_DEVICE_ATTRIBUTE_GENERIC_COMPRESSION_SUPPORTED + CU_DEVICE_ATTRIBUTE_MAX_PERSISTING_L2_CACHE_SIZE + CU_DEVICE_ATTRIBUTE_MAX_ACCESS_POLICY_WINDOW_SIZE + CU_DEVICE_ATTRIBUTE_GPU_DIRECT_RDMA_WITH_CUDA_VMM_SUPPORTED + CU_DEVICE_ATTRIBUTE_RESERVED_SHARED_MEMORY_PER_BLOCK + CU_DEVICE_ATTRIBUTE_SPARSE_CUDA_ARRAY_SUPPORTED + CU_DEVICE_ATTRIBUTE_READ_ONLY_HOST_REGISTER_SUPPORTED + CU_DEVICE_ATTRIBUTE_TIMELINE_SEMAPHORE_INTEROP_SUPPORTED + CU_DEVICE_ATTRIBUTE_MEMORY_POOLS_SUPPORTED + CU_DEVICE_ATTRIBUTE_GPU_DIRECT_RDMA_SUPPORTED + CU_DEVICE_ATTRIBUTE_GPU_DIRECT_RDMA_FLUSH_WRITES_OPTIONS + CU_DEVICE_ATTRIBUTE_GPU_DIRECT_RDMA_WRITES_ORDERING + CU_DEVICE_ATTRIBUTE_MEMPOOL_SUPPORTED_HANDLE_TYPES + CU_DEVICE_ATTRIBUTE_CLUSTER_LAUNCH + CU_DEVICE_ATTRIBUTE_DEFERRED_MAPPING_CUDA_ARRAY_SUPPORTED + CU_DEVICE_ATTRIBUTE_CAN_USE_64_BIT_STREAM_MEM_OPS + CU_DEVICE_ATTRIBUTE_CAN_USE_STREAM_WAIT_VALUE_NOR + CU_DEVICE_ATTRIBUTE_DMA_BUF_SUPPORTED + CU_DEVICE_ATTRIBUTE_IPC_EVENT_SUPPORTED + CU_DEVICE_ATTRIBUTE_MEM_SYNC_DOMAIN_COUNT + CU_DEVICE_ATTRIBUTE_TENSOR_MAP_ACCESS_SUPPORTED + CU_DEVICE_ATTRIBUTE_HANDLE_TYPE_FABRIC_SUPPORTED + CU_DEVICE_ATTRIBUTE_UNIFIED_FUNCTION_POINTERS + CU_DEVICE_ATTRIBUTE_NUMA_CONFIG + CU_DEVICE_ATTRIBUTE_NUMA_ID + CU_DEVICE_ATTRIBUTE_MULTICAST_SUPPORTED + CU_DEVICE_ATTRIBUTE_MPS_ENABLED + CU_DEVICE_ATTRIBUTE_HOST_NUMA_ID + CU_DEVICE_ATTRIBUTE_D3D12_CIG_SUPPORTED + CU_DEVICE_ATTRIBUTE_MEM_DECOMPRESS_ALGORITHM_MASK + CU_DEVICE_ATTRIBUTE_MEM_DECOMPRESS_MAXIMUM_LENGTH + CU_DEVICE_ATTRIBUTE_VULKAN_CIG_SUPPORTED + CU_DEVICE_ATTRIBUTE_GPU_PCI_DEVICE_ID + CU_DEVICE_ATTRIBUTE_GPU_PCI_SUBSYSTEM_ID + CU_DEVICE_ATTRIBUTE_HOST_NUMA_VIRTUAL_MEMORY_MANAGEMENT_SUPPORTED + CU_DEVICE_ATTRIBUTE_HOST_NUMA_MEMORY_POOLS_SUPPORTED + CU_DEVICE_ATTRIBUTE_HOST_NUMA_MULTINODE_IPC_SUPPORTED + CU_DEVICE_ATTRIBUTE_HOST_MEMORY_POOLS_SUPPORTED + CU_DEVICE_ATTRIBUTE_HOST_VIRTUAL_MEMORY_MANAGEMENT_SUPPORTED + CU_DEVICE_ATTRIBUTE_HOST_ALLOC_DMA_BUF_SUPPORTED + CU_DEVICE_ATTRIBUTE_ONLY_PARTIAL_HOST_NATIVE_ATOMIC_SUPPORTED + CU_DEVICE_ATTRIBUTE_ATOMIC_REDUCTION_SUPPORTED + CU_DEVICE_ATTRIBUTE_MAX + ctypedef CUdevice_attribute_enum CUdevice_attribute + +cdef extern from '': + ctypedef enum CUpointer_attribute_enum: + CU_POINTER_ATTRIBUTE_CONTEXT + CU_POINTER_ATTRIBUTE_MEMORY_TYPE + CU_POINTER_ATTRIBUTE_DEVICE_POINTER + CU_POINTER_ATTRIBUTE_HOST_POINTER + CU_POINTER_ATTRIBUTE_P2P_TOKENS + CU_POINTER_ATTRIBUTE_SYNC_MEMOPS + CU_POINTER_ATTRIBUTE_BUFFER_ID + CU_POINTER_ATTRIBUTE_IS_MANAGED + CU_POINTER_ATTRIBUTE_DEVICE_ORDINAL + CU_POINTER_ATTRIBUTE_IS_LEGACY_CUDA_IPC_CAPABLE + CU_POINTER_ATTRIBUTE_RANGE_START_ADDR + CU_POINTER_ATTRIBUTE_RANGE_SIZE + CU_POINTER_ATTRIBUTE_MAPPED + CU_POINTER_ATTRIBUTE_ALLOWED_HANDLE_TYPES + CU_POINTER_ATTRIBUTE_IS_GPU_DIRECT_RDMA_CAPABLE + CU_POINTER_ATTRIBUTE_ACCESS_FLAGS + CU_POINTER_ATTRIBUTE_MEMPOOL_HANDLE + CU_POINTER_ATTRIBUTE_MAPPING_SIZE + CU_POINTER_ATTRIBUTE_MAPPING_BASE_ADDR + CU_POINTER_ATTRIBUTE_MEMORY_BLOCK_ID + CU_POINTER_ATTRIBUTE_IS_HW_DECOMPRESS_CAPABLE + ctypedef CUpointer_attribute_enum CUpointer_attribute + +cdef extern from '': + ctypedef enum CUfunction_attribute_enum: + CU_FUNC_ATTRIBUTE_MAX_THREADS_PER_BLOCK + CU_FUNC_ATTRIBUTE_SHARED_SIZE_BYTES + CU_FUNC_ATTRIBUTE_CONST_SIZE_BYTES + CU_FUNC_ATTRIBUTE_LOCAL_SIZE_BYTES + CU_FUNC_ATTRIBUTE_NUM_REGS + CU_FUNC_ATTRIBUTE_PTX_VERSION + CU_FUNC_ATTRIBUTE_BINARY_VERSION + CU_FUNC_ATTRIBUTE_CACHE_MODE_CA + CU_FUNC_ATTRIBUTE_MAX_DYNAMIC_SHARED_SIZE_BYTES + CU_FUNC_ATTRIBUTE_PREFERRED_SHARED_MEMORY_CARVEOUT + CU_FUNC_ATTRIBUTE_CLUSTER_SIZE_MUST_BE_SET + CU_FUNC_ATTRIBUTE_REQUIRED_CLUSTER_WIDTH + CU_FUNC_ATTRIBUTE_REQUIRED_CLUSTER_HEIGHT + CU_FUNC_ATTRIBUTE_REQUIRED_CLUSTER_DEPTH + CU_FUNC_ATTRIBUTE_NON_PORTABLE_CLUSTER_SIZE_ALLOWED + CU_FUNC_ATTRIBUTE_CLUSTER_SCHEDULING_POLICY_PREFERENCE + CU_FUNC_ATTRIBUTE_MAX + ctypedef CUfunction_attribute_enum CUfunction_attribute + +cdef extern from '': + ctypedef enum CUfunc_cache_enum: + CU_FUNC_CACHE_PREFER_NONE + CU_FUNC_CACHE_PREFER_SHARED + CU_FUNC_CACHE_PREFER_L1 + CU_FUNC_CACHE_PREFER_EQUAL + ctypedef CUfunc_cache_enum CUfunc_cache + +cdef extern from '': + ctypedef 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 '': + ctypedef 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 '': + ctypedef enum CUmemorytype_enum: + CU_MEMORYTYPE_HOST + CU_MEMORYTYPE_DEVICE + CU_MEMORYTYPE_ARRAY + CU_MEMORYTYPE_UNIFIED + ctypedef CUmemorytype_enum CUmemorytype + +cdef extern from '': + ctypedef enum CUcomputemode_enum: + CU_COMPUTEMODE_DEFAULT + CU_COMPUTEMODE_PROHIBITED + CU_COMPUTEMODE_EXCLUSIVE_PROCESS + ctypedef CUcomputemode_enum CUcomputemode + +cdef extern from '': + ctypedef enum CUmem_advise_enum: + CU_MEM_ADVISE_SET_READ_MOSTLY + CU_MEM_ADVISE_UNSET_READ_MOSTLY + CU_MEM_ADVISE_SET_PREFERRED_LOCATION + CU_MEM_ADVISE_UNSET_PREFERRED_LOCATION + CU_MEM_ADVISE_SET_ACCESSED_BY + CU_MEM_ADVISE_UNSET_ACCESSED_BY + ctypedef CUmem_advise_enum CUmem_advise + +cdef extern from '': + ctypedef enum CUmem_range_attribute_enum: + CU_MEM_RANGE_ATTRIBUTE_READ_MOSTLY + CU_MEM_RANGE_ATTRIBUTE_PREFERRED_LOCATION + CU_MEM_RANGE_ATTRIBUTE_ACCESSED_BY + CU_MEM_RANGE_ATTRIBUTE_LAST_PREFETCH_LOCATION + CU_MEM_RANGE_ATTRIBUTE_PREFERRED_LOCATION_TYPE + CU_MEM_RANGE_ATTRIBUTE_PREFERRED_LOCATION_ID + CU_MEM_RANGE_ATTRIBUTE_LAST_PREFETCH_LOCATION_TYPE + CU_MEM_RANGE_ATTRIBUTE_LAST_PREFETCH_LOCATION_ID + ctypedef CUmem_range_attribute_enum CUmem_range_attribute + +cdef extern from '': + ctypedef enum CUjit_option_enum: + CU_JIT_MAX_REGISTERS + CU_JIT_THREADS_PER_BLOCK + CU_JIT_WALL_TIME + CU_JIT_INFO_LOG_BUFFER + CU_JIT_INFO_LOG_BUFFER_SIZE_BYTES + CU_JIT_ERROR_LOG_BUFFER + CU_JIT_ERROR_LOG_BUFFER_SIZE_BYTES + CU_JIT_OPTIMIZATION_LEVEL + CU_JIT_TARGET_FROM_CUCONTEXT + CU_JIT_TARGET + CU_JIT_FALLBACK_STRATEGY + CU_JIT_GENERATE_DEBUG_INFO + CU_JIT_LOG_VERBOSE + CU_JIT_GENERATE_LINE_INFO + CU_JIT_CACHE_MODE + CU_JIT_NEW_SM3X_OPT + CU_JIT_FAST_COMPILE + CU_JIT_GLOBAL_SYMBOL_NAMES + CU_JIT_GLOBAL_SYMBOL_ADDRESSES + CU_JIT_GLOBAL_SYMBOL_COUNT + CU_JIT_LTO + CU_JIT_FTZ + CU_JIT_PREC_DIV + CU_JIT_PREC_SQRT + CU_JIT_FMA + CU_JIT_REFERENCED_KERNEL_NAMES + CU_JIT_REFERENCED_KERNEL_COUNT + CU_JIT_REFERENCED_VARIABLE_NAMES + CU_JIT_REFERENCED_VARIABLE_COUNT + CU_JIT_OPTIMIZE_UNUSED_DEVICE_VARIABLES + CU_JIT_POSITION_INDEPENDENT_CODE + CU_JIT_MIN_CTA_PER_SM + CU_JIT_MAX_THREADS_PER_BLOCK + CU_JIT_OVERRIDE_DIRECTIVE_VALUES + CU_JIT_SPLIT_COMPILE + CU_JIT_BINARY_LOADER_THREAD_COUNT + CU_JIT_NUM_OPTIONS + ctypedef CUjit_option_enum CUjit_option + +cdef extern from '': + ctypedef enum CUjit_target_enum: + CU_TARGET_COMPUTE_30 + CU_TARGET_COMPUTE_32 + CU_TARGET_COMPUTE_35 + CU_TARGET_COMPUTE_37 + CU_TARGET_COMPUTE_50 + CU_TARGET_COMPUTE_52 + CU_TARGET_COMPUTE_53 + CU_TARGET_COMPUTE_60 + CU_TARGET_COMPUTE_61 + CU_TARGET_COMPUTE_62 + CU_TARGET_COMPUTE_70 + CU_TARGET_COMPUTE_72 + CU_TARGET_COMPUTE_75 + CU_TARGET_COMPUTE_80 + CU_TARGET_COMPUTE_86 + CU_TARGET_COMPUTE_87 + CU_TARGET_COMPUTE_89 + CU_TARGET_COMPUTE_90 + CU_TARGET_COMPUTE_100 + CU_TARGET_COMPUTE_110 + CU_TARGET_COMPUTE_103 + CU_TARGET_COMPUTE_120 + CU_TARGET_COMPUTE_121 + CU_TARGET_COMPUTE_90A + CU_TARGET_COMPUTE_100A + CU_TARGET_COMPUTE_110A + CU_TARGET_COMPUTE_103A + CU_TARGET_COMPUTE_120A + CU_TARGET_COMPUTE_121A + CU_TARGET_COMPUTE_100F + CU_TARGET_COMPUTE_110F + CU_TARGET_COMPUTE_103F + CU_TARGET_COMPUTE_120F + CU_TARGET_COMPUTE_121F + CU_TARGET_COMPUTE_101 + CU_TARGET_COMPUTE_101A + CU_TARGET_COMPUTE_101F + ctypedef CUjit_target_enum CUjit_target + +cdef extern from '': + ctypedef enum CUjit_fallback_enum: + CU_PREFER_PTX + CU_PREFER_BINARY + ctypedef CUjit_fallback_enum CUjit_fallback + +cdef extern from '': + ctypedef 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 '': + ctypedef enum CUjitInputType_enum: + CU_JIT_INPUT_CUBIN + CU_JIT_INPUT_PTX + CU_JIT_INPUT_FATBINARY + CU_JIT_INPUT_OBJECT + CU_JIT_INPUT_LIBRARY + CU_JIT_INPUT_NVVM + CU_JIT_NUM_INPUT_TYPES + ctypedef CUjitInputType_enum CUjitInputType + +cdef extern from '': + ctypedef enum CUgraphicsRegisterFlags_enum: + CU_GRAPHICS_REGISTER_FLAGS_NONE + CU_GRAPHICS_REGISTER_FLAGS_READ_ONLY + CU_GRAPHICS_REGISTER_FLAGS_WRITE_DISCARD + CU_GRAPHICS_REGISTER_FLAGS_SURFACE_LDST + CU_GRAPHICS_REGISTER_FLAGS_TEXTURE_GATHER + ctypedef CUgraphicsRegisterFlags_enum CUgraphicsRegisterFlags + +cdef extern from '': + ctypedef 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 '': + ctypedef enum CUarray_cubemap_face_enum: + CU_CUBEMAP_FACE_POSITIVE_X + CU_CUBEMAP_FACE_NEGATIVE_X + CU_CUBEMAP_FACE_POSITIVE_Y + CU_CUBEMAP_FACE_NEGATIVE_Y + CU_CUBEMAP_FACE_POSITIVE_Z + CU_CUBEMAP_FACE_NEGATIVE_Z + ctypedef CUarray_cubemap_face_enum CUarray_cubemap_face + +cdef extern from '': + ctypedef enum CUlimit_enum: + CU_LIMIT_STACK_SIZE + CU_LIMIT_PRINTF_FIFO_SIZE + CU_LIMIT_MALLOC_HEAP_SIZE + CU_LIMIT_DEV_RUNTIME_SYNC_DEPTH + CU_LIMIT_DEV_RUNTIME_PENDING_LAUNCH_COUNT + CU_LIMIT_MAX_L2_FETCH_GRANULARITY + CU_LIMIT_PERSISTING_L2_CACHE_SIZE + CU_LIMIT_SHMEM_SIZE + CU_LIMIT_CIG_ENABLED + CU_LIMIT_CIG_SHMEM_FALLBACK_ENABLED + CU_LIMIT_MAX + ctypedef CUlimit_enum CUlimit + +cdef extern from '': + ctypedef enum CUresourcetype_enum: + CU_RESOURCE_TYPE_ARRAY + CU_RESOURCE_TYPE_MIPMAPPED_ARRAY + CU_RESOURCE_TYPE_LINEAR + CU_RESOURCE_TYPE_PITCH2D + ctypedef CUresourcetype_enum CUresourcetype + +cdef extern from '': + ctypedef enum CUaccessProperty_enum: + CU_ACCESS_PROPERTY_NORMAL + CU_ACCESS_PROPERTY_STREAMING + CU_ACCESS_PROPERTY_PERSISTING + ctypedef CUaccessProperty_enum CUaccessProperty + +cdef extern from '': + ctypedef 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 '': + ctypedef enum CUgraphNodeType_enum: + CU_GRAPH_NODE_TYPE_KERNEL + CU_GRAPH_NODE_TYPE_MEMCPY + CU_GRAPH_NODE_TYPE_MEMSET + CU_GRAPH_NODE_TYPE_HOST + CU_GRAPH_NODE_TYPE_GRAPH + CU_GRAPH_NODE_TYPE_EMPTY + CU_GRAPH_NODE_TYPE_WAIT_EVENT + CU_GRAPH_NODE_TYPE_EVENT_RECORD + CU_GRAPH_NODE_TYPE_EXT_SEMAS_SIGNAL + CU_GRAPH_NODE_TYPE_EXT_SEMAS_WAIT + CU_GRAPH_NODE_TYPE_MEM_ALLOC + CU_GRAPH_NODE_TYPE_MEM_FREE + CU_GRAPH_NODE_TYPE_BATCH_MEM_OP + CU_GRAPH_NODE_TYPE_CONDITIONAL + ctypedef CUgraphNodeType_enum CUgraphNodeType + +cdef extern from '': + ctypedef enum CUgraphDependencyType_enum: + CU_GRAPH_DEPENDENCY_TYPE_DEFAULT + CU_GRAPH_DEPENDENCY_TYPE_PROGRAMMATIC + ctypedef CUgraphDependencyType_enum CUgraphDependencyType + +cdef extern from '': + ctypedef enum CUgraphInstantiateResult_enum: + CUDA_GRAPH_INSTANTIATE_SUCCESS + CUDA_GRAPH_INSTANTIATE_ERROR + CUDA_GRAPH_INSTANTIATE_INVALID_STRUCTURE + CUDA_GRAPH_INSTANTIATE_NODE_OPERATION_NOT_SUPPORTED + CUDA_GRAPH_INSTANTIATE_MULTIPLE_CTXS_NOT_SUPPORTED + CUDA_GRAPH_INSTANTIATE_CONDITIONAL_HANDLE_UNUSED + ctypedef CUgraphInstantiateResult_enum CUgraphInstantiateResult + +cdef extern from '': + ctypedef enum CUsynchronizationPolicy_enum: + CU_SYNC_POLICY_AUTO + CU_SYNC_POLICY_SPIN + CU_SYNC_POLICY_YIELD + CU_SYNC_POLICY_BLOCKING_SYNC + ctypedef CUsynchronizationPolicy_enum CUsynchronizationPolicy + +cdef extern from '': + ctypedef 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 '': + ctypedef enum CUlaunchMemSyncDomain_enum: + CU_LAUNCH_MEM_SYNC_DOMAIN_DEFAULT + CU_LAUNCH_MEM_SYNC_DOMAIN_REMOTE + ctypedef CUlaunchMemSyncDomain_enum CUlaunchMemSyncDomain + +cdef extern from '': + ctypedef enum CUlaunchAttributeID_enum: + CU_LAUNCH_ATTRIBUTE_IGNORE + CU_LAUNCH_ATTRIBUTE_ACCESS_POLICY_WINDOW + CU_LAUNCH_ATTRIBUTE_COOPERATIVE + CU_LAUNCH_ATTRIBUTE_SYNCHRONIZATION_POLICY + CU_LAUNCH_ATTRIBUTE_CLUSTER_DIMENSION + CU_LAUNCH_ATTRIBUTE_CLUSTER_SCHEDULING_POLICY_PREFERENCE + CU_LAUNCH_ATTRIBUTE_PROGRAMMATIC_STREAM_SERIALIZATION + CU_LAUNCH_ATTRIBUTE_PROGRAMMATIC_EVENT + CU_LAUNCH_ATTRIBUTE_PRIORITY + CU_LAUNCH_ATTRIBUTE_MEM_SYNC_DOMAIN_MAP + CU_LAUNCH_ATTRIBUTE_MEM_SYNC_DOMAIN + CU_LAUNCH_ATTRIBUTE_PREFERRED_CLUSTER_DIMENSION + CU_LAUNCH_ATTRIBUTE_LAUNCH_COMPLETION_EVENT + CU_LAUNCH_ATTRIBUTE_DEVICE_UPDATABLE_KERNEL_NODE + CU_LAUNCH_ATTRIBUTE_PREFERRED_SHARED_MEMORY_CARVEOUT + CU_LAUNCH_ATTRIBUTE_NVLINK_UTIL_CENTRIC_SCHEDULING + CU_LAUNCH_ATTRIBUTE_PORTABLE_CLUSTER_SIZE_MODE + CU_LAUNCH_ATTRIBUTE_SHARED_MEMORY_MODE + ctypedef CUlaunchAttributeID_enum CUlaunchAttributeID + +cdef extern from '': + ctypedef 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 '': + ctypedef 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 '': + ctypedef 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 '': + ctypedef 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 '': + ctypedef enum CUexecAffinityType_enum: + CU_EXEC_AFFINITY_TYPE_SM_COUNT + CU_EXEC_AFFINITY_TYPE_MAX + ctypedef CUexecAffinityType_enum CUexecAffinityType + +cdef extern from '': + ctypedef enum CUcigDataType_enum: + CIG_DATA_TYPE_D3D12_COMMAND_QUEUE + CIG_DATA_TYPE_NV_BLOB + ctypedef CUcigDataType_enum CUcigDataType + +cdef extern from '': + ctypedef 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 '': + ctypedef enum cudaError_enum: + CUDA_SUCCESS + CUDA_ERROR_INVALID_VALUE + CUDA_ERROR_OUT_OF_MEMORY + CUDA_ERROR_NOT_INITIALIZED + CUDA_ERROR_DEINITIALIZED + CUDA_ERROR_PROFILER_DISABLED + CUDA_ERROR_PROFILER_NOT_INITIALIZED + CUDA_ERROR_PROFILER_ALREADY_STARTED + CUDA_ERROR_PROFILER_ALREADY_STOPPED + CUDA_ERROR_STUB_LIBRARY + CUDA_ERROR_CALL_REQUIRES_NEWER_DRIVER + CUDA_ERROR_DEVICE_UNAVAILABLE + CUDA_ERROR_NO_DEVICE + CUDA_ERROR_INVALID_DEVICE + CUDA_ERROR_DEVICE_NOT_LICENSED + CUDA_ERROR_INVALID_IMAGE + CUDA_ERROR_INVALID_CONTEXT + CUDA_ERROR_CONTEXT_ALREADY_CURRENT + CUDA_ERROR_MAP_FAILED + CUDA_ERROR_UNMAP_FAILED + CUDA_ERROR_ARRAY_IS_MAPPED + CUDA_ERROR_ALREADY_MAPPED + CUDA_ERROR_NO_BINARY_FOR_GPU + CUDA_ERROR_ALREADY_ACQUIRED + CUDA_ERROR_NOT_MAPPED + CUDA_ERROR_NOT_MAPPED_AS_ARRAY + CUDA_ERROR_NOT_MAPPED_AS_POINTER + CUDA_ERROR_ECC_UNCORRECTABLE + CUDA_ERROR_UNSUPPORTED_LIMIT + CUDA_ERROR_CONTEXT_ALREADY_IN_USE + CUDA_ERROR_PEER_ACCESS_UNSUPPORTED + CUDA_ERROR_INVALID_PTX + CUDA_ERROR_INVALID_GRAPHICS_CONTEXT + CUDA_ERROR_NVLINK_UNCORRECTABLE + CUDA_ERROR_JIT_COMPILER_NOT_FOUND + CUDA_ERROR_UNSUPPORTED_PTX_VERSION + CUDA_ERROR_JIT_COMPILATION_DISABLED + CUDA_ERROR_UNSUPPORTED_EXEC_AFFINITY + CUDA_ERROR_UNSUPPORTED_DEVSIDE_SYNC + CUDA_ERROR_CONTAINED + CUDA_ERROR_INVALID_SOURCE + CUDA_ERROR_FILE_NOT_FOUND + CUDA_ERROR_SHARED_OBJECT_SYMBOL_NOT_FOUND + CUDA_ERROR_SHARED_OBJECT_INIT_FAILED + CUDA_ERROR_OPERATING_SYSTEM + CUDA_ERROR_INVALID_HANDLE + CUDA_ERROR_ILLEGAL_STATE + CUDA_ERROR_LOSSY_QUERY + CUDA_ERROR_NOT_FOUND + CUDA_ERROR_NOT_READY + CUDA_ERROR_ILLEGAL_ADDRESS + CUDA_ERROR_LAUNCH_OUT_OF_RESOURCES + CUDA_ERROR_LAUNCH_TIMEOUT + CUDA_ERROR_LAUNCH_INCOMPATIBLE_TEXTURING + CUDA_ERROR_PEER_ACCESS_ALREADY_ENABLED + CUDA_ERROR_PEER_ACCESS_NOT_ENABLED + CUDA_ERROR_PRIMARY_CONTEXT_ACTIVE + CUDA_ERROR_CONTEXT_IS_DESTROYED + CUDA_ERROR_ASSERT + CUDA_ERROR_TOO_MANY_PEERS + CUDA_ERROR_HOST_MEMORY_ALREADY_REGISTERED + CUDA_ERROR_HOST_MEMORY_NOT_REGISTERED + CUDA_ERROR_HARDWARE_STACK_ERROR + CUDA_ERROR_ILLEGAL_INSTRUCTION + CUDA_ERROR_MISALIGNED_ADDRESS + CUDA_ERROR_INVALID_ADDRESS_SPACE + CUDA_ERROR_INVALID_PC + CUDA_ERROR_LAUNCH_FAILED + CUDA_ERROR_COOPERATIVE_LAUNCH_TOO_LARGE + CUDA_ERROR_TENSOR_MEMORY_LEAK + CUDA_ERROR_NOT_PERMITTED + CUDA_ERROR_NOT_SUPPORTED + CUDA_ERROR_SYSTEM_NOT_READY + CUDA_ERROR_SYSTEM_DRIVER_MISMATCH + CUDA_ERROR_COMPAT_NOT_SUPPORTED_ON_DEVICE + CUDA_ERROR_MPS_CONNECTION_FAILED + CUDA_ERROR_MPS_RPC_FAILURE + CUDA_ERROR_MPS_SERVER_NOT_READY + CUDA_ERROR_MPS_MAX_CLIENTS_REACHED + CUDA_ERROR_MPS_MAX_CONNECTIONS_REACHED + CUDA_ERROR_MPS_CLIENT_TERMINATED + CUDA_ERROR_CDP_NOT_SUPPORTED + CUDA_ERROR_CDP_VERSION_MISMATCH + CUDA_ERROR_STREAM_CAPTURE_UNSUPPORTED + CUDA_ERROR_STREAM_CAPTURE_INVALIDATED + CUDA_ERROR_STREAM_CAPTURE_MERGE + CUDA_ERROR_STREAM_CAPTURE_UNMATCHED + CUDA_ERROR_STREAM_CAPTURE_UNJOINED + CUDA_ERROR_STREAM_CAPTURE_ISOLATION + CUDA_ERROR_STREAM_CAPTURE_IMPLICIT + CUDA_ERROR_CAPTURED_EVENT + CUDA_ERROR_STREAM_CAPTURE_WRONG_THREAD + CUDA_ERROR_TIMEOUT + CUDA_ERROR_GRAPH_EXEC_UPDATE_FAILURE + CUDA_ERROR_EXTERNAL_DEVICE + CUDA_ERROR_INVALID_CLUSTER_SIZE + CUDA_ERROR_FUNCTION_NOT_LOADED + CUDA_ERROR_INVALID_RESOURCE_TYPE + CUDA_ERROR_INVALID_RESOURCE_CONFIGURATION + CUDA_ERROR_KEY_ROTATION + CUDA_ERROR_STREAM_DETACHED + CUDA_ERROR_UNKNOWN + ctypedef cudaError_enum CUresult + +cdef extern from '': + ctypedef enum CUdevice_P2PAttribute_enum: + CU_DEVICE_P2P_ATTRIBUTE_PERFORMANCE_RANK + CU_DEVICE_P2P_ATTRIBUTE_ACCESS_SUPPORTED + CU_DEVICE_P2P_ATTRIBUTE_NATIVE_ATOMIC_SUPPORTED + CU_DEVICE_P2P_ATTRIBUTE_ACCESS_ACCESS_SUPPORTED + CU_DEVICE_P2P_ATTRIBUTE_CUDA_ARRAY_ACCESS_SUPPORTED + CU_DEVICE_P2P_ATTRIBUTE_ONLY_PARTIAL_NATIVE_ATOMIC_SUPPORTED + ctypedef CUdevice_P2PAttribute_enum CUdevice_P2PAttribute + +cdef extern from '': + ctypedef enum CUresourceViewFormat_enum: + CU_RES_VIEW_FORMAT_NONE + CU_RES_VIEW_FORMAT_UINT_1X8 + CU_RES_VIEW_FORMAT_UINT_2X8 + CU_RES_VIEW_FORMAT_UINT_4X8 + CU_RES_VIEW_FORMAT_SINT_1X8 + CU_RES_VIEW_FORMAT_SINT_2X8 + CU_RES_VIEW_FORMAT_SINT_4X8 + CU_RES_VIEW_FORMAT_UINT_1X16 + CU_RES_VIEW_FORMAT_UINT_2X16 + CU_RES_VIEW_FORMAT_UINT_4X16 + CU_RES_VIEW_FORMAT_SINT_1X16 + CU_RES_VIEW_FORMAT_SINT_2X16 + CU_RES_VIEW_FORMAT_SINT_4X16 + CU_RES_VIEW_FORMAT_UINT_1X32 + CU_RES_VIEW_FORMAT_UINT_2X32 + CU_RES_VIEW_FORMAT_UINT_4X32 + CU_RES_VIEW_FORMAT_SINT_1X32 + CU_RES_VIEW_FORMAT_SINT_2X32 + CU_RES_VIEW_FORMAT_SINT_4X32 + CU_RES_VIEW_FORMAT_FLOAT_1X16 + CU_RES_VIEW_FORMAT_FLOAT_2X16 + CU_RES_VIEW_FORMAT_FLOAT_4X16 + CU_RES_VIEW_FORMAT_FLOAT_1X32 + CU_RES_VIEW_FORMAT_FLOAT_2X32 + CU_RES_VIEW_FORMAT_FLOAT_4X32 + CU_RES_VIEW_FORMAT_UNSIGNED_BC1 + CU_RES_VIEW_FORMAT_UNSIGNED_BC2 + CU_RES_VIEW_FORMAT_UNSIGNED_BC3 + CU_RES_VIEW_FORMAT_UNSIGNED_BC4 + CU_RES_VIEW_FORMAT_SIGNED_BC4 + CU_RES_VIEW_FORMAT_UNSIGNED_BC5 + CU_RES_VIEW_FORMAT_SIGNED_BC5 + CU_RES_VIEW_FORMAT_UNSIGNED_BC6H + CU_RES_VIEW_FORMAT_SIGNED_BC6H + CU_RES_VIEW_FORMAT_UNSIGNED_BC7 + ctypedef CUresourceViewFormat_enum CUresourceViewFormat + +cdef extern from '': + ctypedef enum CUtensorMapDataType_enum: + CU_TENSOR_MAP_DATA_TYPE_UINT8 + CU_TENSOR_MAP_DATA_TYPE_UINT16 + CU_TENSOR_MAP_DATA_TYPE_UINT32 + CU_TENSOR_MAP_DATA_TYPE_INT32 + CU_TENSOR_MAP_DATA_TYPE_UINT64 + CU_TENSOR_MAP_DATA_TYPE_INT64 + CU_TENSOR_MAP_DATA_TYPE_FLOAT16 + CU_TENSOR_MAP_DATA_TYPE_FLOAT32 + CU_TENSOR_MAP_DATA_TYPE_FLOAT64 + CU_TENSOR_MAP_DATA_TYPE_BFLOAT16 + CU_TENSOR_MAP_DATA_TYPE_FLOAT32_FTZ + CU_TENSOR_MAP_DATA_TYPE_TFLOAT32 + CU_TENSOR_MAP_DATA_TYPE_TFLOAT32_FTZ + CU_TENSOR_MAP_DATA_TYPE_16U4_ALIGN8B + CU_TENSOR_MAP_DATA_TYPE_16U4_ALIGN16B + CU_TENSOR_MAP_DATA_TYPE_16U6_ALIGN16B + ctypedef CUtensorMapDataType_enum CUtensorMapDataType + +cdef extern from '': + ctypedef 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 '': + ctypedef enum CUtensorMapSwizzle_enum: + CU_TENSOR_MAP_SWIZZLE_NONE + CU_TENSOR_MAP_SWIZZLE_32B + CU_TENSOR_MAP_SWIZZLE_64B + CU_TENSOR_MAP_SWIZZLE_128B + CU_TENSOR_MAP_SWIZZLE_128B_ATOM_32B + CU_TENSOR_MAP_SWIZZLE_128B_ATOM_32B_FLIP_8B + CU_TENSOR_MAP_SWIZZLE_128B_ATOM_64B + ctypedef CUtensorMapSwizzle_enum CUtensorMapSwizzle + +cdef extern from '': + ctypedef enum CUtensorMapL2promotion_enum: + CU_TENSOR_MAP_L2_PROMOTION_NONE + CU_TENSOR_MAP_L2_PROMOTION_L2_64B + CU_TENSOR_MAP_L2_PROMOTION_L2_128B + CU_TENSOR_MAP_L2_PROMOTION_L2_256B + ctypedef CUtensorMapL2promotion_enum CUtensorMapL2promotion + +cdef extern from '': + ctypedef 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 '': + ctypedef enum CUtensorMapIm2ColWideMode_enum: + CU_TENSOR_MAP_IM2COL_WIDE_MODE_W + CU_TENSOR_MAP_IM2COL_WIDE_MODE_W128 + ctypedef CUtensorMapIm2ColWideMode_enum CUtensorMapIm2ColWideMode + +cdef extern from '': + ctypedef 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 '': + ctypedef 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 + CU_EXTERNAL_MEMORY_HANDLE_TYPE_D3D12_HEAP + CU_EXTERNAL_MEMORY_HANDLE_TYPE_D3D12_RESOURCE + CU_EXTERNAL_MEMORY_HANDLE_TYPE_D3D11_RESOURCE + CU_EXTERNAL_MEMORY_HANDLE_TYPE_D3D11_RESOURCE_KMT + CU_EXTERNAL_MEMORY_HANDLE_TYPE_NVSCIBUF + CU_EXTERNAL_MEMORY_HANDLE_TYPE_DMABUF_FD + ctypedef CUexternalMemoryHandleType_enum CUexternalMemoryHandleType + +cdef extern from '': + ctypedef 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 + CU_EXTERNAL_SEMAPHORE_HANDLE_TYPE_D3D12_FENCE + CU_EXTERNAL_SEMAPHORE_HANDLE_TYPE_D3D11_FENCE + CU_EXTERNAL_SEMAPHORE_HANDLE_TYPE_NVSCISYNC + CU_EXTERNAL_SEMAPHORE_HANDLE_TYPE_D3D11_KEYED_MUTEX + CU_EXTERNAL_SEMAPHORE_HANDLE_TYPE_D3D11_KEYED_MUTEX_KMT + CU_EXTERNAL_SEMAPHORE_HANDLE_TYPE_TIMELINE_SEMAPHORE_FD + CU_EXTERNAL_SEMAPHORE_HANDLE_TYPE_TIMELINE_SEMAPHORE_WIN32 + ctypedef CUexternalSemaphoreHandleType_enum CUexternalSemaphoreHandleType + +cdef extern from '': + ctypedef enum CUmemAllocationHandleType_enum: + CU_MEM_HANDLE_TYPE_NONE + CU_MEM_HANDLE_TYPE_POSIX_FILE_DESCRIPTOR + CU_MEM_HANDLE_TYPE_WIN32 + CU_MEM_HANDLE_TYPE_WIN32_KMT + CU_MEM_HANDLE_TYPE_FABRIC + CU_MEM_HANDLE_TYPE_MAX + ctypedef CUmemAllocationHandleType_enum CUmemAllocationHandleType + +cdef extern from '': + ctypedef enum CUmemAccess_flags_enum: + CU_MEM_ACCESS_FLAGS_PROT_NONE + CU_MEM_ACCESS_FLAGS_PROT_READ + CU_MEM_ACCESS_FLAGS_PROT_READWRITE + CU_MEM_ACCESS_FLAGS_PROT_MAX + ctypedef CUmemAccess_flags_enum CUmemAccess_flags + +cdef extern from '': + ctypedef enum CUmemLocationType_enum: + CU_MEM_LOCATION_TYPE_INVALID + CU_MEM_LOCATION_TYPE_NONE + CU_MEM_LOCATION_TYPE_DEVICE + CU_MEM_LOCATION_TYPE_HOST + CU_MEM_LOCATION_TYPE_HOST_NUMA + CU_MEM_LOCATION_TYPE_HOST_NUMA_CURRENT + CU_MEM_LOCATION_TYPE_INVISIBLE + CU_MEM_LOCATION_TYPE_MAX + ctypedef CUmemLocationType_enum CUmemLocationType + +cdef extern from '': + ctypedef enum CUmemAllocationType_enum: + CU_MEM_ALLOCATION_TYPE_INVALID + CU_MEM_ALLOCATION_TYPE_PINNED + CU_MEM_ALLOCATION_TYPE_MANAGED + CU_MEM_ALLOCATION_TYPE_MAX + ctypedef CUmemAllocationType_enum CUmemAllocationType + +cdef extern from '': + ctypedef enum CUmemAllocationGranularity_flags_enum: + CU_MEM_ALLOC_GRANULARITY_MINIMUM + CU_MEM_ALLOC_GRANULARITY_RECOMMENDED + ctypedef CUmemAllocationGranularity_flags_enum CUmemAllocationGranularity_flags + +cdef extern from '': + ctypedef enum CUmemRangeHandleType_enum: + CU_MEM_RANGE_HANDLE_TYPE_DMA_BUF_FD + CU_MEM_RANGE_HANDLE_TYPE_MAX + ctypedef CUmemRangeHandleType_enum CUmemRangeHandleType + +cdef extern from '': + ctypedef enum CUmemRangeFlags_enum: + CU_MEM_RANGE_FLAG_DMA_BUF_MAPPING_TYPE_PCIE + ctypedef CUmemRangeFlags_enum CUmemRangeFlags + +cdef extern from '': + ctypedef enum CUarraySparseSubresourceType_enum: + CU_ARRAY_SPARSE_SUBRESOURCE_TYPE_SPARSE_LEVEL + CU_ARRAY_SPARSE_SUBRESOURCE_TYPE_MIPTAIL + ctypedef CUarraySparseSubresourceType_enum CUarraySparseSubresourceType + +cdef extern from '': + ctypedef enum CUmemOperationType_enum: + CU_MEM_OPERATION_TYPE_MAP + CU_MEM_OPERATION_TYPE_UNMAP + ctypedef CUmemOperationType_enum CUmemOperationType + +cdef extern from '': + ctypedef enum CUmemHandleType_enum: + CU_MEM_HANDLE_TYPE_GENERIC + ctypedef CUmemHandleType_enum CUmemHandleType + +cdef extern from '': + ctypedef enum CUmemAllocationCompType_enum: + CU_MEM_ALLOCATION_COMP_NONE + CU_MEM_ALLOCATION_COMP_GENERIC + ctypedef CUmemAllocationCompType_enum CUmemAllocationCompType + +cdef extern from '': + ctypedef enum CUmulticastGranularity_flags_enum: + CU_MULTICAST_GRANULARITY_MINIMUM + CU_MULTICAST_GRANULARITY_RECOMMENDED + ctypedef CUmulticastGranularity_flags_enum CUmulticastGranularity_flags + +cdef extern from '': + ctypedef enum CUgraphExecUpdateResult_enum: + CU_GRAPH_EXEC_UPDATE_SUCCESS + CU_GRAPH_EXEC_UPDATE_ERROR + CU_GRAPH_EXEC_UPDATE_ERROR_TOPOLOGY_CHANGED + CU_GRAPH_EXEC_UPDATE_ERROR_NODE_TYPE_CHANGED + CU_GRAPH_EXEC_UPDATE_ERROR_FUNCTION_CHANGED + CU_GRAPH_EXEC_UPDATE_ERROR_PARAMETERS_CHANGED + CU_GRAPH_EXEC_UPDATE_ERROR_NOT_SUPPORTED + CU_GRAPH_EXEC_UPDATE_ERROR_UNSUPPORTED_FUNCTION_CHANGE + CU_GRAPH_EXEC_UPDATE_ERROR_ATTRIBUTES_CHANGED + ctypedef CUgraphExecUpdateResult_enum CUgraphExecUpdateResult + +cdef extern from '': + ctypedef enum CUmemPool_attribute_enum: + CU_MEMPOOL_ATTR_REUSE_FOLLOW_EVENT_DEPENDENCIES + CU_MEMPOOL_ATTR_REUSE_ALLOW_OPPORTUNISTIC + CU_MEMPOOL_ATTR_REUSE_ALLOW_INTERNAL_DEPENDENCIES + CU_MEMPOOL_ATTR_RELEASE_THRESHOLD + CU_MEMPOOL_ATTR_RESERVED_MEM_CURRENT + CU_MEMPOOL_ATTR_RESERVED_MEM_HIGH + CU_MEMPOOL_ATTR_USED_MEM_CURRENT + CU_MEMPOOL_ATTR_USED_MEM_HIGH + CU_MEMPOOL_ATTR_ALLOCATION_TYPE + CU_MEMPOOL_ATTR_EXPORT_HANDLE_TYPES + CU_MEMPOOL_ATTR_LOCATION_ID + CU_MEMPOOL_ATTR_LOCATION_TYPE + CU_MEMPOOL_ATTR_MAX_POOL_SIZE + CU_MEMPOOL_ATTR_HW_DECOMPRESS_ENABLED + ctypedef CUmemPool_attribute_enum CUmemPool_attribute + +cdef extern from '': + ctypedef enum CUmemcpyFlags_enum: + CU_MEMCPY_FLAG_DEFAULT + CU_MEMCPY_FLAG_PREFER_OVERLAP_WITH_COMPUTE + ctypedef CUmemcpyFlags_enum CUmemcpyFlags + +cdef extern from '': + ctypedef enum CUmemcpySrcAccessOrder_enum: + CU_MEMCPY_SRC_ACCESS_ORDER_INVALID + CU_MEMCPY_SRC_ACCESS_ORDER_STREAM + CU_MEMCPY_SRC_ACCESS_ORDER_DURING_API_CALL + CU_MEMCPY_SRC_ACCESS_ORDER_ANY + CU_MEMCPY_SRC_ACCESS_ORDER_MAX + ctypedef CUmemcpySrcAccessOrder_enum CUmemcpySrcAccessOrder + +cdef extern from '': + ctypedef 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 '': + ctypedef 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 + CU_GRAPH_MEM_ATTR_RESERVED_MEM_HIGH + ctypedef CUgraphMem_attribute_enum CUgraphMem_attribute + +cdef extern from '': + ctypedef 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 '': + ctypedef 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 '': + ctypedef 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 '': + ctypedef 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 '': + ctypedef enum CUflushGPUDirectRDMAWritesTarget_enum: + CU_FLUSH_GPU_DIRECT_RDMA_WRITES_TARGET_CURRENT_CTX + ctypedef CUflushGPUDirectRDMAWritesTarget_enum CUflushGPUDirectRDMAWritesTarget + +cdef extern from '': + ctypedef 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 + CU_GRAPH_DEBUG_DOT_FLAGS_MEMCPY_NODE_PARAMS + CU_GRAPH_DEBUG_DOT_FLAGS_MEMSET_NODE_PARAMS + CU_GRAPH_DEBUG_DOT_FLAGS_HOST_NODE_PARAMS + CU_GRAPH_DEBUG_DOT_FLAGS_EVENT_NODE_PARAMS + CU_GRAPH_DEBUG_DOT_FLAGS_EXT_SEMAS_SIGNAL_NODE_PARAMS + CU_GRAPH_DEBUG_DOT_FLAGS_EXT_SEMAS_WAIT_NODE_PARAMS + CU_GRAPH_DEBUG_DOT_FLAGS_KERNEL_NODE_ATTRIBUTES + CU_GRAPH_DEBUG_DOT_FLAGS_HANDLES + CU_GRAPH_DEBUG_DOT_FLAGS_MEM_ALLOC_NODE_PARAMS + CU_GRAPH_DEBUG_DOT_FLAGS_MEM_FREE_NODE_PARAMS + CU_GRAPH_DEBUG_DOT_FLAGS_BATCH_MEM_OP_NODE_PARAMS + CU_GRAPH_DEBUG_DOT_FLAGS_EXTRA_TOPO_INFO + CU_GRAPH_DEBUG_DOT_FLAGS_CONDITIONAL_NODE_PARAMS + ctypedef CUgraphDebugDot_flags_enum CUgraphDebugDot_flags + +cdef extern from '': + ctypedef enum CUuserObject_flags_enum: + CU_USER_OBJECT_NO_DESTRUCTOR_SYNC + ctypedef CUuserObject_flags_enum CUuserObject_flags + +cdef extern from '': + ctypedef enum CUuserObjectRetain_flags_enum: + CU_GRAPH_USER_OBJECT_MOVE + ctypedef CUuserObjectRetain_flags_enum CUuserObjectRetain_flags + +cdef extern from '': + ctypedef enum CUgraphInstantiate_flags_enum: + CUDA_GRAPH_INSTANTIATE_FLAG_AUTO_FREE_ON_LAUNCH + CUDA_GRAPH_INSTANTIATE_FLAG_UPLOAD + CUDA_GRAPH_INSTANTIATE_FLAG_DEVICE_LAUNCH + CUDA_GRAPH_INSTANTIATE_FLAG_USE_NODE_PRIORITY + ctypedef CUgraphInstantiate_flags_enum CUgraphInstantiate_flags + +cdef extern from '': + ctypedef enum CUdeviceNumaConfig_enum: + CU_DEVICE_NUMA_CONFIG_NONE + CU_DEVICE_NUMA_CONFIG_NUMA_NODE + ctypedef CUdeviceNumaConfig_enum CUdeviceNumaConfig + +cdef extern from '': + ctypedef enum CUprocessState_enum: + CU_PROCESS_STATE_RUNNING + CU_PROCESS_STATE_LOCKED + CU_PROCESS_STATE_CHECKPOINTED + CU_PROCESS_STATE_FAILED + ctypedef CUprocessState_enum CUprocessState + +cdef extern from '': + ctypedef enum CUmoduleLoadingMode_enum: + CU_MODULE_EAGER_LOADING + CU_MODULE_LAZY_LOADING + ctypedef CUmoduleLoadingMode_enum CUmoduleLoadingMode + +cdef extern from '': + ctypedef enum CUmemDecompressAlgorithm_enum: + CU_MEM_DECOMPRESS_UNSUPPORTED + CU_MEM_DECOMPRESS_ALGORITHM_DEFLATE + CU_MEM_DECOMPRESS_ALGORITHM_SNAPPY + CU_MEM_DECOMPRESS_ALGORITHM_LZ4 + ctypedef CUmemDecompressAlgorithm_enum CUmemDecompressAlgorithm + +cdef extern from '': + ctypedef 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 '': + ctypedef enum CUcoredumpSettings_enum: + CU_COREDUMP_ENABLE_ON_EXCEPTION + CU_COREDUMP_TRIGGER_HOST + CU_COREDUMP_LIGHTWEIGHT + CU_COREDUMP_ENABLE_USER_TRIGGER + CU_COREDUMP_FILE + CU_COREDUMP_PIPE + CU_COREDUMP_GENERATION_FLAGS + CU_COREDUMP_MAX + ctypedef CUcoredumpSettings_enum CUcoredumpSettings + +cdef extern from '': + ctypedef enum CUCoredumpGenerationFlags: + CU_COREDUMP_DEFAULT_FLAGS + CU_COREDUMP_SKIP_NONRELOCATED_ELF_IMAGES + CU_COREDUMP_SKIP_GLOBAL_MEMORY + CU_COREDUMP_SKIP_SHARED_MEMORY + CU_COREDUMP_SKIP_LOCAL_MEMORY + CU_COREDUMP_SKIP_ABORT + CU_COREDUMP_SKIP_CONSTBANK_MEMORY + CU_COREDUMP_GZIP_COMPRESS + CU_COREDUMP_LIGHTWEIGHT_FLAGS + +cdef extern from '': + ctypedef enum CUgreenCtxCreate_flags: + CU_GREEN_CTX_DEFAULT_STREAM + +cdef extern from '': + ctypedef enum 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 '': + ctypedef enum CUlogLevel_enum: + CU_LOG_LEVEL_ERROR + CU_LOG_LEVEL_WARNING + ctypedef CUlogLevel_enum CUlogLevel + +cdef extern from '': + ctypedef enum CUeglFrameType_enum: + CU_EGL_FRAME_TYPE_ARRAY + CU_EGL_FRAME_TYPE_PITCH + ctypedef CUeglFrameType_enum CUeglFrameType + +cdef extern from '': + ctypedef enum CUeglResourceLocationFlags_enum: + CU_EGL_RESOURCE_LOCATION_SYSMEM + CU_EGL_RESOURCE_LOCATION_VIDMEM + ctypedef CUeglResourceLocationFlags_enum CUeglResourceLocationFlags + +cdef extern from '': + ctypedef enum CUeglColorFormat_enum: + CU_EGL_COLOR_FORMAT_YUV420_PLANAR + CU_EGL_COLOR_FORMAT_YUV420_SEMIPLANAR + CU_EGL_COLOR_FORMAT_YUV422_PLANAR + CU_EGL_COLOR_FORMAT_YUV422_SEMIPLANAR + CU_EGL_COLOR_FORMAT_RGB + CU_EGL_COLOR_FORMAT_BGR + CU_EGL_COLOR_FORMAT_ARGB + CU_EGL_COLOR_FORMAT_RGBA + CU_EGL_COLOR_FORMAT_L + CU_EGL_COLOR_FORMAT_R + CU_EGL_COLOR_FORMAT_YUV444_PLANAR + CU_EGL_COLOR_FORMAT_YUV444_SEMIPLANAR + CU_EGL_COLOR_FORMAT_YUYV_422 + CU_EGL_COLOR_FORMAT_UYVY_422 + CU_EGL_COLOR_FORMAT_ABGR + CU_EGL_COLOR_FORMAT_BGRA + CU_EGL_COLOR_FORMAT_A + CU_EGL_COLOR_FORMAT_RG + CU_EGL_COLOR_FORMAT_AYUV + CU_EGL_COLOR_FORMAT_YVU444_SEMIPLANAR + CU_EGL_COLOR_FORMAT_YVU422_SEMIPLANAR + CU_EGL_COLOR_FORMAT_YVU420_SEMIPLANAR + CU_EGL_COLOR_FORMAT_Y10V10U10_444_SEMIPLANAR + CU_EGL_COLOR_FORMAT_Y10V10U10_420_SEMIPLANAR + CU_EGL_COLOR_FORMAT_Y12V12U12_444_SEMIPLANAR + CU_EGL_COLOR_FORMAT_Y12V12U12_420_SEMIPLANAR + CU_EGL_COLOR_FORMAT_VYUY_ER + CU_EGL_COLOR_FORMAT_UYVY_ER + CU_EGL_COLOR_FORMAT_YUYV_ER + CU_EGL_COLOR_FORMAT_YVYU_ER + CU_EGL_COLOR_FORMAT_YUV_ER + CU_EGL_COLOR_FORMAT_YUVA_ER + CU_EGL_COLOR_FORMAT_AYUV_ER + CU_EGL_COLOR_FORMAT_YUV444_PLANAR_ER + CU_EGL_COLOR_FORMAT_YUV422_PLANAR_ER + CU_EGL_COLOR_FORMAT_YUV420_PLANAR_ER + CU_EGL_COLOR_FORMAT_YUV444_SEMIPLANAR_ER + CU_EGL_COLOR_FORMAT_YUV422_SEMIPLANAR_ER + CU_EGL_COLOR_FORMAT_YUV420_SEMIPLANAR_ER + CU_EGL_COLOR_FORMAT_YVU444_PLANAR_ER + CU_EGL_COLOR_FORMAT_YVU422_PLANAR_ER + CU_EGL_COLOR_FORMAT_YVU420_PLANAR_ER + CU_EGL_COLOR_FORMAT_YVU444_SEMIPLANAR_ER + CU_EGL_COLOR_FORMAT_YVU422_SEMIPLANAR_ER + CU_EGL_COLOR_FORMAT_YVU420_SEMIPLANAR_ER + CU_EGL_COLOR_FORMAT_BAYER_RGGB + CU_EGL_COLOR_FORMAT_BAYER_BGGR + CU_EGL_COLOR_FORMAT_BAYER_GRBG + CU_EGL_COLOR_FORMAT_BAYER_GBRG + CU_EGL_COLOR_FORMAT_BAYER10_RGGB + CU_EGL_COLOR_FORMAT_BAYER10_BGGR + CU_EGL_COLOR_FORMAT_BAYER10_GRBG + CU_EGL_COLOR_FORMAT_BAYER10_GBRG + CU_EGL_COLOR_FORMAT_BAYER12_RGGB + CU_EGL_COLOR_FORMAT_BAYER12_BGGR + CU_EGL_COLOR_FORMAT_BAYER12_GRBG + CU_EGL_COLOR_FORMAT_BAYER12_GBRG + CU_EGL_COLOR_FORMAT_BAYER14_RGGB + CU_EGL_COLOR_FORMAT_BAYER14_BGGR + CU_EGL_COLOR_FORMAT_BAYER14_GRBG + CU_EGL_COLOR_FORMAT_BAYER14_GBRG + CU_EGL_COLOR_FORMAT_BAYER20_RGGB + CU_EGL_COLOR_FORMAT_BAYER20_BGGR + CU_EGL_COLOR_FORMAT_BAYER20_GRBG + CU_EGL_COLOR_FORMAT_BAYER20_GBRG + CU_EGL_COLOR_FORMAT_YVU444_PLANAR + CU_EGL_COLOR_FORMAT_YVU422_PLANAR + CU_EGL_COLOR_FORMAT_YVU420_PLANAR + CU_EGL_COLOR_FORMAT_BAYER_ISP_RGGB + CU_EGL_COLOR_FORMAT_BAYER_ISP_BGGR + CU_EGL_COLOR_FORMAT_BAYER_ISP_GRBG + CU_EGL_COLOR_FORMAT_BAYER_ISP_GBRG + CU_EGL_COLOR_FORMAT_BAYER_BCCR + CU_EGL_COLOR_FORMAT_BAYER_RCCB + CU_EGL_COLOR_FORMAT_BAYER_CRBC + CU_EGL_COLOR_FORMAT_BAYER_CBRC + CU_EGL_COLOR_FORMAT_BAYER10_CCCC + CU_EGL_COLOR_FORMAT_BAYER12_BCCR + CU_EGL_COLOR_FORMAT_BAYER12_RCCB + CU_EGL_COLOR_FORMAT_BAYER12_CRBC + CU_EGL_COLOR_FORMAT_BAYER12_CBRC + CU_EGL_COLOR_FORMAT_BAYER12_CCCC + CU_EGL_COLOR_FORMAT_Y + CU_EGL_COLOR_FORMAT_YUV420_SEMIPLANAR_2020 + CU_EGL_COLOR_FORMAT_YVU420_SEMIPLANAR_2020 + CU_EGL_COLOR_FORMAT_YUV420_PLANAR_2020 + CU_EGL_COLOR_FORMAT_YVU420_PLANAR_2020 + CU_EGL_COLOR_FORMAT_YUV420_SEMIPLANAR_709 + CU_EGL_COLOR_FORMAT_YVU420_SEMIPLANAR_709 + CU_EGL_COLOR_FORMAT_YUV420_PLANAR_709 + CU_EGL_COLOR_FORMAT_YVU420_PLANAR_709 + CU_EGL_COLOR_FORMAT_Y10V10U10_420_SEMIPLANAR_709 + CU_EGL_COLOR_FORMAT_Y10V10U10_420_SEMIPLANAR_2020 + CU_EGL_COLOR_FORMAT_Y10V10U10_422_SEMIPLANAR_2020 + CU_EGL_COLOR_FORMAT_Y10V10U10_422_SEMIPLANAR + CU_EGL_COLOR_FORMAT_Y10V10U10_422_SEMIPLANAR_709 + CU_EGL_COLOR_FORMAT_Y_ER + CU_EGL_COLOR_FORMAT_Y_709_ER + CU_EGL_COLOR_FORMAT_Y10_ER + CU_EGL_COLOR_FORMAT_Y10_709_ER + CU_EGL_COLOR_FORMAT_Y12_ER + CU_EGL_COLOR_FORMAT_Y12_709_ER + CU_EGL_COLOR_FORMAT_YUVA + CU_EGL_COLOR_FORMAT_YUV + CU_EGL_COLOR_FORMAT_YVYU + CU_EGL_COLOR_FORMAT_VYUY + CU_EGL_COLOR_FORMAT_Y10V10U10_420_SEMIPLANAR_ER + CU_EGL_COLOR_FORMAT_Y10V10U10_420_SEMIPLANAR_709_ER + CU_EGL_COLOR_FORMAT_Y10V10U10_444_SEMIPLANAR_ER + CU_EGL_COLOR_FORMAT_Y10V10U10_444_SEMIPLANAR_709_ER + CU_EGL_COLOR_FORMAT_Y12V12U12_420_SEMIPLANAR_ER + CU_EGL_COLOR_FORMAT_Y12V12U12_420_SEMIPLANAR_709_ER + CU_EGL_COLOR_FORMAT_Y12V12U12_444_SEMIPLANAR_ER + CU_EGL_COLOR_FORMAT_Y12V12U12_444_SEMIPLANAR_709_ER + CU_EGL_COLOR_FORMAT_UYVY_709 + CU_EGL_COLOR_FORMAT_UYVY_709_ER + CU_EGL_COLOR_FORMAT_UYVY_2020 + CU_EGL_COLOR_FORMAT_MAX + ctypedef CUeglColorFormat_enum CUeglColorFormat + +cdef extern from '': + ctypedef enum CUGLmap_flags_enum: + CU_GL_MAP_RESOURCE_FLAGS_NONE + CU_GL_MAP_RESOURCE_FLAGS_READ_ONLY + CU_GL_MAP_RESOURCE_FLAGS_WRITE_DISCARD + ctypedef CUGLmap_flags_enum CUGLmap_flags + +cdef extern from '': + ctypedef enum CUoutput_mode_enum: + CU_OUT_KEY_VALUE_PAIR + CU_OUT_CSV + ctypedef CUoutput_mode_enum CUoutput_mode + +cdef extern from '': + ctypedef enum CUatomicOperation_enum: + CU_ATOMIC_OPERATION_INTEGER_ADD + CU_ATOMIC_OPERATION_INTEGER_MIN + CU_ATOMIC_OPERATION_INTEGER_MAX + CU_ATOMIC_OPERATION_INTEGER_INCREMENT + CU_ATOMIC_OPERATION_INTEGER_DECREMENT + CU_ATOMIC_OPERATION_AND + CU_ATOMIC_OPERATION_OR + CU_ATOMIC_OPERATION_XOR + CU_ATOMIC_OPERATION_EXCHANGE + CU_ATOMIC_OPERATION_CAS + CU_ATOMIC_OPERATION_FLOAT_ADD + CU_ATOMIC_OPERATION_FLOAT_MIN + CU_ATOMIC_OPERATION_FLOAT_MAX + CU_ATOMIC_OPERATION_MAX + ctypedef CUatomicOperation_enum CUatomicOperation + +cdef extern from '': + ctypedef enum CUatomicOperationCapability_enum: + CU_ATOMIC_CAPABILITY_SIGNED + CU_ATOMIC_CAPABILITY_UNSIGNED + CU_ATOMIC_CAPABILITY_REDUCTION + CU_ATOMIC_CAPABILITY_SCALAR_32 + CU_ATOMIC_CAPABILITY_SCALAR_64 + CU_ATOMIC_CAPABILITY_SCALAR_128 + CU_ATOMIC_CAPABILITY_VECTOR_32x4 + ctypedef CUatomicOperationCapability_enum CUatomicOperationCapability + +cdef extern from '': + ctypedef 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 '': + ctypedef enum CUstreamAtomicReductionDataType_enum: + CU_STREAM_ATOMIC_REDUCTION_UNSIGNED_32 + CU_STREAM_ATOMIC_REDUCTION_UNSIGNED_64 + ctypedef CUstreamAtomicReductionDataType_enum CUstreamAtomicReductionDataType + +cdef extern from '': + ctypedef enum CUdevSmResourceGroup_flags: + CU_DEV_SM_RESOURCE_GROUP_DEFAULT + CU_DEV_SM_RESOURCE_GROUP_BACKFILL + +cdef extern from '': + ctypedef enum CUdevSmResourceSplitByCount_flags: + CU_DEV_SM_RESOURCE_SPLIT_IGNORE_SM_COSCHEDULING + CU_DEV_SM_RESOURCE_SPLIT_MAX_POTENTIAL_CLUSTER_SIZE + +cdef extern from '': + ctypedef enum CUdevWorkqueueConfigScope: + CU_WORKQUEUE_SCOPE_DEVICE_CTX + CU_WORKQUEUE_SCOPE_GREEN_CTX_BALANCED + +cdef extern from '': + ctypedef enum CUhostTaskSyncMode_enum: + CU_HOST_TASK_BLOCKING + CU_HOST_TASK_SPINWAIT + ctypedef CUhostTaskSyncMode_enum CUhostTaskSyncMode + +cdef extern from '': + ctypedef 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 '': + ctypedef 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 '': + ctypedef enum CUstreamCigDataType_enum: + STREAM_CIG_DATA_TYPE_D3D12_COMMAND_LIST + ctypedef CUstreamCigDataType_enum CUstreamCigDataType +cdef enum: _CURESULT_INTERNAL_LOADING_ERROR = -42 + + +# TYPES +cdef extern from '': + ctypedef uint32_t cuuint32_t 'cuuint32_t' + + +cdef extern from '': + ctypedef uint64_t cuuint64_t 'cuuint64_t' + + +cdef extern from '': + ctypedef unsigned long long CUdeviceptr_v2 'CUdeviceptr_v2' + + +cdef extern from '': + ctypedef int CUdevice_v1 'CUdevice_v1' + + +cdef extern from '': + ctypedef unsigned long long CUtexObject_v1 'CUtexObject_v1' + + +cdef extern from '': + ctypedef unsigned long long CUsurfObject_v1 'CUsurfObject_v1' + + +cdef extern from '': + cdef struct CUmemFabricHandle_st: + unsigned char data[64] + ctypedef CUmemFabricHandle_st CUmemFabricHandle_v1 + +cdef extern from '': + cdef struct CUipcEventHandle_st: + char reserved[64] + ctypedef CUipcEventHandle_st CUipcEventHandle_v1 + +cdef extern from '': + cdef struct CUipcMemHandle_st: + char reserved[64] + ctypedef CUipcMemHandle_st CUipcMemHandle_v1 + +cdef extern from '': + cdef struct CUdevprop_st: + int maxThreadsPerBlock + int maxThreadsDim[3] + int maxGridSize[3] + int sharedMemPerBlock + int totalConstantMemory + int SIMDWidth + int memPitch + int regsPerBlock + int clockRate + int textureAlign + ctypedef CUdevprop_st CUdevprop_v1 + +cdef extern from '': + cdef struct CUaccessPolicyWindow_st: + void* base_ptr + size_t num_bytes + float hitRatio + CUaccessProperty hitProp + CUaccessProperty missProp + ctypedef CUaccessPolicyWindow_st CUaccessPolicyWindow_v1 + +cdef extern from '': + ctypedef CUlaunchAttributeID CUkernelNodeAttrID 'CUkernelNodeAttrID' + + +cdef extern from '': + ctypedef CUlaunchAttributeID CUstreamAttrID 'CUstreamAttrID' + + +cdef extern from '': + cdef struct CUexecAffinitySmCount_st: + unsigned int val + ctypedef CUexecAffinitySmCount_st CUexecAffinitySmCount_v1 + +cdef extern from '': + cdef struct CUDA_ARRAY_DESCRIPTOR_st: + size_t Width + size_t Height + CUarray_format Format + unsigned int NumChannels + ctypedef CUDA_ARRAY_DESCRIPTOR_st CUDA_ARRAY_DESCRIPTOR_v2 + +cdef extern from '': + cdef struct CUDA_ARRAY3D_DESCRIPTOR_st: + size_t Width + size_t Height + size_t Depth + CUarray_format Format + unsigned int NumChannels + unsigned int Flags + ctypedef CUDA_ARRAY3D_DESCRIPTOR_st CUDA_ARRAY3D_DESCRIPTOR_v2 + +cdef extern from '': + cdef struct CUDA_ARRAY_MEMORY_REQUIREMENTS_st: + size_t size + size_t alignment + unsigned int reserved[4] + ctypedef CUDA_ARRAY_MEMORY_REQUIREMENTS_st CUDA_ARRAY_MEMORY_REQUIREMENTS_v1 + +cdef extern from '': + cdef struct CUDA_TEXTURE_DESC_st: + CUaddress_mode addressMode[3] + CUfilter_mode filterMode + unsigned int flags + unsigned int maxAnisotropy + CUfilter_mode mipmapFilterMode + float mipmapLevelBias + float minMipmapLevelClamp + float maxMipmapLevelClamp + float borderColor[4] + int reserved[12] + ctypedef CUDA_TEXTURE_DESC_st CUDA_TEXTURE_DESC_v1 + +cdef extern from '': + cdef struct CUDA_RESOURCE_VIEW_DESC_st: + CUresourceViewFormat 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] + ctypedef CUDA_RESOURCE_VIEW_DESC_st CUDA_RESOURCE_VIEW_DESC_v1 + +cdef extern from '': + cdef struct CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_st: + unsigned long long p2pToken + unsigned int vaSpaceToken + ctypedef CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_st CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_v1 + +cdef extern from '': + cdef struct CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st: + unsigned long long offset + unsigned long long size + unsigned int flags + unsigned int reserved[16] + ctypedef CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st CUDA_EXTERNAL_MEMORY_BUFFER_DESC_v1 + +cdef extern from '': + ctypedef unsigned long long CUmemGenericAllocationHandle_v1 'CUmemGenericAllocationHandle_v1' + + +cdef extern from '': + cdef struct CUmulticastObjectProp_st: + unsigned int numDevices + size_t size + unsigned long long handleTypes + unsigned long long flags + ctypedef CUmulticastObjectProp_st CUmulticastObjectProp_v1 + +cdef extern from '': + cdef struct CUmemPoolPtrExportData_st: + unsigned char reserved[64] + ctypedef CUmemPoolPtrExportData_st CUmemPoolPtrExportData_v1 + +cdef extern from '': + cdef struct CUoffset3D_st: + size_t x + size_t y + size_t z + ctypedef CUoffset3D_st CUoffset3D_v1 + +cdef extern from '': + cdef struct CUextent3D_st: + size_t width + size_t height + size_t depth + ctypedef CUextent3D_st CUextent3D_v1 + +cdef extern from '': + ctypedef unsigned int CUlogIterator 'CUlogIterator' + + +cdef extern from '': + ctypedef void* CUcontext 'CUcontext' + + +cdef extern from '': + ctypedef void* CUmodule 'CUmodule' + + +cdef extern from '': + ctypedef void* CUfunction 'CUfunction' + + +cdef extern from '': + ctypedef void* CUlibrary 'CUlibrary' + + +cdef extern from '': + ctypedef void* CUkernel 'CUkernel' + + +cdef extern from '': + ctypedef void* CUarray 'CUarray' + + +cdef extern from '': + ctypedef void* CUmipmappedArray 'CUmipmappedArray' + + +cdef extern from '': + ctypedef void* CUtexref 'CUtexref' + + +cdef extern from '': + ctypedef void* CUsurfref 'CUsurfref' + + +cdef extern from '': + ctypedef void* CUevent 'CUevent' + + +cdef extern from '': + ctypedef void* CUstream 'CUstream' + + +cdef extern from '': + ctypedef void* CUgraphicsResource 'CUgraphicsResource' + + +cdef extern from '': + ctypedef void* CUexternalMemory 'CUexternalMemory' + + +cdef extern from '': + ctypedef void* CUexternalSemaphore 'CUexternalSemaphore' + + +cdef extern from '': + ctypedef void* CUgraph 'CUgraph' + + +cdef extern from '': + ctypedef void* CUgraphNode 'CUgraphNode' + + +cdef extern from '': + ctypedef void* CUgraphExec 'CUgraphExec' + + +cdef extern from '': + ctypedef void* CUmemoryPool 'CUmemoryPool' + + +cdef extern from '': + ctypedef void* CUuserObject 'CUuserObject' + + +cdef extern from '': + ctypedef void* CUgraphDeviceNode 'CUgraphDeviceNode' + + +cdef extern from '': + ctypedef void* CUasyncCallbackHandle 'CUasyncCallbackHandle' + + +cdef extern from '': + ctypedef void* CUgreenCtx 'CUgreenCtx' + + +cdef extern from '': + ctypedef void* CUlinkState 'CUlinkState' + + +cdef extern from '': + ctypedef void* CUdevResourceDesc 'CUdevResourceDesc' + + +cdef extern from '': + ctypedef void* CUlogsCallbackHandle 'CUlogsCallbackHandle' + + +cdef extern from '': + ctypedef void* CUcoredumpCallbackHandle 'CUcoredumpCallbackHandle' + + +cdef extern from '': + cdef struct CUuuid_st: + char bytes[16] + ctypedef CUuuid_st CUuuid + +cdef extern from '': + ctypedef struct CUstreamMemOpFlushRemoteWritesParams_st 'CUstreamMemOpFlushRemoteWritesParams_st': + CUstreamBatchMemOpType operation + unsigned int flags + +cdef extern from '': + ctypedef struct CUstreamMemOpMemoryBarrierParams_st 'CUstreamMemOpMemoryBarrierParams_st': + CUstreamBatchMemOpType operation + unsigned int flags + +cdef struct cuda_bindings_driver__anon_pod3: + unsigned long long bytesOverBudget + +cdef extern from '': + ctypedef void (*CUhostFn 'CUhostFn')( + void* userData + ) + + +cdef extern from '': + cdef struct CUgraphEdgeData_st: + unsigned char from_port + unsigned char to_port + unsigned char type + unsigned char reserved[5] + ctypedef CUgraphEdgeData_st CUgraphEdgeData + +cdef extern from '': + cdef struct CUlaunchMemSyncDomainMap_st: + unsigned char default_ + unsigned char remote + ctypedef CUlaunchMemSyncDomainMap_st CUlaunchMemSyncDomainMap + +cdef struct cuda_bindings_driver__anon_pod4: + unsigned int x + unsigned int y + unsigned int z + +cdef struct cuda_bindings_driver__anon_pod7: + unsigned int x + unsigned int y + unsigned int z + +cdef extern from '': + cdef struct CUctxCigParam_st: + CUcigDataType sharedDataType + void* sharedData + ctypedef CUctxCigParam_st CUctxCigParam + +cdef extern from '': + cdef struct CUlibraryHostUniversalFunctionAndDataTable_st: + void* functionTable + size_t functionWindowSize + void* dataTable + size_t dataWindowSize + ctypedef CUlibraryHostUniversalFunctionAndDataTable_st CUlibraryHostUniversalFunctionAndDataTable + +cdef struct cuda_bindings_driver__anon_pod10: + unsigned int width + unsigned int height + unsigned int depth + +cdef struct cuda_bindings_driver__anon_pod16: + int reserved[32] + +cdef struct cuda_bindings_driver__anon_pod18: + void* handle + void* name + +cdef struct cuda_bindings_driver__anon_pod20: + void* handle + void* name + +cdef struct cuda_bindings_driver__anon_pod22: + unsigned long long value + +cdef union cuda_bindings_driver__anon_pod23: + void* fence + unsigned long long reserved + +cdef struct cuda_bindings_driver__anon_pod24: + unsigned long long key + +cdef struct cuda_bindings_driver__anon_pod26: + unsigned long long value + +cdef union cuda_bindings_driver__anon_pod27: + void* fence + unsigned long long reserved + +cdef struct cuda_bindings_driver__anon_pod28: + unsigned long long key + unsigned int timeoutMs + +cdef struct cuda_bindings_driver__anon_pod31: + unsigned int level + unsigned int layer + unsigned int offsetX + unsigned int offsetY + unsigned int offsetZ + unsigned int extentWidth + unsigned int extentHeight + unsigned int extentDepth + +cdef struct cuda_bindings_driver__anon_pod32: + unsigned int layer + unsigned long long offset + unsigned long long size + +cdef struct cuda_bindings_driver__anon_pod35: + unsigned char compressionType + unsigned char gpuDirectRDMACapable + unsigned short usage + unsigned char reserved[4] + +cdef extern from '': + cdef struct CUdevSmResource_st: + unsigned int smCount + unsigned int minSmPartitionSize + unsigned int smCoscheduledAlignment + unsigned int flags + ctypedef CUdevSmResource_st CUdevSmResource + +cdef extern from '': + cdef struct CUdevWorkqueueResource_st: + unsigned char reserved[40] + ctypedef CUdevWorkqueueResource_st CUdevWorkqueueResource + +cdef extern from '': + cdef struct CU_DEV_SM_RESOURCE_GROUP_PARAMS_st: + unsigned int smCount + unsigned int coscheduledSmCount + unsigned int preferredCoscheduledSmCount + unsigned int flags + unsigned int reserved[12] + ctypedef CU_DEV_SM_RESOURCE_GROUP_PARAMS_st CU_DEV_SM_RESOURCE_GROUP_PARAMS + +cdef extern from '': + cdef struct CUstreamCigParam_st: + CUstreamCigDataType streamSharedDataType + void* streamSharedData + ctypedef CUstreamCigParam_st CUstreamCigParam + +cdef extern from '': + ctypedef size_t (*CUoccupancyB2DSize 'CUoccupancyB2DSize')( + int blockSize + ) + + +cdef extern from '': + ctypedef void (*CUlogsCallback 'CUlogsCallback')( + void* data, + CUlogLevel logLevel, + char* message, + size_t length + ) + + +cdef extern from '': + cdef struct CUmemDecompressParams_st: + size_t srcNumBytes + size_t dstNumBytes + cuuint32_t* dstActBytes + void* src + void* dst + CUmemDecompressAlgorithm algo + unsigned char padding[20] + ctypedef CUmemDecompressParams_st CUmemDecompressParams + +cdef extern from '': + ctypedef cuuint64_t CUgraphConditionalHandle 'CUgraphConditionalHandle' + + +cdef extern from '': + cdef struct CUtensorMap_st: + cuuint64_t opaque[16] + ctypedef CUtensorMap_st CUtensorMap + +cdef extern from '': + cdef struct CUcheckpointLockArgs_st: + unsigned int timeoutMs + unsigned int reserved0 + cuuint64_t reserved1[7] + ctypedef CUcheckpointLockArgs_st CUcheckpointLockArgs + +cdef extern from '': + cdef struct CUcheckpointCheckpointArgs_st: + cuuint64_t reserved[8] + ctypedef CUcheckpointCheckpointArgs_st CUcheckpointCheckpointArgs + +cdef extern from '': + cdef struct CUcheckpointUnlockArgs_st: + cuuint64_t reserved[8] + ctypedef CUcheckpointUnlockArgs_st CUcheckpointUnlockArgs + +cdef extern from '': + ctypedef CUdeviceptr_v2 CUdeviceptr 'CUdeviceptr' + + +cdef extern from '': + ctypedef CUdevice_v1 CUdevice 'CUdevice' + + +cdef extern from '': + ctypedef CUtexObject_v1 CUtexObject 'CUtexObject' + + +cdef extern from '': + ctypedef CUsurfObject_v1 CUsurfObject 'CUsurfObject' + + +cdef extern from '': + ctypedef CUmemFabricHandle_v1 CUmemFabricHandle 'CUmemFabricHandle' + + +cdef extern from '': + ctypedef CUipcEventHandle_v1 CUipcEventHandle 'CUipcEventHandle' + + +cdef extern from '': + ctypedef CUipcMemHandle_v1 CUipcMemHandle 'CUipcMemHandle' + + +cdef extern from '': + ctypedef CUdevprop_v1 CUdevprop 'CUdevprop' + + +cdef extern from '': + ctypedef CUaccessPolicyWindow_v1 CUaccessPolicyWindow 'CUaccessPolicyWindow' + + +cdef extern from '': + ctypedef CUexecAffinitySmCount_v1 CUexecAffinitySmCount 'CUexecAffinitySmCount' + + +cdef extern from '': + ctypedef CUDA_ARRAY_DESCRIPTOR_v2 CUDA_ARRAY_DESCRIPTOR 'CUDA_ARRAY_DESCRIPTOR' + + +cdef extern from '': + ctypedef CUDA_ARRAY3D_DESCRIPTOR_v2 CUDA_ARRAY3D_DESCRIPTOR 'CUDA_ARRAY3D_DESCRIPTOR' + + +cdef extern from '': + ctypedef CUDA_ARRAY_MEMORY_REQUIREMENTS_v1 CUDA_ARRAY_MEMORY_REQUIREMENTS 'CUDA_ARRAY_MEMORY_REQUIREMENTS' + + +cdef extern from '': + ctypedef CUDA_TEXTURE_DESC_v1 CUDA_TEXTURE_DESC 'CUDA_TEXTURE_DESC' + + +cdef extern from '': + ctypedef CUDA_RESOURCE_VIEW_DESC_v1 CUDA_RESOURCE_VIEW_DESC 'CUDA_RESOURCE_VIEW_DESC' + + +cdef extern from '': + ctypedef CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_v1 CUDA_POINTER_ATTRIBUTE_P2P_TOKENS 'CUDA_POINTER_ATTRIBUTE_P2P_TOKENS' + + +cdef extern from '': + ctypedef CUDA_EXTERNAL_MEMORY_BUFFER_DESC_v1 CUDA_EXTERNAL_MEMORY_BUFFER_DESC 'CUDA_EXTERNAL_MEMORY_BUFFER_DESC' + + +cdef extern from '': + ctypedef CUmemGenericAllocationHandle_v1 CUmemGenericAllocationHandle 'CUmemGenericAllocationHandle' + + +cdef extern from '': + ctypedef CUmulticastObjectProp_v1 CUmulticastObjectProp 'CUmulticastObjectProp' + + +cdef extern from '': + ctypedef CUmemPoolPtrExportData_v1 CUmemPoolPtrExportData 'CUmemPoolPtrExportData' + + +cdef extern from '': + ctypedef CUoffset3D_v1 CUoffset3D 'CUoffset3D' + + +cdef extern from '': + ctypedef CUextent3D_v1 CUextent3D 'CUextent3D' + + +cdef extern from '': + cdef struct CUDA_KERNEL_NODE_PARAMS_st: + CUfunction func + unsigned int gridDimX + unsigned int gridDimY + unsigned int gridDimZ + unsigned int blockDimX + unsigned int blockDimY + unsigned int blockDimZ + unsigned int sharedMemBytes + void** kernelParams + void** extra + ctypedef CUDA_KERNEL_NODE_PARAMS_st CUDA_KERNEL_NODE_PARAMS_v1 + +cdef extern from '': + cdef struct CUDA_KERNEL_NODE_PARAMS_v2_st: + CUfunction func + unsigned int gridDimX + unsigned int gridDimY + unsigned int gridDimZ + unsigned int blockDimX + unsigned int blockDimY + unsigned int blockDimZ + unsigned int sharedMemBytes + void** kernelParams + void** extra + CUkernel kern + CUcontext ctx + ctypedef CUDA_KERNEL_NODE_PARAMS_v2_st CUDA_KERNEL_NODE_PARAMS_v2 + +cdef extern from '': + cdef struct CUDA_KERNEL_NODE_PARAMS_v3_st: + CUfunction func + unsigned int gridDimX + unsigned int gridDimY + unsigned int gridDimZ + unsigned int blockDimX + unsigned int blockDimY + unsigned int blockDimZ + unsigned int sharedMemBytes + void** kernelParams + void** extra + CUkernel kern + CUcontext ctx + ctypedef CUDA_KERNEL_NODE_PARAMS_v3_st CUDA_KERNEL_NODE_PARAMS_v3 + +cdef struct cuda_bindings_driver__anon_pod12: + CUarray hArray + +cdef struct cuda_bindings_driver__anon_pod13: + CUmipmappedArray hMipmappedArray + +cdef union cuda_bindings_driver__anon_pod29: + CUmipmappedArray mipmap + CUarray array + +cdef struct cuda_bindings_driver__anon_pod5: + CUevent event + int flags + int triggerAtBlockStart + +cdef struct cuda_bindings_driver__anon_pod6: + CUevent event + int flags + +cdef extern from '': + cdef struct CUDA_EVENT_RECORD_NODE_PARAMS_st: + CUevent event + ctypedef CUDA_EVENT_RECORD_NODE_PARAMS_st CUDA_EVENT_RECORD_NODE_PARAMS + +cdef extern from '': + cdef struct CUDA_EVENT_WAIT_NODE_PARAMS_st: + CUevent event + ctypedef CUDA_EVENT_WAIT_NODE_PARAMS_st CUDA_EVENT_WAIT_NODE_PARAMS + +cdef extern from '': + cdef struct CUDA_LAUNCH_PARAMS_st: + CUfunction function + unsigned int gridDimX + unsigned int gridDimY + unsigned int gridDimZ + unsigned int blockDimX + unsigned int blockDimY + unsigned int blockDimZ + unsigned int sharedMemBytes + CUstream hStream + void** kernelParams + ctypedef CUDA_LAUNCH_PARAMS_st CUDA_LAUNCH_PARAMS_v1 + +cdef extern from '': + ctypedef void (*CUstreamCallback 'CUstreamCallback')( + CUstream hStream, + CUresult status, + void* userData + ) + + +cdef extern from '': + cdef struct CUDA_CHILD_GRAPH_NODE_PARAMS_st: + CUgraph graph + CUgraphChildGraphNodeOwnership ownership + ctypedef CUDA_CHILD_GRAPH_NODE_PARAMS_st CUDA_CHILD_GRAPH_NODE_PARAMS + +cdef extern from '': + cdef struct CUDA_GRAPH_INSTANTIATE_PARAMS_st: + cuuint64_t flags + CUstream hUploadStream + CUgraphNode hErrNode_out + CUgraphInstantiateResult result_out + ctypedef CUDA_GRAPH_INSTANTIATE_PARAMS_st CUDA_GRAPH_INSTANTIATE_PARAMS + +cdef extern from '': + cdef struct CUgraphExecUpdateResultInfo_st: + CUgraphExecUpdateResult result + CUgraphNode errorNode + CUgraphNode errorFromNode + ctypedef CUgraphExecUpdateResultInfo_st CUgraphExecUpdateResultInfo_v1 + +cdef struct cuda_bindings_driver__anon_pod8: + int deviceUpdatable + CUgraphDeviceNode devNode + +cdef extern from '': + cdef struct CUcheckpointGpuPair_st: + CUuuid oldUuid + CUuuid newUuid + ctypedef CUcheckpointGpuPair_st CUcheckpointGpuPair + +cdef union cuda_bindings_driver__anon_pod2: + cuda_bindings_driver__anon_pod3 overBudget + +cdef extern from '': + cdef struct CUDA_HOST_NODE_PARAMS_st: + CUhostFn fn + void* userData + ctypedef CUDA_HOST_NODE_PARAMS_st CUDA_HOST_NODE_PARAMS_v1 + +cdef extern from '': + cdef struct CUDA_HOST_NODE_PARAMS_v2_st: + CUhostFn fn + void* userData + unsigned int syncMode + ctypedef CUDA_HOST_NODE_PARAMS_v2_st CUDA_HOST_NODE_PARAMS_v2 + +cdef extern from '': + cdef struct CUDA_ARRAY_SPARSE_PROPERTIES_st: + cuda_bindings_driver__anon_pod10 tileExtent + unsigned int miptailFirstLevel + unsigned long long miptailSize + unsigned int flags + unsigned int reserved[4] + ctypedef CUDA_ARRAY_SPARSE_PROPERTIES_st CUDA_ARRAY_SPARSE_PROPERTIES_v1 + +cdef union cuda_bindings_driver__anon_pod17: + int fd + cuda_bindings_driver__anon_pod18 win32 + void* nvSciBufObject + +cdef union cuda_bindings_driver__anon_pod19: + int fd + cuda_bindings_driver__anon_pod20 win32 + void* nvSciSyncObj + +cdef struct cuda_bindings_driver__anon_pod21: + cuda_bindings_driver__anon_pod22 fence + cuda_bindings_driver__anon_pod23 nvSciSync + cuda_bindings_driver__anon_pod24 keyedMutex + unsigned int reserved[12] + +cdef struct cuda_bindings_driver__anon_pod25: + cuda_bindings_driver__anon_pod26 fence + cuda_bindings_driver__anon_pod27 nvSciSync + cuda_bindings_driver__anon_pod28 keyedMutex + unsigned int reserved[10] + +cdef union cuda_bindings_driver__anon_pod30: + cuda_bindings_driver__anon_pod31 sparseLevel + cuda_bindings_driver__anon_pod32 miptail + +cdef extern from '': + cdef struct CUmemLocation_st: + CUmemLocationType type + int id + ctypedef CUmemLocation_st CUmemLocation_v1 + +cdef extern from '': + cdef struct CUstreamCigCaptureParams_st: + CUstreamCigParam* streamCigParams + ctypedef CUstreamCigCaptureParams_st CUstreamCigCaptureParams + +cdef extern from '': + ctypedef struct CUDA_CONDITIONAL_NODE_PARAMS 'CUDA_CONDITIONAL_NODE_PARAMS': + CUgraphConditionalHandle handle + CUgraphConditionalNodeType type + unsigned int size + CUgraph* phGraph_out + CUcontext ctx + +cdef extern from '': + ctypedef struct CUstreamMemOpWaitValueParams_st 'CUstreamMemOpWaitValueParams_st': + CUstreamBatchMemOpType operation + CUdeviceptr address + cuuint32_t value + cuuint64_t value64 + unsigned int flags + CUdeviceptr alias + +cdef extern from '': + ctypedef struct CUstreamMemOpWriteValueParams_st 'CUstreamMemOpWriteValueParams_st': + CUstreamBatchMemOpType operation + CUdeviceptr address + cuuint32_t value + cuuint64_t value64 + unsigned int flags + CUdeviceptr alias + +cdef extern from '': + ctypedef struct CUstreamMemOpAtomicReductionParams_st 'CUstreamMemOpAtomicReductionParams_st': + CUstreamBatchMemOpType operation + unsigned int flags + CUstreamAtomicReductionOpType reductionOp + CUstreamAtomicReductionDataType dataType + CUdeviceptr address + cuuint64_t value + CUdeviceptr alias + +cdef extern from '': + cdef struct CUDA_MEMSET_NODE_PARAMS_st: + CUdeviceptr dst + size_t pitch + unsigned int value + unsigned int elementSize + size_t width + size_t height + ctypedef CUDA_MEMSET_NODE_PARAMS_st CUDA_MEMSET_NODE_PARAMS_v1 + +cdef extern from '': + cdef struct CUDA_MEMSET_NODE_PARAMS_v2_st: + CUdeviceptr dst + size_t pitch + unsigned int value + unsigned int elementSize + size_t width + size_t height + CUcontext ctx + ctypedef CUDA_MEMSET_NODE_PARAMS_v2_st CUDA_MEMSET_NODE_PARAMS_v2 + +cdef extern from '': + cdef struct CUDA_MEMCPY2D_st: + size_t srcXInBytes + size_t srcY + CUmemorytype srcMemoryType + void* srcHost + CUdeviceptr srcDevice + CUarray srcArray + size_t srcPitch + size_t dstXInBytes + size_t dstY + CUmemorytype dstMemoryType + void* dstHost + CUdeviceptr dstDevice + CUarray dstArray + size_t dstPitch + size_t WidthInBytes + size_t Height + ctypedef CUDA_MEMCPY2D_st CUDA_MEMCPY2D_v2 + +cdef extern from '': + cdef struct CUDA_MEMCPY3D_st: + size_t srcXInBytes + size_t srcY + size_t srcZ + size_t srcLOD + CUmemorytype srcMemoryType + void* srcHost + CUdeviceptr srcDevice + CUarray srcArray + void* reserved0 + size_t srcPitch + size_t srcHeight + size_t dstXInBytes + size_t dstY + size_t dstZ + size_t dstLOD + CUmemorytype dstMemoryType + void* dstHost + CUdeviceptr dstDevice + CUarray dstArray + void* reserved1 + size_t dstPitch + size_t dstHeight + size_t WidthInBytes + size_t Height + size_t Depth + ctypedef CUDA_MEMCPY3D_st CUDA_MEMCPY3D_v2 + +cdef extern from '': + cdef struct CUDA_MEMCPY3D_PEER_st: + size_t srcXInBytes + size_t srcY + size_t srcZ + size_t srcLOD + CUmemorytype srcMemoryType + void* srcHost + CUdeviceptr srcDevice + CUarray srcArray + CUcontext srcContext + size_t srcPitch + size_t srcHeight + size_t dstXInBytes + size_t dstY + size_t dstZ + size_t dstLOD + CUmemorytype dstMemoryType + void* dstHost + CUdeviceptr dstDevice + CUarray dstArray + CUcontext dstContext + size_t dstPitch + size_t dstHeight + size_t WidthInBytes + size_t Height + size_t Depth + ctypedef CUDA_MEMCPY3D_PEER_st CUDA_MEMCPY3D_PEER_v1 + +cdef struct cuda_bindings_driver__anon_pod14: + CUdeviceptr devPtr + CUarray_format format + unsigned int numChannels + size_t sizeInBytes + +cdef struct cuda_bindings_driver__anon_pod15: + CUdeviceptr devPtr + CUarray_format format + unsigned int numChannels + size_t width + size_t height + size_t pitchInBytes + +cdef extern from '': + cdef struct CUDA_MEM_FREE_NODE_PARAMS_st: + CUdeviceptr dptr + ctypedef CUDA_MEM_FREE_NODE_PARAMS_st CUDA_MEM_FREE_NODE_PARAMS + +cdef extern from '': + cdef struct CUdevWorkqueueConfigResource_st: + CUdevice device + unsigned int wqConcurrencyLimit + CUdevWorkqueueConfigScope sharingScope + ctypedef CUdevWorkqueueConfigResource_st CUdevWorkqueueConfigResource + +cdef extern from '': + ctypedef void (*CUcoredumpStatusCallback 'CUcoredumpStatusCallback')( + void* userData, + int pid, + CUdevice dev + ) + + +cdef union cuda_bindings_driver__anon_pod9: + CUexecAffinitySmCount smCount + +cdef extern from '': + cdef struct CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_st: + unsigned long long offset + CUDA_ARRAY3D_DESCRIPTOR arrayDesc + unsigned int numLevels + unsigned int reserved[16] + ctypedef CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_st CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_v1 + +cdef union cuda_bindings_driver__anon_pod33: + CUmemGenericAllocationHandle memHandle + +cdef struct cuda_bindings_driver__anon_pod38: + CUarray array + CUoffset3D offset + +cdef extern from '': + ctypedef CUDA_KERNEL_NODE_PARAMS_v2 CUDA_KERNEL_NODE_PARAMS 'CUDA_KERNEL_NODE_PARAMS' + + +cdef extern from '': + ctypedef CUDA_LAUNCH_PARAMS_v1 CUDA_LAUNCH_PARAMS 'CUDA_LAUNCH_PARAMS' + + +cdef extern from '': + ctypedef CUgraphExecUpdateResultInfo_v1 CUgraphExecUpdateResultInfo 'CUgraphExecUpdateResultInfo' + + +cdef extern from '': + cdef union CUlaunchAttributeValue_union: + char pad[64] + CUaccessPolicyWindow accessPolicyWindow + int cooperative + CUsynchronizationPolicy syncPolicy + cuda_bindings_driver__anon_pod4 clusterDim + CUclusterSchedulingPolicy clusterSchedulingPolicyPreference + int programmaticStreamSerializationAllowed + cuda_bindings_driver__anon_pod5 programmaticEvent + cuda_bindings_driver__anon_pod6 launchCompletionEvent + int priority + CUlaunchMemSyncDomainMap memSyncDomainMap + CUlaunchMemSyncDomain memSyncDomain + cuda_bindings_driver__anon_pod7 preferredClusterDim + cuda_bindings_driver__anon_pod8 deviceUpdatableKernelNode + unsigned int sharedMemCarveout + unsigned int nvlinkUtilCentricScheduling + CUlaunchAttributePortableClusterMode portableClusterSizeMode + CUsharedMemoryMode sharedMemoryMode + ctypedef CUlaunchAttributeValue_union CUlaunchAttributeValue + +cdef extern from '': + cdef struct CUcheckpointRestoreArgs_st: + CUcheckpointGpuPair* gpuPairs + unsigned int gpuPairsCount + char reserved[(52 - 8)] + cuuint64_t reserved1 + ctypedef CUcheckpointRestoreArgs_st CUcheckpointRestoreArgs + +cdef extern from '': + cdef struct CUasyncNotificationInfo_st: + CUasyncNotificationType type + cuda_bindings_driver__anon_pod2 info + ctypedef CUasyncNotificationInfo_st CUasyncNotificationInfo + +cdef extern from '': + ctypedef CUDA_HOST_NODE_PARAMS_v1 CUDA_HOST_NODE_PARAMS 'CUDA_HOST_NODE_PARAMS' + + +cdef extern from '': + ctypedef CUDA_ARRAY_SPARSE_PROPERTIES_v1 CUDA_ARRAY_SPARSE_PROPERTIES 'CUDA_ARRAY_SPARSE_PROPERTIES' + + +cdef extern from '': + cdef struct CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st: + CUexternalMemoryHandleType type + cuda_bindings_driver__anon_pod17 handle + unsigned long long size + unsigned int flags + unsigned int reserved[16] + ctypedef CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st CUDA_EXTERNAL_MEMORY_HANDLE_DESC_v1 + +cdef extern from '': + cdef struct CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st: + CUexternalSemaphoreHandleType type + cuda_bindings_driver__anon_pod19 handle + unsigned int flags + unsigned int reserved[16] + ctypedef CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_v1 + +cdef extern from '': + cdef struct CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st: + cuda_bindings_driver__anon_pod21 params + unsigned int flags + unsigned int reserved[16] + ctypedef CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_v1 + +cdef extern from '': + cdef struct CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st: + cuda_bindings_driver__anon_pod25 params + unsigned int flags + unsigned int reserved[16] + ctypedef CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_v1 + +cdef extern from '': + ctypedef CUmemLocation_v1 CUmemLocation 'CUmemLocation' + + +cdef extern from '': + cdef union CUstreamBatchMemOpParams_union: + CUstreamBatchMemOpType operation + CUstreamMemOpWaitValueParams_st waitValue + CUstreamMemOpWriteValueParams_st writeValue + CUstreamMemOpFlushRemoteWritesParams_st flushRemoteWrites + CUstreamMemOpMemoryBarrierParams_st memoryBarrier + CUstreamMemOpAtomicReductionParams_st atomicReduction + cuuint64_t pad[6] + ctypedef CUstreamBatchMemOpParams_union CUstreamBatchMemOpParams_v1 + +cdef extern from '': + ctypedef CUDA_MEMSET_NODE_PARAMS_v1 CUDA_MEMSET_NODE_PARAMS 'CUDA_MEMSET_NODE_PARAMS' + + +cdef extern from '': + ctypedef CUDA_MEMCPY2D_v2 CUDA_MEMCPY2D 'CUDA_MEMCPY2D' + + +cdef extern from '': + ctypedef CUDA_MEMCPY3D_v2 CUDA_MEMCPY3D 'CUDA_MEMCPY3D' + + +cdef extern from '': + 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 + cuda_bindings_driver__anon_pod14 linear + cuda_bindings_driver__anon_pod15 pitch2D + cuda_bindings_driver__anon_pod16 reserved + +cdef extern from '': + cdef struct CUexecAffinityParam_st: + CUexecAffinityType type + cuda_bindings_driver__anon_pod9 param + ctypedef CUexecAffinityParam_st CUexecAffinityParam_v1 + +cdef extern from '': + ctypedef CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_v1 CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC 'CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC' + + +cdef extern from '': + cdef struct CUarrayMapInfo_st: + CUresourcetype resourceType + cuda_bindings_driver__anon_pod29 resource + CUarraySparseSubresourceType subresourceType + cuda_bindings_driver__anon_pod30 subresource + CUmemOperationType memOperationType + CUmemHandleType memHandleType + cuda_bindings_driver__anon_pod33 memHandle + unsigned long long offset + unsigned int deviceBitMask + unsigned int flags + unsigned int reserved[2] + ctypedef CUarrayMapInfo_st CUarrayMapInfo_v1 + +cdef extern from '': + ctypedef CUlaunchAttributeValue CUkernelNodeAttrValue_v1 'CUkernelNodeAttrValue_v1' + + +cdef extern from '': + ctypedef CUlaunchAttributeValue CUstreamAttrValue_v1 'CUstreamAttrValue_v1' + + +cdef extern from '': + cdef struct CUlaunchAttribute_st: + CUlaunchAttributeID id + CUlaunchAttributeValue value + ctypedef CUlaunchAttribute_st CUlaunchAttribute + +cdef extern from '': + ctypedef void (*CUasyncCallback 'CUasyncCallback')( + CUasyncNotificationInfo* info, + void* userData, + CUasyncCallbackHandle callback + ) + + +cdef extern from '': + ctypedef CUDA_EXTERNAL_MEMORY_HANDLE_DESC_v1 CUDA_EXTERNAL_MEMORY_HANDLE_DESC 'CUDA_EXTERNAL_MEMORY_HANDLE_DESC' + + +cdef extern from '': + ctypedef CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_v1 CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC 'CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC' + + +cdef extern from '': + ctypedef CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_v1 CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS 'CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS' + + +cdef extern from '': + ctypedef CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_v1 CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS 'CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS' + + +cdef extern from '': + cdef struct CUmemAllocationProp_st: + CUmemAllocationType type + CUmemAllocationHandleType requestedHandleTypes + CUmemLocation location + void* win32HandleMetaData + cuda_bindings_driver__anon_pod35 allocFlags + ctypedef CUmemAllocationProp_st CUmemAllocationProp_v1 + +cdef extern from '': + cdef struct CUmemAccessDesc_st: + CUmemLocation location + CUmemAccess_flags flags + ctypedef CUmemAccessDesc_st CUmemAccessDesc_v1 + +cdef extern from '': + cdef struct CUmemPoolProps_st: + CUmemAllocationType allocType + CUmemAllocationHandleType handleTypes + CUmemLocation location + void* win32SecurityAttributes + size_t maxSize + unsigned short usage + unsigned char reserved[54] + ctypedef CUmemPoolProps_st CUmemPoolProps_v1 + +cdef extern from '': + cdef struct CUmemcpyAttributes_st: + CUmemcpySrcAccessOrder srcAccessOrder + CUmemLocation srcLocHint + CUmemLocation dstLocHint + unsigned int flags + ctypedef CUmemcpyAttributes_st CUmemcpyAttributes_v1 + +cdef struct cuda_bindings_driver__anon_pod37: + CUdeviceptr ptr + size_t rowLength + size_t layerHeight + CUmemLocation locHint + +cdef extern from '': + ctypedef CUstreamBatchMemOpParams_v1 CUstreamBatchMemOpParams 'CUstreamBatchMemOpParams' + + +cdef extern from '': + cdef struct CUDA_MEMCPY_NODE_PARAMS_st: + int flags + int reserved + CUcontext copyCtx + CUDA_MEMCPY3D copyParams + ctypedef CUDA_MEMCPY_NODE_PARAMS_st CUDA_MEMCPY_NODE_PARAMS + +cdef extern from '': + cdef struct CUDA_RESOURCE_DESC_st: + CUresourcetype resType + cuda_bindings_driver__anon_pod11 res + unsigned int flags + ctypedef CUDA_RESOURCE_DESC_st CUDA_RESOURCE_DESC_v1 + +cdef extern from '': + cdef struct CUdevResource_st: + CUdevResourceType type + unsigned char _internal_padding[92] + CUdevSmResource sm + CUdevWorkqueueConfigResource wqConfig + CUdevWorkqueueResource wq + unsigned char _oversize[40] + CUdevResource_st* nextResource + ctypedef CUdevResource_st CUdevResource_v1 + +cdef extern from '': + ctypedef CUexecAffinityParam_v1 CUexecAffinityParam 'CUexecAffinityParam' + + +cdef extern from '': + ctypedef CUarrayMapInfo_v1 CUarrayMapInfo 'CUarrayMapInfo' + + +cdef extern from '': + ctypedef CUkernelNodeAttrValue_v1 CUkernelNodeAttrValue 'CUkernelNodeAttrValue' + + +cdef extern from '': + ctypedef CUstreamAttrValue_v1 CUstreamAttrValue 'CUstreamAttrValue' + + +cdef extern from '': + cdef struct CUlaunchConfig_st: + unsigned int gridDimX + unsigned int gridDimY + unsigned int gridDimZ + unsigned int blockDimX + unsigned int blockDimY + unsigned int blockDimZ + unsigned int sharedMemBytes + CUstream hStream + CUlaunchAttribute* attrs + unsigned int numAttrs + ctypedef CUlaunchConfig_st CUlaunchConfig + +cdef extern from '': + cdef struct CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_st: + CUexternalSemaphore* extSemArray + CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS* paramsArray + unsigned int numExtSems + ctypedef CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_st CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v1 + +cdef extern from '': + cdef struct CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2_st: + CUexternalSemaphore* extSemArray + CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS* paramsArray + unsigned int numExtSems + ctypedef CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2_st CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2 + +cdef extern from '': + cdef struct CUDA_EXT_SEM_WAIT_NODE_PARAMS_st: + CUexternalSemaphore* extSemArray + CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS* paramsArray + unsigned int numExtSems + ctypedef CUDA_EXT_SEM_WAIT_NODE_PARAMS_st CUDA_EXT_SEM_WAIT_NODE_PARAMS_v1 + +cdef extern from '': + cdef struct CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2_st: + CUexternalSemaphore* extSemArray + CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS* paramsArray + unsigned int numExtSems + ctypedef CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2_st CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2 + +cdef extern from '': + ctypedef CUmemAllocationProp_v1 CUmemAllocationProp 'CUmemAllocationProp' + + +cdef extern from '': + ctypedef CUmemAccessDesc_v1 CUmemAccessDesc 'CUmemAccessDesc' + + +cdef extern from '': + ctypedef CUmemPoolProps_v1 CUmemPoolProps 'CUmemPoolProps' + + +cdef extern from '': + ctypedef CUmemcpyAttributes_v1 CUmemcpyAttributes 'CUmemcpyAttributes' + + +cdef union cuda_bindings_driver__anon_pod36: + cuda_bindings_driver__anon_pod37 ptr + cuda_bindings_driver__anon_pod38 array + +cdef extern from '': + cdef struct CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st: + CUcontext ctx + unsigned int count + CUstreamBatchMemOpParams* paramArray + unsigned int flags + ctypedef CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st CUDA_BATCH_MEM_OP_NODE_PARAMS_v1 + +cdef extern from '': + cdef struct CUDA_BATCH_MEM_OP_NODE_PARAMS_v2_st: + CUcontext ctx + unsigned int count + CUstreamBatchMemOpParams* paramArray + unsigned int flags + ctypedef CUDA_BATCH_MEM_OP_NODE_PARAMS_v2_st CUDA_BATCH_MEM_OP_NODE_PARAMS_v2 + +cdef extern from '': + ctypedef CUDA_RESOURCE_DESC_v1 CUDA_RESOURCE_DESC 'CUDA_RESOURCE_DESC' + + +cdef extern from '': + ctypedef CUdevResource_v1 CUdevResource 'CUdevResource' + + +cdef extern from '': + cdef struct CUctxCreateParams_st: + CUexecAffinityParam* execAffinityParams + int numExecAffinityParams + CUctxCigParam* cigParams + ctypedef CUctxCreateParams_st CUctxCreateParams + +cdef extern from '': + ctypedef CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v1 CUDA_EXT_SEM_SIGNAL_NODE_PARAMS 'CUDA_EXT_SEM_SIGNAL_NODE_PARAMS' + + +cdef extern from '': + ctypedef CUDA_EXT_SEM_WAIT_NODE_PARAMS_v1 CUDA_EXT_SEM_WAIT_NODE_PARAMS 'CUDA_EXT_SEM_WAIT_NODE_PARAMS' + + +cdef extern from '': + cdef struct CUDA_MEM_ALLOC_NODE_PARAMS_v1_st: + CUmemPoolProps poolProps + CUmemAccessDesc* accessDescs + size_t accessDescCount + size_t bytesize + CUdeviceptr dptr + ctypedef CUDA_MEM_ALLOC_NODE_PARAMS_v1_st CUDA_MEM_ALLOC_NODE_PARAMS_v1 + +cdef extern from '': + cdef struct CUDA_MEM_ALLOC_NODE_PARAMS_v2_st: + CUmemPoolProps poolProps + CUmemAccessDesc* accessDescs + size_t accessDescCount + size_t bytesize + CUdeviceptr dptr + ctypedef CUDA_MEM_ALLOC_NODE_PARAMS_v2_st CUDA_MEM_ALLOC_NODE_PARAMS_v2 + +cdef extern from '': + cdef struct CUmemcpy3DOperand_st: + CUmemcpy3DOperandType type + cuda_bindings_driver__anon_pod36 op + ctypedef CUmemcpy3DOperand_st CUmemcpy3DOperand_v1 + +cdef extern from '': + ctypedef CUDA_BATCH_MEM_OP_NODE_PARAMS_v1 CUDA_BATCH_MEM_OP_NODE_PARAMS 'CUDA_BATCH_MEM_OP_NODE_PARAMS' + + +cdef extern from '': + ctypedef CUDA_MEM_ALLOC_NODE_PARAMS_v1 CUDA_MEM_ALLOC_NODE_PARAMS 'CUDA_MEM_ALLOC_NODE_PARAMS' + + +cdef extern from '': + ctypedef CUmemcpy3DOperand_v1 CUmemcpy3DOperand 'CUmemcpy3DOperand' + + +cdef extern from '': + cdef struct CUgraphNodeParams_st: + CUgraphNodeType type + int reserved0[3] + long long reserved1[29] + CUDA_KERNEL_NODE_PARAMS_v3 kernel + CUDA_MEMCPY_NODE_PARAMS memcpy + CUDA_MEMSET_NODE_PARAMS_v2 memset + CUDA_HOST_NODE_PARAMS_v2 host + CUDA_CHILD_GRAPH_NODE_PARAMS graph + CUDA_EVENT_WAIT_NODE_PARAMS eventWait + CUDA_EVENT_RECORD_NODE_PARAMS eventRecord + CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2 extSemSignal + CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2 extSemWait + CUDA_MEM_ALLOC_NODE_PARAMS_v2 alloc + CUDA_MEM_FREE_NODE_PARAMS free + CUDA_BATCH_MEM_OP_NODE_PARAMS_v2 memOp + CUDA_CONDITIONAL_NODE_PARAMS conditional + long long reserved2 + ctypedef CUgraphNodeParams_st CUgraphNodeParams + +cdef extern from '': + cdef struct CUDA_MEMCPY3D_BATCH_OP_st: + CUmemcpy3DOperand src + CUmemcpy3DOperand dst + CUextent3D extent + CUmemcpySrcAccessOrder srcAccessOrder + unsigned int flags + ctypedef CUDA_MEMCPY3D_BATCH_OP_st CUDA_MEMCPY3D_BATCH_OP_v1 + +cdef extern from '': + 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. +cdef extern from "": + cdef struct CUeglStreamConnection_st: + pass +ctypedef CUeglStreamConnection_st* CUeglStreamConnection + +cdef union anon_union16: + CUarray pArray[3] + void* pPitch[3] + +cdef struct CUeglFrame_st: + anon_union16 frame + unsigned int width + unsigned int height + unsigned int depth + unsigned int pitch + unsigned int planeCount + unsigned int numChannels + CUeglFrameType frameType + CUeglColorFormat eglColorFormat + CUarray_format cuFormat + +ctypedef CUeglFrame_st CUeglFrame_v1 + +ctypedef CUeglFrame_v1 CUeglFrame + +cdef enum CUGLDeviceList_enum: + CU_GL_DEVICE_LIST_ALL = 1 + CU_GL_DEVICE_LIST_CURRENT_FRAME = 2 + CU_GL_DEVICE_LIST_NEXT_FRAME = 3 + +ctypedef CUGLDeviceList_enum CUGLDeviceList + + +# FUNCS +cdef CUresult cuGetErrorString(CUresult error, const char** pStr) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGetErrorName(CUresult error, const char** pStr) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuInit(unsigned int Flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuDriverGetVersion(int* driverVersion) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuDeviceGet(CUdevice* device, int ordinal) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuDeviceGetCount(int* count) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuDeviceGetName(char* name, int len, CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuDeviceGetUuid(CUuuid* uuid, CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuDeviceGetLuid(char* luid, unsigned int* deviceNodeMask, CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuDeviceTotalMem(size_t* bytes, CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuDeviceGetTexture1DLinearMaxWidth(size_t* maxWidthInElements, CUarray_format format, unsigned numChannels, CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuDeviceGetAttribute(int* pi, CUdevice_attribute attrib, CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuDeviceGetNvSciSyncAttributes(void* nvSciSyncAttrList, CUdevice dev, int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuDeviceSetMemPool(CUdevice dev, CUmemoryPool pool) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuDeviceGetMemPool(CUmemoryPool* pool, CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuDeviceGetDefaultMemPool(CUmemoryPool* pool_out, CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuDeviceGetExecAffinitySupport(int* pi, CUexecAffinityType type, CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuFlushGPUDirectRDMAWrites(CUflushGPUDirectRDMAWritesTarget target, CUflushGPUDirectRDMAWritesScope scope) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuDeviceGetProperties(CUdevprop* prop, CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuDeviceComputeCapability(int* major, int* minor, CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuDevicePrimaryCtxRetain(CUcontext* pctx, CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuDevicePrimaryCtxRelease(CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuDevicePrimaryCtxSetFlags(CUdevice dev, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuDevicePrimaryCtxGetState(CUdevice dev, unsigned int* flags, int* active) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuDevicePrimaryCtxReset(CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuCtxCreate(CUcontext* pctx, CUctxCreateParams* ctxCreateParams, unsigned int flags, CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuCtxDestroy(CUcontext ctx) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuCtxPushCurrent(CUcontext ctx) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuCtxPopCurrent(CUcontext* pctx) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuCtxSetCurrent(CUcontext ctx) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuCtxGetCurrent(CUcontext* pctx) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuCtxGetDevice(CUdevice* device) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuCtxGetFlags(unsigned int* flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuCtxSetFlags(unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuCtxGetId(CUcontext ctx, unsigned long long* ctxId) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuCtxSynchronize() except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuCtxSetLimit(CUlimit limit, size_t value) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuCtxGetLimit(size_t* pvalue, CUlimit limit) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuCtxGetCacheConfig(CUfunc_cache* pconfig) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuCtxSetCacheConfig(CUfunc_cache config) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuCtxGetApiVersion(CUcontext ctx, unsigned int* version) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuCtxGetStreamPriorityRange(int* leastPriority, int* greatestPriority) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuCtxResetPersistingL2Cache() except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuCtxGetExecAffinity(CUexecAffinityParam* pExecAffinity, CUexecAffinityType type) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuCtxRecordEvent(CUcontext hCtx, CUevent hEvent) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuCtxWaitEvent(CUcontext hCtx, CUevent hEvent) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuCtxAttach(CUcontext* pctx, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuCtxDetach(CUcontext ctx) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuCtxGetSharedMemConfig(CUsharedconfig* pConfig) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuCtxSetSharedMemConfig(CUsharedconfig config) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuModuleLoad(CUmodule* module, const char* fname) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuModuleLoadData(CUmodule* module, const void* image) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuModuleLoadDataEx(CUmodule* module, const void* image, unsigned int numOptions, CUjit_option* options, void** optionValues) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuModuleLoadFatBinary(CUmodule* module, const void* fatCubin) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuModuleUnload(CUmodule hmod) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuModuleGetLoadingMode(CUmoduleLoadingMode* mode) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuModuleGetFunction(CUfunction* hfunc, CUmodule hmod, const char* name) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuModuleGetFunctionCount(unsigned int* count, CUmodule mod) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuModuleEnumerateFunctions(CUfunction* functions, unsigned int numFunctions, CUmodule mod) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuModuleGetGlobal(CUdeviceptr* dptr, size_t* bytes, CUmodule hmod, const char* name) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuLinkCreate(unsigned int numOptions, CUjit_option* options, void** optionValues, CUlinkState* stateOut) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuLinkAddData(CUlinkState state, CUjitInputType type, void* data, size_t size, const char* name, unsigned int numOptions, CUjit_option* options, void** optionValues) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuLinkAddFile(CUlinkState state, CUjitInputType type, const char* path, unsigned int numOptions, CUjit_option* options, void** optionValues) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuLinkComplete(CUlinkState state, void** cubinOut, size_t* sizeOut) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuLinkDestroy(CUlinkState state) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuModuleGetTexRef(CUtexref* pTexRef, CUmodule hmod, const char* name) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuModuleGetSurfRef(CUsurfref* pSurfRef, CUmodule hmod, const char* name) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuLibraryLoadData(CUlibrary* library, const void* code, CUjit_option* jitOptions, void** jitOptionsValues, unsigned int numJitOptions, CUlibraryOption* libraryOptions, void** libraryOptionValues, unsigned int numLibraryOptions) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuLibraryLoadFromFile(CUlibrary* library, const char* fileName, CUjit_option* jitOptions, void** jitOptionsValues, unsigned int numJitOptions, CUlibraryOption* libraryOptions, void** libraryOptionValues, unsigned int numLibraryOptions) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuLibraryUnload(CUlibrary library) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuLibraryGetKernel(CUkernel* pKernel, CUlibrary library, const char* name) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuLibraryGetKernelCount(unsigned int* count, CUlibrary lib) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuLibraryEnumerateKernels(CUkernel* kernels, unsigned int numKernels, CUlibrary lib) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuLibraryGetModule(CUmodule* pMod, CUlibrary library) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuKernelGetFunction(CUfunction* pFunc, CUkernel kernel) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuKernelGetLibrary(CUlibrary* pLib, CUkernel kernel) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuLibraryGetGlobal(CUdeviceptr* dptr, size_t* bytes, CUlibrary library, const char* name) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuLibraryGetManaged(CUdeviceptr* dptr, size_t* bytes, CUlibrary library, const char* name) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuLibraryGetUnifiedFunction(void** fptr, CUlibrary library, const char* symbol) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuKernelGetAttribute(int* pi, CUfunction_attribute attrib, CUkernel kernel, CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuKernelSetAttribute(CUfunction_attribute attrib, int val, CUkernel kernel, CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuKernelSetCacheConfig(CUkernel kernel, CUfunc_cache config, CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuKernelGetName(const char** name, CUkernel hfunc) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuKernelGetParamInfo(CUkernel kernel, size_t paramIndex, size_t* paramOffset, size_t* paramSize) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMemGetInfo(size_t* free, size_t* total) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMemAlloc(CUdeviceptr* dptr, size_t bytesize) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMemAllocPitch(CUdeviceptr* dptr, size_t* pPitch, size_t WidthInBytes, size_t Height, unsigned int ElementSizeBytes) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMemFree(CUdeviceptr dptr) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMemGetAddressRange(CUdeviceptr* pbase, size_t* psize, CUdeviceptr dptr) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMemAllocHost(void** pp, size_t bytesize) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMemFreeHost(void* p) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMemHostAlloc(void** pp, size_t bytesize, unsigned int Flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMemHostGetDevicePointer(CUdeviceptr* pdptr, void* p, unsigned int Flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMemHostGetFlags(unsigned int* pFlags, void* p) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMemAllocManaged(CUdeviceptr* dptr, size_t bytesize, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuDeviceRegisterAsyncNotification(CUdevice device, CUasyncCallback callbackFunc, void* userData, CUasyncCallbackHandle* callback) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuDeviceUnregisterAsyncNotification(CUdevice device, CUasyncCallbackHandle callback) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuDeviceGetByPCIBusId(CUdevice* dev, const char* pciBusId) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuDeviceGetPCIBusId(char* pciBusId, int len, CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuIpcGetEventHandle(CUipcEventHandle* pHandle, CUevent event) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuIpcOpenEventHandle(CUevent* phEvent, CUipcEventHandle handle) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuIpcGetMemHandle(CUipcMemHandle* pHandle, CUdeviceptr dptr) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuIpcOpenMemHandle(CUdeviceptr* pdptr, CUipcMemHandle handle, unsigned int Flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuIpcCloseMemHandle(CUdeviceptr dptr) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMemHostRegister(void* p, size_t bytesize, unsigned int Flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMemHostUnregister(void* p) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMemcpy(CUdeviceptr dst, CUdeviceptr src, size_t ByteCount) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMemcpyPeer(CUdeviceptr dstDevice, CUcontext dstContext, CUdeviceptr srcDevice, CUcontext srcContext, size_t ByteCount) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMemcpyHtoD(CUdeviceptr dstDevice, const void* srcHost, size_t ByteCount) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMemcpyDtoH(void* dstHost, CUdeviceptr srcDevice, size_t ByteCount) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMemcpyDtoD(CUdeviceptr dstDevice, CUdeviceptr srcDevice, size_t ByteCount) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMemcpyDtoA(CUarray dstArray, size_t dstOffset, CUdeviceptr srcDevice, size_t ByteCount) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMemcpyAtoD(CUdeviceptr dstDevice, CUarray srcArray, size_t srcOffset, size_t ByteCount) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMemcpyHtoA(CUarray dstArray, size_t dstOffset, const void* srcHost, size_t ByteCount) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMemcpyAtoH(void* dstHost, CUarray srcArray, size_t srcOffset, size_t ByteCount) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMemcpyAtoA(CUarray dstArray, size_t dstOffset, CUarray srcArray, size_t srcOffset, size_t ByteCount) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMemcpy2D(const CUDA_MEMCPY2D* pCopy) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMemcpy2DUnaligned(const CUDA_MEMCPY2D* pCopy) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMemcpy3D(const CUDA_MEMCPY3D* pCopy) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMemcpy3DPeer(const CUDA_MEMCPY3D_PEER* pCopy) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMemcpyAsync(CUdeviceptr dst, CUdeviceptr src, size_t ByteCount, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMemcpyPeerAsync(CUdeviceptr dstDevice, CUcontext dstContext, CUdeviceptr srcDevice, CUcontext srcContext, size_t ByteCount, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMemcpyHtoDAsync(CUdeviceptr dstDevice, const void* srcHost, size_t ByteCount, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMemcpyDtoHAsync(void* dstHost, CUdeviceptr srcDevice, size_t ByteCount, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMemcpyDtoDAsync(CUdeviceptr dstDevice, CUdeviceptr srcDevice, size_t ByteCount, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMemcpyHtoAAsync(CUarray dstArray, size_t dstOffset, const void* srcHost, size_t ByteCount, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMemcpyAtoHAsync(void* dstHost, CUarray srcArray, size_t srcOffset, size_t ByteCount, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMemcpy2DAsync(const CUDA_MEMCPY2D* pCopy, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMemcpy3DAsync(const CUDA_MEMCPY3D* pCopy, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMemcpy3DPeerAsync(const CUDA_MEMCPY3D_PEER* pCopy, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMemsetD8(CUdeviceptr dstDevice, unsigned char uc, size_t N) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMemsetD16(CUdeviceptr dstDevice, unsigned short us, size_t N) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMemsetD32(CUdeviceptr dstDevice, unsigned int ui, size_t N) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMemsetD2D8(CUdeviceptr dstDevice, size_t dstPitch, unsigned char uc, size_t Width, size_t Height) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMemsetD2D16(CUdeviceptr dstDevice, size_t dstPitch, unsigned short us, size_t Width, size_t Height) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMemsetD2D32(CUdeviceptr dstDevice, size_t dstPitch, unsigned int ui, size_t Width, size_t Height) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMemsetD8Async(CUdeviceptr dstDevice, unsigned char uc, size_t N, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMemsetD16Async(CUdeviceptr dstDevice, unsigned short us, size_t N, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMemsetD32Async(CUdeviceptr dstDevice, unsigned int ui, size_t N, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMemsetD2D8Async(CUdeviceptr dstDevice, size_t dstPitch, unsigned char uc, size_t Width, size_t Height, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMemsetD2D16Async(CUdeviceptr dstDevice, size_t dstPitch, unsigned short us, size_t Width, size_t Height, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMemsetD2D32Async(CUdeviceptr dstDevice, size_t dstPitch, unsigned int ui, size_t Width, size_t Height, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuArrayCreate(CUarray* pHandle, const CUDA_ARRAY_DESCRIPTOR* pAllocateArray) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuArrayGetDescriptor(CUDA_ARRAY_DESCRIPTOR* pArrayDescriptor, CUarray hArray) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuArrayGetSparseProperties(CUDA_ARRAY_SPARSE_PROPERTIES* sparseProperties, CUarray array) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMipmappedArrayGetSparseProperties(CUDA_ARRAY_SPARSE_PROPERTIES* sparseProperties, CUmipmappedArray mipmap) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuArrayGetMemoryRequirements(CUDA_ARRAY_MEMORY_REQUIREMENTS* memoryRequirements, CUarray array, CUdevice device) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMipmappedArrayGetMemoryRequirements(CUDA_ARRAY_MEMORY_REQUIREMENTS* memoryRequirements, CUmipmappedArray mipmap, CUdevice device) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuArrayGetPlane(CUarray* pPlaneArray, CUarray hArray, unsigned int planeIdx) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuArrayDestroy(CUarray hArray) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuArray3DCreate(CUarray* pHandle, const CUDA_ARRAY3D_DESCRIPTOR* pAllocateArray) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuArray3DGetDescriptor(CUDA_ARRAY3D_DESCRIPTOR* pArrayDescriptor, CUarray hArray) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMipmappedArrayCreate(CUmipmappedArray* pHandle, const CUDA_ARRAY3D_DESCRIPTOR* pMipmappedArrayDesc, unsigned int numMipmapLevels) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMipmappedArrayGetLevel(CUarray* pLevelArray, CUmipmappedArray hMipmappedArray, unsigned int level) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMipmappedArrayDestroy(CUmipmappedArray hMipmappedArray) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMemGetHandleForAddressRange(void* handle, CUdeviceptr dptr, size_t size, CUmemRangeHandleType handleType, unsigned long long flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMemBatchDecompressAsync(CUmemDecompressParams* paramsArray, size_t count, unsigned int flags, size_t* errorIndex, CUstream stream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMemAddressReserve(CUdeviceptr* ptr, size_t size, size_t alignment, CUdeviceptr addr, unsigned long long flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMemAddressFree(CUdeviceptr ptr, size_t size) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMemCreate(CUmemGenericAllocationHandle* handle, size_t size, const CUmemAllocationProp* prop, unsigned long long flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMemRelease(CUmemGenericAllocationHandle handle) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMemMap(CUdeviceptr ptr, size_t size, size_t offset, CUmemGenericAllocationHandle handle, unsigned long long flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMemMapArrayAsync(CUarrayMapInfo* mapInfoList, unsigned int count, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMemUnmap(CUdeviceptr ptr, size_t size) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMemSetAccess(CUdeviceptr ptr, size_t size, const CUmemAccessDesc* desc, size_t count) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMemGetAccess(unsigned long long* flags, const CUmemLocation* location, CUdeviceptr ptr) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMemExportToShareableHandle(void* shareableHandle, CUmemGenericAllocationHandle handle, CUmemAllocationHandleType handleType, unsigned long long flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMemImportFromShareableHandle(CUmemGenericAllocationHandle* handle, void* osHandle, CUmemAllocationHandleType shHandleType) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMemGetAllocationGranularity(size_t* granularity, const CUmemAllocationProp* prop, CUmemAllocationGranularity_flags option) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMemGetAllocationPropertiesFromHandle(CUmemAllocationProp* prop, CUmemGenericAllocationHandle handle) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMemRetainAllocationHandle(CUmemGenericAllocationHandle* handle, void* addr) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMemFreeAsync(CUdeviceptr dptr, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMemAllocAsync(CUdeviceptr* dptr, size_t bytesize, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMemPoolTrimTo(CUmemoryPool pool, size_t minBytesToKeep) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMemPoolSetAttribute(CUmemoryPool pool, CUmemPool_attribute attr, void* value) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMemPoolGetAttribute(CUmemoryPool pool, CUmemPool_attribute attr, void* value) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMemPoolSetAccess(CUmemoryPool pool, const CUmemAccessDesc* map, size_t count) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMemPoolGetAccess(CUmemAccess_flags* flags, CUmemoryPool memPool, CUmemLocation* location) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMemPoolCreate(CUmemoryPool* pool, const CUmemPoolProps* poolProps) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMemPoolDestroy(CUmemoryPool pool) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMemAllocFromPoolAsync(CUdeviceptr* dptr, size_t bytesize, CUmemoryPool pool, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMemPoolExportToShareableHandle(void* handle_out, CUmemoryPool pool, CUmemAllocationHandleType handleType, unsigned long long flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMemPoolImportFromShareableHandle(CUmemoryPool* pool_out, void* handle, CUmemAllocationHandleType handleType, unsigned long long flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMemPoolExportPointer(CUmemPoolPtrExportData* shareData_out, CUdeviceptr ptr) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMemPoolImportPointer(CUdeviceptr* ptr_out, CUmemoryPool pool, CUmemPoolPtrExportData* shareData) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMulticastCreate(CUmemGenericAllocationHandle* mcHandle, const CUmulticastObjectProp* prop) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMulticastAddDevice(CUmemGenericAllocationHandle mcHandle, CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMulticastBindMem(CUmemGenericAllocationHandle mcHandle, size_t mcOffset, CUmemGenericAllocationHandle memHandle, size_t memOffset, size_t size, unsigned long long flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMulticastBindAddr(CUmemGenericAllocationHandle mcHandle, size_t mcOffset, CUdeviceptr memptr, size_t size, unsigned long long flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMulticastUnbind(CUmemGenericAllocationHandle mcHandle, CUdevice dev, size_t mcOffset, size_t size) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMulticastGetGranularity(size_t* granularity, const CUmulticastObjectProp* prop, CUmulticastGranularity_flags option) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuPointerGetAttribute(void* data, CUpointer_attribute attribute, CUdeviceptr ptr) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMemPrefetchAsync(CUdeviceptr devPtr, size_t count, CUmemLocation location, unsigned int flags, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMemAdvise(CUdeviceptr devPtr, size_t count, CUmem_advise advice, CUmemLocation location) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMemRangeGetAttribute(void* data, size_t dataSize, CUmem_range_attribute attribute, CUdeviceptr devPtr, size_t count) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMemRangeGetAttributes(void** data, size_t* dataSizes, CUmem_range_attribute* attributes, size_t numAttributes, CUdeviceptr devPtr, size_t count) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuPointerSetAttribute(const void* value, CUpointer_attribute attribute, CUdeviceptr ptr) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuPointerGetAttributes(unsigned int numAttributes, CUpointer_attribute* attributes, void** data, CUdeviceptr ptr) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuStreamCreate(CUstream* phStream, unsigned int Flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuStreamCreateWithPriority(CUstream* phStream, unsigned int flags, int priority) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuStreamGetPriority(CUstream hStream, int* priority) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuStreamGetDevice(CUstream hStream, CUdevice* device) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuStreamGetFlags(CUstream hStream, unsigned int* flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuStreamGetId(CUstream hStream, unsigned long long* streamId) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuStreamGetCtx(CUstream hStream, CUcontext* pctx) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuStreamGetCtx_v2(CUstream hStream, CUcontext* pCtx, CUgreenCtx* pGreenCtx) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuStreamWaitEvent(CUstream hStream, CUevent hEvent, unsigned int Flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuStreamAddCallback(CUstream hStream, CUstreamCallback callback, void* userData, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuStreamBeginCapture(CUstream hStream, CUstreamCaptureMode mode) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuStreamBeginCaptureToGraph(CUstream hStream, CUgraph hGraph, const CUgraphNode* dependencies, const CUgraphEdgeData* dependencyData, size_t numDependencies, CUstreamCaptureMode mode) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuThreadExchangeStreamCaptureMode(CUstreamCaptureMode* mode) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuStreamEndCapture(CUstream hStream, CUgraph* phGraph) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuStreamIsCapturing(CUstream hStream, CUstreamCaptureStatus* captureStatus) except?_CURESULT_INTERNAL_LOADING_ERROR 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?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuStreamUpdateCaptureDependencies(CUstream hStream, CUgraphNode* dependencies, const CUgraphEdgeData* dependencyData, size_t numDependencies, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuStreamAttachMemAsync(CUstream hStream, CUdeviceptr dptr, size_t length, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuStreamQuery(CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuStreamSynchronize(CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuStreamDestroy(CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuStreamCopyAttributes(CUstream dst, CUstream src) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuStreamGetAttribute(CUstream hStream, CUstreamAttrID attr, CUstreamAttrValue* value_out) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuStreamSetAttribute(CUstream hStream, CUstreamAttrID attr, const CUstreamAttrValue* value) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuEventCreate(CUevent* phEvent, unsigned int Flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuEventRecord(CUevent hEvent, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuEventRecordWithFlags(CUevent hEvent, CUstream hStream, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuEventQuery(CUevent hEvent) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuEventSynchronize(CUevent hEvent) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuEventDestroy(CUevent hEvent) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuEventElapsedTime(float* pMilliseconds, CUevent hStart, CUevent hEnd) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuImportExternalMemory(CUexternalMemory* extMem_out, const CUDA_EXTERNAL_MEMORY_HANDLE_DESC* memHandleDesc) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuExternalMemoryGetMappedBuffer(CUdeviceptr* devPtr, CUexternalMemory extMem, const CUDA_EXTERNAL_MEMORY_BUFFER_DESC* bufferDesc) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuExternalMemoryGetMappedMipmappedArray(CUmipmappedArray* mipmap, CUexternalMemory extMem, const CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC* mipmapDesc) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuDestroyExternalMemory(CUexternalMemory extMem) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuImportExternalSemaphore(CUexternalSemaphore* extSem_out, const CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC* semHandleDesc) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuSignalExternalSemaphoresAsync(const CUexternalSemaphore* extSemArray, const CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS* paramsArray, unsigned int numExtSems, CUstream stream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuWaitExternalSemaphoresAsync(const CUexternalSemaphore* extSemArray, const CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS* paramsArray, unsigned int numExtSems, CUstream stream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuDestroyExternalSemaphore(CUexternalSemaphore extSem) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuStreamWaitValue32(CUstream stream, CUdeviceptr addr, cuuint32_t value, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuStreamWaitValue64(CUstream stream, CUdeviceptr addr, cuuint64_t value, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuStreamWriteValue32(CUstream stream, CUdeviceptr addr, cuuint32_t value, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuStreamWriteValue64(CUstream stream, CUdeviceptr addr, cuuint64_t value, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuStreamBatchMemOp(CUstream stream, unsigned int count, CUstreamBatchMemOpParams* paramArray, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuFuncGetAttribute(int* pi, CUfunction_attribute attrib, CUfunction hfunc) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuFuncSetAttribute(CUfunction hfunc, CUfunction_attribute attrib, int value) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuFuncSetCacheConfig(CUfunction hfunc, CUfunc_cache config) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuFuncGetModule(CUmodule* hmod, CUfunction hfunc) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuFuncGetName(const char** name, CUfunction hfunc) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuFuncGetParamInfo(CUfunction func, size_t paramIndex, size_t* paramOffset, size_t* paramSize) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuFuncIsLoaded(CUfunctionLoadingState* state, CUfunction function) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuFuncLoad(CUfunction function) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuLaunchKernel(CUfunction f, unsigned int gridDimX, unsigned int gridDimY, unsigned int gridDimZ, unsigned int blockDimX, unsigned int blockDimY, unsigned int blockDimZ, unsigned int sharedMemBytes, CUstream hStream, void** kernelParams, void** extra) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuLaunchKernelEx(const CUlaunchConfig* config, CUfunction f, void** kernelParams, void** extra) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuLaunchCooperativeKernel(CUfunction f, unsigned int gridDimX, unsigned int gridDimY, unsigned int gridDimZ, unsigned int blockDimX, unsigned int blockDimY, unsigned int blockDimZ, unsigned int sharedMemBytes, CUstream hStream, void** kernelParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuLaunchCooperativeKernelMultiDevice(CUDA_LAUNCH_PARAMS* launchParamsList, unsigned int numDevices, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuLaunchHostFunc(CUstream hStream, CUhostFn fn, void* userData) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuFuncSetBlockShape(CUfunction hfunc, int x, int y, int z) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuFuncSetSharedSize(CUfunction hfunc, unsigned int bytes) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuParamSetSize(CUfunction hfunc, unsigned int numbytes) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuParamSeti(CUfunction hfunc, int offset, unsigned int value) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuParamSetf(CUfunction hfunc, int offset, float value) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuParamSetv(CUfunction hfunc, int offset, void* ptr, unsigned int numbytes) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuLaunch(CUfunction f) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuLaunchGrid(CUfunction f, int grid_width, int grid_height) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuLaunchGridAsync(CUfunction f, int grid_width, int grid_height, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuParamSetTexRef(CUfunction hfunc, int texunit, CUtexref hTexRef) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuFuncSetSharedMemConfig(CUfunction hfunc, CUsharedconfig config) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGraphCreate(CUgraph* phGraph, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGraphAddKernelNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, const CUDA_KERNEL_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGraphKernelNodeGetParams(CUgraphNode hNode, CUDA_KERNEL_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGraphKernelNodeSetParams(CUgraphNode hNode, const CUDA_KERNEL_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGraphAddMemcpyNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, const CUDA_MEMCPY3D* copyParams, CUcontext ctx) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGraphMemcpyNodeGetParams(CUgraphNode hNode, CUDA_MEMCPY3D* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGraphMemcpyNodeSetParams(CUgraphNode hNode, const CUDA_MEMCPY3D* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGraphAddMemsetNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, const CUDA_MEMSET_NODE_PARAMS* memsetParams, CUcontext ctx) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGraphMemsetNodeGetParams(CUgraphNode hNode, CUDA_MEMSET_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGraphMemsetNodeSetParams(CUgraphNode hNode, const CUDA_MEMSET_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGraphAddHostNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, const CUDA_HOST_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGraphHostNodeGetParams(CUgraphNode hNode, CUDA_HOST_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGraphHostNodeSetParams(CUgraphNode hNode, const CUDA_HOST_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGraphAddChildGraphNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, CUgraph childGraph) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGraphChildGraphNodeGetGraph(CUgraphNode hNode, CUgraph* phGraph) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGraphAddEmptyNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGraphAddEventRecordNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, CUevent event) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGraphEventRecordNodeGetEvent(CUgraphNode hNode, CUevent* event_out) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGraphEventRecordNodeSetEvent(CUgraphNode hNode, CUevent event) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGraphAddEventWaitNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, CUevent event) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGraphEventWaitNodeGetEvent(CUgraphNode hNode, CUevent* event_out) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGraphEventWaitNodeSetEvent(CUgraphNode hNode, CUevent event) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGraphAddExternalSemaphoresSignalNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, const CUDA_EXT_SEM_SIGNAL_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGraphExternalSemaphoresSignalNodeGetParams(CUgraphNode hNode, CUDA_EXT_SEM_SIGNAL_NODE_PARAMS* params_out) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGraphExternalSemaphoresSignalNodeSetParams(CUgraphNode hNode, const CUDA_EXT_SEM_SIGNAL_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGraphAddExternalSemaphoresWaitNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, const CUDA_EXT_SEM_WAIT_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGraphExternalSemaphoresWaitNodeGetParams(CUgraphNode hNode, CUDA_EXT_SEM_WAIT_NODE_PARAMS* params_out) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGraphExternalSemaphoresWaitNodeSetParams(CUgraphNode hNode, const CUDA_EXT_SEM_WAIT_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGraphAddBatchMemOpNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, const CUDA_BATCH_MEM_OP_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGraphBatchMemOpNodeGetParams(CUgraphNode hNode, CUDA_BATCH_MEM_OP_NODE_PARAMS* nodeParams_out) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGraphBatchMemOpNodeSetParams(CUgraphNode hNode, const CUDA_BATCH_MEM_OP_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGraphExecBatchMemOpNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_BATCH_MEM_OP_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGraphAddMemAllocNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, CUDA_MEM_ALLOC_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGraphMemAllocNodeGetParams(CUgraphNode hNode, CUDA_MEM_ALLOC_NODE_PARAMS* params_out) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGraphAddMemFreeNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, CUdeviceptr dptr) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGraphMemFreeNodeGetParams(CUgraphNode hNode, CUdeviceptr* dptr_out) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuDeviceGraphMemTrim(CUdevice device) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuDeviceGetGraphMemAttribute(CUdevice device, CUgraphMem_attribute attr, void* value) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuDeviceSetGraphMemAttribute(CUdevice device, CUgraphMem_attribute attr, void* value) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGraphClone(CUgraph* phGraphClone, CUgraph originalGraph) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGraphNodeFindInClone(CUgraphNode* phNode, CUgraphNode hOriginalNode, CUgraph hClonedGraph) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGraphNodeGetType(CUgraphNode hNode, CUgraphNodeType* type) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGraphGetNodes(CUgraph hGraph, CUgraphNode* nodes, size_t* numNodes) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGraphGetRootNodes(CUgraph hGraph, CUgraphNode* rootNodes, size_t* numRootNodes) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGraphGetEdges(CUgraph hGraph, CUgraphNode* from_, CUgraphNode* to, CUgraphEdgeData* edgeData, size_t* numEdges) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGraphNodeGetDependencies(CUgraphNode hNode, CUgraphNode* dependencies, CUgraphEdgeData* edgeData, size_t* numDependencies) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGraphNodeGetDependentNodes(CUgraphNode hNode, CUgraphNode* dependentNodes, CUgraphEdgeData* edgeData, size_t* numDependentNodes) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGraphAddDependencies(CUgraph hGraph, const CUgraphNode* from_, const CUgraphNode* to, const CUgraphEdgeData* edgeData, size_t numDependencies) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGraphRemoveDependencies(CUgraph hGraph, const CUgraphNode* from_, const CUgraphNode* to, const CUgraphEdgeData* edgeData, size_t numDependencies) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGraphDestroyNode(CUgraphNode hNode) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGraphInstantiate(CUgraphExec* phGraphExec, CUgraph hGraph, unsigned long long flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGraphInstantiateWithParams(CUgraphExec* phGraphExec, CUgraph hGraph, CUDA_GRAPH_INSTANTIATE_PARAMS* instantiateParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGraphExecGetFlags(CUgraphExec hGraphExec, cuuint64_t* flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGraphExecKernelNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_KERNEL_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGraphExecMemcpyNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_MEMCPY3D* copyParams, CUcontext ctx) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGraphExecMemsetNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_MEMSET_NODE_PARAMS* memsetParams, CUcontext ctx) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGraphExecHostNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_HOST_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGraphExecChildGraphNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, CUgraph childGraph) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGraphExecEventRecordNodeSetEvent(CUgraphExec hGraphExec, CUgraphNode hNode, CUevent event) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGraphExecEventWaitNodeSetEvent(CUgraphExec hGraphExec, CUgraphNode hNode, CUevent event) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGraphExecExternalSemaphoresSignalNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_EXT_SEM_SIGNAL_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGraphExecExternalSemaphoresWaitNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_EXT_SEM_WAIT_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGraphNodeSetEnabled(CUgraphExec hGraphExec, CUgraphNode hNode, unsigned int isEnabled) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGraphNodeGetEnabled(CUgraphExec hGraphExec, CUgraphNode hNode, unsigned int* isEnabled) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGraphUpload(CUgraphExec hGraphExec, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGraphLaunch(CUgraphExec hGraphExec, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGraphExecDestroy(CUgraphExec hGraphExec) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGraphDestroy(CUgraph hGraph) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGraphExecUpdate(CUgraphExec hGraphExec, CUgraph hGraph, CUgraphExecUpdateResultInfo* resultInfo) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGraphKernelNodeCopyAttributes(CUgraphNode dst, CUgraphNode src) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGraphKernelNodeGetAttribute(CUgraphNode hNode, CUkernelNodeAttrID attr, CUkernelNodeAttrValue* value_out) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGraphKernelNodeSetAttribute(CUgraphNode hNode, CUkernelNodeAttrID attr, const CUkernelNodeAttrValue* value) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGraphDebugDotPrint(CUgraph hGraph, const char* path, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuUserObjectCreate(CUuserObject* object_out, void* ptr, CUhostFn destroy, unsigned int initialRefcount, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuUserObjectRetain(CUuserObject object, unsigned int count) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuUserObjectRelease(CUuserObject object, unsigned int count) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGraphRetainUserObject(CUgraph graph, CUuserObject object, unsigned int count, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGraphReleaseUserObject(CUgraph graph, CUuserObject object, unsigned int count) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGraphAddNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, const CUgraphEdgeData* dependencyData, size_t numDependencies, CUgraphNodeParams* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGraphNodeSetParams(CUgraphNode hNode, CUgraphNodeParams* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGraphExecNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, CUgraphNodeParams* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGraphConditionalHandleCreate(CUgraphConditionalHandle* pHandle_out, CUgraph hGraph, CUcontext ctx, unsigned int defaultLaunchValue, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuOccupancyMaxActiveBlocksPerMultiprocessor(int* numBlocks, CUfunction func, int blockSize, size_t dynamicSMemSize) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(int* numBlocks, CUfunction func, int blockSize, size_t dynamicSMemSize, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuOccupancyMaxPotentialBlockSize(int* minGridSize, int* blockSize, CUfunction func, CUoccupancyB2DSize blockSizeToDynamicSMemSize, size_t dynamicSMemSize, int blockSizeLimit) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuOccupancyMaxPotentialBlockSizeWithFlags(int* minGridSize, int* blockSize, CUfunction func, CUoccupancyB2DSize blockSizeToDynamicSMemSize, size_t dynamicSMemSize, int blockSizeLimit, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuOccupancyAvailableDynamicSMemPerBlock(size_t* dynamicSmemSize, CUfunction func, int numBlocks, int blockSize) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuOccupancyMaxPotentialClusterSize(int* clusterSize, CUfunction func, const CUlaunchConfig* config) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuOccupancyMaxActiveClusters(int* numClusters, CUfunction func, const CUlaunchConfig* config) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuTexRefSetArray(CUtexref hTexRef, CUarray hArray, unsigned int Flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuTexRefSetMipmappedArray(CUtexref hTexRef, CUmipmappedArray hMipmappedArray, unsigned int Flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuTexRefSetAddress(size_t* ByteOffset, CUtexref hTexRef, CUdeviceptr dptr, size_t bytes) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuTexRefSetAddress2D(CUtexref hTexRef, const CUDA_ARRAY_DESCRIPTOR* desc, CUdeviceptr dptr, size_t Pitch) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuTexRefSetFormat(CUtexref hTexRef, CUarray_format fmt, int NumPackedComponents) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuTexRefSetAddressMode(CUtexref hTexRef, int dim, CUaddress_mode am) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuTexRefSetFilterMode(CUtexref hTexRef, CUfilter_mode fm) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuTexRefSetMipmapFilterMode(CUtexref hTexRef, CUfilter_mode fm) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuTexRefSetMipmapLevelBias(CUtexref hTexRef, float bias) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuTexRefSetMipmapLevelClamp(CUtexref hTexRef, float minMipmapLevelClamp, float maxMipmapLevelClamp) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuTexRefSetMaxAnisotropy(CUtexref hTexRef, unsigned int maxAniso) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuTexRefSetBorderColor(CUtexref hTexRef, float* pBorderColor) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuTexRefSetFlags(CUtexref hTexRef, unsigned int Flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuTexRefGetAddress(CUdeviceptr* pdptr, CUtexref hTexRef) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuTexRefGetArray(CUarray* phArray, CUtexref hTexRef) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuTexRefGetMipmappedArray(CUmipmappedArray* phMipmappedArray, CUtexref hTexRef) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuTexRefGetAddressMode(CUaddress_mode* pam, CUtexref hTexRef, int dim) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuTexRefGetFilterMode(CUfilter_mode* pfm, CUtexref hTexRef) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuTexRefGetFormat(CUarray_format* pFormat, int* pNumChannels, CUtexref hTexRef) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuTexRefGetMipmapFilterMode(CUfilter_mode* pfm, CUtexref hTexRef) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuTexRefGetMipmapLevelBias(float* pbias, CUtexref hTexRef) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuTexRefGetMipmapLevelClamp(float* pminMipmapLevelClamp, float* pmaxMipmapLevelClamp, CUtexref hTexRef) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuTexRefGetMaxAnisotropy(int* pmaxAniso, CUtexref hTexRef) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuTexRefGetBorderColor(float* pBorderColor, CUtexref hTexRef) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuTexRefGetFlags(unsigned int* pFlags, CUtexref hTexRef) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuTexRefCreate(CUtexref* pTexRef) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuTexRefDestroy(CUtexref hTexRef) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuSurfRefSetArray(CUsurfref hSurfRef, CUarray hArray, unsigned int Flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuSurfRefGetArray(CUarray* phArray, CUsurfref hSurfRef) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuTexObjectCreate(CUtexObject* pTexObject, const CUDA_RESOURCE_DESC* pResDesc, const CUDA_TEXTURE_DESC* pTexDesc, const CUDA_RESOURCE_VIEW_DESC* pResViewDesc) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuTexObjectDestroy(CUtexObject texObject) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuTexObjectGetResourceDesc(CUDA_RESOURCE_DESC* pResDesc, CUtexObject texObject) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuTexObjectGetTextureDesc(CUDA_TEXTURE_DESC* pTexDesc, CUtexObject texObject) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuTexObjectGetResourceViewDesc(CUDA_RESOURCE_VIEW_DESC* pResViewDesc, CUtexObject texObject) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuSurfObjectCreate(CUsurfObject* pSurfObject, const CUDA_RESOURCE_DESC* pResDesc) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuSurfObjectDestroy(CUsurfObject surfObject) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuSurfObjectGetResourceDesc(CUDA_RESOURCE_DESC* pResDesc, CUsurfObject surfObject) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuTensorMapEncodeTiled(CUtensorMap* tensorMap, CUtensorMapDataType tensorDataType, cuuint32_t tensorRank, void* globalAddress, const cuuint64_t* globalDim, const cuuint64_t* globalStrides, const cuuint32_t* boxDim, const cuuint32_t* elementStrides, CUtensorMapInterleave interleave, CUtensorMapSwizzle swizzle, CUtensorMapL2promotion l2Promotion, CUtensorMapFloatOOBfill oobFill) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuTensorMapEncodeIm2col(CUtensorMap* tensorMap, CUtensorMapDataType tensorDataType, cuuint32_t tensorRank, void* globalAddress, const cuuint64_t* globalDim, const cuuint64_t* globalStrides, const int* pixelBoxLowerCorner, const int* pixelBoxUpperCorner, cuuint32_t channelsPerPixel, cuuint32_t pixelsPerColumn, const cuuint32_t* elementStrides, CUtensorMapInterleave interleave, CUtensorMapSwizzle swizzle, CUtensorMapL2promotion l2Promotion, CUtensorMapFloatOOBfill oobFill) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuTensorMapEncodeIm2colWide(CUtensorMap* tensorMap, CUtensorMapDataType tensorDataType, cuuint32_t tensorRank, void* globalAddress, const cuuint64_t* globalDim, const cuuint64_t* globalStrides, int pixelBoxLowerCornerWidth, int pixelBoxUpperCornerWidth, cuuint32_t channelsPerPixel, cuuint32_t pixelsPerColumn, const cuuint32_t* elementStrides, CUtensorMapInterleave interleave, CUtensorMapIm2ColWideMode mode, CUtensorMapSwizzle swizzle, CUtensorMapL2promotion l2Promotion, CUtensorMapFloatOOBfill oobFill) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuTensorMapReplaceAddress(CUtensorMap* tensorMap, void* globalAddress) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuDeviceCanAccessPeer(int* canAccessPeer, CUdevice dev, CUdevice peerDev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuCtxEnablePeerAccess(CUcontext peerContext, unsigned int Flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuCtxDisablePeerAccess(CUcontext peerContext) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuDeviceGetP2PAttribute(int* value, CUdevice_P2PAttribute attrib, CUdevice srcDevice, CUdevice dstDevice) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGraphicsUnregisterResource(CUgraphicsResource resource) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGraphicsSubResourceGetMappedArray(CUarray* pArray, CUgraphicsResource resource, unsigned int arrayIndex, unsigned int mipLevel) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGraphicsResourceGetMappedMipmappedArray(CUmipmappedArray* pMipmappedArray, CUgraphicsResource resource) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGraphicsResourceGetMappedPointer(CUdeviceptr* pDevPtr, size_t* pSize, CUgraphicsResource resource) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGraphicsResourceSetMapFlags(CUgraphicsResource resource, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGraphicsMapResources(unsigned int count, CUgraphicsResource* resources, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGraphicsUnmapResources(unsigned int count, CUgraphicsResource* resources, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGetProcAddress(const char* symbol, void** pfn, int cudaVersion, cuuint64_t flags, CUdriverProcAddressQueryResult* symbolStatus) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuCoredumpGetAttribute(CUcoredumpSettings attrib, void* value, size_t* size) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuCoredumpGetAttributeGlobal(CUcoredumpSettings attrib, void* value, size_t* size) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuCoredumpSetAttribute(CUcoredumpSettings attrib, void* value, size_t* size) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuCoredumpSetAttributeGlobal(CUcoredumpSettings attrib, void* value, size_t* size) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGetExportTable(const void** ppExportTable, const CUuuid* pExportTableId) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGreenCtxCreate(CUgreenCtx* phCtx, CUdevResourceDesc desc, CUdevice dev, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGreenCtxDestroy(CUgreenCtx hCtx) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuCtxFromGreenCtx(CUcontext* pContext, CUgreenCtx hCtx) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuDeviceGetDevResource(CUdevice device, CUdevResource* resource, CUdevResourceType type) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuCtxGetDevResource(CUcontext hCtx, CUdevResource* resource, CUdevResourceType type) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGreenCtxGetDevResource(CUgreenCtx hCtx, CUdevResource* resource, CUdevResourceType type) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuDevSmResourceSplitByCount(CUdevResource* result, unsigned int* nbGroups, const CUdevResource* input, CUdevResource* remainder, unsigned int flags, unsigned int minCount) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuDevResourceGenerateDesc(CUdevResourceDesc* phDesc, CUdevResource* resources, unsigned int nbResources) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGreenCtxRecordEvent(CUgreenCtx hCtx, CUevent hEvent) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGreenCtxWaitEvent(CUgreenCtx hCtx, CUevent hEvent) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuStreamGetGreenCtx(CUstream hStream, CUgreenCtx* phCtx) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGreenCtxStreamCreate(CUstream* phStream, CUgreenCtx greenCtx, unsigned int flags, int priority) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuLogsRegisterCallback(CUlogsCallback callbackFunc, void* userData, CUlogsCallbackHandle* callback_out) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuLogsUnregisterCallback(CUlogsCallbackHandle callback) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuLogsCurrent(CUlogIterator* iterator_out, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuLogsDumpToFile(CUlogIterator* iterator, const char* pathToFile, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuLogsDumpToMemory(CUlogIterator* iterator, char* buffer, size_t* size, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuCheckpointProcessGetRestoreThreadId(int pid, int* tid) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuCheckpointProcessGetState(int pid, CUprocessState* state) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuCheckpointProcessLock(int pid, CUcheckpointLockArgs* args) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuCheckpointProcessCheckpoint(int pid, CUcheckpointCheckpointArgs* args) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuCheckpointProcessRestore(int pid, CUcheckpointRestoreArgs* args) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuCheckpointProcessUnlock(int pid, CUcheckpointUnlockArgs* args) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGraphicsEGLRegisterImage(CUgraphicsResource* pCudaResource, EGLImageKHR image, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuEGLStreamConsumerConnect(CUeglStreamConnection* conn, EGLStreamKHR stream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuEGLStreamConsumerConnectWithFlags(CUeglStreamConnection* conn, EGLStreamKHR stream, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuEGLStreamConsumerDisconnect(CUeglStreamConnection* conn) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuEGLStreamConsumerAcquireFrame(CUeglStreamConnection* conn, CUgraphicsResource* pCudaResource, CUstream* pStream, unsigned int timeout) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuEGLStreamConsumerReleaseFrame(CUeglStreamConnection* conn, CUgraphicsResource pCudaResource, CUstream* pStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuEGLStreamProducerConnect(CUeglStreamConnection* conn, EGLStreamKHR stream, EGLint width, EGLint height) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuEGLStreamProducerDisconnect(CUeglStreamConnection* conn) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuEGLStreamProducerPresentFrame(CUeglStreamConnection* conn, CUeglFrame eglframe, CUstream* pStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuEGLStreamProducerReturnFrame(CUeglStreamConnection* conn, CUeglFrame* eglframe, CUstream* pStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGraphicsResourceGetMappedEglFrame(CUeglFrame* eglFrame, CUgraphicsResource resource, unsigned int index, unsigned int mipLevel) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuEventCreateFromEGLSync(CUevent* phEvent, EGLSyncKHR eglSync, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGraphicsGLRegisterBuffer(CUgraphicsResource* pCudaResource, GLuint buffer, unsigned int Flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGraphicsGLRegisterImage(CUgraphicsResource* pCudaResource, GLuint image, GLenum target, unsigned int Flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGLGetDevices(unsigned int* pCudaDeviceCount, CUdevice* pCudaDevices, unsigned int cudaDeviceCount, CUGLDeviceList deviceList) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGLCtxCreate(CUcontext* pCtx, unsigned int Flags, CUdevice device) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGLInit() except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGLRegisterBufferObject(GLuint buffer) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGLMapBufferObject(CUdeviceptr* dptr, size_t* size, GLuint buffer) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGLUnmapBufferObject(GLuint buffer) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGLUnregisterBufferObject(GLuint buffer) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGLSetBufferObjectMapFlags(GLuint buffer, unsigned int Flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGLMapBufferObjectAsync(CUdeviceptr* dptr, size_t* size, GLuint buffer, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGLUnmapBufferObjectAsync(GLuint buffer, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuProfilerInitialize(const char* configFile, const char* outputFile, CUoutput_mode outputMode) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuProfilerStart() except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuProfilerStop() except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuVDPAUGetDevice(CUdevice* pDevice, VdpDevice vdpDevice, VdpGetProcAddress* vdpGetProcAddress) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuVDPAUCtxCreate(CUcontext* pCtx, unsigned int flags, CUdevice device, VdpDevice vdpDevice, VdpGetProcAddress* vdpGetProcAddress) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGraphicsVDPAURegisterVideoSurface(CUgraphicsResource* pCudaResource, VdpVideoSurface vdpSurface, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGraphicsVDPAURegisterOutputSurface(CUgraphicsResource* pCudaResource, VdpOutputSurface vdpSurface, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuDeviceGetHostAtomicCapabilities(unsigned int* capabilities, const CUatomicOperation* operations, unsigned int count, CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuCtxGetDevice_v2(CUdevice* device, CUcontext ctx) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuCtxSynchronize_v2(CUcontext ctx) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMemcpyBatchAsync(CUdeviceptr* dsts, CUdeviceptr* srcs, size_t* sizes, size_t count, CUmemcpyAttributes* attrs, size_t* attrsIdxs, size_t numAttrs, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMemcpy3DBatchAsync(size_t numOps, CUDA_MEMCPY3D_BATCH_OP* opList, unsigned long long flags, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMemGetDefaultMemPool(CUmemoryPool* pool_out, CUmemLocation* location, CUmemAllocationType type) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMemGetMemPool(CUmemoryPool* pool, CUmemLocation* location, CUmemAllocationType type) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMemSetMemPool(CUmemLocation* location, CUmemAllocationType type, CUmemoryPool pool) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMulticastBindMem_v2(CUmemGenericAllocationHandle mcHandle, CUdevice dev, size_t mcOffset, CUmemGenericAllocationHandle memHandle, size_t memOffset, size_t size, unsigned long long flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMulticastBindAddr_v2(CUmemGenericAllocationHandle mcHandle, CUdevice dev, size_t mcOffset, CUdeviceptr memptr, size_t size, unsigned long long flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMemPrefetchBatchAsync(CUdeviceptr* dptrs, size_t* sizes, size_t count, CUmemLocation* prefetchLocs, size_t* prefetchLocIdxs, size_t numPrefetchLocs, unsigned long long flags, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMemDiscardBatchAsync(CUdeviceptr* dptrs, size_t* sizes, size_t count, unsigned long long flags, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMemDiscardAndPrefetchBatchAsync(CUdeviceptr* dptrs, size_t* sizes, size_t count, CUmemLocation* prefetchLocs, size_t* prefetchLocIdxs, size_t numPrefetchLocs, unsigned long long flags, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGraphNodeGetContainingGraph(CUgraphNode hNode, CUgraph* phGraph) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGraphNodeGetLocalId(CUgraphNode hNode, unsigned int* nodeId) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGraphNodeGetToolsId(CUgraphNode hNode, unsigned long long* toolsNodeId) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGraphGetId(CUgraph hGraph, unsigned int* graphId) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGraphExecGetId(CUgraphExec hGraphExec, unsigned int* graphId) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuDeviceGetP2PAtomicCapabilities(unsigned int* capabilities, const CUatomicOperation* operations, unsigned int count, CUdevice srcDevice, CUdevice dstDevice) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuDevSmResourceSplit(CUdevResource* result, unsigned int nbGroups, const CUdevResource* input, CUdevResource* remainder, unsigned int flags, CU_DEV_SM_RESOURCE_GROUP_PARAMS* groupParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGreenCtxGetId(CUgreenCtx greenCtx, unsigned long long* greenCtxId) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuStreamGetDevResource(CUstream hStream, CUdevResource* resource, CUdevResourceType type) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuKernelGetParamCount(CUkernel kernel, size_t* paramCount) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMemcpyWithAttributesAsync(CUdeviceptr dst, CUdeviceptr src, size_t size, CUmemcpyAttributes* attr, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuMemcpy3DWithAttributesAsync(CUDA_MEMCPY3D_BATCH_OP* op, unsigned long long flags, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuStreamBeginCaptureToCig(CUstream hStream, CUstreamCigCaptureParams* streamCigCaptureParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuStreamEndCaptureToCig(CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuFuncGetParamCount(CUfunction func, size_t* paramCount) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuLaunchHostFunc_v2(CUstream hStream, CUhostFn fn, void* userData, unsigned int syncMode) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuGraphNodeGetParams(CUgraphNode hNode, CUgraphNodeParams* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuCoredumpRegisterStartCallback(CUcoredumpStatusCallback callback, void* userData, CUcoredumpCallbackHandle* callbackOut) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuCoredumpRegisterCompleteCallback(CUcoredumpStatusCallback callback, void* userData, CUcoredumpCallbackHandle* callbackOut) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuCoredumpDeregisterStartCallback(CUcoredumpCallbackHandle callback) except?_CURESULT_INTERNAL_LOADING_ERROR nogil +cdef CUresult cuCoredumpDeregisterCompleteCallback(CUcoredumpCallbackHandle callback) except?_CURESULT_INTERNAL_LOADING_ERROR 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 + +cdef enum: CU_STREAM_PER_THREAD = 2 + +cdef enum: CU_COMPUTE_ACCELERATED_TARGET_BASE = 65536 + +cdef enum: CU_COMPUTE_FAMILY_TARGET_BASE = 131072 + +cdef enum: CU_GRAPH_COND_ASSIGN_DEFAULT = 1 + +cdef enum: CU_GRAPH_KERNEL_NODE_PORT_DEFAULT = 0 + +cdef enum: CU_GRAPH_KERNEL_NODE_PORT_PROGRAMMATIC = 1 + +cdef enum: CU_GRAPH_KERNEL_NODE_PORT_LAUNCH_ORDER = 2 + +cdef enum: CU_KERNEL_NODE_ATTRIBUTE_ACCESS_POLICY_WINDOW = 1 + +cdef enum: CU_KERNEL_NODE_ATTRIBUTE_COOPERATIVE = 2 + +cdef enum: CU_KERNEL_NODE_ATTRIBUTE_CLUSTER_DIMENSION = 4 + +cdef enum: CU_KERNEL_NODE_ATTRIBUTE_CLUSTER_SCHEDULING_POLICY_PREFERENCE = 5 + +cdef enum: CU_KERNEL_NODE_ATTRIBUTE_PRIORITY = 8 + +cdef enum: CU_KERNEL_NODE_ATTRIBUTE_MEM_SYNC_DOMAIN_MAP = 9 + +cdef enum: CU_KERNEL_NODE_ATTRIBUTE_MEM_SYNC_DOMAIN = 10 + +cdef enum: CU_KERNEL_NODE_ATTRIBUTE_PREFERRED_CLUSTER_DIMENSION = 11 + +cdef enum: CU_KERNEL_NODE_ATTRIBUTE_DEVICE_UPDATABLE_KERNEL_NODE = 13 + +cdef enum: CU_KERNEL_NODE_ATTRIBUTE_PREFERRED_SHARED_MEMORY_CARVEOUT = 14 + +cdef enum: CU_STREAM_ATTRIBUTE_ACCESS_POLICY_WINDOW = 1 + +cdef enum: CU_STREAM_ATTRIBUTE_SYNCHRONIZATION_POLICY = 3 + +cdef enum: CU_STREAM_ATTRIBUTE_PRIORITY = 8 + +cdef enum: CU_STREAM_ATTRIBUTE_MEM_SYNC_DOMAIN_MAP = 9 + +cdef enum: CU_STREAM_ATTRIBUTE_MEM_SYNC_DOMAIN = 10 + +cdef enum: CU_MEMHOSTALLOC_PORTABLE = 1 + +cdef enum: CU_MEMHOSTALLOC_DEVICEMAP = 2 + +cdef enum: CU_MEMHOSTALLOC_WRITECOMBINED = 4 + +cdef enum: CU_MEMHOSTREGISTER_PORTABLE = 1 + +cdef enum: CU_MEMHOSTREGISTER_DEVICEMAP = 2 + +cdef enum: CU_MEMHOSTREGISTER_IOMEMORY = 4 + +cdef enum: CU_MEMHOSTREGISTER_READ_ONLY = 8 + +cdef enum: CU_ARRAY_SPARSE_PROPERTIES_SINGLE_MIPTAIL = 1 + +cdef enum: CU_TENSOR_MAP_NUM_QWORDS = 16 + +cdef enum: CUDA_EXTERNAL_MEMORY_DEDICATED = 1 + +cdef enum: CUDA_EXTERNAL_SEMAPHORE_SIGNAL_SKIP_NVSCIBUF_MEMSYNC = 1 + +cdef enum: CUDA_EXTERNAL_SEMAPHORE_WAIT_SKIP_NVSCIBUF_MEMSYNC = 2 + +cdef enum: CUDA_NVSCISYNC_ATTR_SIGNAL = 1 + +cdef enum: CUDA_NVSCISYNC_ATTR_WAIT = 2 + +cdef enum: CU_MEM_CREATE_USAGE_TILE_POOL = 1 + +cdef enum: CU_MEM_CREATE_USAGE_HW_DECOMPRESS = 2 + +cdef enum: CU_MEM_POOL_CREATE_USAGE_HW_DECOMPRESS = 2 + +cdef enum: CUDA_COOPERATIVE_LAUNCH_MULTI_DEVICE_NO_PRE_LAUNCH_SYNC = 1 + +cdef enum: CUDA_COOPERATIVE_LAUNCH_MULTI_DEVICE_NO_POST_LAUNCH_SYNC = 2 + +cdef enum: CUDA_ARRAY3D_LAYERED = 1 + +cdef enum: CUDA_ARRAY3D_2DARRAY = 1 + +cdef enum: CUDA_ARRAY3D_SURFACE_LDST = 2 + +cdef enum: CUDA_ARRAY3D_CUBEMAP = 4 + +cdef enum: CUDA_ARRAY3D_TEXTURE_GATHER = 8 + +cdef enum: CUDA_ARRAY3D_DEPTH_TEXTURE = 16 + +cdef enum: CUDA_ARRAY3D_COLOR_ATTACHMENT = 32 + +cdef enum: CUDA_ARRAY3D_SPARSE = 64 + +cdef enum: CUDA_ARRAY3D_DEFERRED_MAPPING = 128 + +cdef enum: CUDA_ARRAY3D_VIDEO_ENCODE_DECODE = 256 + +cdef enum: CU_TRSA_OVERRIDE_FORMAT = 1 + +cdef enum: CU_TRSF_READ_AS_INTEGER = 1 + +cdef enum: CU_TRSF_NORMALIZED_COORDINATES = 2 + +cdef enum: CU_TRSF_SRGB = 16 + +cdef enum: CU_TRSF_DISABLE_TRILINEAR_OPTIMIZATION = 32 + +cdef enum: CU_TRSF_SEAMLESS_CUBEMAP = 64 + +cdef enum: CU_LAUNCH_KERNEL_REQUIRED_BLOCK_DIM = 1 + +cdef enum: CU_LAUNCH_PARAM_END_AS_INT = 0 + +cdef enum: CU_LAUNCH_PARAM_END = 0 + +cdef enum: CU_LAUNCH_PARAM_BUFFER_POINTER_AS_INT = 1 + +cdef enum: CU_LAUNCH_PARAM_BUFFER_POINTER = 1 + +cdef enum: CU_LAUNCH_PARAM_BUFFER_SIZE_AS_INT = 2 + +cdef enum: CU_LAUNCH_PARAM_BUFFER_SIZE = 2 + +cdef enum: CU_PARAM_TR_DEFAULT = -1 + +cdef enum: CU_DEVICE_CPU = -1 + +cdef enum: CU_DEVICE_INVALID = -2 + +cdef enum: MAX_PLANES = 3 + +cdef enum: CUDA_EGL_INFINITE_TIMEOUT = 4294967295 diff --git a/cuda_bindings/cuda/bindings/cydriver.pxd.in b/cuda_bindings/cuda/bindings/cydriver.pxd.in deleted file mode 100644 index 6ed16b51bae..00000000000 --- a/cuda_bindings/cuda/bindings/cydriver.pxd.in +++ /dev/null @@ -1,5412 +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.2.0, generator version 0.3.1.dev1422+gf4812259e.d20260318. Do not modify it directly. - -from libc.stdint cimport uint32_t, uint64_t - -cdef extern from "cuda.h": - - ctypedef uint32_t cuuint32_t - - ctypedef uint64_t cuuint64_t - - ctypedef unsigned long long CUdeviceptr_v2 - - ctypedef CUdeviceptr_v2 CUdeviceptr - - ctypedef int CUdevice_v1 - - ctypedef CUdevice_v1 CUdevice - - cdef struct CUctx_st: - pass - ctypedef CUctx_st* CUcontext - - cdef struct CUmod_st: - pass - ctypedef CUmod_st* CUmodule - - cdef struct CUfunc_st: - pass - ctypedef CUfunc_st* CUfunction - - cdef struct CUlib_st: - pass - ctypedef CUlib_st* CUlibrary - - cdef struct CUkern_st: - pass - ctypedef CUkern_st* CUkernel - - cdef struct CUarray_st: - pass - ctypedef CUarray_st* CUarray - - cdef struct CUmipmappedArray_st: - pass - ctypedef CUmipmappedArray_st* CUmipmappedArray - - cdef struct CUtexref_st: - pass - ctypedef CUtexref_st* CUtexref - - cdef struct CUsurfref_st: - pass - ctypedef CUsurfref_st* CUsurfref - - cdef struct CUevent_st: - pass - ctypedef CUevent_st* CUevent - - cdef struct CUstream_st: - pass - ctypedef CUstream_st* CUstream - - cdef struct CUgraphicsResource_st: - pass - ctypedef CUgraphicsResource_st* CUgraphicsResource - - ctypedef unsigned long long CUtexObject_v1 - - ctypedef CUtexObject_v1 CUtexObject - - ctypedef unsigned long long CUsurfObject_v1 - - ctypedef CUsurfObject_v1 CUsurfObject - - cdef struct CUextMemory_st: - pass - ctypedef CUextMemory_st* CUexternalMemory - - cdef struct CUextSemaphore_st: - pass - ctypedef CUextSemaphore_st* CUexternalSemaphore - - cdef struct CUgraph_st: - pass - ctypedef CUgraph_st* CUgraph - - cdef struct CUgraphNode_st: - pass - ctypedef CUgraphNode_st* CUgraphNode - - cdef struct CUgraphExec_st: - pass - ctypedef CUgraphExec_st* CUgraphExec - - cdef struct CUmemPoolHandle_st: - pass - ctypedef CUmemPoolHandle_st* CUmemoryPool - - cdef struct CUuserObject_st: - pass - ctypedef CUuserObject_st* CUuserObject - - ctypedef cuuint64_t CUgraphConditionalHandle - - cdef struct CUgraphDeviceUpdatableNode_st: - pass - ctypedef CUgraphDeviceUpdatableNode_st* CUgraphDeviceNode - - cdef struct CUasyncCallbackEntry_st: - pass - ctypedef CUasyncCallbackEntry_st* CUasyncCallbackHandle - - cdef struct CUgreenCtx_st: - pass - ctypedef CUgreenCtx_st* CUgreenCtx - - cdef struct CUuuid_st: - char bytes[16] - - ctypedef CUuuid_st CUuuid - - cdef struct CUmemFabricHandle_st: - unsigned char data[64] - - ctypedef CUmemFabricHandle_st CUmemFabricHandle_v1 - - ctypedef CUmemFabricHandle_v1 CUmemFabricHandle - - cdef struct CUipcEventHandle_st: - char reserved[64] - - ctypedef CUipcEventHandle_st CUipcEventHandle_v1 - - ctypedef CUipcEventHandle_v1 CUipcEventHandle - - cdef struct CUipcMemHandle_st: - char reserved[64] - - ctypedef CUipcMemHandle_st CUipcMemHandle_v1 - - ctypedef CUipcMemHandle_v1 CUipcMemHandle - - cdef enum CUipcMem_flags_enum: - CU_IPC_MEM_LAZY_ENABLE_PEER_ACCESS = 1 - - ctypedef CUipcMem_flags_enum CUipcMem_flags - - cdef enum CUmemAttach_flags_enum: - CU_MEM_ATTACH_GLOBAL = 1 - CU_MEM_ATTACH_HOST = 2 - CU_MEM_ATTACH_SINGLE = 4 - - ctypedef CUmemAttach_flags_enum CUmemAttach_flags - - cdef enum CUctx_flags_enum: - CU_CTX_SCHED_AUTO = 0 - CU_CTX_SCHED_SPIN = 1 - CU_CTX_SCHED_YIELD = 2 - CU_CTX_SCHED_BLOCKING_SYNC = 4 - CU_CTX_BLOCKING_SYNC = 4 - CU_CTX_SCHED_MASK = 7 - CU_CTX_MAP_HOST = 8 - CU_CTX_LMEM_RESIZE_TO_MAX = 16 - CU_CTX_COREDUMP_ENABLE = 32 - CU_CTX_USER_COREDUMP_ENABLE = 64 - CU_CTX_SYNC_MEMOPS = 128 - CU_CTX_FLAGS_MASK = 255 - - ctypedef CUctx_flags_enum CUctx_flags - - cdef enum CUevent_sched_flags_enum: - CU_EVENT_SCHED_AUTO = 0 - CU_EVENT_SCHED_SPIN = 1 - CU_EVENT_SCHED_YIELD = 2 - CU_EVENT_SCHED_BLOCKING_SYNC = 4 - - ctypedef CUevent_sched_flags_enum CUevent_sched_flags - - cdef enum cl_event_flags_enum: - NVCL_EVENT_SCHED_AUTO = 0 - NVCL_EVENT_SCHED_SPIN = 1 - NVCL_EVENT_SCHED_YIELD = 2 - NVCL_EVENT_SCHED_BLOCKING_SYNC = 4 - - ctypedef cl_event_flags_enum cl_event_flags - - cdef enum cl_context_flags_enum: - NVCL_CTX_SCHED_AUTO = 0 - NVCL_CTX_SCHED_SPIN = 1 - NVCL_CTX_SCHED_YIELD = 2 - NVCL_CTX_SCHED_BLOCKING_SYNC = 4 - - ctypedef cl_context_flags_enum cl_context_flags - - cdef enum CUhostTaskSyncMode_enum: - CU_HOST_TASK_BLOCKING = 0 - CU_HOST_TASK_SPINWAIT = 1 - - ctypedef CUhostTaskSyncMode_enum CUhostTaskSyncMode - - cdef enum CUstream_flags_enum: - CU_STREAM_DEFAULT = 0 - CU_STREAM_NON_BLOCKING = 1 - - ctypedef CUstream_flags_enum CUstream_flags - - cdef enum CUevent_flags_enum: - CU_EVENT_DEFAULT = 0 - CU_EVENT_BLOCKING_SYNC = 1 - CU_EVENT_DISABLE_TIMING = 2 - CU_EVENT_INTERPROCESS = 4 - - ctypedef CUevent_flags_enum CUevent_flags - - cdef enum CUevent_record_flags_enum: - CU_EVENT_RECORD_DEFAULT = 0 - CU_EVENT_RECORD_EXTERNAL = 1 - - ctypedef CUevent_record_flags_enum CUevent_record_flags - - cdef enum CUevent_wait_flags_enum: - CU_EVENT_WAIT_DEFAULT = 0 - CU_EVENT_WAIT_EXTERNAL = 1 - - ctypedef CUevent_wait_flags_enum CUevent_wait_flags - - cdef enum CUatomicOperation_enum: - CU_ATOMIC_OPERATION_INTEGER_ADD = 0 - CU_ATOMIC_OPERATION_INTEGER_MIN = 1 - CU_ATOMIC_OPERATION_INTEGER_MAX = 2 - CU_ATOMIC_OPERATION_INTEGER_INCREMENT = 3 - CU_ATOMIC_OPERATION_INTEGER_DECREMENT = 4 - CU_ATOMIC_OPERATION_AND = 5 - CU_ATOMIC_OPERATION_OR = 6 - CU_ATOMIC_OPERATION_XOR = 7 - CU_ATOMIC_OPERATION_EXCHANGE = 8 - CU_ATOMIC_OPERATION_CAS = 9 - CU_ATOMIC_OPERATION_FLOAT_ADD = 10 - CU_ATOMIC_OPERATION_FLOAT_MIN = 11 - CU_ATOMIC_OPERATION_FLOAT_MAX = 12 - CU_ATOMIC_OPERATION_MAX = 13 - - ctypedef CUatomicOperation_enum CUatomicOperation - - cdef enum CUatomicOperationCapability_enum: - CU_ATOMIC_CAPABILITY_SIGNED = 1 - CU_ATOMIC_CAPABILITY_UNSIGNED = 2 - CU_ATOMIC_CAPABILITY_REDUCTION = 4 - CU_ATOMIC_CAPABILITY_SCALAR_32 = 8 - CU_ATOMIC_CAPABILITY_SCALAR_64 = 16 - CU_ATOMIC_CAPABILITY_SCALAR_128 = 32 - CU_ATOMIC_CAPABILITY_VECTOR_32x4 = 64 - - ctypedef CUatomicOperationCapability_enum CUatomicOperationCapability - - cdef enum CUstreamWaitValue_flags_enum: - CU_STREAM_WAIT_VALUE_GEQ = 0 - CU_STREAM_WAIT_VALUE_EQ = 1 - CU_STREAM_WAIT_VALUE_AND = 2 - CU_STREAM_WAIT_VALUE_NOR = 3 - CU_STREAM_WAIT_VALUE_FLUSH = 1073741824 - - ctypedef CUstreamWaitValue_flags_enum CUstreamWaitValue_flags - - cdef enum CUstreamWriteValue_flags_enum: - CU_STREAM_WRITE_VALUE_DEFAULT = 0 - CU_STREAM_WRITE_VALUE_NO_MEMORY_BARRIER = 1 - - ctypedef CUstreamWriteValue_flags_enum CUstreamWriteValue_flags - - cdef enum CUstreamBatchMemOpType_enum: - CU_STREAM_MEM_OP_WAIT_VALUE_32 = 1 - CU_STREAM_MEM_OP_WRITE_VALUE_32 = 2 - CU_STREAM_MEM_OP_FLUSH_REMOTE_WRITES = 3 - CU_STREAM_MEM_OP_WAIT_VALUE_64 = 4 - CU_STREAM_MEM_OP_WRITE_VALUE_64 = 5 - CU_STREAM_MEM_OP_BARRIER = 6 - CU_STREAM_MEM_OP_ATOMIC_REDUCTION = 8 - - ctypedef CUstreamBatchMemOpType_enum CUstreamBatchMemOpType - - cdef enum CUstreamMemoryBarrier_flags_enum: - CU_STREAM_MEMORY_BARRIER_TYPE_SYS = 0 - CU_STREAM_MEMORY_BARRIER_TYPE_GPU = 1 - - ctypedef CUstreamMemoryBarrier_flags_enum CUstreamMemoryBarrier_flags - - cdef enum CUstreamAtomicReductionOpType_enum: - CU_STREAM_ATOMIC_REDUCTION_OP_ADD = 0 - CU_STREAM_ATOMIC_REDUCTION_OP_AND = 5 - CU_STREAM_ATOMIC_REDUCTION_OP_OR = 6 - - ctypedef CUstreamAtomicReductionOpType_enum CUstreamAtomicReductionOpType - - cdef enum CUstreamAtomicReductionDataType_enum: - CU_STREAM_ATOMIC_REDUCTION_UNSIGNED_32 = 14 - CU_STREAM_ATOMIC_REDUCTION_UNSIGNED_64 = 22 - - ctypedef CUstreamAtomicReductionDataType_enum CUstreamAtomicReductionDataType - - cdef struct CUstreamMemOpWaitValueParams_st: - CUstreamBatchMemOpType operation - CUdeviceptr address - cuuint32_t value - cuuint64_t value64 - unsigned int flags - CUdeviceptr alias - - cdef struct CUstreamMemOpWriteValueParams_st: - CUstreamBatchMemOpType operation - CUdeviceptr address - cuuint32_t value - cuuint64_t value64 - unsigned int flags - CUdeviceptr alias - - cdef struct CUstreamMemOpFlushRemoteWritesParams_st: - CUstreamBatchMemOpType operation - unsigned int flags - - cdef struct CUstreamMemOpMemoryBarrierParams_st: - CUstreamBatchMemOpType operation - unsigned int flags - - cdef struct CUstreamMemOpAtomicReductionParams_st: - CUstreamBatchMemOpType operation - unsigned int flags - CUstreamAtomicReductionOpType reductionOp - CUstreamAtomicReductionDataType dataType - CUdeviceptr address - cuuint64_t value - CUdeviceptr alias - - cdef union CUstreamBatchMemOpParams_union: - CUstreamBatchMemOpType operation - CUstreamMemOpWaitValueParams_st waitValue - CUstreamMemOpWriteValueParams_st writeValue - CUstreamMemOpFlushRemoteWritesParams_st flushRemoteWrites - CUstreamMemOpMemoryBarrierParams_st memoryBarrier - CUstreamMemOpAtomicReductionParams_st atomicReduction - cuuint64_t pad[6] - - ctypedef CUstreamBatchMemOpParams_union CUstreamBatchMemOpParams_v1 - - ctypedef CUstreamBatchMemOpParams_v1 CUstreamBatchMemOpParams - - cdef struct CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st: - CUcontext ctx - unsigned int count - CUstreamBatchMemOpParams* paramArray - unsigned int flags - - ctypedef CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st CUDA_BATCH_MEM_OP_NODE_PARAMS_v1 - - ctypedef CUDA_BATCH_MEM_OP_NODE_PARAMS_v1 CUDA_BATCH_MEM_OP_NODE_PARAMS - - cdef struct CUDA_BATCH_MEM_OP_NODE_PARAMS_v2_st: - CUcontext ctx - unsigned int count - CUstreamBatchMemOpParams* paramArray - unsigned int flags - - ctypedef CUDA_BATCH_MEM_OP_NODE_PARAMS_v2_st CUDA_BATCH_MEM_OP_NODE_PARAMS_v2 - - cdef enum CUoccupancy_flags_enum: - CU_OCCUPANCY_DEFAULT = 0 - CU_OCCUPANCY_DISABLE_CACHING_OVERRIDE = 1 - - ctypedef CUoccupancy_flags_enum CUoccupancy_flags - - cdef enum CUstreamUpdateCaptureDependencies_flags_enum: - CU_STREAM_ADD_CAPTURE_DEPENDENCIES = 0 - CU_STREAM_SET_CAPTURE_DEPENDENCIES = 1 - - ctypedef CUstreamUpdateCaptureDependencies_flags_enum CUstreamUpdateCaptureDependencies_flags - - cdef enum CUasyncNotificationType_enum: - CU_ASYNC_NOTIFICATION_TYPE_OVER_BUDGET = 1 - - ctypedef CUasyncNotificationType_enum CUasyncNotificationType - - cdef struct anon_struct0: - unsigned long long bytesOverBudget - - cdef union anon_union2: - anon_struct0 overBudget - - cdef struct CUasyncNotificationInfo_st: - CUasyncNotificationType type - anon_union2 info - - ctypedef CUasyncNotificationInfo_st CUasyncNotificationInfo - - ctypedef void (*CUasyncCallback)(CUasyncNotificationInfo* info, void* userData, CUasyncCallbackHandle callback) - - cdef enum CUarray_format_enum: - CU_AD_FORMAT_UNSIGNED_INT8 = 1 - CU_AD_FORMAT_UNSIGNED_INT16 = 2 - CU_AD_FORMAT_UNSIGNED_INT32 = 3 - CU_AD_FORMAT_SIGNED_INT8 = 8 - CU_AD_FORMAT_SIGNED_INT16 = 9 - CU_AD_FORMAT_SIGNED_INT32 = 10 - CU_AD_FORMAT_HALF = 16 - CU_AD_FORMAT_FLOAT = 32 - CU_AD_FORMAT_UNORM_INT_101010_2 = 80 - CU_AD_FORMAT_UINT8_PACKED_422 = 81 - CU_AD_FORMAT_UINT8_PACKED_444 = 82 - CU_AD_FORMAT_UINT8_SEMIPLANAR_420 = 83 - CU_AD_FORMAT_UINT16_SEMIPLANAR_420 = 84 - CU_AD_FORMAT_UINT8_SEMIPLANAR_422 = 85 - CU_AD_FORMAT_UINT16_SEMIPLANAR_422 = 86 - CU_AD_FORMAT_UINT8_SEMIPLANAR_444 = 87 - CU_AD_FORMAT_UINT16_SEMIPLANAR_444 = 88 - CU_AD_FORMAT_UINT8_PLANAR_420 = 89 - CU_AD_FORMAT_UINT16_PLANAR_420 = 90 - CU_AD_FORMAT_UINT8_PLANAR_422 = 91 - CU_AD_FORMAT_UINT16_PLANAR_422 = 92 - CU_AD_FORMAT_UINT8_PLANAR_444 = 93 - CU_AD_FORMAT_UINT16_PLANAR_444 = 94 - CU_AD_FORMAT_BC1_UNORM = 145 - CU_AD_FORMAT_BC1_UNORM_SRGB = 146 - CU_AD_FORMAT_BC2_UNORM = 147 - CU_AD_FORMAT_BC2_UNORM_SRGB = 148 - CU_AD_FORMAT_BC3_UNORM = 149 - CU_AD_FORMAT_BC3_UNORM_SRGB = 150 - CU_AD_FORMAT_BC4_UNORM = 151 - CU_AD_FORMAT_BC4_SNORM = 152 - CU_AD_FORMAT_BC5_UNORM = 153 - CU_AD_FORMAT_BC5_SNORM = 154 - CU_AD_FORMAT_BC6H_UF16 = 155 - CU_AD_FORMAT_BC6H_SF16 = 156 - CU_AD_FORMAT_BC7_UNORM = 157 - CU_AD_FORMAT_BC7_UNORM_SRGB = 158 - CU_AD_FORMAT_P010 = 159 - CU_AD_FORMAT_P016 = 161 - CU_AD_FORMAT_NV16 = 162 - CU_AD_FORMAT_P210 = 163 - CU_AD_FORMAT_P216 = 164 - CU_AD_FORMAT_YUY2 = 165 - CU_AD_FORMAT_Y210 = 166 - CU_AD_FORMAT_Y216 = 167 - CU_AD_FORMAT_AYUV = 168 - CU_AD_FORMAT_Y410 = 169 - CU_AD_FORMAT_NV12 = 176 - CU_AD_FORMAT_Y416 = 177 - CU_AD_FORMAT_Y444_PLANAR8 = 178 - CU_AD_FORMAT_Y444_PLANAR10 = 179 - CU_AD_FORMAT_YUV444_8bit_SemiPlanar = 180 - CU_AD_FORMAT_YUV444_16bit_SemiPlanar = 181 - CU_AD_FORMAT_UNORM_INT8X1 = 192 - CU_AD_FORMAT_UNORM_INT8X2 = 193 - CU_AD_FORMAT_UNORM_INT8X4 = 194 - CU_AD_FORMAT_UNORM_INT16X1 = 195 - CU_AD_FORMAT_UNORM_INT16X2 = 196 - CU_AD_FORMAT_UNORM_INT16X4 = 197 - CU_AD_FORMAT_SNORM_INT8X1 = 198 - CU_AD_FORMAT_SNORM_INT8X2 = 199 - CU_AD_FORMAT_SNORM_INT8X4 = 200 - CU_AD_FORMAT_SNORM_INT16X1 = 201 - CU_AD_FORMAT_SNORM_INT16X2 = 202 - CU_AD_FORMAT_SNORM_INT16X4 = 203 - CU_AD_FORMAT_MAX = 2147483647 - - ctypedef CUarray_format_enum CUarray_format - - cdef enum CUaddress_mode_enum: - CU_TR_ADDRESS_MODE_WRAP = 0 - CU_TR_ADDRESS_MODE_CLAMP = 1 - CU_TR_ADDRESS_MODE_MIRROR = 2 - CU_TR_ADDRESS_MODE_BORDER = 3 - - ctypedef CUaddress_mode_enum CUaddress_mode - - cdef enum CUfilter_mode_enum: - CU_TR_FILTER_MODE_POINT = 0 - CU_TR_FILTER_MODE_LINEAR = 1 - - ctypedef CUfilter_mode_enum CUfilter_mode - - cdef enum CUdevice_attribute_enum: - CU_DEVICE_ATTRIBUTE_MAX_THREADS_PER_BLOCK = 1 - CU_DEVICE_ATTRIBUTE_MAX_BLOCK_DIM_X = 2 - CU_DEVICE_ATTRIBUTE_MAX_BLOCK_DIM_Y = 3 - CU_DEVICE_ATTRIBUTE_MAX_BLOCK_DIM_Z = 4 - CU_DEVICE_ATTRIBUTE_MAX_GRID_DIM_X = 5 - CU_DEVICE_ATTRIBUTE_MAX_GRID_DIM_Y = 6 - CU_DEVICE_ATTRIBUTE_MAX_GRID_DIM_Z = 7 - CU_DEVICE_ATTRIBUTE_MAX_SHARED_MEMORY_PER_BLOCK = 8 - CU_DEVICE_ATTRIBUTE_SHARED_MEMORY_PER_BLOCK = 8 - CU_DEVICE_ATTRIBUTE_TOTAL_CONSTANT_MEMORY = 9 - CU_DEVICE_ATTRIBUTE_WARP_SIZE = 10 - CU_DEVICE_ATTRIBUTE_MAX_PITCH = 11 - CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_BLOCK = 12 - CU_DEVICE_ATTRIBUTE_REGISTERS_PER_BLOCK = 12 - CU_DEVICE_ATTRIBUTE_CLOCK_RATE = 13 - CU_DEVICE_ATTRIBUTE_TEXTURE_ALIGNMENT = 14 - CU_DEVICE_ATTRIBUTE_GPU_OVERLAP = 15 - CU_DEVICE_ATTRIBUTE_MULTIPROCESSOR_COUNT = 16 - CU_DEVICE_ATTRIBUTE_KERNEL_EXEC_TIMEOUT = 17 - CU_DEVICE_ATTRIBUTE_INTEGRATED = 18 - CU_DEVICE_ATTRIBUTE_CAN_MAP_HOST_MEMORY = 19 - CU_DEVICE_ATTRIBUTE_COMPUTE_MODE = 20 - CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE1D_WIDTH = 21 - CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_WIDTH = 22 - CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_HEIGHT = 23 - CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE3D_WIDTH = 24 - CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE3D_HEIGHT = 25 - CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE3D_DEPTH = 26 - CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_LAYERED_WIDTH = 27 - CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_ARRAY_WIDTH = 27 - CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_LAYERED_HEIGHT = 28 - CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_ARRAY_HEIGHT = 28 - CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_LAYERED_LAYERS = 29 - CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_ARRAY_NUMSLICES = 29 - CU_DEVICE_ATTRIBUTE_SURFACE_ALIGNMENT = 30 - CU_DEVICE_ATTRIBUTE_CONCURRENT_KERNELS = 31 - CU_DEVICE_ATTRIBUTE_ECC_ENABLED = 32 - CU_DEVICE_ATTRIBUTE_PCI_BUS_ID = 33 - CU_DEVICE_ATTRIBUTE_PCI_DEVICE_ID = 34 - CU_DEVICE_ATTRIBUTE_TCC_DRIVER = 35 - CU_DEVICE_ATTRIBUTE_MEMORY_CLOCK_RATE = 36 - CU_DEVICE_ATTRIBUTE_GLOBAL_MEMORY_BUS_WIDTH = 37 - CU_DEVICE_ATTRIBUTE_L2_CACHE_SIZE = 38 - CU_DEVICE_ATTRIBUTE_MAX_THREADS_PER_MULTIPROCESSOR = 39 - CU_DEVICE_ATTRIBUTE_ASYNC_ENGINE_COUNT = 40 - CU_DEVICE_ATTRIBUTE_UNIFIED_ADDRESSING = 41 - CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE1D_LAYERED_WIDTH = 42 - CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE1D_LAYERED_LAYERS = 43 - CU_DEVICE_ATTRIBUTE_CAN_TEX2D_GATHER = 44 - CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_GATHER_WIDTH = 45 - CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_GATHER_HEIGHT = 46 - CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE3D_WIDTH_ALTERNATE = 47 - CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE3D_HEIGHT_ALTERNATE = 48 - CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE3D_DEPTH_ALTERNATE = 49 - CU_DEVICE_ATTRIBUTE_PCI_DOMAIN_ID = 50 - CU_DEVICE_ATTRIBUTE_TEXTURE_PITCH_ALIGNMENT = 51 - CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURECUBEMAP_WIDTH = 52 - CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURECUBEMAP_LAYERED_WIDTH = 53 - CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURECUBEMAP_LAYERED_LAYERS = 54 - CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE1D_WIDTH = 55 - CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE2D_WIDTH = 56 - CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE2D_HEIGHT = 57 - CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE3D_WIDTH = 58 - CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE3D_HEIGHT = 59 - CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE3D_DEPTH = 60 - CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE1D_LAYERED_WIDTH = 61 - CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE1D_LAYERED_LAYERS = 62 - CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE2D_LAYERED_WIDTH = 63 - CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE2D_LAYERED_HEIGHT = 64 - CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE2D_LAYERED_LAYERS = 65 - CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACECUBEMAP_WIDTH = 66 - CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACECUBEMAP_LAYERED_WIDTH = 67 - CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACECUBEMAP_LAYERED_LAYERS = 68 - CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE1D_LINEAR_WIDTH = 69 - CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_LINEAR_WIDTH = 70 - CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_LINEAR_HEIGHT = 71 - CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_LINEAR_PITCH = 72 - CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_MIPMAPPED_WIDTH = 73 - CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_MIPMAPPED_HEIGHT = 74 - CU_DEVICE_ATTRIBUTE_COMPUTE_CAPABILITY_MAJOR = 75 - CU_DEVICE_ATTRIBUTE_COMPUTE_CAPABILITY_MINOR = 76 - CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE1D_MIPMAPPED_WIDTH = 77 - CU_DEVICE_ATTRIBUTE_STREAM_PRIORITIES_SUPPORTED = 78 - CU_DEVICE_ATTRIBUTE_GLOBAL_L1_CACHE_SUPPORTED = 79 - CU_DEVICE_ATTRIBUTE_LOCAL_L1_CACHE_SUPPORTED = 80 - CU_DEVICE_ATTRIBUTE_MAX_SHARED_MEMORY_PER_MULTIPROCESSOR = 81 - CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR = 82 - CU_DEVICE_ATTRIBUTE_MANAGED_MEMORY = 83 - CU_DEVICE_ATTRIBUTE_MULTI_GPU_BOARD = 84 - CU_DEVICE_ATTRIBUTE_MULTI_GPU_BOARD_GROUP_ID = 85 - CU_DEVICE_ATTRIBUTE_HOST_NATIVE_ATOMIC_SUPPORTED = 86 - CU_DEVICE_ATTRIBUTE_SINGLE_TO_DOUBLE_PRECISION_PERF_RATIO = 87 - CU_DEVICE_ATTRIBUTE_PAGEABLE_MEMORY_ACCESS = 88 - CU_DEVICE_ATTRIBUTE_CONCURRENT_MANAGED_ACCESS = 89 - CU_DEVICE_ATTRIBUTE_COMPUTE_PREEMPTION_SUPPORTED = 90 - CU_DEVICE_ATTRIBUTE_CAN_USE_HOST_POINTER_FOR_REGISTERED_MEM = 91 - CU_DEVICE_ATTRIBUTE_CAN_USE_STREAM_MEM_OPS_V1 = 92 - CU_DEVICE_ATTRIBUTE_CAN_USE_64_BIT_STREAM_MEM_OPS_V1 = 93 - CU_DEVICE_ATTRIBUTE_CAN_USE_STREAM_WAIT_VALUE_NOR_V1 = 94 - CU_DEVICE_ATTRIBUTE_COOPERATIVE_LAUNCH = 95 - CU_DEVICE_ATTRIBUTE_COOPERATIVE_MULTI_DEVICE_LAUNCH = 96 - CU_DEVICE_ATTRIBUTE_MAX_SHARED_MEMORY_PER_BLOCK_OPTIN = 97 - CU_DEVICE_ATTRIBUTE_CAN_FLUSH_REMOTE_WRITES = 98 - CU_DEVICE_ATTRIBUTE_HOST_REGISTER_SUPPORTED = 99 - CU_DEVICE_ATTRIBUTE_PAGEABLE_MEMORY_ACCESS_USES_HOST_PAGE_TABLES = 100 - CU_DEVICE_ATTRIBUTE_DIRECT_MANAGED_MEM_ACCESS_FROM_HOST = 101 - CU_DEVICE_ATTRIBUTE_VIRTUAL_ADDRESS_MANAGEMENT_SUPPORTED = 102 - CU_DEVICE_ATTRIBUTE_VIRTUAL_MEMORY_MANAGEMENT_SUPPORTED = 102 - CU_DEVICE_ATTRIBUTE_HANDLE_TYPE_POSIX_FILE_DESCRIPTOR_SUPPORTED = 103 - CU_DEVICE_ATTRIBUTE_HANDLE_TYPE_WIN32_HANDLE_SUPPORTED = 104 - CU_DEVICE_ATTRIBUTE_HANDLE_TYPE_WIN32_KMT_HANDLE_SUPPORTED = 105 - CU_DEVICE_ATTRIBUTE_MAX_BLOCKS_PER_MULTIPROCESSOR = 106 - CU_DEVICE_ATTRIBUTE_GENERIC_COMPRESSION_SUPPORTED = 107 - CU_DEVICE_ATTRIBUTE_MAX_PERSISTING_L2_CACHE_SIZE = 108 - CU_DEVICE_ATTRIBUTE_MAX_ACCESS_POLICY_WINDOW_SIZE = 109 - CU_DEVICE_ATTRIBUTE_GPU_DIRECT_RDMA_WITH_CUDA_VMM_SUPPORTED = 110 - CU_DEVICE_ATTRIBUTE_RESERVED_SHARED_MEMORY_PER_BLOCK = 111 - CU_DEVICE_ATTRIBUTE_SPARSE_CUDA_ARRAY_SUPPORTED = 112 - CU_DEVICE_ATTRIBUTE_READ_ONLY_HOST_REGISTER_SUPPORTED = 113 - CU_DEVICE_ATTRIBUTE_TIMELINE_SEMAPHORE_INTEROP_SUPPORTED = 114 - CU_DEVICE_ATTRIBUTE_MEMORY_POOLS_SUPPORTED = 115 - CU_DEVICE_ATTRIBUTE_GPU_DIRECT_RDMA_SUPPORTED = 116 - CU_DEVICE_ATTRIBUTE_GPU_DIRECT_RDMA_FLUSH_WRITES_OPTIONS = 117 - CU_DEVICE_ATTRIBUTE_GPU_DIRECT_RDMA_WRITES_ORDERING = 118 - CU_DEVICE_ATTRIBUTE_MEMPOOL_SUPPORTED_HANDLE_TYPES = 119 - CU_DEVICE_ATTRIBUTE_CLUSTER_LAUNCH = 120 - CU_DEVICE_ATTRIBUTE_DEFERRED_MAPPING_CUDA_ARRAY_SUPPORTED = 121 - CU_DEVICE_ATTRIBUTE_CAN_USE_64_BIT_STREAM_MEM_OPS = 122 - CU_DEVICE_ATTRIBUTE_CAN_USE_STREAM_WAIT_VALUE_NOR = 123 - CU_DEVICE_ATTRIBUTE_DMA_BUF_SUPPORTED = 124 - CU_DEVICE_ATTRIBUTE_IPC_EVENT_SUPPORTED = 125 - CU_DEVICE_ATTRIBUTE_MEM_SYNC_DOMAIN_COUNT = 126 - CU_DEVICE_ATTRIBUTE_TENSOR_MAP_ACCESS_SUPPORTED = 127 - CU_DEVICE_ATTRIBUTE_HANDLE_TYPE_FABRIC_SUPPORTED = 128 - CU_DEVICE_ATTRIBUTE_UNIFIED_FUNCTION_POINTERS = 129 - CU_DEVICE_ATTRIBUTE_NUMA_CONFIG = 130 - CU_DEVICE_ATTRIBUTE_NUMA_ID = 131 - CU_DEVICE_ATTRIBUTE_MULTICAST_SUPPORTED = 132 - CU_DEVICE_ATTRIBUTE_MPS_ENABLED = 133 - CU_DEVICE_ATTRIBUTE_HOST_NUMA_ID = 134 - CU_DEVICE_ATTRIBUTE_D3D12_CIG_SUPPORTED = 135 - CU_DEVICE_ATTRIBUTE_MEM_DECOMPRESS_ALGORITHM_MASK = 136 - CU_DEVICE_ATTRIBUTE_MEM_DECOMPRESS_MAXIMUM_LENGTH = 137 - CU_DEVICE_ATTRIBUTE_VULKAN_CIG_SUPPORTED = 138 - CU_DEVICE_ATTRIBUTE_GPU_PCI_DEVICE_ID = 139 - CU_DEVICE_ATTRIBUTE_GPU_PCI_SUBSYSTEM_ID = 140 - CU_DEVICE_ATTRIBUTE_HOST_NUMA_VIRTUAL_MEMORY_MANAGEMENT_SUPPORTED = 141 - CU_DEVICE_ATTRIBUTE_HOST_NUMA_MEMORY_POOLS_SUPPORTED = 142 - CU_DEVICE_ATTRIBUTE_HOST_NUMA_MULTINODE_IPC_SUPPORTED = 143 - CU_DEVICE_ATTRIBUTE_HOST_MEMORY_POOLS_SUPPORTED = 144 - CU_DEVICE_ATTRIBUTE_HOST_VIRTUAL_MEMORY_MANAGEMENT_SUPPORTED = 145 - CU_DEVICE_ATTRIBUTE_HOST_ALLOC_DMA_BUF_SUPPORTED = 146 - CU_DEVICE_ATTRIBUTE_ONLY_PARTIAL_HOST_NATIVE_ATOMIC_SUPPORTED = 147 - CU_DEVICE_ATTRIBUTE_ATOMIC_REDUCTION_SUPPORTED = 148 - CU_DEVICE_ATTRIBUTE_MAX = 149 - - ctypedef CUdevice_attribute_enum CUdevice_attribute - - cdef struct CUdevprop_st: - int maxThreadsPerBlock - int maxThreadsDim[3] - int maxGridSize[3] - int sharedMemPerBlock - int totalConstantMemory - int SIMDWidth - int memPitch - int regsPerBlock - int clockRate - int textureAlign - - ctypedef CUdevprop_st CUdevprop_v1 - - ctypedef CUdevprop_v1 CUdevprop - - cdef enum CUpointer_attribute_enum: - CU_POINTER_ATTRIBUTE_CONTEXT = 1 - CU_POINTER_ATTRIBUTE_MEMORY_TYPE = 2 - CU_POINTER_ATTRIBUTE_DEVICE_POINTER = 3 - CU_POINTER_ATTRIBUTE_HOST_POINTER = 4 - CU_POINTER_ATTRIBUTE_P2P_TOKENS = 5 - CU_POINTER_ATTRIBUTE_SYNC_MEMOPS = 6 - CU_POINTER_ATTRIBUTE_BUFFER_ID = 7 - CU_POINTER_ATTRIBUTE_IS_MANAGED = 8 - CU_POINTER_ATTRIBUTE_DEVICE_ORDINAL = 9 - CU_POINTER_ATTRIBUTE_IS_LEGACY_CUDA_IPC_CAPABLE = 10 - CU_POINTER_ATTRIBUTE_RANGE_START_ADDR = 11 - CU_POINTER_ATTRIBUTE_RANGE_SIZE = 12 - CU_POINTER_ATTRIBUTE_MAPPED = 13 - CU_POINTER_ATTRIBUTE_ALLOWED_HANDLE_TYPES = 14 - CU_POINTER_ATTRIBUTE_IS_GPU_DIRECT_RDMA_CAPABLE = 15 - CU_POINTER_ATTRIBUTE_ACCESS_FLAGS = 16 - CU_POINTER_ATTRIBUTE_MEMPOOL_HANDLE = 17 - CU_POINTER_ATTRIBUTE_MAPPING_SIZE = 18 - CU_POINTER_ATTRIBUTE_MAPPING_BASE_ADDR = 19 - CU_POINTER_ATTRIBUTE_MEMORY_BLOCK_ID = 20 - CU_POINTER_ATTRIBUTE_IS_HW_DECOMPRESS_CAPABLE = 21 - - ctypedef CUpointer_attribute_enum CUpointer_attribute - - cdef enum CUfunction_attribute_enum: - CU_FUNC_ATTRIBUTE_MAX_THREADS_PER_BLOCK = 0 - CU_FUNC_ATTRIBUTE_SHARED_SIZE_BYTES = 1 - CU_FUNC_ATTRIBUTE_CONST_SIZE_BYTES = 2 - CU_FUNC_ATTRIBUTE_LOCAL_SIZE_BYTES = 3 - CU_FUNC_ATTRIBUTE_NUM_REGS = 4 - CU_FUNC_ATTRIBUTE_PTX_VERSION = 5 - CU_FUNC_ATTRIBUTE_BINARY_VERSION = 6 - CU_FUNC_ATTRIBUTE_CACHE_MODE_CA = 7 - CU_FUNC_ATTRIBUTE_MAX_DYNAMIC_SHARED_SIZE_BYTES = 8 - CU_FUNC_ATTRIBUTE_PREFERRED_SHARED_MEMORY_CARVEOUT = 9 - CU_FUNC_ATTRIBUTE_CLUSTER_SIZE_MUST_BE_SET = 10 - CU_FUNC_ATTRIBUTE_REQUIRED_CLUSTER_WIDTH = 11 - CU_FUNC_ATTRIBUTE_REQUIRED_CLUSTER_HEIGHT = 12 - CU_FUNC_ATTRIBUTE_REQUIRED_CLUSTER_DEPTH = 13 - CU_FUNC_ATTRIBUTE_NON_PORTABLE_CLUSTER_SIZE_ALLOWED = 14 - CU_FUNC_ATTRIBUTE_CLUSTER_SCHEDULING_POLICY_PREFERENCE = 15 - CU_FUNC_ATTRIBUTE_MAX = 16 - - ctypedef CUfunction_attribute_enum CUfunction_attribute - - cdef enum CUfunc_cache_enum: - CU_FUNC_CACHE_PREFER_NONE = 0 - CU_FUNC_CACHE_PREFER_SHARED = 1 - CU_FUNC_CACHE_PREFER_L1 = 2 - CU_FUNC_CACHE_PREFER_EQUAL = 3 - - ctypedef CUfunc_cache_enum CUfunc_cache - - cdef enum CUsharedconfig_enum: - CU_SHARED_MEM_CONFIG_DEFAULT_BANK_SIZE = 0 - CU_SHARED_MEM_CONFIG_FOUR_BYTE_BANK_SIZE = 1 - CU_SHARED_MEM_CONFIG_EIGHT_BYTE_BANK_SIZE = 2 - - ctypedef CUsharedconfig_enum CUsharedconfig - - cdef enum CUshared_carveout_enum: - CU_SHAREDMEM_CARVEOUT_DEFAULT = -1 - CU_SHAREDMEM_CARVEOUT_MAX_L1 = 0 - CU_SHAREDMEM_CARVEOUT_MAX_SHARED = 100 - - ctypedef CUshared_carveout_enum CUshared_carveout - - cdef enum CUmemorytype_enum: - CU_MEMORYTYPE_HOST = 1 - CU_MEMORYTYPE_DEVICE = 2 - CU_MEMORYTYPE_ARRAY = 3 - CU_MEMORYTYPE_UNIFIED = 4 - - ctypedef CUmemorytype_enum CUmemorytype - - cdef enum CUcomputemode_enum: - CU_COMPUTEMODE_DEFAULT = 0 - CU_COMPUTEMODE_PROHIBITED = 2 - CU_COMPUTEMODE_EXCLUSIVE_PROCESS = 3 - - ctypedef CUcomputemode_enum CUcomputemode - - cdef enum CUmem_advise_enum: - CU_MEM_ADVISE_SET_READ_MOSTLY = 1 - CU_MEM_ADVISE_UNSET_READ_MOSTLY = 2 - CU_MEM_ADVISE_SET_PREFERRED_LOCATION = 3 - CU_MEM_ADVISE_UNSET_PREFERRED_LOCATION = 4 - CU_MEM_ADVISE_SET_ACCESSED_BY = 5 - CU_MEM_ADVISE_UNSET_ACCESSED_BY = 6 - - ctypedef CUmem_advise_enum CUmem_advise - - cdef enum CUmem_range_attribute_enum: - CU_MEM_RANGE_ATTRIBUTE_READ_MOSTLY = 1 - CU_MEM_RANGE_ATTRIBUTE_PREFERRED_LOCATION = 2 - CU_MEM_RANGE_ATTRIBUTE_ACCESSED_BY = 3 - CU_MEM_RANGE_ATTRIBUTE_LAST_PREFETCH_LOCATION = 4 - CU_MEM_RANGE_ATTRIBUTE_PREFERRED_LOCATION_TYPE = 5 - CU_MEM_RANGE_ATTRIBUTE_PREFERRED_LOCATION_ID = 6 - CU_MEM_RANGE_ATTRIBUTE_LAST_PREFETCH_LOCATION_TYPE = 7 - CU_MEM_RANGE_ATTRIBUTE_LAST_PREFETCH_LOCATION_ID = 8 - - ctypedef CUmem_range_attribute_enum CUmem_range_attribute - - cdef enum CUjit_option_enum: - CU_JIT_MAX_REGISTERS = 0 - CU_JIT_THREADS_PER_BLOCK = 1 - CU_JIT_WALL_TIME = 2 - CU_JIT_INFO_LOG_BUFFER = 3 - CU_JIT_INFO_LOG_BUFFER_SIZE_BYTES = 4 - CU_JIT_ERROR_LOG_BUFFER = 5 - CU_JIT_ERROR_LOG_BUFFER_SIZE_BYTES = 6 - CU_JIT_OPTIMIZATION_LEVEL = 7 - CU_JIT_TARGET_FROM_CUCONTEXT = 8 - CU_JIT_TARGET = 9 - CU_JIT_FALLBACK_STRATEGY = 10 - CU_JIT_GENERATE_DEBUG_INFO = 11 - CU_JIT_LOG_VERBOSE = 12 - CU_JIT_GENERATE_LINE_INFO = 13 - CU_JIT_CACHE_MODE = 14 - CU_JIT_NEW_SM3X_OPT = 15 - CU_JIT_FAST_COMPILE = 16 - CU_JIT_GLOBAL_SYMBOL_NAMES = 17 - CU_JIT_GLOBAL_SYMBOL_ADDRESSES = 18 - CU_JIT_GLOBAL_SYMBOL_COUNT = 19 - CU_JIT_LTO = 20 - CU_JIT_FTZ = 21 - CU_JIT_PREC_DIV = 22 - CU_JIT_PREC_SQRT = 23 - CU_JIT_FMA = 24 - CU_JIT_REFERENCED_KERNEL_NAMES = 25 - CU_JIT_REFERENCED_KERNEL_COUNT = 26 - CU_JIT_REFERENCED_VARIABLE_NAMES = 27 - CU_JIT_REFERENCED_VARIABLE_COUNT = 28 - CU_JIT_OPTIMIZE_UNUSED_DEVICE_VARIABLES = 29 - CU_JIT_POSITION_INDEPENDENT_CODE = 30 - CU_JIT_MIN_CTA_PER_SM = 31 - CU_JIT_MAX_THREADS_PER_BLOCK = 32 - CU_JIT_OVERRIDE_DIRECTIVE_VALUES = 33 - CU_JIT_SPLIT_COMPILE = 34 - CU_JIT_BINARY_LOADER_THREAD_COUNT = 35 - CU_JIT_NUM_OPTIONS = 36 - - ctypedef CUjit_option_enum CUjit_option - - cdef enum CUjit_target_enum: - CU_TARGET_COMPUTE_30 = 30 - CU_TARGET_COMPUTE_32 = 32 - CU_TARGET_COMPUTE_35 = 35 - CU_TARGET_COMPUTE_37 = 37 - CU_TARGET_COMPUTE_50 = 50 - CU_TARGET_COMPUTE_52 = 52 - CU_TARGET_COMPUTE_53 = 53 - CU_TARGET_COMPUTE_60 = 60 - CU_TARGET_COMPUTE_61 = 61 - CU_TARGET_COMPUTE_62 = 62 - CU_TARGET_COMPUTE_70 = 70 - CU_TARGET_COMPUTE_72 = 72 - CU_TARGET_COMPUTE_75 = 75 - CU_TARGET_COMPUTE_80 = 80 - CU_TARGET_COMPUTE_86 = 86 - CU_TARGET_COMPUTE_87 = 87 - CU_TARGET_COMPUTE_89 = 89 - CU_TARGET_COMPUTE_90 = 90 - CU_TARGET_COMPUTE_100 = 100 - CU_TARGET_COMPUTE_103 = 103 - CU_TARGET_COMPUTE_110 = 110 - CU_TARGET_COMPUTE_120 = 120 - CU_TARGET_COMPUTE_121 = 121 - CU_TARGET_COMPUTE_90A = 65626 - CU_TARGET_COMPUTE_100A = 65636 - CU_TARGET_COMPUTE_103A = 65639 - CU_TARGET_COMPUTE_110A = 65646 - CU_TARGET_COMPUTE_120A = 65656 - CU_TARGET_COMPUTE_121A = 65657 - CU_TARGET_COMPUTE_100F = 131172 - CU_TARGET_COMPUTE_103F = 131175 - CU_TARGET_COMPUTE_110F = 131182 - CU_TARGET_COMPUTE_120F = 131192 - CU_TARGET_COMPUTE_121F = 131193 - - ctypedef CUjit_target_enum CUjit_target - - cdef enum CUjit_fallback_enum: - CU_PREFER_PTX = 0 - CU_PREFER_BINARY = 1 - - ctypedef CUjit_fallback_enum CUjit_fallback - - cdef enum CUjit_cacheMode_enum: - CU_JIT_CACHE_OPTION_NONE = 0 - CU_JIT_CACHE_OPTION_CG = 1 - CU_JIT_CACHE_OPTION_CA = 2 - - ctypedef CUjit_cacheMode_enum CUjit_cacheMode - - cdef enum CUjitInputType_enum: - CU_JIT_INPUT_CUBIN = 0 - CU_JIT_INPUT_PTX = 1 - CU_JIT_INPUT_FATBINARY = 2 - CU_JIT_INPUT_OBJECT = 3 - CU_JIT_INPUT_LIBRARY = 4 - CU_JIT_INPUT_NVVM = 5 - CU_JIT_NUM_INPUT_TYPES = 6 - - ctypedef CUjitInputType_enum CUjitInputType - - cdef struct CUlinkState_st: - pass - ctypedef CUlinkState_st* CUlinkState - - cdef enum CUgraphicsRegisterFlags_enum: - CU_GRAPHICS_REGISTER_FLAGS_NONE = 0 - CU_GRAPHICS_REGISTER_FLAGS_READ_ONLY = 1 - CU_GRAPHICS_REGISTER_FLAGS_WRITE_DISCARD = 2 - CU_GRAPHICS_REGISTER_FLAGS_SURFACE_LDST = 4 - CU_GRAPHICS_REGISTER_FLAGS_TEXTURE_GATHER = 8 - - ctypedef CUgraphicsRegisterFlags_enum CUgraphicsRegisterFlags - - cdef enum CUgraphicsMapResourceFlags_enum: - CU_GRAPHICS_MAP_RESOURCE_FLAGS_NONE = 0 - CU_GRAPHICS_MAP_RESOURCE_FLAGS_READ_ONLY = 1 - CU_GRAPHICS_MAP_RESOURCE_FLAGS_WRITE_DISCARD = 2 - - ctypedef CUgraphicsMapResourceFlags_enum CUgraphicsMapResourceFlags - - cdef enum CUarray_cubemap_face_enum: - CU_CUBEMAP_FACE_POSITIVE_X = 0 - CU_CUBEMAP_FACE_NEGATIVE_X = 1 - CU_CUBEMAP_FACE_POSITIVE_Y = 2 - CU_CUBEMAP_FACE_NEGATIVE_Y = 3 - CU_CUBEMAP_FACE_POSITIVE_Z = 4 - CU_CUBEMAP_FACE_NEGATIVE_Z = 5 - - ctypedef CUarray_cubemap_face_enum CUarray_cubemap_face - - cdef enum CUlimit_enum: - CU_LIMIT_STACK_SIZE = 0 - CU_LIMIT_PRINTF_FIFO_SIZE = 1 - CU_LIMIT_MALLOC_HEAP_SIZE = 2 - CU_LIMIT_DEV_RUNTIME_SYNC_DEPTH = 3 - CU_LIMIT_DEV_RUNTIME_PENDING_LAUNCH_COUNT = 4 - CU_LIMIT_MAX_L2_FETCH_GRANULARITY = 5 - CU_LIMIT_PERSISTING_L2_CACHE_SIZE = 6 - CU_LIMIT_SHMEM_SIZE = 7 - CU_LIMIT_CIG_ENABLED = 8 - CU_LIMIT_CIG_SHMEM_FALLBACK_ENABLED = 9 - CU_LIMIT_MAX = 10 - - ctypedef CUlimit_enum CUlimit - - cdef enum CUresourcetype_enum: - CU_RESOURCE_TYPE_ARRAY = 0 - CU_RESOURCE_TYPE_MIPMAPPED_ARRAY = 1 - CU_RESOURCE_TYPE_LINEAR = 2 - CU_RESOURCE_TYPE_PITCH2D = 3 - - ctypedef CUresourcetype_enum CUresourcetype - - ctypedef void (*CUhostFn)(void* userData) - - cdef enum CUaccessProperty_enum: - CU_ACCESS_PROPERTY_NORMAL = 0 - CU_ACCESS_PROPERTY_STREAMING = 1 - CU_ACCESS_PROPERTY_PERSISTING = 2 - - ctypedef CUaccessProperty_enum CUaccessProperty - - cdef struct CUaccessPolicyWindow_st: - void* base_ptr - size_t num_bytes - float hitRatio - CUaccessProperty hitProp - CUaccessProperty missProp - - ctypedef CUaccessPolicyWindow_st CUaccessPolicyWindow_v1 - - ctypedef CUaccessPolicyWindow_v1 CUaccessPolicyWindow - - cdef struct CUDA_KERNEL_NODE_PARAMS_st: - CUfunction func - unsigned int gridDimX - unsigned int gridDimY - unsigned int gridDimZ - unsigned int blockDimX - unsigned int blockDimY - unsigned int blockDimZ - unsigned int sharedMemBytes - void** kernelParams - void** extra - - ctypedef CUDA_KERNEL_NODE_PARAMS_st CUDA_KERNEL_NODE_PARAMS_v1 - - cdef struct CUDA_KERNEL_NODE_PARAMS_v2_st: - CUfunction func - unsigned int gridDimX - unsigned int gridDimY - unsigned int gridDimZ - unsigned int blockDimX - unsigned int blockDimY - unsigned int blockDimZ - unsigned int sharedMemBytes - void** kernelParams - void** extra - CUkernel kern - CUcontext ctx - - ctypedef CUDA_KERNEL_NODE_PARAMS_v2_st CUDA_KERNEL_NODE_PARAMS_v2 - - ctypedef CUDA_KERNEL_NODE_PARAMS_v2 CUDA_KERNEL_NODE_PARAMS - - cdef struct CUDA_KERNEL_NODE_PARAMS_v3_st: - CUfunction func - unsigned int gridDimX - unsigned int gridDimY - unsigned int gridDimZ - unsigned int blockDimX - unsigned int blockDimY - unsigned int blockDimZ - unsigned int sharedMemBytes - void** kernelParams - void** extra - CUkernel kern - CUcontext ctx - - ctypedef CUDA_KERNEL_NODE_PARAMS_v3_st CUDA_KERNEL_NODE_PARAMS_v3 - - cdef struct CUDA_MEMSET_NODE_PARAMS_st: - CUdeviceptr dst - size_t pitch - unsigned int value - unsigned int elementSize - size_t width - size_t height - - ctypedef CUDA_MEMSET_NODE_PARAMS_st CUDA_MEMSET_NODE_PARAMS_v1 - - ctypedef CUDA_MEMSET_NODE_PARAMS_v1 CUDA_MEMSET_NODE_PARAMS - - cdef struct CUDA_MEMSET_NODE_PARAMS_v2_st: - CUdeviceptr dst - size_t pitch - unsigned int value - unsigned int elementSize - size_t width - size_t height - CUcontext ctx - - ctypedef CUDA_MEMSET_NODE_PARAMS_v2_st CUDA_MEMSET_NODE_PARAMS_v2 - - cdef struct CUDA_HOST_NODE_PARAMS_st: - CUhostFn fn - void* userData - - ctypedef CUDA_HOST_NODE_PARAMS_st CUDA_HOST_NODE_PARAMS_v1 - - ctypedef CUDA_HOST_NODE_PARAMS_v1 CUDA_HOST_NODE_PARAMS - - cdef struct CUDA_HOST_NODE_PARAMS_v2_st: - CUhostFn fn - void* userData - unsigned int syncMode - - ctypedef CUDA_HOST_NODE_PARAMS_v2_st CUDA_HOST_NODE_PARAMS_v2 - - cdef enum CUgraphConditionalNodeType_enum: - CU_GRAPH_COND_TYPE_IF = 0 - CU_GRAPH_COND_TYPE_WHILE = 1 - CU_GRAPH_COND_TYPE_SWITCH = 2 - - ctypedef CUgraphConditionalNodeType_enum CUgraphConditionalNodeType - - cdef struct CUDA_CONDITIONAL_NODE_PARAMS: - CUgraphConditionalHandle handle - CUgraphConditionalNodeType type - unsigned int size - CUgraph* phGraph_out - CUcontext ctx - - cdef enum CUgraphNodeType_enum: - CU_GRAPH_NODE_TYPE_KERNEL = 0 - CU_GRAPH_NODE_TYPE_MEMCPY = 1 - CU_GRAPH_NODE_TYPE_MEMSET = 2 - CU_GRAPH_NODE_TYPE_HOST = 3 - CU_GRAPH_NODE_TYPE_GRAPH = 4 - CU_GRAPH_NODE_TYPE_EMPTY = 5 - CU_GRAPH_NODE_TYPE_WAIT_EVENT = 6 - CU_GRAPH_NODE_TYPE_EVENT_RECORD = 7 - CU_GRAPH_NODE_TYPE_EXT_SEMAS_SIGNAL = 8 - CU_GRAPH_NODE_TYPE_EXT_SEMAS_WAIT = 9 - CU_GRAPH_NODE_TYPE_MEM_ALLOC = 10 - CU_GRAPH_NODE_TYPE_MEM_FREE = 11 - CU_GRAPH_NODE_TYPE_BATCH_MEM_OP = 12 - CU_GRAPH_NODE_TYPE_CONDITIONAL = 13 - - ctypedef CUgraphNodeType_enum CUgraphNodeType - - cdef enum CUgraphDependencyType_enum: - CU_GRAPH_DEPENDENCY_TYPE_DEFAULT = 0 - CU_GRAPH_DEPENDENCY_TYPE_PROGRAMMATIC = 1 - - ctypedef CUgraphDependencyType_enum CUgraphDependencyType - - cdef struct CUgraphEdgeData_st: - unsigned char from_port - unsigned char to_port - unsigned char type - unsigned char reserved[5] - - ctypedef CUgraphEdgeData_st CUgraphEdgeData - - cdef enum CUgraphInstantiateResult_enum: - CUDA_GRAPH_INSTANTIATE_SUCCESS = 0 - CUDA_GRAPH_INSTANTIATE_ERROR = 1 - CUDA_GRAPH_INSTANTIATE_INVALID_STRUCTURE = 2 - CUDA_GRAPH_INSTANTIATE_NODE_OPERATION_NOT_SUPPORTED = 3 - CUDA_GRAPH_INSTANTIATE_MULTIPLE_CTXS_NOT_SUPPORTED = 4 - CUDA_GRAPH_INSTANTIATE_CONDITIONAL_HANDLE_UNUSED = 5 - - ctypedef CUgraphInstantiateResult_enum CUgraphInstantiateResult - - cdef struct CUDA_GRAPH_INSTANTIATE_PARAMS_st: - cuuint64_t flags - CUstream hUploadStream - CUgraphNode hErrNode_out - CUgraphInstantiateResult result_out - - ctypedef CUDA_GRAPH_INSTANTIATE_PARAMS_st CUDA_GRAPH_INSTANTIATE_PARAMS - - cdef enum CUsynchronizationPolicy_enum: - CU_SYNC_POLICY_AUTO = 1 - CU_SYNC_POLICY_SPIN = 2 - CU_SYNC_POLICY_YIELD = 3 - CU_SYNC_POLICY_BLOCKING_SYNC = 4 - - ctypedef CUsynchronizationPolicy_enum CUsynchronizationPolicy - - cdef enum CUclusterSchedulingPolicy_enum: - CU_CLUSTER_SCHEDULING_POLICY_DEFAULT = 0 - CU_CLUSTER_SCHEDULING_POLICY_SPREAD = 1 - CU_CLUSTER_SCHEDULING_POLICY_LOAD_BALANCING = 2 - - ctypedef CUclusterSchedulingPolicy_enum CUclusterSchedulingPolicy - - cdef enum CUlaunchMemSyncDomain_enum: - CU_LAUNCH_MEM_SYNC_DOMAIN_DEFAULT = 0 - CU_LAUNCH_MEM_SYNC_DOMAIN_REMOTE = 1 - - ctypedef CUlaunchMemSyncDomain_enum CUlaunchMemSyncDomain - - cdef struct CUlaunchMemSyncDomainMap_st: - unsigned char default_ - unsigned char remote - - ctypedef CUlaunchMemSyncDomainMap_st CUlaunchMemSyncDomainMap - - cdef enum CUlaunchAttributePortableClusterMode_enum: - CU_LAUNCH_PORTABLE_CLUSTER_MODE_DEFAULT = 0 - CU_LAUNCH_PORTABLE_CLUSTER_MODE_REQUIRE_PORTABLE = 1 - CU_LAUNCH_PORTABLE_CLUSTER_MODE_ALLOW_NON_PORTABLE = 2 - - ctypedef CUlaunchAttributePortableClusterMode_enum CUlaunchAttributePortableClusterMode - - cdef enum CUsharedMemoryMode_enum: - CU_SHARED_MEMORY_MODE_DEFAULT = 0 - CU_SHARED_MEMORY_MODE_REQUIRE_PORTABLE = 1 - CU_SHARED_MEMORY_MODE_ALLOW_NON_PORTABLE = 2 - - ctypedef CUsharedMemoryMode_enum CUsharedMemoryMode - - cdef enum CUlaunchAttributeID_enum: - CU_LAUNCH_ATTRIBUTE_IGNORE = 0 - CU_LAUNCH_ATTRIBUTE_ACCESS_POLICY_WINDOW = 1 - CU_LAUNCH_ATTRIBUTE_COOPERATIVE = 2 - CU_LAUNCH_ATTRIBUTE_SYNCHRONIZATION_POLICY = 3 - CU_LAUNCH_ATTRIBUTE_CLUSTER_DIMENSION = 4 - CU_LAUNCH_ATTRIBUTE_CLUSTER_SCHEDULING_POLICY_PREFERENCE = 5 - CU_LAUNCH_ATTRIBUTE_PROGRAMMATIC_STREAM_SERIALIZATION = 6 - CU_LAUNCH_ATTRIBUTE_PROGRAMMATIC_EVENT = 7 - CU_LAUNCH_ATTRIBUTE_PRIORITY = 8 - CU_LAUNCH_ATTRIBUTE_MEM_SYNC_DOMAIN_MAP = 9 - CU_LAUNCH_ATTRIBUTE_MEM_SYNC_DOMAIN = 10 - CU_LAUNCH_ATTRIBUTE_PREFERRED_CLUSTER_DIMENSION = 11 - CU_LAUNCH_ATTRIBUTE_LAUNCH_COMPLETION_EVENT = 12 - CU_LAUNCH_ATTRIBUTE_DEVICE_UPDATABLE_KERNEL_NODE = 13 - CU_LAUNCH_ATTRIBUTE_PREFERRED_SHARED_MEMORY_CARVEOUT = 14 - CU_LAUNCH_ATTRIBUTE_NVLINK_UTIL_CENTRIC_SCHEDULING = 16 - CU_LAUNCH_ATTRIBUTE_PORTABLE_CLUSTER_SIZE_MODE = 17 - CU_LAUNCH_ATTRIBUTE_SHARED_MEMORY_MODE = 18 - - ctypedef CUlaunchAttributeID_enum CUlaunchAttributeID - - cdef struct anon_struct1: - unsigned int x - unsigned int y - unsigned int z - - cdef struct anon_struct2: - CUevent event - int flags - int triggerAtBlockStart - - cdef struct anon_struct3: - CUevent event - int flags - - cdef struct anon_struct4: - unsigned int x - unsigned int y - unsigned int z - - cdef struct anon_struct5: - int deviceUpdatable - CUgraphDeviceNode devNode - - cdef union CUlaunchAttributeValue_union: - char pad[64] - CUaccessPolicyWindow accessPolicyWindow - int cooperative - CUsynchronizationPolicy syncPolicy - anon_struct1 clusterDim - CUclusterSchedulingPolicy clusterSchedulingPolicyPreference - int programmaticStreamSerializationAllowed - anon_struct2 programmaticEvent - anon_struct3 launchCompletionEvent - int priority - CUlaunchMemSyncDomainMap memSyncDomainMap - CUlaunchMemSyncDomain memSyncDomain - anon_struct4 preferredClusterDim - anon_struct5 deviceUpdatableKernelNode - unsigned int sharedMemCarveout - unsigned int nvlinkUtilCentricScheduling - CUlaunchAttributePortableClusterMode portableClusterSizeMode - CUsharedMemoryMode sharedMemoryMode - - ctypedef CUlaunchAttributeValue_union CUlaunchAttributeValue - - cdef struct CUlaunchAttribute_st: - CUlaunchAttributeID id - CUlaunchAttributeValue value - - ctypedef CUlaunchAttribute_st CUlaunchAttribute - - cdef struct CUlaunchConfig_st: - unsigned int gridDimX - unsigned int gridDimY - unsigned int gridDimZ - unsigned int blockDimX - unsigned int blockDimY - unsigned int blockDimZ - unsigned int sharedMemBytes - CUstream hStream - CUlaunchAttribute* attrs - unsigned int numAttrs - - ctypedef CUlaunchConfig_st CUlaunchConfig - - ctypedef CUlaunchAttributeID CUkernelNodeAttrID - - ctypedef CUlaunchAttributeValue CUkernelNodeAttrValue_v1 - - ctypedef CUkernelNodeAttrValue_v1 CUkernelNodeAttrValue - - cdef enum CUstreamCaptureStatus_enum: - CU_STREAM_CAPTURE_STATUS_NONE = 0 - CU_STREAM_CAPTURE_STATUS_ACTIVE = 1 - CU_STREAM_CAPTURE_STATUS_INVALIDATED = 2 - - ctypedef CUstreamCaptureStatus_enum CUstreamCaptureStatus - - cdef enum CUstreamCaptureMode_enum: - CU_STREAM_CAPTURE_MODE_GLOBAL = 0 - CU_STREAM_CAPTURE_MODE_THREAD_LOCAL = 1 - CU_STREAM_CAPTURE_MODE_RELAXED = 2 - - ctypedef CUstreamCaptureMode_enum CUstreamCaptureMode - - ctypedef CUlaunchAttributeID CUstreamAttrID - - ctypedef CUlaunchAttributeValue CUstreamAttrValue_v1 - - ctypedef CUstreamAttrValue_v1 CUstreamAttrValue - - cdef enum CUdriverProcAddress_flags_enum: - CU_GET_PROC_ADDRESS_DEFAULT = 0 - CU_GET_PROC_ADDRESS_LEGACY_STREAM = 1 - CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM = 2 - - ctypedef CUdriverProcAddress_flags_enum CUdriverProcAddress_flags - - cdef enum CUdriverProcAddressQueryResult_enum: - CU_GET_PROC_ADDRESS_SUCCESS = 0 - CU_GET_PROC_ADDRESS_SYMBOL_NOT_FOUND = 1 - CU_GET_PROC_ADDRESS_VERSION_NOT_SUFFICIENT = 2 - - ctypedef CUdriverProcAddressQueryResult_enum CUdriverProcAddressQueryResult - - cdef enum CUexecAffinityType_enum: - CU_EXEC_AFFINITY_TYPE_SM_COUNT = 0 - CU_EXEC_AFFINITY_TYPE_MAX = 1 - - ctypedef CUexecAffinityType_enum CUexecAffinityType - - cdef struct CUexecAffinitySmCount_st: - unsigned int val - - ctypedef CUexecAffinitySmCount_st CUexecAffinitySmCount_v1 - - ctypedef CUexecAffinitySmCount_v1 CUexecAffinitySmCount - - cdef union anon_union3: - CUexecAffinitySmCount smCount - - cdef struct CUexecAffinityParam_st: - CUexecAffinityType type - anon_union3 param - - ctypedef CUexecAffinityParam_st CUexecAffinityParam_v1 - - ctypedef CUexecAffinityParam_v1 CUexecAffinityParam - - cdef enum CUcigDataType_enum: - CIG_DATA_TYPE_D3D12_COMMAND_QUEUE = 1 - CIG_DATA_TYPE_NV_BLOB = 2 - - ctypedef CUcigDataType_enum CUcigDataType - - cdef struct CUctxCigParam_st: - CUcigDataType sharedDataType - void* sharedData - - ctypedef CUctxCigParam_st CUctxCigParam - - cdef struct CUctxCreateParams_st: - CUexecAffinityParam* execAffinityParams - int numExecAffinityParams - CUctxCigParam* cigParams - - ctypedef CUctxCreateParams_st CUctxCreateParams - - cdef enum CUstreamCigDataType_enum: - STREAM_CIG_DATA_TYPE_D3D12_COMMAND_LIST = 1 - - ctypedef CUstreamCigDataType_enum CUstreamCigDataType - - cdef struct CUstreamCigParam_st: - CUstreamCigDataType streamSharedDataType - void* streamSharedData - - ctypedef CUstreamCigParam_st CUstreamCigParam - - cdef struct CUstreamCigCaptureParams_st: - CUstreamCigParam* streamCigParams - - ctypedef CUstreamCigCaptureParams_st CUstreamCigCaptureParams - - cdef enum CUlibraryOption_enum: - CU_LIBRARY_HOST_UNIVERSAL_FUNCTION_AND_DATA_TABLE = 0 - CU_LIBRARY_BINARY_IS_PRESERVED = 1 - CU_LIBRARY_NUM_OPTIONS = 2 - - ctypedef CUlibraryOption_enum CUlibraryOption - - cdef struct CUlibraryHostUniversalFunctionAndDataTable_st: - void* functionTable - size_t functionWindowSize - void* dataTable - size_t dataWindowSize - - ctypedef CUlibraryHostUniversalFunctionAndDataTable_st CUlibraryHostUniversalFunctionAndDataTable - - cdef enum cudaError_enum: - CUDA_SUCCESS = 0 - CUDA_ERROR_INVALID_VALUE = 1 - CUDA_ERROR_OUT_OF_MEMORY = 2 - CUDA_ERROR_NOT_INITIALIZED = 3 - CUDA_ERROR_DEINITIALIZED = 4 - CUDA_ERROR_PROFILER_DISABLED = 5 - CUDA_ERROR_PROFILER_NOT_INITIALIZED = 6 - CUDA_ERROR_PROFILER_ALREADY_STARTED = 7 - CUDA_ERROR_PROFILER_ALREADY_STOPPED = 8 - CUDA_ERROR_STUB_LIBRARY = 34 - CUDA_ERROR_CALL_REQUIRES_NEWER_DRIVER = 36 - CUDA_ERROR_DEVICE_UNAVAILABLE = 46 - CUDA_ERROR_NO_DEVICE = 100 - CUDA_ERROR_INVALID_DEVICE = 101 - CUDA_ERROR_DEVICE_NOT_LICENSED = 102 - CUDA_ERROR_INVALID_IMAGE = 200 - CUDA_ERROR_INVALID_CONTEXT = 201 - CUDA_ERROR_CONTEXT_ALREADY_CURRENT = 202 - CUDA_ERROR_MAP_FAILED = 205 - CUDA_ERROR_UNMAP_FAILED = 206 - CUDA_ERROR_ARRAY_IS_MAPPED = 207 - CUDA_ERROR_ALREADY_MAPPED = 208 - CUDA_ERROR_NO_BINARY_FOR_GPU = 209 - CUDA_ERROR_ALREADY_ACQUIRED = 210 - CUDA_ERROR_NOT_MAPPED = 211 - CUDA_ERROR_NOT_MAPPED_AS_ARRAY = 212 - CUDA_ERROR_NOT_MAPPED_AS_POINTER = 213 - CUDA_ERROR_ECC_UNCORRECTABLE = 214 - CUDA_ERROR_UNSUPPORTED_LIMIT = 215 - CUDA_ERROR_CONTEXT_ALREADY_IN_USE = 216 - CUDA_ERROR_PEER_ACCESS_UNSUPPORTED = 217 - CUDA_ERROR_INVALID_PTX = 218 - CUDA_ERROR_INVALID_GRAPHICS_CONTEXT = 219 - CUDA_ERROR_NVLINK_UNCORRECTABLE = 220 - CUDA_ERROR_JIT_COMPILER_NOT_FOUND = 221 - CUDA_ERROR_UNSUPPORTED_PTX_VERSION = 222 - CUDA_ERROR_JIT_COMPILATION_DISABLED = 223 - CUDA_ERROR_UNSUPPORTED_EXEC_AFFINITY = 224 - CUDA_ERROR_UNSUPPORTED_DEVSIDE_SYNC = 225 - CUDA_ERROR_CONTAINED = 226 - CUDA_ERROR_INVALID_SOURCE = 300 - CUDA_ERROR_FILE_NOT_FOUND = 301 - CUDA_ERROR_SHARED_OBJECT_SYMBOL_NOT_FOUND = 302 - CUDA_ERROR_SHARED_OBJECT_INIT_FAILED = 303 - CUDA_ERROR_OPERATING_SYSTEM = 304 - CUDA_ERROR_INVALID_HANDLE = 400 - CUDA_ERROR_ILLEGAL_STATE = 401 - CUDA_ERROR_LOSSY_QUERY = 402 - CUDA_ERROR_NOT_FOUND = 500 - CUDA_ERROR_NOT_READY = 600 - CUDA_ERROR_ILLEGAL_ADDRESS = 700 - CUDA_ERROR_LAUNCH_OUT_OF_RESOURCES = 701 - CUDA_ERROR_LAUNCH_TIMEOUT = 702 - CUDA_ERROR_LAUNCH_INCOMPATIBLE_TEXTURING = 703 - CUDA_ERROR_PEER_ACCESS_ALREADY_ENABLED = 704 - CUDA_ERROR_PEER_ACCESS_NOT_ENABLED = 705 - CUDA_ERROR_PRIMARY_CONTEXT_ACTIVE = 708 - CUDA_ERROR_CONTEXT_IS_DESTROYED = 709 - CUDA_ERROR_ASSERT = 710 - CUDA_ERROR_TOO_MANY_PEERS = 711 - CUDA_ERROR_HOST_MEMORY_ALREADY_REGISTERED = 712 - CUDA_ERROR_HOST_MEMORY_NOT_REGISTERED = 713 - CUDA_ERROR_HARDWARE_STACK_ERROR = 714 - CUDA_ERROR_ILLEGAL_INSTRUCTION = 715 - CUDA_ERROR_MISALIGNED_ADDRESS = 716 - CUDA_ERROR_INVALID_ADDRESS_SPACE = 717 - CUDA_ERROR_INVALID_PC = 718 - CUDA_ERROR_LAUNCH_FAILED = 719 - CUDA_ERROR_COOPERATIVE_LAUNCH_TOO_LARGE = 720 - CUDA_ERROR_TENSOR_MEMORY_LEAK = 721 - CUDA_ERROR_NOT_PERMITTED = 800 - CUDA_ERROR_NOT_SUPPORTED = 801 - CUDA_ERROR_SYSTEM_NOT_READY = 802 - CUDA_ERROR_SYSTEM_DRIVER_MISMATCH = 803 - CUDA_ERROR_COMPAT_NOT_SUPPORTED_ON_DEVICE = 804 - CUDA_ERROR_MPS_CONNECTION_FAILED = 805 - CUDA_ERROR_MPS_RPC_FAILURE = 806 - CUDA_ERROR_MPS_SERVER_NOT_READY = 807 - CUDA_ERROR_MPS_MAX_CLIENTS_REACHED = 808 - CUDA_ERROR_MPS_MAX_CONNECTIONS_REACHED = 809 - CUDA_ERROR_MPS_CLIENT_TERMINATED = 810 - CUDA_ERROR_CDP_NOT_SUPPORTED = 811 - CUDA_ERROR_CDP_VERSION_MISMATCH = 812 - CUDA_ERROR_STREAM_CAPTURE_UNSUPPORTED = 900 - CUDA_ERROR_STREAM_CAPTURE_INVALIDATED = 901 - CUDA_ERROR_STREAM_CAPTURE_MERGE = 902 - CUDA_ERROR_STREAM_CAPTURE_UNMATCHED = 903 - CUDA_ERROR_STREAM_CAPTURE_UNJOINED = 904 - CUDA_ERROR_STREAM_CAPTURE_ISOLATION = 905 - CUDA_ERROR_STREAM_CAPTURE_IMPLICIT = 906 - CUDA_ERROR_CAPTURED_EVENT = 907 - CUDA_ERROR_STREAM_CAPTURE_WRONG_THREAD = 908 - CUDA_ERROR_TIMEOUT = 909 - CUDA_ERROR_GRAPH_EXEC_UPDATE_FAILURE = 910 - CUDA_ERROR_EXTERNAL_DEVICE = 911 - CUDA_ERROR_INVALID_CLUSTER_SIZE = 912 - CUDA_ERROR_FUNCTION_NOT_LOADED = 913 - CUDA_ERROR_INVALID_RESOURCE_TYPE = 914 - CUDA_ERROR_INVALID_RESOURCE_CONFIGURATION = 915 - CUDA_ERROR_KEY_ROTATION = 916 - CUDA_ERROR_STREAM_DETACHED = 917 - CUDA_ERROR_UNKNOWN = 999 - - ctypedef cudaError_enum CUresult - - cdef enum CUdevice_P2PAttribute_enum: - CU_DEVICE_P2P_ATTRIBUTE_PERFORMANCE_RANK = 1 - CU_DEVICE_P2P_ATTRIBUTE_ACCESS_SUPPORTED = 2 - CU_DEVICE_P2P_ATTRIBUTE_NATIVE_ATOMIC_SUPPORTED = 3 - CU_DEVICE_P2P_ATTRIBUTE_ACCESS_ACCESS_SUPPORTED = 4 - CU_DEVICE_P2P_ATTRIBUTE_CUDA_ARRAY_ACCESS_SUPPORTED = 4 - CU_DEVICE_P2P_ATTRIBUTE_ONLY_PARTIAL_NATIVE_ATOMIC_SUPPORTED = 5 - - ctypedef CUdevice_P2PAttribute_enum CUdevice_P2PAttribute - - ctypedef void (*CUstreamCallback)(CUstream hStream, CUresult status, void* userData) - - ctypedef size_t (*CUoccupancyB2DSize)(int blockSize) - - cdef struct CUDA_MEMCPY2D_st: - size_t srcXInBytes - size_t srcY - CUmemorytype srcMemoryType - const void* srcHost - CUdeviceptr srcDevice - CUarray srcArray - size_t srcPitch - size_t dstXInBytes - size_t dstY - CUmemorytype dstMemoryType - void* dstHost - CUdeviceptr dstDevice - CUarray dstArray - size_t dstPitch - size_t WidthInBytes - size_t Height - - ctypedef CUDA_MEMCPY2D_st CUDA_MEMCPY2D_v2 - - ctypedef CUDA_MEMCPY2D_v2 CUDA_MEMCPY2D - - cdef struct CUDA_MEMCPY3D_st: - size_t srcXInBytes - size_t srcY - size_t srcZ - size_t srcLOD - CUmemorytype srcMemoryType - const void* srcHost - CUdeviceptr srcDevice - CUarray srcArray - void* reserved0 - size_t srcPitch - size_t srcHeight - size_t dstXInBytes - size_t dstY - size_t dstZ - size_t dstLOD - CUmemorytype dstMemoryType - void* dstHost - CUdeviceptr dstDevice - CUarray dstArray - void* reserved1 - size_t dstPitch - size_t dstHeight - size_t WidthInBytes - size_t Height - size_t Depth - - ctypedef CUDA_MEMCPY3D_st CUDA_MEMCPY3D_v2 - - ctypedef CUDA_MEMCPY3D_v2 CUDA_MEMCPY3D - - cdef struct CUDA_MEMCPY3D_PEER_st: - size_t srcXInBytes - size_t srcY - size_t srcZ - size_t srcLOD - CUmemorytype srcMemoryType - const void* srcHost - CUdeviceptr srcDevice - CUarray srcArray - CUcontext srcContext - size_t srcPitch - size_t srcHeight - size_t dstXInBytes - size_t dstY - size_t dstZ - size_t dstLOD - CUmemorytype dstMemoryType - void* dstHost - CUdeviceptr dstDevice - CUarray dstArray - CUcontext dstContext - size_t dstPitch - size_t dstHeight - size_t WidthInBytes - size_t Height - size_t Depth - - ctypedef CUDA_MEMCPY3D_PEER_st CUDA_MEMCPY3D_PEER_v1 - - ctypedef CUDA_MEMCPY3D_PEER_v1 CUDA_MEMCPY3D_PEER - - cdef struct CUDA_MEMCPY_NODE_PARAMS_st: - int flags - int reserved - CUcontext copyCtx - CUDA_MEMCPY3D copyParams - - ctypedef CUDA_MEMCPY_NODE_PARAMS_st CUDA_MEMCPY_NODE_PARAMS - - cdef struct CUDA_ARRAY_DESCRIPTOR_st: - size_t Width - size_t Height - CUarray_format Format - unsigned int NumChannels - - ctypedef CUDA_ARRAY_DESCRIPTOR_st CUDA_ARRAY_DESCRIPTOR_v2 - - ctypedef CUDA_ARRAY_DESCRIPTOR_v2 CUDA_ARRAY_DESCRIPTOR - - cdef struct CUDA_ARRAY3D_DESCRIPTOR_st: - size_t Width - size_t Height - size_t Depth - CUarray_format Format - unsigned int NumChannels - unsigned int Flags - - ctypedef CUDA_ARRAY3D_DESCRIPTOR_st CUDA_ARRAY3D_DESCRIPTOR_v2 - - ctypedef CUDA_ARRAY3D_DESCRIPTOR_v2 CUDA_ARRAY3D_DESCRIPTOR - - cdef struct anon_struct6: - unsigned int width - unsigned int height - unsigned int depth - - cdef struct CUDA_ARRAY_SPARSE_PROPERTIES_st: - anon_struct6 tileExtent - unsigned int miptailFirstLevel - unsigned long long miptailSize - unsigned int flags - unsigned int reserved[4] - - ctypedef CUDA_ARRAY_SPARSE_PROPERTIES_st CUDA_ARRAY_SPARSE_PROPERTIES_v1 - - ctypedef CUDA_ARRAY_SPARSE_PROPERTIES_v1 CUDA_ARRAY_SPARSE_PROPERTIES - - cdef struct CUDA_ARRAY_MEMORY_REQUIREMENTS_st: - size_t size - size_t alignment - unsigned int reserved[4] - - ctypedef CUDA_ARRAY_MEMORY_REQUIREMENTS_st CUDA_ARRAY_MEMORY_REQUIREMENTS_v1 - - ctypedef CUDA_ARRAY_MEMORY_REQUIREMENTS_v1 CUDA_ARRAY_MEMORY_REQUIREMENTS - - cdef struct anon_struct7: - CUarray hArray - - cdef struct anon_struct8: - CUmipmappedArray hMipmappedArray - - cdef struct anon_struct9: - CUdeviceptr devPtr - CUarray_format format - unsigned int numChannels - size_t sizeInBytes - - cdef struct anon_struct10: - CUdeviceptr devPtr - CUarray_format format - unsigned int numChannels - size_t width - size_t height - size_t pitchInBytes - - cdef struct anon_struct11: - int reserved[32] - - cdef union anon_union4: - anon_struct7 array - anon_struct8 mipmap - anon_struct9 linear - anon_struct10 pitch2D - anon_struct11 reserved - - cdef struct CUDA_RESOURCE_DESC_st: - CUresourcetype resType - anon_union4 res - unsigned int flags - - ctypedef CUDA_RESOURCE_DESC_st CUDA_RESOURCE_DESC_v1 - - ctypedef CUDA_RESOURCE_DESC_v1 CUDA_RESOURCE_DESC - - cdef struct CUDA_TEXTURE_DESC_st: - CUaddress_mode addressMode[3] - CUfilter_mode filterMode - unsigned int flags - unsigned int maxAnisotropy - CUfilter_mode mipmapFilterMode - float mipmapLevelBias - float minMipmapLevelClamp - float maxMipmapLevelClamp - float borderColor[4] - int reserved[12] - - ctypedef CUDA_TEXTURE_DESC_st CUDA_TEXTURE_DESC_v1 - - ctypedef CUDA_TEXTURE_DESC_v1 CUDA_TEXTURE_DESC - - cdef enum CUresourceViewFormat_enum: - CU_RES_VIEW_FORMAT_NONE = 0 - CU_RES_VIEW_FORMAT_UINT_1X8 = 1 - CU_RES_VIEW_FORMAT_UINT_2X8 = 2 - CU_RES_VIEW_FORMAT_UINT_4X8 = 3 - CU_RES_VIEW_FORMAT_SINT_1X8 = 4 - CU_RES_VIEW_FORMAT_SINT_2X8 = 5 - CU_RES_VIEW_FORMAT_SINT_4X8 = 6 - CU_RES_VIEW_FORMAT_UINT_1X16 = 7 - CU_RES_VIEW_FORMAT_UINT_2X16 = 8 - CU_RES_VIEW_FORMAT_UINT_4X16 = 9 - CU_RES_VIEW_FORMAT_SINT_1X16 = 10 - CU_RES_VIEW_FORMAT_SINT_2X16 = 11 - CU_RES_VIEW_FORMAT_SINT_4X16 = 12 - CU_RES_VIEW_FORMAT_UINT_1X32 = 13 - CU_RES_VIEW_FORMAT_UINT_2X32 = 14 - CU_RES_VIEW_FORMAT_UINT_4X32 = 15 - CU_RES_VIEW_FORMAT_SINT_1X32 = 16 - CU_RES_VIEW_FORMAT_SINT_2X32 = 17 - CU_RES_VIEW_FORMAT_SINT_4X32 = 18 - CU_RES_VIEW_FORMAT_FLOAT_1X16 = 19 - CU_RES_VIEW_FORMAT_FLOAT_2X16 = 20 - CU_RES_VIEW_FORMAT_FLOAT_4X16 = 21 - CU_RES_VIEW_FORMAT_FLOAT_1X32 = 22 - CU_RES_VIEW_FORMAT_FLOAT_2X32 = 23 - CU_RES_VIEW_FORMAT_FLOAT_4X32 = 24 - CU_RES_VIEW_FORMAT_UNSIGNED_BC1 = 25 - CU_RES_VIEW_FORMAT_UNSIGNED_BC2 = 26 - CU_RES_VIEW_FORMAT_UNSIGNED_BC3 = 27 - CU_RES_VIEW_FORMAT_UNSIGNED_BC4 = 28 - CU_RES_VIEW_FORMAT_SIGNED_BC4 = 29 - CU_RES_VIEW_FORMAT_UNSIGNED_BC5 = 30 - CU_RES_VIEW_FORMAT_SIGNED_BC5 = 31 - CU_RES_VIEW_FORMAT_UNSIGNED_BC6H = 32 - CU_RES_VIEW_FORMAT_SIGNED_BC6H = 33 - CU_RES_VIEW_FORMAT_UNSIGNED_BC7 = 34 - - ctypedef CUresourceViewFormat_enum CUresourceViewFormat - - cdef struct CUDA_RESOURCE_VIEW_DESC_st: - CUresourceViewFormat 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] - - ctypedef CUDA_RESOURCE_VIEW_DESC_st CUDA_RESOURCE_VIEW_DESC_v1 - - ctypedef CUDA_RESOURCE_VIEW_DESC_v1 CUDA_RESOURCE_VIEW_DESC - - cdef struct CUtensorMap_st: - cuuint64_t opaque[16] - - ctypedef CUtensorMap_st CUtensorMap - - cdef enum CUtensorMapDataType_enum: - CU_TENSOR_MAP_DATA_TYPE_UINT8 = 0 - CU_TENSOR_MAP_DATA_TYPE_UINT16 = 1 - CU_TENSOR_MAP_DATA_TYPE_UINT32 = 2 - CU_TENSOR_MAP_DATA_TYPE_INT32 = 3 - CU_TENSOR_MAP_DATA_TYPE_UINT64 = 4 - CU_TENSOR_MAP_DATA_TYPE_INT64 = 5 - CU_TENSOR_MAP_DATA_TYPE_FLOAT16 = 6 - CU_TENSOR_MAP_DATA_TYPE_FLOAT32 = 7 - CU_TENSOR_MAP_DATA_TYPE_FLOAT64 = 8 - CU_TENSOR_MAP_DATA_TYPE_BFLOAT16 = 9 - CU_TENSOR_MAP_DATA_TYPE_FLOAT32_FTZ = 10 - CU_TENSOR_MAP_DATA_TYPE_TFLOAT32 = 11 - CU_TENSOR_MAP_DATA_TYPE_TFLOAT32_FTZ = 12 - CU_TENSOR_MAP_DATA_TYPE_16U4_ALIGN8B = 13 - CU_TENSOR_MAP_DATA_TYPE_16U4_ALIGN16B = 14 - CU_TENSOR_MAP_DATA_TYPE_16U6_ALIGN16B = 15 - - ctypedef CUtensorMapDataType_enum CUtensorMapDataType - - cdef enum CUtensorMapInterleave_enum: - CU_TENSOR_MAP_INTERLEAVE_NONE = 0 - CU_TENSOR_MAP_INTERLEAVE_16B = 1 - CU_TENSOR_MAP_INTERLEAVE_32B = 2 - - ctypedef CUtensorMapInterleave_enum CUtensorMapInterleave - - cdef enum CUtensorMapSwizzle_enum: - CU_TENSOR_MAP_SWIZZLE_NONE = 0 - CU_TENSOR_MAP_SWIZZLE_32B = 1 - CU_TENSOR_MAP_SWIZZLE_64B = 2 - CU_TENSOR_MAP_SWIZZLE_128B = 3 - CU_TENSOR_MAP_SWIZZLE_128B_ATOM_32B = 4 - CU_TENSOR_MAP_SWIZZLE_128B_ATOM_32B_FLIP_8B = 5 - CU_TENSOR_MAP_SWIZZLE_128B_ATOM_64B = 6 - - ctypedef CUtensorMapSwizzle_enum CUtensorMapSwizzle - - cdef enum CUtensorMapL2promotion_enum: - CU_TENSOR_MAP_L2_PROMOTION_NONE = 0 - CU_TENSOR_MAP_L2_PROMOTION_L2_64B = 1 - CU_TENSOR_MAP_L2_PROMOTION_L2_128B = 2 - CU_TENSOR_MAP_L2_PROMOTION_L2_256B = 3 - - ctypedef CUtensorMapL2promotion_enum CUtensorMapL2promotion - - cdef enum CUtensorMapFloatOOBfill_enum: - CU_TENSOR_MAP_FLOAT_OOB_FILL_NONE = 0 - CU_TENSOR_MAP_FLOAT_OOB_FILL_NAN_REQUEST_ZERO_FMA = 1 - - ctypedef CUtensorMapFloatOOBfill_enum CUtensorMapFloatOOBfill - - cdef enum CUtensorMapIm2ColWideMode_enum: - CU_TENSOR_MAP_IM2COL_WIDE_MODE_W = 0 - CU_TENSOR_MAP_IM2COL_WIDE_MODE_W128 = 1 - - ctypedef CUtensorMapIm2ColWideMode_enum CUtensorMapIm2ColWideMode - - cdef struct CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_st: - unsigned long long p2pToken - unsigned int vaSpaceToken - - ctypedef CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_st CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_v1 - - ctypedef CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_v1 CUDA_POINTER_ATTRIBUTE_P2P_TOKENS - - cdef enum CUDA_POINTER_ATTRIBUTE_ACCESS_FLAGS_enum: - CU_POINTER_ATTRIBUTE_ACCESS_FLAG_NONE = 0 - CU_POINTER_ATTRIBUTE_ACCESS_FLAG_READ = 1 - CU_POINTER_ATTRIBUTE_ACCESS_FLAG_READWRITE = 3 - - ctypedef CUDA_POINTER_ATTRIBUTE_ACCESS_FLAGS_enum CUDA_POINTER_ATTRIBUTE_ACCESS_FLAGS - - cdef struct CUDA_LAUNCH_PARAMS_st: - CUfunction function - unsigned int gridDimX - unsigned int gridDimY - unsigned int gridDimZ - unsigned int blockDimX - unsigned int blockDimY - unsigned int blockDimZ - unsigned int sharedMemBytes - CUstream hStream - void** kernelParams - - ctypedef CUDA_LAUNCH_PARAMS_st CUDA_LAUNCH_PARAMS_v1 - - ctypedef CUDA_LAUNCH_PARAMS_v1 CUDA_LAUNCH_PARAMS - - cdef enum CUexternalMemoryHandleType_enum: - CU_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_FD = 1 - CU_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_WIN32 = 2 - CU_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_WIN32_KMT = 3 - CU_EXTERNAL_MEMORY_HANDLE_TYPE_D3D12_HEAP = 4 - CU_EXTERNAL_MEMORY_HANDLE_TYPE_D3D12_RESOURCE = 5 - CU_EXTERNAL_MEMORY_HANDLE_TYPE_D3D11_RESOURCE = 6 - CU_EXTERNAL_MEMORY_HANDLE_TYPE_D3D11_RESOURCE_KMT = 7 - CU_EXTERNAL_MEMORY_HANDLE_TYPE_NVSCIBUF = 8 - CU_EXTERNAL_MEMORY_HANDLE_TYPE_DMABUF_FD = 9 - - ctypedef CUexternalMemoryHandleType_enum CUexternalMemoryHandleType - - cdef struct anon_struct12: - void* handle - const void* name - - cdef union anon_union5: - int fd - anon_struct12 win32 - const void* nvSciBufObject - - cdef struct CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st: - CUexternalMemoryHandleType type - anon_union5 handle - unsigned long long size - unsigned int flags - unsigned int reserved[16] - - ctypedef CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st CUDA_EXTERNAL_MEMORY_HANDLE_DESC_v1 - - ctypedef CUDA_EXTERNAL_MEMORY_HANDLE_DESC_v1 CUDA_EXTERNAL_MEMORY_HANDLE_DESC - - cdef struct CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st: - unsigned long long offset - unsigned long long size - unsigned int flags - unsigned int reserved[16] - - ctypedef CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st CUDA_EXTERNAL_MEMORY_BUFFER_DESC_v1 - - ctypedef CUDA_EXTERNAL_MEMORY_BUFFER_DESC_v1 CUDA_EXTERNAL_MEMORY_BUFFER_DESC - - cdef struct CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_st: - unsigned long long offset - CUDA_ARRAY3D_DESCRIPTOR arrayDesc - unsigned int numLevels - unsigned int reserved[16] - - ctypedef CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_st CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_v1 - - ctypedef CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_v1 CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC - - cdef enum CUexternalSemaphoreHandleType_enum: - CU_EXTERNAL_SEMAPHORE_HANDLE_TYPE_OPAQUE_FD = 1 - CU_EXTERNAL_SEMAPHORE_HANDLE_TYPE_OPAQUE_WIN32 = 2 - CU_EXTERNAL_SEMAPHORE_HANDLE_TYPE_OPAQUE_WIN32_KMT = 3 - CU_EXTERNAL_SEMAPHORE_HANDLE_TYPE_D3D12_FENCE = 4 - CU_EXTERNAL_SEMAPHORE_HANDLE_TYPE_D3D11_FENCE = 5 - CU_EXTERNAL_SEMAPHORE_HANDLE_TYPE_NVSCISYNC = 6 - CU_EXTERNAL_SEMAPHORE_HANDLE_TYPE_D3D11_KEYED_MUTEX = 7 - CU_EXTERNAL_SEMAPHORE_HANDLE_TYPE_D3D11_KEYED_MUTEX_KMT = 8 - CU_EXTERNAL_SEMAPHORE_HANDLE_TYPE_TIMELINE_SEMAPHORE_FD = 9 - CU_EXTERNAL_SEMAPHORE_HANDLE_TYPE_TIMELINE_SEMAPHORE_WIN32 = 10 - - ctypedef CUexternalSemaphoreHandleType_enum CUexternalSemaphoreHandleType - - cdef struct anon_struct13: - void* handle - const void* name - - cdef union anon_union6: - int fd - anon_struct13 win32 - const void* nvSciSyncObj - - cdef struct CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st: - CUexternalSemaphoreHandleType type - anon_union6 handle - unsigned int flags - unsigned int reserved[16] - - ctypedef CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_v1 - - ctypedef CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_v1 CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC - - cdef struct anon_struct14: - unsigned long long value - - cdef union anon_union7: - void* fence - unsigned long long reserved - - cdef struct anon_struct15: - unsigned long long key - - cdef struct anon_struct16: - anon_struct14 fence - anon_union7 nvSciSync - anon_struct15 keyedMutex - unsigned int reserved[12] - - cdef struct CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st: - anon_struct16 params - unsigned int flags - unsigned int reserved[16] - - ctypedef CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_v1 - - ctypedef CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_v1 CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS - - cdef struct anon_struct17: - unsigned long long value - - cdef union anon_union8: - void* fence - unsigned long long reserved - - cdef struct anon_struct18: - unsigned long long key - unsigned int timeoutMs - - cdef struct anon_struct19: - anon_struct17 fence - anon_union8 nvSciSync - anon_struct18 keyedMutex - unsigned int reserved[10] - - cdef struct CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st: - anon_struct19 params - unsigned int flags - unsigned int reserved[16] - - ctypedef CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_v1 - - ctypedef CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_v1 CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS - - cdef struct CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_st: - CUexternalSemaphore* extSemArray - const CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS* paramsArray - unsigned int numExtSems - - ctypedef CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_st CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v1 - - ctypedef CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v1 CUDA_EXT_SEM_SIGNAL_NODE_PARAMS - - cdef struct CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2_st: - CUexternalSemaphore* extSemArray - const CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS* paramsArray - unsigned int numExtSems - - ctypedef CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2_st CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2 - - cdef struct CUDA_EXT_SEM_WAIT_NODE_PARAMS_st: - CUexternalSemaphore* extSemArray - const CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS* paramsArray - unsigned int numExtSems - - ctypedef CUDA_EXT_SEM_WAIT_NODE_PARAMS_st CUDA_EXT_SEM_WAIT_NODE_PARAMS_v1 - - ctypedef CUDA_EXT_SEM_WAIT_NODE_PARAMS_v1 CUDA_EXT_SEM_WAIT_NODE_PARAMS - - cdef struct CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2_st: - CUexternalSemaphore* extSemArray - const CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS* paramsArray - unsigned int numExtSems - - ctypedef CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2_st CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2 - - ctypedef unsigned long long CUmemGenericAllocationHandle_v1 - - ctypedef CUmemGenericAllocationHandle_v1 CUmemGenericAllocationHandle - - cdef enum CUmemAllocationHandleType_enum: - CU_MEM_HANDLE_TYPE_NONE = 0 - CU_MEM_HANDLE_TYPE_POSIX_FILE_DESCRIPTOR = 1 - CU_MEM_HANDLE_TYPE_WIN32 = 2 - CU_MEM_HANDLE_TYPE_WIN32_KMT = 4 - CU_MEM_HANDLE_TYPE_FABRIC = 8 - CU_MEM_HANDLE_TYPE_MAX = 2147483647 - - ctypedef CUmemAllocationHandleType_enum CUmemAllocationHandleType - - cdef enum CUmemAccess_flags_enum: - CU_MEM_ACCESS_FLAGS_PROT_NONE = 0 - CU_MEM_ACCESS_FLAGS_PROT_READ = 1 - CU_MEM_ACCESS_FLAGS_PROT_READWRITE = 3 - CU_MEM_ACCESS_FLAGS_PROT_MAX = 2147483647 - - ctypedef CUmemAccess_flags_enum CUmemAccess_flags - - cdef enum CUmemLocationType_enum: - CU_MEM_LOCATION_TYPE_INVALID = 0 - CU_MEM_LOCATION_TYPE_NONE = 0 - CU_MEM_LOCATION_TYPE_DEVICE = 1 - CU_MEM_LOCATION_TYPE_HOST = 2 - CU_MEM_LOCATION_TYPE_HOST_NUMA = 3 - CU_MEM_LOCATION_TYPE_HOST_NUMA_CURRENT = 4 - CU_MEM_LOCATION_TYPE_INVISIBLE = 5 - CU_MEM_LOCATION_TYPE_MAX = 2147483647 - - ctypedef CUmemLocationType_enum CUmemLocationType - - cdef enum CUmemAllocationType_enum: - CU_MEM_ALLOCATION_TYPE_INVALID = 0 - CU_MEM_ALLOCATION_TYPE_PINNED = 1 - CU_MEM_ALLOCATION_TYPE_MANAGED = 2 - CU_MEM_ALLOCATION_TYPE_MAX = 2147483647 - - ctypedef CUmemAllocationType_enum CUmemAllocationType - - cdef enum CUmemAllocationGranularity_flags_enum: - CU_MEM_ALLOC_GRANULARITY_MINIMUM = 0 - CU_MEM_ALLOC_GRANULARITY_RECOMMENDED = 1 - - ctypedef CUmemAllocationGranularity_flags_enum CUmemAllocationGranularity_flags - - cdef enum CUmemRangeHandleType_enum: - CU_MEM_RANGE_HANDLE_TYPE_DMA_BUF_FD = 1 - CU_MEM_RANGE_HANDLE_TYPE_MAX = 2147483647 - - ctypedef CUmemRangeHandleType_enum CUmemRangeHandleType - - cdef enum CUmemRangeFlags_enum: - CU_MEM_RANGE_FLAG_DMA_BUF_MAPPING_TYPE_PCIE = 1 - - ctypedef CUmemRangeFlags_enum CUmemRangeFlags - - cdef enum CUarraySparseSubresourceType_enum: - CU_ARRAY_SPARSE_SUBRESOURCE_TYPE_SPARSE_LEVEL = 0 - CU_ARRAY_SPARSE_SUBRESOURCE_TYPE_MIPTAIL = 1 - - ctypedef CUarraySparseSubresourceType_enum CUarraySparseSubresourceType - - cdef enum CUmemOperationType_enum: - CU_MEM_OPERATION_TYPE_MAP = 1 - CU_MEM_OPERATION_TYPE_UNMAP = 2 - - ctypedef CUmemOperationType_enum CUmemOperationType - - cdef enum CUmemHandleType_enum: - CU_MEM_HANDLE_TYPE_GENERIC = 0 - - ctypedef CUmemHandleType_enum CUmemHandleType - - cdef union anon_union9: - CUmipmappedArray mipmap - CUarray array - - cdef struct anon_struct20: - unsigned int level - unsigned int layer - unsigned int offsetX - unsigned int offsetY - unsigned int offsetZ - unsigned int extentWidth - unsigned int extentHeight - unsigned int extentDepth - - cdef struct anon_struct21: - unsigned int layer - unsigned long long offset - unsigned long long size - - cdef union anon_union10: - anon_struct20 sparseLevel - anon_struct21 miptail - - cdef union anon_union11: - CUmemGenericAllocationHandle memHandle - - cdef struct CUarrayMapInfo_st: - CUresourcetype resourceType - anon_union9 resource - CUarraySparseSubresourceType subresourceType - anon_union10 subresource - CUmemOperationType memOperationType - CUmemHandleType memHandleType - anon_union11 memHandle - unsigned long long offset - unsigned int deviceBitMask - unsigned int flags - unsigned int reserved[2] - - ctypedef CUarrayMapInfo_st CUarrayMapInfo_v1 - - ctypedef CUarrayMapInfo_v1 CUarrayMapInfo - - cdef struct CUmemLocation_st: - CUmemLocationType type - int id - - ctypedef CUmemLocation_st CUmemLocation_v1 - - ctypedef CUmemLocation_v1 CUmemLocation - - cdef enum CUmemAllocationCompType_enum: - CU_MEM_ALLOCATION_COMP_NONE = 0 - CU_MEM_ALLOCATION_COMP_GENERIC = 1 - - ctypedef CUmemAllocationCompType_enum CUmemAllocationCompType - - cdef struct anon_struct22: - unsigned char compressionType - unsigned char gpuDirectRDMACapable - unsigned short usage - unsigned char reserved[4] - - cdef struct CUmemAllocationProp_st: - CUmemAllocationType type - CUmemAllocationHandleType requestedHandleTypes - CUmemLocation location - void* win32HandleMetaData - anon_struct22 allocFlags - - ctypedef CUmemAllocationProp_st CUmemAllocationProp_v1 - - ctypedef CUmemAllocationProp_v1 CUmemAllocationProp - - cdef enum CUmulticastGranularity_flags_enum: - CU_MULTICAST_GRANULARITY_MINIMUM = 0 - CU_MULTICAST_GRANULARITY_RECOMMENDED = 1 - - ctypedef CUmulticastGranularity_flags_enum CUmulticastGranularity_flags - - cdef struct CUmulticastObjectProp_st: - unsigned int numDevices - size_t size - unsigned long long handleTypes - unsigned long long flags - - ctypedef CUmulticastObjectProp_st CUmulticastObjectProp_v1 - - ctypedef CUmulticastObjectProp_v1 CUmulticastObjectProp - - cdef struct CUmemAccessDesc_st: - CUmemLocation location - CUmemAccess_flags flags - - ctypedef CUmemAccessDesc_st CUmemAccessDesc_v1 - - ctypedef CUmemAccessDesc_v1 CUmemAccessDesc - - cdef enum CUgraphExecUpdateResult_enum: - CU_GRAPH_EXEC_UPDATE_SUCCESS = 0 - CU_GRAPH_EXEC_UPDATE_ERROR = 1 - CU_GRAPH_EXEC_UPDATE_ERROR_TOPOLOGY_CHANGED = 2 - CU_GRAPH_EXEC_UPDATE_ERROR_NODE_TYPE_CHANGED = 3 - CU_GRAPH_EXEC_UPDATE_ERROR_FUNCTION_CHANGED = 4 - CU_GRAPH_EXEC_UPDATE_ERROR_PARAMETERS_CHANGED = 5 - CU_GRAPH_EXEC_UPDATE_ERROR_NOT_SUPPORTED = 6 - CU_GRAPH_EXEC_UPDATE_ERROR_UNSUPPORTED_FUNCTION_CHANGE = 7 - CU_GRAPH_EXEC_UPDATE_ERROR_ATTRIBUTES_CHANGED = 8 - - ctypedef CUgraphExecUpdateResult_enum CUgraphExecUpdateResult - - cdef struct CUgraphExecUpdateResultInfo_st: - CUgraphExecUpdateResult result - CUgraphNode errorNode - CUgraphNode errorFromNode - - ctypedef CUgraphExecUpdateResultInfo_st CUgraphExecUpdateResultInfo_v1 - - ctypedef CUgraphExecUpdateResultInfo_v1 CUgraphExecUpdateResultInfo - - cdef enum CUmemPool_attribute_enum: - CU_MEMPOOL_ATTR_REUSE_FOLLOW_EVENT_DEPENDENCIES = 1 - CU_MEMPOOL_ATTR_REUSE_ALLOW_OPPORTUNISTIC = 2 - CU_MEMPOOL_ATTR_REUSE_ALLOW_INTERNAL_DEPENDENCIES = 3 - CU_MEMPOOL_ATTR_RELEASE_THRESHOLD = 4 - CU_MEMPOOL_ATTR_RESERVED_MEM_CURRENT = 5 - CU_MEMPOOL_ATTR_RESERVED_MEM_HIGH = 6 - CU_MEMPOOL_ATTR_USED_MEM_CURRENT = 7 - CU_MEMPOOL_ATTR_USED_MEM_HIGH = 8 - CU_MEMPOOL_ATTR_ALLOCATION_TYPE = 9 - CU_MEMPOOL_ATTR_EXPORT_HANDLE_TYPES = 10 - CU_MEMPOOL_ATTR_LOCATION_ID = 11 - CU_MEMPOOL_ATTR_LOCATION_TYPE = 12 - CU_MEMPOOL_ATTR_MAX_POOL_SIZE = 13 - CU_MEMPOOL_ATTR_HW_DECOMPRESS_ENABLED = 14 - - ctypedef CUmemPool_attribute_enum CUmemPool_attribute - - cdef struct CUmemPoolProps_st: - CUmemAllocationType allocType - CUmemAllocationHandleType handleTypes - CUmemLocation location - void* win32SecurityAttributes - size_t maxSize - unsigned short usage - unsigned char reserved[54] - - ctypedef CUmemPoolProps_st CUmemPoolProps_v1 - - ctypedef CUmemPoolProps_v1 CUmemPoolProps - - cdef struct CUmemPoolPtrExportData_st: - unsigned char reserved[64] - - ctypedef CUmemPoolPtrExportData_st CUmemPoolPtrExportData_v1 - - ctypedef CUmemPoolPtrExportData_v1 CUmemPoolPtrExportData - - cdef enum CUmemcpyFlags_enum: - CU_MEMCPY_FLAG_DEFAULT = 0 - CU_MEMCPY_FLAG_PREFER_OVERLAP_WITH_COMPUTE = 1 - - ctypedef CUmemcpyFlags_enum CUmemcpyFlags - - cdef enum CUmemcpySrcAccessOrder_enum: - CU_MEMCPY_SRC_ACCESS_ORDER_INVALID = 0 - CU_MEMCPY_SRC_ACCESS_ORDER_STREAM = 1 - CU_MEMCPY_SRC_ACCESS_ORDER_DURING_API_CALL = 2 - CU_MEMCPY_SRC_ACCESS_ORDER_ANY = 3 - CU_MEMCPY_SRC_ACCESS_ORDER_MAX = 2147483647 - - ctypedef CUmemcpySrcAccessOrder_enum CUmemcpySrcAccessOrder - - cdef struct CUmemcpyAttributes_st: - CUmemcpySrcAccessOrder srcAccessOrder - CUmemLocation srcLocHint - CUmemLocation dstLocHint - unsigned int flags - - ctypedef CUmemcpyAttributes_st CUmemcpyAttributes_v1 - - ctypedef CUmemcpyAttributes_v1 CUmemcpyAttributes - - cdef enum CUmemcpy3DOperandType_enum: - CU_MEMCPY_OPERAND_TYPE_POINTER = 1 - CU_MEMCPY_OPERAND_TYPE_ARRAY = 2 - CU_MEMCPY_OPERAND_TYPE_MAX = 2147483647 - - ctypedef CUmemcpy3DOperandType_enum CUmemcpy3DOperandType - - cdef struct CUoffset3D_st: - size_t x - size_t y - size_t z - - ctypedef CUoffset3D_st CUoffset3D_v1 - - ctypedef CUoffset3D_v1 CUoffset3D - - cdef struct CUextent3D_st: - size_t width - size_t height - size_t depth - - ctypedef CUextent3D_st CUextent3D_v1 - - ctypedef CUextent3D_v1 CUextent3D - - cdef struct anon_struct23: - CUdeviceptr ptr - size_t rowLength - size_t layerHeight - CUmemLocation locHint - - cdef struct anon_struct24: - CUarray array - CUoffset3D offset - - cdef union anon_union13: - anon_struct23 ptr - anon_struct24 array - - cdef struct CUmemcpy3DOperand_st: - CUmemcpy3DOperandType type - anon_union13 op - - ctypedef CUmemcpy3DOperand_st CUmemcpy3DOperand_v1 - - ctypedef CUmemcpy3DOperand_v1 CUmemcpy3DOperand - - cdef struct CUDA_MEMCPY3D_BATCH_OP_st: - CUmemcpy3DOperand src - CUmemcpy3DOperand dst - CUextent3D extent - CUmemcpySrcAccessOrder srcAccessOrder - unsigned int flags - - ctypedef CUDA_MEMCPY3D_BATCH_OP_st CUDA_MEMCPY3D_BATCH_OP_v1 - - ctypedef CUDA_MEMCPY3D_BATCH_OP_v1 CUDA_MEMCPY3D_BATCH_OP - - cdef struct CUDA_MEM_ALLOC_NODE_PARAMS_v1_st: - CUmemPoolProps poolProps - const CUmemAccessDesc* accessDescs - size_t accessDescCount - size_t bytesize - CUdeviceptr dptr - - ctypedef CUDA_MEM_ALLOC_NODE_PARAMS_v1_st CUDA_MEM_ALLOC_NODE_PARAMS_v1 - - ctypedef CUDA_MEM_ALLOC_NODE_PARAMS_v1 CUDA_MEM_ALLOC_NODE_PARAMS - - cdef struct CUDA_MEM_ALLOC_NODE_PARAMS_v2_st: - CUmemPoolProps poolProps - const CUmemAccessDesc* accessDescs - size_t accessDescCount - size_t bytesize - CUdeviceptr dptr - - ctypedef CUDA_MEM_ALLOC_NODE_PARAMS_v2_st CUDA_MEM_ALLOC_NODE_PARAMS_v2 - - cdef struct CUDA_MEM_FREE_NODE_PARAMS_st: - CUdeviceptr dptr - - ctypedef CUDA_MEM_FREE_NODE_PARAMS_st CUDA_MEM_FREE_NODE_PARAMS - - cdef enum CUgraphMem_attribute_enum: - CU_GRAPH_MEM_ATTR_USED_MEM_CURRENT = 0 - CU_GRAPH_MEM_ATTR_USED_MEM_HIGH = 1 - CU_GRAPH_MEM_ATTR_RESERVED_MEM_CURRENT = 2 - CU_GRAPH_MEM_ATTR_RESERVED_MEM_HIGH = 3 - - ctypedef CUgraphMem_attribute_enum CUgraphMem_attribute - - cdef enum CUgraphChildGraphNodeOwnership_enum: - CU_GRAPH_CHILD_GRAPH_OWNERSHIP_INVALID = -1 - CU_GRAPH_CHILD_GRAPH_OWNERSHIP_CLONE = 0 - CU_GRAPH_CHILD_GRAPH_OWNERSHIP_MOVE = 1 - - ctypedef CUgraphChildGraphNodeOwnership_enum CUgraphChildGraphNodeOwnership - - cdef struct CUDA_CHILD_GRAPH_NODE_PARAMS_st: - CUgraph graph - CUgraphChildGraphNodeOwnership ownership - - ctypedef CUDA_CHILD_GRAPH_NODE_PARAMS_st CUDA_CHILD_GRAPH_NODE_PARAMS - - cdef struct CUDA_EVENT_RECORD_NODE_PARAMS_st: - CUevent event - - ctypedef CUDA_EVENT_RECORD_NODE_PARAMS_st CUDA_EVENT_RECORD_NODE_PARAMS - - cdef struct CUDA_EVENT_WAIT_NODE_PARAMS_st: - CUevent event - - ctypedef CUDA_EVENT_WAIT_NODE_PARAMS_st CUDA_EVENT_WAIT_NODE_PARAMS - - cdef struct CUgraphNodeParams_st: - CUgraphNodeType type - int reserved0[3] - long long reserved1[29] - CUDA_KERNEL_NODE_PARAMS_v3 kernel - CUDA_MEMCPY_NODE_PARAMS memcpy - CUDA_MEMSET_NODE_PARAMS_v2 memset - CUDA_HOST_NODE_PARAMS_v2 host - CUDA_CHILD_GRAPH_NODE_PARAMS graph - CUDA_EVENT_WAIT_NODE_PARAMS eventWait - CUDA_EVENT_RECORD_NODE_PARAMS eventRecord - CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2 extSemSignal - CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2 extSemWait - CUDA_MEM_ALLOC_NODE_PARAMS_v2 alloc - CUDA_MEM_FREE_NODE_PARAMS free - CUDA_BATCH_MEM_OP_NODE_PARAMS_v2 memOp - CUDA_CONDITIONAL_NODE_PARAMS conditional - long long reserved2 - - ctypedef CUgraphNodeParams_st CUgraphNodeParams - - cdef enum CUflushGPUDirectRDMAWritesOptions_enum: - CU_FLUSH_GPU_DIRECT_RDMA_WRITES_OPTION_HOST = 1 - CU_FLUSH_GPU_DIRECT_RDMA_WRITES_OPTION_MEMOPS = 2 - - ctypedef CUflushGPUDirectRDMAWritesOptions_enum CUflushGPUDirectRDMAWritesOptions - - cdef enum CUGPUDirectRDMAWritesOrdering_enum: - CU_GPU_DIRECT_RDMA_WRITES_ORDERING_NONE = 0 - CU_GPU_DIRECT_RDMA_WRITES_ORDERING_OWNER = 100 - CU_GPU_DIRECT_RDMA_WRITES_ORDERING_ALL_DEVICES = 200 - - ctypedef CUGPUDirectRDMAWritesOrdering_enum CUGPUDirectRDMAWritesOrdering - - cdef enum CUflushGPUDirectRDMAWritesScope_enum: - CU_FLUSH_GPU_DIRECT_RDMA_WRITES_TO_OWNER = 100 - CU_FLUSH_GPU_DIRECT_RDMA_WRITES_TO_ALL_DEVICES = 200 - - ctypedef CUflushGPUDirectRDMAWritesScope_enum CUflushGPUDirectRDMAWritesScope - - cdef enum CUflushGPUDirectRDMAWritesTarget_enum: - CU_FLUSH_GPU_DIRECT_RDMA_WRITES_TARGET_CURRENT_CTX = 0 - - ctypedef CUflushGPUDirectRDMAWritesTarget_enum CUflushGPUDirectRDMAWritesTarget - - cdef enum CUgraphDebugDot_flags_enum: - CU_GRAPH_DEBUG_DOT_FLAGS_VERBOSE = 1 - CU_GRAPH_DEBUG_DOT_FLAGS_RUNTIME_TYPES = 2 - CU_GRAPH_DEBUG_DOT_FLAGS_KERNEL_NODE_PARAMS = 4 - CU_GRAPH_DEBUG_DOT_FLAGS_MEMCPY_NODE_PARAMS = 8 - CU_GRAPH_DEBUG_DOT_FLAGS_MEMSET_NODE_PARAMS = 16 - CU_GRAPH_DEBUG_DOT_FLAGS_HOST_NODE_PARAMS = 32 - CU_GRAPH_DEBUG_DOT_FLAGS_EVENT_NODE_PARAMS = 64 - CU_GRAPH_DEBUG_DOT_FLAGS_EXT_SEMAS_SIGNAL_NODE_PARAMS = 128 - CU_GRAPH_DEBUG_DOT_FLAGS_EXT_SEMAS_WAIT_NODE_PARAMS = 256 - CU_GRAPH_DEBUG_DOT_FLAGS_KERNEL_NODE_ATTRIBUTES = 512 - CU_GRAPH_DEBUG_DOT_FLAGS_HANDLES = 1024 - CU_GRAPH_DEBUG_DOT_FLAGS_MEM_ALLOC_NODE_PARAMS = 2048 - CU_GRAPH_DEBUG_DOT_FLAGS_MEM_FREE_NODE_PARAMS = 4096 - CU_GRAPH_DEBUG_DOT_FLAGS_BATCH_MEM_OP_NODE_PARAMS = 8192 - CU_GRAPH_DEBUG_DOT_FLAGS_EXTRA_TOPO_INFO = 16384 - CU_GRAPH_DEBUG_DOT_FLAGS_CONDITIONAL_NODE_PARAMS = 32768 - - ctypedef CUgraphDebugDot_flags_enum CUgraphDebugDot_flags - - cdef enum CUuserObject_flags_enum: - CU_USER_OBJECT_NO_DESTRUCTOR_SYNC = 1 - - ctypedef CUuserObject_flags_enum CUuserObject_flags - - cdef enum CUuserObjectRetain_flags_enum: - CU_GRAPH_USER_OBJECT_MOVE = 1 - - ctypedef CUuserObjectRetain_flags_enum CUuserObjectRetain_flags - - cdef enum CUgraphInstantiate_flags_enum: - CUDA_GRAPH_INSTANTIATE_FLAG_AUTO_FREE_ON_LAUNCH = 1 - CUDA_GRAPH_INSTANTIATE_FLAG_UPLOAD = 2 - CUDA_GRAPH_INSTANTIATE_FLAG_DEVICE_LAUNCH = 4 - CUDA_GRAPH_INSTANTIATE_FLAG_USE_NODE_PRIORITY = 8 - - ctypedef CUgraphInstantiate_flags_enum CUgraphInstantiate_flags - - cdef enum CUdeviceNumaConfig_enum: - CU_DEVICE_NUMA_CONFIG_NONE = 0 - CU_DEVICE_NUMA_CONFIG_NUMA_NODE = 1 - - ctypedef CUdeviceNumaConfig_enum CUdeviceNumaConfig - - cdef enum CUprocessState_enum: - CU_PROCESS_STATE_RUNNING = 0 - CU_PROCESS_STATE_LOCKED = 1 - CU_PROCESS_STATE_CHECKPOINTED = 2 - CU_PROCESS_STATE_FAILED = 3 - - ctypedef CUprocessState_enum CUprocessState - - cdef struct CUcheckpointLockArgs_st: - unsigned int timeoutMs - unsigned int reserved0 - cuuint64_t reserved1[7] - - ctypedef CUcheckpointLockArgs_st CUcheckpointLockArgs - - cdef struct CUcheckpointCheckpointArgs_st: - cuuint64_t reserved[8] - - ctypedef CUcheckpointCheckpointArgs_st CUcheckpointCheckpointArgs - - cdef struct CUcheckpointGpuPair_st: - CUuuid oldUuid - CUuuid newUuid - - ctypedef CUcheckpointGpuPair_st CUcheckpointGpuPair - - cdef struct CUcheckpointRestoreArgs_st: - CUcheckpointGpuPair* gpuPairs - unsigned int gpuPairsCount - char reserved[44] - cuuint64_t reserved1 - - ctypedef CUcheckpointRestoreArgs_st CUcheckpointRestoreArgs - - cdef struct CUcheckpointUnlockArgs_st: - cuuint64_t reserved[8] - - ctypedef CUcheckpointUnlockArgs_st CUcheckpointUnlockArgs - - cdef enum CUmoduleLoadingMode_enum: - CU_MODULE_EAGER_LOADING = 1 - CU_MODULE_LAZY_LOADING = 2 - - ctypedef CUmoduleLoadingMode_enum CUmoduleLoadingMode - - cdef enum CUmemDecompressAlgorithm_enum: - CU_MEM_DECOMPRESS_UNSUPPORTED = 0 - CU_MEM_DECOMPRESS_ALGORITHM_DEFLATE = 1 - CU_MEM_DECOMPRESS_ALGORITHM_SNAPPY = 2 - CU_MEM_DECOMPRESS_ALGORITHM_LZ4 = 4 - - ctypedef CUmemDecompressAlgorithm_enum CUmemDecompressAlgorithm - - cdef struct CUmemDecompressParams_st: - size_t srcNumBytes - size_t dstNumBytes - cuuint32_t* dstActBytes - const void* src - void* dst - CUmemDecompressAlgorithm algo - unsigned char padding[20] - - ctypedef CUmemDecompressParams_st CUmemDecompressParams - - cdef enum CUfunctionLoadingState_enum: - CU_FUNCTION_LOADING_STATE_UNLOADED = 0 - CU_FUNCTION_LOADING_STATE_LOADED = 1 - CU_FUNCTION_LOADING_STATE_MAX = 2 - - ctypedef CUfunctionLoadingState_enum CUfunctionLoadingState - - cdef enum CUcoredumpSettings_enum: - CU_COREDUMP_ENABLE_ON_EXCEPTION = 1 - CU_COREDUMP_TRIGGER_HOST = 2 - CU_COREDUMP_LIGHTWEIGHT = 3 - CU_COREDUMP_ENABLE_USER_TRIGGER = 4 - CU_COREDUMP_FILE = 5 - CU_COREDUMP_PIPE = 6 - CU_COREDUMP_GENERATION_FLAGS = 7 - CU_COREDUMP_MAX = 8 - - ctypedef CUcoredumpSettings_enum CUcoredumpSettings - - cdef enum CUCoredumpGenerationFlags: - CU_COREDUMP_DEFAULT_FLAGS = 0 - CU_COREDUMP_SKIP_NONRELOCATED_ELF_IMAGES = 1 - CU_COREDUMP_SKIP_GLOBAL_MEMORY = 2 - CU_COREDUMP_SKIP_SHARED_MEMORY = 4 - CU_COREDUMP_SKIP_LOCAL_MEMORY = 8 - CU_COREDUMP_SKIP_ABORT = 16 - CU_COREDUMP_SKIP_CONSTBANK_MEMORY = 32 - CU_COREDUMP_LIGHTWEIGHT_FLAGS = 47 - CU_COREDUMP_GZIP_COMPRESS = 64 - - cdef struct CUcoredumpCallbackEntry_st: - pass - ctypedef CUcoredumpCallbackEntry_st* CUcoredumpCallbackHandle - - ctypedef void (*CUcoredumpStatusCallback)(void* userData, int pid, CUdevice dev) - - cdef struct CUdevResourceDesc_st: - pass - ctypedef CUdevResourceDesc_st* CUdevResourceDesc - - ctypedef enum CUgreenCtxCreate_flags: - CU_GREEN_CTX_DEFAULT_STREAM = 1 - - ctypedef enum CUdevSmResourceGroup_flags: - CU_DEV_SM_RESOURCE_GROUP_DEFAULT = 0 - CU_DEV_SM_RESOURCE_GROUP_BACKFILL = 1 - - ctypedef enum CUdevSmResourceSplitByCount_flags: - CU_DEV_SM_RESOURCE_SPLIT_IGNORE_SM_COSCHEDULING = 1 - CU_DEV_SM_RESOURCE_SPLIT_MAX_POTENTIAL_CLUSTER_SIZE = 2 - - ctypedef enum CUdevResourceType: - CU_DEV_RESOURCE_TYPE_INVALID = 0 - CU_DEV_RESOURCE_TYPE_SM = 1 - CU_DEV_RESOURCE_TYPE_WORKQUEUE_CONFIG = 1000 - CU_DEV_RESOURCE_TYPE_WORKQUEUE = 10000 - - cdef struct CUdevSmResource_st: - unsigned int smCount - unsigned int minSmPartitionSize - unsigned int smCoscheduledAlignment - unsigned int flags - - ctypedef CUdevSmResource_st CUdevSmResource - - ctypedef enum CUdevWorkqueueConfigScope: - CU_WORKQUEUE_SCOPE_DEVICE_CTX = 0 - CU_WORKQUEUE_SCOPE_GREEN_CTX_BALANCED = 1 - - cdef struct CUdevWorkqueueConfigResource_st: - CUdevice device - unsigned int wqConcurrencyLimit - CUdevWorkqueueConfigScope sharingScope - - ctypedef CUdevWorkqueueConfigResource_st CUdevWorkqueueConfigResource - - cdef struct CUdevWorkqueueResource_st: - unsigned char reserved[40] - - ctypedef CUdevWorkqueueResource_st CUdevWorkqueueResource - - cdef struct CU_DEV_SM_RESOURCE_GROUP_PARAMS_st: - unsigned int smCount - unsigned int coscheduledSmCount - unsigned int preferredCoscheduledSmCount - unsigned int flags - unsigned int reserved[12] - - ctypedef CU_DEV_SM_RESOURCE_GROUP_PARAMS_st CU_DEV_SM_RESOURCE_GROUP_PARAMS - - cdef struct CUdevResource_st: - CUdevResourceType type - unsigned char _internal_padding[92] - CUdevSmResource sm - CUdevWorkqueueConfigResource wqConfig - CUdevWorkqueueResource wq - unsigned char _oversize[40] - CUdevResource_st* nextResource - - ctypedef CUdevResource_st CUdevResource_v1 - - ctypedef CUdevResource_v1 CUdevResource - - cdef enum CUlogLevel_enum: - CU_LOG_LEVEL_ERROR = 0 - CU_LOG_LEVEL_WARNING = 1 - - ctypedef CUlogLevel_enum CUlogLevel - - cdef struct CUlogsCallbackEntry_st: - pass - ctypedef CUlogsCallbackEntry_st* CUlogsCallbackHandle - - ctypedef void (*CUlogsCallback)(void* data, CUlogLevel logLevel, char* message, size_t length) - - ctypedef unsigned int CUlogIterator - -cdef extern from "cudaProfiler.h": - - cdef enum CUoutput_mode_enum: - CU_OUT_KEY_VALUE_PAIR = 0 - CU_OUT_CSV = 1 - - ctypedef CUoutput_mode_enum CUoutput_mode - -cdef enum CUeglFrameType_enum: - CU_EGL_FRAME_TYPE_ARRAY = 0 - CU_EGL_FRAME_TYPE_PITCH = 1 - -ctypedef CUeglFrameType_enum CUeglFrameType - -cdef enum CUeglResourceLocationFlags_enum: - CU_EGL_RESOURCE_LOCATION_SYSMEM = 0 - CU_EGL_RESOURCE_LOCATION_VIDMEM = 1 - -ctypedef CUeglResourceLocationFlags_enum CUeglResourceLocationFlags - -cdef enum CUeglColorFormat_enum: - CU_EGL_COLOR_FORMAT_YUV420_PLANAR = 0 - CU_EGL_COLOR_FORMAT_YUV420_SEMIPLANAR = 1 - CU_EGL_COLOR_FORMAT_YUV422_PLANAR = 2 - CU_EGL_COLOR_FORMAT_YUV422_SEMIPLANAR = 3 - CU_EGL_COLOR_FORMAT_RGB = 4 - CU_EGL_COLOR_FORMAT_BGR = 5 - CU_EGL_COLOR_FORMAT_ARGB = 6 - CU_EGL_COLOR_FORMAT_RGBA = 7 - CU_EGL_COLOR_FORMAT_L = 8 - CU_EGL_COLOR_FORMAT_R = 9 - CU_EGL_COLOR_FORMAT_YUV444_PLANAR = 10 - CU_EGL_COLOR_FORMAT_YUV444_SEMIPLANAR = 11 - CU_EGL_COLOR_FORMAT_YUYV_422 = 12 - CU_EGL_COLOR_FORMAT_UYVY_422 = 13 - CU_EGL_COLOR_FORMAT_ABGR = 14 - CU_EGL_COLOR_FORMAT_BGRA = 15 - CU_EGL_COLOR_FORMAT_A = 16 - CU_EGL_COLOR_FORMAT_RG = 17 - CU_EGL_COLOR_FORMAT_AYUV = 18 - CU_EGL_COLOR_FORMAT_YVU444_SEMIPLANAR = 19 - CU_EGL_COLOR_FORMAT_YVU422_SEMIPLANAR = 20 - CU_EGL_COLOR_FORMAT_YVU420_SEMIPLANAR = 21 - CU_EGL_COLOR_FORMAT_Y10V10U10_444_SEMIPLANAR = 22 - CU_EGL_COLOR_FORMAT_Y10V10U10_420_SEMIPLANAR = 23 - CU_EGL_COLOR_FORMAT_Y12V12U12_444_SEMIPLANAR = 24 - CU_EGL_COLOR_FORMAT_Y12V12U12_420_SEMIPLANAR = 25 - CU_EGL_COLOR_FORMAT_VYUY_ER = 26 - CU_EGL_COLOR_FORMAT_UYVY_ER = 27 - CU_EGL_COLOR_FORMAT_YUYV_ER = 28 - CU_EGL_COLOR_FORMAT_YVYU_ER = 29 - CU_EGL_COLOR_FORMAT_YUV_ER = 30 - CU_EGL_COLOR_FORMAT_YUVA_ER = 31 - CU_EGL_COLOR_FORMAT_AYUV_ER = 32 - CU_EGL_COLOR_FORMAT_YUV444_PLANAR_ER = 33 - CU_EGL_COLOR_FORMAT_YUV422_PLANAR_ER = 34 - CU_EGL_COLOR_FORMAT_YUV420_PLANAR_ER = 35 - CU_EGL_COLOR_FORMAT_YUV444_SEMIPLANAR_ER = 36 - CU_EGL_COLOR_FORMAT_YUV422_SEMIPLANAR_ER = 37 - CU_EGL_COLOR_FORMAT_YUV420_SEMIPLANAR_ER = 38 - CU_EGL_COLOR_FORMAT_YVU444_PLANAR_ER = 39 - CU_EGL_COLOR_FORMAT_YVU422_PLANAR_ER = 40 - CU_EGL_COLOR_FORMAT_YVU420_PLANAR_ER = 41 - CU_EGL_COLOR_FORMAT_YVU444_SEMIPLANAR_ER = 42 - CU_EGL_COLOR_FORMAT_YVU422_SEMIPLANAR_ER = 43 - CU_EGL_COLOR_FORMAT_YVU420_SEMIPLANAR_ER = 44 - CU_EGL_COLOR_FORMAT_BAYER_RGGB = 45 - CU_EGL_COLOR_FORMAT_BAYER_BGGR = 46 - CU_EGL_COLOR_FORMAT_BAYER_GRBG = 47 - CU_EGL_COLOR_FORMAT_BAYER_GBRG = 48 - CU_EGL_COLOR_FORMAT_BAYER10_RGGB = 49 - CU_EGL_COLOR_FORMAT_BAYER10_BGGR = 50 - CU_EGL_COLOR_FORMAT_BAYER10_GRBG = 51 - CU_EGL_COLOR_FORMAT_BAYER10_GBRG = 52 - CU_EGL_COLOR_FORMAT_BAYER12_RGGB = 53 - CU_EGL_COLOR_FORMAT_BAYER12_BGGR = 54 - CU_EGL_COLOR_FORMAT_BAYER12_GRBG = 55 - CU_EGL_COLOR_FORMAT_BAYER12_GBRG = 56 - CU_EGL_COLOR_FORMAT_BAYER14_RGGB = 57 - CU_EGL_COLOR_FORMAT_BAYER14_BGGR = 58 - CU_EGL_COLOR_FORMAT_BAYER14_GRBG = 59 - CU_EGL_COLOR_FORMAT_BAYER14_GBRG = 60 - CU_EGL_COLOR_FORMAT_BAYER20_RGGB = 61 - CU_EGL_COLOR_FORMAT_BAYER20_BGGR = 62 - CU_EGL_COLOR_FORMAT_BAYER20_GRBG = 63 - CU_EGL_COLOR_FORMAT_BAYER20_GBRG = 64 - CU_EGL_COLOR_FORMAT_YVU444_PLANAR = 65 - CU_EGL_COLOR_FORMAT_YVU422_PLANAR = 66 - CU_EGL_COLOR_FORMAT_YVU420_PLANAR = 67 - CU_EGL_COLOR_FORMAT_BAYER_ISP_RGGB = 68 - CU_EGL_COLOR_FORMAT_BAYER_ISP_BGGR = 69 - CU_EGL_COLOR_FORMAT_BAYER_ISP_GRBG = 70 - CU_EGL_COLOR_FORMAT_BAYER_ISP_GBRG = 71 - CU_EGL_COLOR_FORMAT_BAYER_BCCR = 72 - CU_EGL_COLOR_FORMAT_BAYER_RCCB = 73 - CU_EGL_COLOR_FORMAT_BAYER_CRBC = 74 - CU_EGL_COLOR_FORMAT_BAYER_CBRC = 75 - CU_EGL_COLOR_FORMAT_BAYER10_CCCC = 76 - CU_EGL_COLOR_FORMAT_BAYER12_BCCR = 77 - CU_EGL_COLOR_FORMAT_BAYER12_RCCB = 78 - CU_EGL_COLOR_FORMAT_BAYER12_CRBC = 79 - CU_EGL_COLOR_FORMAT_BAYER12_CBRC = 80 - CU_EGL_COLOR_FORMAT_BAYER12_CCCC = 81 - CU_EGL_COLOR_FORMAT_Y = 82 - CU_EGL_COLOR_FORMAT_YUV420_SEMIPLANAR_2020 = 83 - CU_EGL_COLOR_FORMAT_YVU420_SEMIPLANAR_2020 = 84 - CU_EGL_COLOR_FORMAT_YUV420_PLANAR_2020 = 85 - CU_EGL_COLOR_FORMAT_YVU420_PLANAR_2020 = 86 - CU_EGL_COLOR_FORMAT_YUV420_SEMIPLANAR_709 = 87 - CU_EGL_COLOR_FORMAT_YVU420_SEMIPLANAR_709 = 88 - CU_EGL_COLOR_FORMAT_YUV420_PLANAR_709 = 89 - CU_EGL_COLOR_FORMAT_YVU420_PLANAR_709 = 90 - CU_EGL_COLOR_FORMAT_Y10V10U10_420_SEMIPLANAR_709 = 91 - CU_EGL_COLOR_FORMAT_Y10V10U10_420_SEMIPLANAR_2020 = 92 - CU_EGL_COLOR_FORMAT_Y10V10U10_422_SEMIPLANAR_2020 = 93 - CU_EGL_COLOR_FORMAT_Y10V10U10_422_SEMIPLANAR = 94 - CU_EGL_COLOR_FORMAT_Y10V10U10_422_SEMIPLANAR_709 = 95 - CU_EGL_COLOR_FORMAT_Y_ER = 96 - CU_EGL_COLOR_FORMAT_Y_709_ER = 97 - CU_EGL_COLOR_FORMAT_Y10_ER = 98 - CU_EGL_COLOR_FORMAT_Y10_709_ER = 99 - CU_EGL_COLOR_FORMAT_Y12_ER = 100 - CU_EGL_COLOR_FORMAT_Y12_709_ER = 101 - CU_EGL_COLOR_FORMAT_YUVA = 102 - CU_EGL_COLOR_FORMAT_YUV = 103 - CU_EGL_COLOR_FORMAT_YVYU = 104 - CU_EGL_COLOR_FORMAT_VYUY = 105 - CU_EGL_COLOR_FORMAT_Y10V10U10_420_SEMIPLANAR_ER = 106 - CU_EGL_COLOR_FORMAT_Y10V10U10_420_SEMIPLANAR_709_ER = 107 - CU_EGL_COLOR_FORMAT_Y10V10U10_444_SEMIPLANAR_ER = 108 - CU_EGL_COLOR_FORMAT_Y10V10U10_444_SEMIPLANAR_709_ER = 109 - CU_EGL_COLOR_FORMAT_Y12V12U12_420_SEMIPLANAR_ER = 110 - CU_EGL_COLOR_FORMAT_Y12V12U12_420_SEMIPLANAR_709_ER = 111 - CU_EGL_COLOR_FORMAT_Y12V12U12_444_SEMIPLANAR_ER = 112 - CU_EGL_COLOR_FORMAT_Y12V12U12_444_SEMIPLANAR_709_ER = 113 - CU_EGL_COLOR_FORMAT_UYVY_709 = 114 - CU_EGL_COLOR_FORMAT_UYVY_709_ER = 115 - CU_EGL_COLOR_FORMAT_UYVY_2020 = 116 - CU_EGL_COLOR_FORMAT_MAX = 117 - -ctypedef CUeglColorFormat_enum CUeglColorFormat - -cdef union anon_union16: - CUarray pArray[3] - void* pPitch[3] - -cdef struct CUeglFrame_st: - anon_union16 frame - unsigned int width - unsigned int height - unsigned int depth - unsigned int pitch - unsigned int planeCount - unsigned int numChannels - CUeglFrameType frameType - CUeglColorFormat eglColorFormat - CUarray_format cuFormat - -ctypedef CUeglFrame_st CUeglFrame_v1 - -ctypedef CUeglFrame_v1 CUeglFrame - -cdef extern from "": - cdef struct CUeglStreamConnection_st: - pass -ctypedef CUeglStreamConnection_st* CUeglStreamConnection - -cdef enum CUGLDeviceList_enum: - CU_GL_DEVICE_LIST_ALL = 1 - CU_GL_DEVICE_LIST_CURRENT_FRAME = 2 - CU_GL_DEVICE_LIST_NEXT_FRAME = 3 - -ctypedef CUGLDeviceList_enum CUGLDeviceList - -cdef enum CUGLmap_flags_enum: - CU_GL_MAP_RESOURCE_FLAGS_NONE = 0 - CU_GL_MAP_RESOURCE_FLAGS_READ_ONLY = 1 - CU_GL_MAP_RESOURCE_FLAGS_WRITE_DISCARD = 2 - -ctypedef CUGLmap_flags_enum CUGLmap_flags - -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 - -{{if 'cuGetErrorString' in found_functions}} - -cdef CUresult cuGetErrorString(CUresult error, const char** pStr) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGetErrorName' in found_functions}} - -cdef CUresult cuGetErrorName(CUresult error, const char** pStr) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuInit' in found_functions}} - -cdef CUresult cuInit(unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuDriverGetVersion' in found_functions}} - -cdef CUresult cuDriverGetVersion(int* driverVersion) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuDeviceGet' in found_functions}} - -cdef CUresult cuDeviceGet(CUdevice* device, int ordinal) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuDeviceGetCount' in found_functions}} - -cdef CUresult cuDeviceGetCount(int* count) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuDeviceGetName' in found_functions}} - -cdef CUresult cuDeviceGetName(char* name, int length, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuDeviceGetUuid_v2' in found_functions}} - -cdef CUresult cuDeviceGetUuid(CUuuid* uuid, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuDeviceGetLuid' in found_functions}} - -cdef CUresult cuDeviceGetLuid(char* luid, unsigned int* deviceNodeMask, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuDeviceTotalMem_v2' in found_functions}} - -cdef CUresult cuDeviceTotalMem(size_t* numbytes, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuDeviceGetTexture1DLinearMaxWidth' in found_functions}} - -cdef CUresult cuDeviceGetTexture1DLinearMaxWidth(size_t* maxWidthInElements, CUarray_format pformat, unsigned numChannels, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuDeviceGetAttribute' in found_functions}} - -cdef CUresult cuDeviceGetAttribute(int* pi, CUdevice_attribute attrib, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuDeviceGetHostAtomicCapabilities' in found_functions}} - -cdef CUresult cuDeviceGetHostAtomicCapabilities(unsigned int* capabilities, const CUatomicOperation* operations, unsigned int count, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuDeviceGetNvSciSyncAttributes' in found_functions}} - -cdef CUresult cuDeviceGetNvSciSyncAttributes(void* nvSciSyncAttrList, CUdevice dev, int flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuDeviceSetMemPool' in found_functions}} - -cdef CUresult cuDeviceSetMemPool(CUdevice dev, CUmemoryPool pool) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuDeviceGetMemPool' in found_functions}} - -cdef CUresult cuDeviceGetMemPool(CUmemoryPool* pool, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuDeviceGetDefaultMemPool' in found_functions}} - -cdef CUresult cuDeviceGetDefaultMemPool(CUmemoryPool* pool_out, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuDeviceGetExecAffinitySupport' in found_functions}} - -cdef CUresult cuDeviceGetExecAffinitySupport(int* pi, CUexecAffinityType typename, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuFlushGPUDirectRDMAWrites' in found_functions}} - -cdef CUresult cuFlushGPUDirectRDMAWrites(CUflushGPUDirectRDMAWritesTarget target, CUflushGPUDirectRDMAWritesScope scope) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuDeviceGetProperties' in found_functions}} - -cdef CUresult cuDeviceGetProperties(CUdevprop* prop, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuDeviceComputeCapability' in found_functions}} - -cdef CUresult cuDeviceComputeCapability(int* major, int* minor, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuDevicePrimaryCtxRetain' in found_functions}} - -cdef CUresult cuDevicePrimaryCtxRetain(CUcontext* pctx, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuDevicePrimaryCtxRelease_v2' in found_functions}} - -cdef CUresult cuDevicePrimaryCtxRelease(CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuDevicePrimaryCtxSetFlags_v2' in found_functions}} - -cdef CUresult cuDevicePrimaryCtxSetFlags(CUdevice dev, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuDevicePrimaryCtxGetState' in found_functions}} - -cdef CUresult cuDevicePrimaryCtxGetState(CUdevice dev, unsigned int* flags, int* active) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuDevicePrimaryCtxReset_v2' in found_functions}} - -cdef CUresult cuDevicePrimaryCtxReset(CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuCtxCreate_v4' in found_functions}} - -cdef CUresult cuCtxCreate(CUcontext* pctx, CUctxCreateParams* ctxCreateParams, unsigned int flags, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuCtxDestroy_v2' in found_functions}} - -cdef CUresult cuCtxDestroy(CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuCtxPushCurrent_v2' in found_functions}} - -cdef CUresult cuCtxPushCurrent(CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuCtxPopCurrent_v2' in found_functions}} - -cdef CUresult cuCtxPopCurrent(CUcontext* pctx) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuCtxSetCurrent' in found_functions}} - -cdef CUresult cuCtxSetCurrent(CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuCtxGetCurrent' in found_functions}} - -cdef CUresult cuCtxGetCurrent(CUcontext* pctx) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuCtxGetDevice' in found_functions}} - -cdef CUresult cuCtxGetDevice(CUdevice* device) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuCtxGetDevice_v2' in found_functions}} - -cdef CUresult cuCtxGetDevice_v2(CUdevice* device, CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuCtxGetFlags' in found_functions}} - -cdef CUresult cuCtxGetFlags(unsigned int* flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuCtxSetFlags' in found_functions}} - -cdef CUresult cuCtxSetFlags(unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuCtxGetId' in found_functions}} - -cdef CUresult cuCtxGetId(CUcontext ctx, unsigned long long* ctxId) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuCtxSynchronize' in found_functions}} - -cdef CUresult cuCtxSynchronize() except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuCtxSynchronize_v2' in found_functions}} - -cdef CUresult cuCtxSynchronize_v2(CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuCtxSetLimit' in found_functions}} - -cdef CUresult cuCtxSetLimit(CUlimit limit, size_t value) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuCtxGetLimit' in found_functions}} - -cdef CUresult cuCtxGetLimit(size_t* pvalue, CUlimit limit) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuCtxGetCacheConfig' in found_functions}} - -cdef CUresult cuCtxGetCacheConfig(CUfunc_cache* pconfig) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuCtxSetCacheConfig' in found_functions}} - -cdef CUresult cuCtxSetCacheConfig(CUfunc_cache config) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuCtxGetApiVersion' in found_functions}} - -cdef CUresult cuCtxGetApiVersion(CUcontext ctx, unsigned int* version) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuCtxGetStreamPriorityRange' in found_functions}} - -cdef CUresult cuCtxGetStreamPriorityRange(int* leastPriority, int* greatestPriority) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuCtxResetPersistingL2Cache' in found_functions}} - -cdef CUresult cuCtxResetPersistingL2Cache() except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuCtxGetExecAffinity' in found_functions}} - -cdef CUresult cuCtxGetExecAffinity(CUexecAffinityParam* pExecAffinity, CUexecAffinityType typename) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuCtxRecordEvent' in found_functions}} - -cdef CUresult cuCtxRecordEvent(CUcontext hCtx, CUevent hEvent) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuCtxWaitEvent' in found_functions}} - -cdef CUresult cuCtxWaitEvent(CUcontext hCtx, CUevent hEvent) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuCtxAttach' in found_functions}} - -cdef CUresult cuCtxAttach(CUcontext* pctx, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuCtxDetach' in found_functions}} - -cdef CUresult cuCtxDetach(CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuCtxGetSharedMemConfig' in found_functions}} - -cdef CUresult cuCtxGetSharedMemConfig(CUsharedconfig* pConfig) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuCtxSetSharedMemConfig' in found_functions}} - -cdef CUresult cuCtxSetSharedMemConfig(CUsharedconfig config) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuModuleLoad' in found_functions}} - -cdef CUresult cuModuleLoad(CUmodule* module, const char* fname) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuModuleLoadData' in found_functions}} - -cdef CUresult cuModuleLoadData(CUmodule* module, const void* image) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuModuleLoadDataEx' in found_functions}} - -cdef CUresult cuModuleLoadDataEx(CUmodule* module, const void* image, unsigned int numOptions, CUjit_option* options, void** optionValues) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuModuleLoadFatBinary' in found_functions}} - -cdef CUresult cuModuleLoadFatBinary(CUmodule* module, const void* fatCubin) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuModuleUnload' in found_functions}} - -cdef CUresult cuModuleUnload(CUmodule hmod) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuModuleGetLoadingMode' in found_functions}} - -cdef CUresult cuModuleGetLoadingMode(CUmoduleLoadingMode* mode) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuModuleGetFunction' in found_functions}} - -cdef CUresult cuModuleGetFunction(CUfunction* hfunc, CUmodule hmod, const char* name) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuModuleGetFunctionCount' in found_functions}} - -cdef CUresult cuModuleGetFunctionCount(unsigned int* count, CUmodule mod) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuModuleEnumerateFunctions' in found_functions}} - -cdef CUresult cuModuleEnumerateFunctions(CUfunction* functions, unsigned int numFunctions, CUmodule mod) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuModuleGetGlobal_v2' in found_functions}} - -cdef CUresult cuModuleGetGlobal(CUdeviceptr* dptr, size_t* numbytes, CUmodule hmod, const char* name) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuLinkCreate_v2' in found_functions}} - -cdef CUresult cuLinkCreate(unsigned int numOptions, CUjit_option* options, void** optionValues, CUlinkState* stateOut) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuLinkAddData_v2' in found_functions}} - -cdef CUresult cuLinkAddData(CUlinkState state, CUjitInputType typename, void* data, size_t size, const char* name, unsigned int numOptions, CUjit_option* options, void** optionValues) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuLinkAddFile_v2' in found_functions}} - -cdef CUresult cuLinkAddFile(CUlinkState state, CUjitInputType typename, const char* path, unsigned int numOptions, CUjit_option* options, void** optionValues) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuLinkComplete' in found_functions}} - -cdef CUresult cuLinkComplete(CUlinkState state, void** cubinOut, size_t* sizeOut) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuLinkDestroy' in found_functions}} - -cdef CUresult cuLinkDestroy(CUlinkState state) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuModuleGetTexRef' in found_functions}} - -cdef CUresult cuModuleGetTexRef(CUtexref* pTexRef, CUmodule hmod, const char* name) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuModuleGetSurfRef' in found_functions}} - -cdef CUresult cuModuleGetSurfRef(CUsurfref* pSurfRef, CUmodule hmod, const char* name) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuLibraryLoadData' in found_functions}} - -cdef CUresult cuLibraryLoadData(CUlibrary* library, const void* code, CUjit_option* jitOptions, void** jitOptionsValues, unsigned int numJitOptions, CUlibraryOption* libraryOptions, void** libraryOptionValues, unsigned int numLibraryOptions) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuLibraryLoadFromFile' in found_functions}} - -cdef CUresult cuLibraryLoadFromFile(CUlibrary* library, const char* fileName, CUjit_option* jitOptions, void** jitOptionsValues, unsigned int numJitOptions, CUlibraryOption* libraryOptions, void** libraryOptionValues, unsigned int numLibraryOptions) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuLibraryUnload' in found_functions}} - -cdef CUresult cuLibraryUnload(CUlibrary library) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuLibraryGetKernel' in found_functions}} - -cdef CUresult cuLibraryGetKernel(CUkernel* pKernel, CUlibrary library, const char* name) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuLibraryGetKernelCount' in found_functions}} - -cdef CUresult cuLibraryGetKernelCount(unsigned int* count, CUlibrary lib) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuLibraryEnumerateKernels' in found_functions}} - -cdef CUresult cuLibraryEnumerateKernels(CUkernel* kernels, unsigned int numKernels, CUlibrary lib) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuLibraryGetModule' in found_functions}} - -cdef CUresult cuLibraryGetModule(CUmodule* pMod, CUlibrary library) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuKernelGetFunction' in found_functions}} - -cdef CUresult cuKernelGetFunction(CUfunction* pFunc, CUkernel kernel) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuKernelGetLibrary' in found_functions}} - -cdef CUresult cuKernelGetLibrary(CUlibrary* pLib, CUkernel kernel) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuLibraryGetGlobal' in found_functions}} - -cdef CUresult cuLibraryGetGlobal(CUdeviceptr* dptr, size_t* numbytes, CUlibrary library, const char* name) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuLibraryGetManaged' in found_functions}} - -cdef CUresult cuLibraryGetManaged(CUdeviceptr* dptr, size_t* numbytes, CUlibrary library, const char* name) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuLibraryGetUnifiedFunction' in found_functions}} - -cdef CUresult cuLibraryGetUnifiedFunction(void** fptr, CUlibrary library, const char* symbol) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuKernelGetAttribute' in found_functions}} - -cdef CUresult cuKernelGetAttribute(int* pi, CUfunction_attribute attrib, CUkernel kernel, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuKernelSetAttribute' in found_functions}} - -cdef CUresult cuKernelSetAttribute(CUfunction_attribute attrib, int val, CUkernel kernel, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuKernelSetCacheConfig' in found_functions}} - -cdef CUresult cuKernelSetCacheConfig(CUkernel kernel, CUfunc_cache config, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuKernelGetName' in found_functions}} - -cdef CUresult cuKernelGetName(const char** name, CUkernel hfunc) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuKernelGetParamInfo' in found_functions}} - -cdef CUresult cuKernelGetParamInfo(CUkernel kernel, size_t paramIndex, size_t* paramOffset, size_t* paramSize) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuKernelGetParamCount' in found_functions}} - -cdef CUresult cuKernelGetParamCount(CUkernel kernel, size_t* paramCount) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemGetInfo_v2' in found_functions}} - -cdef CUresult cuMemGetInfo(size_t* free, size_t* total) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemAlloc_v2' in found_functions}} - -cdef CUresult cuMemAlloc(CUdeviceptr* dptr, size_t bytesize) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemAllocPitch_v2' in found_functions}} - -cdef CUresult cuMemAllocPitch(CUdeviceptr* dptr, size_t* pPitch, size_t WidthInBytes, size_t Height, unsigned int ElementSizeBytes) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemFree_v2' in found_functions}} - -cdef CUresult cuMemFree(CUdeviceptr dptr) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemGetAddressRange_v2' in found_functions}} - -cdef CUresult cuMemGetAddressRange(CUdeviceptr* pbase, size_t* psize, CUdeviceptr dptr) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemAllocHost_v2' in found_functions}} - -cdef CUresult cuMemAllocHost(void** pp, size_t bytesize) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemFreeHost' in found_functions}} - -cdef CUresult cuMemFreeHost(void* p) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemHostAlloc' in found_functions}} - -cdef CUresult cuMemHostAlloc(void** pp, size_t bytesize, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemHostGetDevicePointer_v2' in found_functions}} - -cdef CUresult cuMemHostGetDevicePointer(CUdeviceptr* pdptr, void* p, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemHostGetFlags' in found_functions}} - -cdef CUresult cuMemHostGetFlags(unsigned int* pFlags, void* p) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemAllocManaged' in found_functions}} - -cdef CUresult cuMemAllocManaged(CUdeviceptr* dptr, size_t bytesize, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuDeviceRegisterAsyncNotification' in found_functions}} - -cdef CUresult cuDeviceRegisterAsyncNotification(CUdevice device, CUasyncCallback callbackFunc, void* userData, CUasyncCallbackHandle* callback) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuDeviceUnregisterAsyncNotification' in found_functions}} - -cdef CUresult cuDeviceUnregisterAsyncNotification(CUdevice device, CUasyncCallbackHandle callback) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuDeviceGetByPCIBusId' in found_functions}} - -cdef CUresult cuDeviceGetByPCIBusId(CUdevice* dev, const char* pciBusId) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuDeviceGetPCIBusId' in found_functions}} - -cdef CUresult cuDeviceGetPCIBusId(char* pciBusId, int length, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuIpcGetEventHandle' in found_functions}} - -cdef CUresult cuIpcGetEventHandle(CUipcEventHandle* pHandle, CUevent event) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuIpcOpenEventHandle' in found_functions}} - -cdef CUresult cuIpcOpenEventHandle(CUevent* phEvent, CUipcEventHandle handle) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuIpcGetMemHandle' in found_functions}} - -cdef CUresult cuIpcGetMemHandle(CUipcMemHandle* pHandle, CUdeviceptr dptr) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuIpcOpenMemHandle_v2' in found_functions}} - -cdef CUresult cuIpcOpenMemHandle(CUdeviceptr* pdptr, CUipcMemHandle handle, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuIpcCloseMemHandle' in found_functions}} - -cdef CUresult cuIpcCloseMemHandle(CUdeviceptr dptr) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemHostRegister_v2' in found_functions}} - -cdef CUresult cuMemHostRegister(void* p, size_t bytesize, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemHostUnregister' in found_functions}} - -cdef CUresult cuMemHostUnregister(void* p) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemcpy' in found_functions}} - -cdef CUresult cuMemcpy(CUdeviceptr dst, CUdeviceptr src, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemcpyPeer' in found_functions}} - -cdef CUresult cuMemcpyPeer(CUdeviceptr dstDevice, CUcontext dstContext, CUdeviceptr srcDevice, CUcontext srcContext, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemcpyHtoD_v2' in found_functions}} - -cdef CUresult cuMemcpyHtoD(CUdeviceptr dstDevice, const void* srcHost, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemcpyDtoH_v2' in found_functions}} - -cdef CUresult cuMemcpyDtoH(void* dstHost, CUdeviceptr srcDevice, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemcpyDtoD_v2' in found_functions}} - -cdef CUresult cuMemcpyDtoD(CUdeviceptr dstDevice, CUdeviceptr srcDevice, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemcpyDtoA_v2' in found_functions}} - -cdef CUresult cuMemcpyDtoA(CUarray dstArray, size_t dstOffset, CUdeviceptr srcDevice, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemcpyAtoD_v2' in found_functions}} - -cdef CUresult cuMemcpyAtoD(CUdeviceptr dstDevice, CUarray srcArray, size_t srcOffset, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemcpyHtoA_v2' in found_functions}} - -cdef CUresult cuMemcpyHtoA(CUarray dstArray, size_t dstOffset, const void* srcHost, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemcpyAtoH_v2' in found_functions}} - -cdef CUresult cuMemcpyAtoH(void* dstHost, CUarray srcArray, size_t srcOffset, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemcpyAtoA_v2' in found_functions}} - -cdef CUresult cuMemcpyAtoA(CUarray dstArray, size_t dstOffset, CUarray srcArray, size_t srcOffset, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemcpy2D_v2' in found_functions}} - -cdef CUresult cuMemcpy2D(const CUDA_MEMCPY2D* pCopy) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemcpy2DUnaligned_v2' in found_functions}} - -cdef CUresult cuMemcpy2DUnaligned(const CUDA_MEMCPY2D* pCopy) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemcpy3D_v2' in found_functions}} - -cdef CUresult cuMemcpy3D(const CUDA_MEMCPY3D* pCopy) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemcpy3DPeer' in found_functions}} - -cdef CUresult cuMemcpy3DPeer(const CUDA_MEMCPY3D_PEER* pCopy) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemcpyAsync' in found_functions}} - -cdef CUresult cuMemcpyAsync(CUdeviceptr dst, CUdeviceptr src, size_t ByteCount, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemcpyPeerAsync' in found_functions}} - -cdef CUresult cuMemcpyPeerAsync(CUdeviceptr dstDevice, CUcontext dstContext, CUdeviceptr srcDevice, CUcontext srcContext, size_t ByteCount, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemcpyHtoDAsync_v2' in found_functions}} - -cdef CUresult cuMemcpyHtoDAsync(CUdeviceptr dstDevice, const void* srcHost, size_t ByteCount, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemcpyDtoHAsync_v2' in found_functions}} - -cdef CUresult cuMemcpyDtoHAsync(void* dstHost, CUdeviceptr srcDevice, size_t ByteCount, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemcpyDtoDAsync_v2' in found_functions}} - -cdef CUresult cuMemcpyDtoDAsync(CUdeviceptr dstDevice, CUdeviceptr srcDevice, size_t ByteCount, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemcpyHtoAAsync_v2' in found_functions}} - -cdef CUresult cuMemcpyHtoAAsync(CUarray dstArray, size_t dstOffset, const void* srcHost, size_t ByteCount, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemcpyAtoHAsync_v2' in found_functions}} - -cdef CUresult cuMemcpyAtoHAsync(void* dstHost, CUarray srcArray, size_t srcOffset, size_t ByteCount, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemcpy2DAsync_v2' in found_functions}} - -cdef CUresult cuMemcpy2DAsync(const CUDA_MEMCPY2D* pCopy, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemcpy3DAsync_v2' in found_functions}} - -cdef CUresult cuMemcpy3DAsync(const CUDA_MEMCPY3D* pCopy, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemcpy3DPeerAsync' in found_functions}} - -cdef CUresult cuMemcpy3DPeerAsync(const CUDA_MEMCPY3D_PEER* pCopy, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemcpyBatchAsync_v2' in found_functions}} - -cdef CUresult cuMemcpyBatchAsync(CUdeviceptr* dsts, CUdeviceptr* srcs, size_t* sizes, size_t count, CUmemcpyAttributes* attrs, size_t* attrsIdxs, size_t numAttrs, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemcpy3DBatchAsync_v2' in found_functions}} - -cdef CUresult cuMemcpy3DBatchAsync(size_t numOps, CUDA_MEMCPY3D_BATCH_OP* opList, unsigned long long flags, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemcpyWithAttributesAsync' in found_functions}} - -cdef CUresult cuMemcpyWithAttributesAsync(CUdeviceptr dst, CUdeviceptr src, size_t size, CUmemcpyAttributes* attr, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemcpy3DWithAttributesAsync' in found_functions}} - -cdef CUresult cuMemcpy3DWithAttributesAsync(CUDA_MEMCPY3D_BATCH_OP* op, unsigned long long flags, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemsetD8_v2' in found_functions}} - -cdef CUresult cuMemsetD8(CUdeviceptr dstDevice, unsigned char uc, size_t N) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemsetD16_v2' in found_functions}} - -cdef CUresult cuMemsetD16(CUdeviceptr dstDevice, unsigned short us, size_t N) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemsetD32_v2' in found_functions}} - -cdef CUresult cuMemsetD32(CUdeviceptr dstDevice, unsigned int ui, size_t N) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemsetD2D8_v2' in found_functions}} - -cdef CUresult cuMemsetD2D8(CUdeviceptr dstDevice, size_t dstPitch, unsigned char uc, size_t Width, size_t Height) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemsetD2D16_v2' in found_functions}} - -cdef CUresult cuMemsetD2D16(CUdeviceptr dstDevice, size_t dstPitch, unsigned short us, size_t Width, size_t Height) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemsetD2D32_v2' in found_functions}} - -cdef CUresult cuMemsetD2D32(CUdeviceptr dstDevice, size_t dstPitch, unsigned int ui, size_t Width, size_t Height) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemsetD8Async' in found_functions}} - -cdef CUresult cuMemsetD8Async(CUdeviceptr dstDevice, unsigned char uc, size_t N, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemsetD16Async' in found_functions}} - -cdef CUresult cuMemsetD16Async(CUdeviceptr dstDevice, unsigned short us, size_t N, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemsetD32Async' in found_functions}} - -cdef CUresult cuMemsetD32Async(CUdeviceptr dstDevice, unsigned int ui, size_t N, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemsetD2D8Async' in found_functions}} - -cdef CUresult cuMemsetD2D8Async(CUdeviceptr dstDevice, size_t dstPitch, unsigned char uc, size_t Width, size_t Height, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemsetD2D16Async' in found_functions}} - -cdef CUresult cuMemsetD2D16Async(CUdeviceptr dstDevice, size_t dstPitch, unsigned short us, size_t Width, size_t Height, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemsetD2D32Async' in found_functions}} - -cdef CUresult cuMemsetD2D32Async(CUdeviceptr dstDevice, size_t dstPitch, unsigned int ui, size_t Width, size_t Height, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuArrayCreate_v2' in found_functions}} - -cdef CUresult cuArrayCreate(CUarray* pHandle, const CUDA_ARRAY_DESCRIPTOR* pAllocateArray) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuArrayGetDescriptor_v2' in found_functions}} - -cdef CUresult cuArrayGetDescriptor(CUDA_ARRAY_DESCRIPTOR* pArrayDescriptor, CUarray hArray) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuArrayGetSparseProperties' in found_functions}} - -cdef CUresult cuArrayGetSparseProperties(CUDA_ARRAY_SPARSE_PROPERTIES* sparseProperties, CUarray array) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMipmappedArrayGetSparseProperties' in found_functions}} - -cdef CUresult cuMipmappedArrayGetSparseProperties(CUDA_ARRAY_SPARSE_PROPERTIES* sparseProperties, CUmipmappedArray mipmap) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuArrayGetMemoryRequirements' in found_functions}} - -cdef CUresult cuArrayGetMemoryRequirements(CUDA_ARRAY_MEMORY_REQUIREMENTS* memoryRequirements, CUarray array, CUdevice device) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMipmappedArrayGetMemoryRequirements' in found_functions}} - -cdef CUresult cuMipmappedArrayGetMemoryRequirements(CUDA_ARRAY_MEMORY_REQUIREMENTS* memoryRequirements, CUmipmappedArray mipmap, CUdevice device) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuArrayGetPlane' in found_functions}} - -cdef CUresult cuArrayGetPlane(CUarray* pPlaneArray, CUarray hArray, unsigned int planeIdx) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuArrayDestroy' in found_functions}} - -cdef CUresult cuArrayDestroy(CUarray hArray) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuArray3DCreate_v2' in found_functions}} - -cdef CUresult cuArray3DCreate(CUarray* pHandle, const CUDA_ARRAY3D_DESCRIPTOR* pAllocateArray) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuArray3DGetDescriptor_v2' in found_functions}} - -cdef CUresult cuArray3DGetDescriptor(CUDA_ARRAY3D_DESCRIPTOR* pArrayDescriptor, CUarray hArray) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMipmappedArrayCreate' in found_functions}} - -cdef CUresult cuMipmappedArrayCreate(CUmipmappedArray* pHandle, const CUDA_ARRAY3D_DESCRIPTOR* pMipmappedArrayDesc, unsigned int numMipmapLevels) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMipmappedArrayGetLevel' in found_functions}} - -cdef CUresult cuMipmappedArrayGetLevel(CUarray* pLevelArray, CUmipmappedArray hMipmappedArray, unsigned int level) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMipmappedArrayDestroy' in found_functions}} - -cdef CUresult cuMipmappedArrayDestroy(CUmipmappedArray hMipmappedArray) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemGetHandleForAddressRange' in found_functions}} - -cdef CUresult cuMemGetHandleForAddressRange(void* handle, CUdeviceptr dptr, size_t size, CUmemRangeHandleType handleType, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemBatchDecompressAsync' in found_functions}} - -cdef CUresult cuMemBatchDecompressAsync(CUmemDecompressParams* paramsArray, size_t count, unsigned int flags, size_t* errorIndex, CUstream stream) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemAddressReserve' in found_functions}} - -cdef CUresult cuMemAddressReserve(CUdeviceptr* ptr, size_t size, size_t alignment, CUdeviceptr addr, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemAddressFree' in found_functions}} - -cdef CUresult cuMemAddressFree(CUdeviceptr ptr, size_t size) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemCreate' in found_functions}} - -cdef CUresult cuMemCreate(CUmemGenericAllocationHandle* handle, size_t size, const CUmemAllocationProp* prop, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemRelease' in found_functions}} - -cdef CUresult cuMemRelease(CUmemGenericAllocationHandle handle) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemMap' in found_functions}} - -cdef CUresult cuMemMap(CUdeviceptr ptr, size_t size, size_t offset, CUmemGenericAllocationHandle handle, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemMapArrayAsync' in found_functions}} - -cdef CUresult cuMemMapArrayAsync(CUarrayMapInfo* mapInfoList, unsigned int count, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemUnmap' in found_functions}} - -cdef CUresult cuMemUnmap(CUdeviceptr ptr, size_t size) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemSetAccess' in found_functions}} - -cdef CUresult cuMemSetAccess(CUdeviceptr ptr, size_t size, const CUmemAccessDesc* desc, size_t count) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemGetAccess' in found_functions}} - -cdef CUresult cuMemGetAccess(unsigned long long* flags, const CUmemLocation* location, CUdeviceptr ptr) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemExportToShareableHandle' in found_functions}} - -cdef CUresult cuMemExportToShareableHandle(void* shareableHandle, CUmemGenericAllocationHandle handle, CUmemAllocationHandleType handleType, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemImportFromShareableHandle' in found_functions}} - -cdef CUresult cuMemImportFromShareableHandle(CUmemGenericAllocationHandle* handle, void* osHandle, CUmemAllocationHandleType shHandleType) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemGetAllocationGranularity' in found_functions}} - -cdef CUresult cuMemGetAllocationGranularity(size_t* granularity, const CUmemAllocationProp* prop, CUmemAllocationGranularity_flags option) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemGetAllocationPropertiesFromHandle' in found_functions}} - -cdef CUresult cuMemGetAllocationPropertiesFromHandle(CUmemAllocationProp* prop, CUmemGenericAllocationHandle handle) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemRetainAllocationHandle' in found_functions}} - -cdef CUresult cuMemRetainAllocationHandle(CUmemGenericAllocationHandle* handle, void* addr) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemFreeAsync' in found_functions}} - -cdef CUresult cuMemFreeAsync(CUdeviceptr dptr, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemAllocAsync' in found_functions}} - -cdef CUresult cuMemAllocAsync(CUdeviceptr* dptr, size_t bytesize, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemPoolTrimTo' in found_functions}} - -cdef CUresult cuMemPoolTrimTo(CUmemoryPool pool, size_t minBytesToKeep) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemPoolSetAttribute' in found_functions}} - -cdef CUresult cuMemPoolSetAttribute(CUmemoryPool pool, CUmemPool_attribute attr, void* value) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemPoolGetAttribute' in found_functions}} - -cdef CUresult cuMemPoolGetAttribute(CUmemoryPool pool, CUmemPool_attribute attr, void* value) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemPoolSetAccess' in found_functions}} - -cdef CUresult cuMemPoolSetAccess(CUmemoryPool pool, const CUmemAccessDesc* map, size_t count) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemPoolGetAccess' in found_functions}} - -cdef CUresult cuMemPoolGetAccess(CUmemAccess_flags* flags, CUmemoryPool memPool, CUmemLocation* location) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemPoolCreate' in found_functions}} - -cdef CUresult cuMemPoolCreate(CUmemoryPool* pool, const CUmemPoolProps* poolProps) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemPoolDestroy' in found_functions}} - -cdef CUresult cuMemPoolDestroy(CUmemoryPool pool) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemGetDefaultMemPool' in found_functions}} - -cdef CUresult cuMemGetDefaultMemPool(CUmemoryPool* pool_out, CUmemLocation* location, CUmemAllocationType typename) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemGetMemPool' in found_functions}} - -cdef CUresult cuMemGetMemPool(CUmemoryPool* pool, CUmemLocation* location, CUmemAllocationType typename) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemSetMemPool' in found_functions}} - -cdef CUresult cuMemSetMemPool(CUmemLocation* location, CUmemAllocationType typename, CUmemoryPool pool) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemAllocFromPoolAsync' in found_functions}} - -cdef CUresult cuMemAllocFromPoolAsync(CUdeviceptr* dptr, size_t bytesize, CUmemoryPool pool, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemPoolExportToShareableHandle' in found_functions}} - -cdef CUresult cuMemPoolExportToShareableHandle(void* handle_out, CUmemoryPool pool, CUmemAllocationHandleType handleType, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemPoolImportFromShareableHandle' in found_functions}} - -cdef CUresult cuMemPoolImportFromShareableHandle(CUmemoryPool* pool_out, void* handle, CUmemAllocationHandleType handleType, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemPoolExportPointer' in found_functions}} - -cdef CUresult cuMemPoolExportPointer(CUmemPoolPtrExportData* shareData_out, CUdeviceptr ptr) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemPoolImportPointer' in found_functions}} - -cdef CUresult cuMemPoolImportPointer(CUdeviceptr* ptr_out, CUmemoryPool pool, CUmemPoolPtrExportData* shareData) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMulticastCreate' in found_functions}} - -cdef CUresult cuMulticastCreate(CUmemGenericAllocationHandle* mcHandle, const CUmulticastObjectProp* prop) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMulticastAddDevice' in found_functions}} - -cdef CUresult cuMulticastAddDevice(CUmemGenericAllocationHandle mcHandle, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMulticastBindMem' in found_functions}} - -cdef CUresult cuMulticastBindMem(CUmemGenericAllocationHandle mcHandle, size_t mcOffset, CUmemGenericAllocationHandle memHandle, size_t memOffset, size_t size, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMulticastBindMem_v2' in found_functions}} - -cdef CUresult cuMulticastBindMem_v2(CUmemGenericAllocationHandle mcHandle, CUdevice dev, size_t mcOffset, CUmemGenericAllocationHandle memHandle, size_t memOffset, size_t size, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMulticastBindAddr' in found_functions}} - -cdef CUresult cuMulticastBindAddr(CUmemGenericAllocationHandle mcHandle, size_t mcOffset, CUdeviceptr memptr, size_t size, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMulticastBindAddr_v2' in found_functions}} - -cdef CUresult cuMulticastBindAddr_v2(CUmemGenericAllocationHandle mcHandle, CUdevice dev, size_t mcOffset, CUdeviceptr memptr, size_t size, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMulticastUnbind' in found_functions}} - -cdef CUresult cuMulticastUnbind(CUmemGenericAllocationHandle mcHandle, CUdevice dev, size_t mcOffset, size_t size) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMulticastGetGranularity' in found_functions}} - -cdef CUresult cuMulticastGetGranularity(size_t* granularity, const CUmulticastObjectProp* prop, CUmulticastGranularity_flags option) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuPointerGetAttribute' in found_functions}} - -cdef CUresult cuPointerGetAttribute(void* data, CUpointer_attribute attribute, CUdeviceptr ptr) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemPrefetchAsync_v2' in found_functions}} - -cdef CUresult cuMemPrefetchAsync(CUdeviceptr devPtr, size_t count, CUmemLocation location, unsigned int flags, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemAdvise_v2' in found_functions}} - -cdef CUresult cuMemAdvise(CUdeviceptr devPtr, size_t count, CUmem_advise advice, CUmemLocation location) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemPrefetchBatchAsync' in found_functions}} - -cdef CUresult cuMemPrefetchBatchAsync(CUdeviceptr* dptrs, size_t* sizes, size_t count, CUmemLocation* prefetchLocs, size_t* prefetchLocIdxs, size_t numPrefetchLocs, unsigned long long flags, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemDiscardBatchAsync' in found_functions}} - -cdef CUresult cuMemDiscardBatchAsync(CUdeviceptr* dptrs, size_t* sizes, size_t count, unsigned long long flags, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemDiscardAndPrefetchBatchAsync' in found_functions}} - -cdef CUresult cuMemDiscardAndPrefetchBatchAsync(CUdeviceptr* dptrs, size_t* sizes, size_t count, CUmemLocation* prefetchLocs, size_t* prefetchLocIdxs, size_t numPrefetchLocs, unsigned long long flags, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemRangeGetAttribute' in found_functions}} - -cdef CUresult cuMemRangeGetAttribute(void* data, size_t dataSize, CUmem_range_attribute attribute, CUdeviceptr devPtr, size_t count) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuMemRangeGetAttributes' in found_functions}} - -cdef CUresult cuMemRangeGetAttributes(void** data, size_t* dataSizes, CUmem_range_attribute* attributes, size_t numAttributes, CUdeviceptr devPtr, size_t count) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuPointerSetAttribute' in found_functions}} - -cdef CUresult cuPointerSetAttribute(const void* value, CUpointer_attribute attribute, CUdeviceptr ptr) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuPointerGetAttributes' in found_functions}} - -cdef CUresult cuPointerGetAttributes(unsigned int numAttributes, CUpointer_attribute* attributes, void** data, CUdeviceptr ptr) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuStreamCreate' in found_functions}} - -cdef CUresult cuStreamCreate(CUstream* phStream, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuStreamCreateWithPriority' in found_functions}} - -cdef CUresult cuStreamCreateWithPriority(CUstream* phStream, unsigned int flags, int priority) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuStreamBeginCaptureToCig' in found_functions}} - -cdef CUresult cuStreamBeginCaptureToCig(CUstream hStream, CUstreamCigCaptureParams* streamCigCaptureParams) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuStreamEndCaptureToCig' in found_functions}} - -cdef CUresult cuStreamEndCaptureToCig(CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuStreamGetPriority' in found_functions}} - -cdef CUresult cuStreamGetPriority(CUstream hStream, int* priority) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuStreamGetDevice' in found_functions}} - -cdef CUresult cuStreamGetDevice(CUstream hStream, CUdevice* device) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuStreamGetFlags' in found_functions}} - -cdef CUresult cuStreamGetFlags(CUstream hStream, unsigned int* flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuStreamGetId' in found_functions}} - -cdef CUresult cuStreamGetId(CUstream hStream, unsigned long long* streamId) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuStreamGetCtx' in found_functions}} - -cdef CUresult cuStreamGetCtx(CUstream hStream, CUcontext* pctx) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuStreamGetCtx_v2' in found_functions}} - -cdef CUresult cuStreamGetCtx_v2(CUstream hStream, CUcontext* pCtx, CUgreenCtx* pGreenCtx) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuStreamWaitEvent' in found_functions}} - -cdef CUresult cuStreamWaitEvent(CUstream hStream, CUevent hEvent, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuStreamAddCallback' in found_functions}} - -cdef CUresult cuStreamAddCallback(CUstream hStream, CUstreamCallback callback, void* userData, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuStreamBeginCapture_v2' in found_functions}} - -cdef CUresult cuStreamBeginCapture(CUstream hStream, CUstreamCaptureMode mode) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuStreamBeginCaptureToGraph' in found_functions}} - -cdef CUresult cuStreamBeginCaptureToGraph(CUstream hStream, CUgraph hGraph, const CUgraphNode* dependencies, const CUgraphEdgeData* dependencyData, size_t numDependencies, CUstreamCaptureMode mode) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuThreadExchangeStreamCaptureMode' in found_functions}} - -cdef CUresult cuThreadExchangeStreamCaptureMode(CUstreamCaptureMode* mode) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuStreamEndCapture' in found_functions}} - -cdef CUresult cuStreamEndCapture(CUstream hStream, CUgraph* phGraph) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuStreamIsCapturing' in found_functions}} - -cdef CUresult cuStreamIsCapturing(CUstream hStream, CUstreamCaptureStatus* captureStatus) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuStreamGetCaptureInfo_v3' in found_functions}} - -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 -{{endif}} - -{{if 'cuStreamUpdateCaptureDependencies_v2' in found_functions}} - -cdef CUresult cuStreamUpdateCaptureDependencies(CUstream hStream, CUgraphNode* dependencies, const CUgraphEdgeData* dependencyData, size_t numDependencies, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuStreamAttachMemAsync' in found_functions}} - -cdef CUresult cuStreamAttachMemAsync(CUstream hStream, CUdeviceptr dptr, size_t length, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuStreamQuery' in found_functions}} - -cdef CUresult cuStreamQuery(CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuStreamSynchronize' in found_functions}} - -cdef CUresult cuStreamSynchronize(CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuStreamDestroy_v2' in found_functions}} - -cdef CUresult cuStreamDestroy(CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuStreamCopyAttributes' in found_functions}} - -cdef CUresult cuStreamCopyAttributes(CUstream dst, CUstream src) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuStreamGetAttribute' in found_functions}} - -cdef CUresult cuStreamGetAttribute(CUstream hStream, CUstreamAttrID attr, CUstreamAttrValue* value_out) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuStreamSetAttribute' in found_functions}} - -cdef CUresult cuStreamSetAttribute(CUstream hStream, CUstreamAttrID attr, const CUstreamAttrValue* value) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuEventCreate' in found_functions}} - -cdef CUresult cuEventCreate(CUevent* phEvent, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuEventRecord' in found_functions}} - -cdef CUresult cuEventRecord(CUevent hEvent, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuEventRecordWithFlags' in found_functions}} - -cdef CUresult cuEventRecordWithFlags(CUevent hEvent, CUstream hStream, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuEventQuery' in found_functions}} - -cdef CUresult cuEventQuery(CUevent hEvent) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuEventSynchronize' in found_functions}} - -cdef CUresult cuEventSynchronize(CUevent hEvent) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuEventDestroy_v2' in found_functions}} - -cdef CUresult cuEventDestroy(CUevent hEvent) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuEventElapsedTime_v2' in found_functions}} - -cdef CUresult cuEventElapsedTime(float* pMilliseconds, CUevent hStart, CUevent hEnd) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuImportExternalMemory' in found_functions}} - -cdef CUresult cuImportExternalMemory(CUexternalMemory* extMem_out, const CUDA_EXTERNAL_MEMORY_HANDLE_DESC* memHandleDesc) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuExternalMemoryGetMappedBuffer' in found_functions}} - -cdef CUresult cuExternalMemoryGetMappedBuffer(CUdeviceptr* devPtr, CUexternalMemory extMem, const CUDA_EXTERNAL_MEMORY_BUFFER_DESC* bufferDesc) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuExternalMemoryGetMappedMipmappedArray' in found_functions}} - -cdef CUresult cuExternalMemoryGetMappedMipmappedArray(CUmipmappedArray* mipmap, CUexternalMemory extMem, const CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC* mipmapDesc) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuDestroyExternalMemory' in found_functions}} - -cdef CUresult cuDestroyExternalMemory(CUexternalMemory extMem) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuImportExternalSemaphore' in found_functions}} - -cdef CUresult cuImportExternalSemaphore(CUexternalSemaphore* extSem_out, const CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC* semHandleDesc) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuSignalExternalSemaphoresAsync' in found_functions}} - -cdef CUresult cuSignalExternalSemaphoresAsync(const CUexternalSemaphore* extSemArray, const CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS* paramsArray, unsigned int numExtSems, CUstream stream) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuWaitExternalSemaphoresAsync' in found_functions}} - -cdef CUresult cuWaitExternalSemaphoresAsync(const CUexternalSemaphore* extSemArray, const CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS* paramsArray, unsigned int numExtSems, CUstream stream) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuDestroyExternalSemaphore' in found_functions}} - -cdef CUresult cuDestroyExternalSemaphore(CUexternalSemaphore extSem) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuStreamWaitValue32_v2' in found_functions}} - -cdef CUresult cuStreamWaitValue32(CUstream stream, CUdeviceptr addr, cuuint32_t value, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuStreamWaitValue64_v2' in found_functions}} - -cdef CUresult cuStreamWaitValue64(CUstream stream, CUdeviceptr addr, cuuint64_t value, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuStreamWriteValue32_v2' in found_functions}} - -cdef CUresult cuStreamWriteValue32(CUstream stream, CUdeviceptr addr, cuuint32_t value, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuStreamWriteValue64_v2' in found_functions}} - -cdef CUresult cuStreamWriteValue64(CUstream stream, CUdeviceptr addr, cuuint64_t value, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuStreamBatchMemOp_v2' in found_functions}} - -cdef CUresult cuStreamBatchMemOp(CUstream stream, unsigned int count, CUstreamBatchMemOpParams* paramArray, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuFuncGetAttribute' in found_functions}} - -cdef CUresult cuFuncGetAttribute(int* pi, CUfunction_attribute attrib, CUfunction hfunc) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuFuncSetAttribute' in found_functions}} - -cdef CUresult cuFuncSetAttribute(CUfunction hfunc, CUfunction_attribute attrib, int value) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuFuncSetCacheConfig' in found_functions}} - -cdef CUresult cuFuncSetCacheConfig(CUfunction hfunc, CUfunc_cache config) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuFuncGetModule' in found_functions}} - -cdef CUresult cuFuncGetModule(CUmodule* hmod, CUfunction hfunc) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuFuncGetName' in found_functions}} - -cdef CUresult cuFuncGetName(const char** name, CUfunction hfunc) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuFuncGetParamInfo' in found_functions}} - -cdef CUresult cuFuncGetParamInfo(CUfunction func, size_t paramIndex, size_t* paramOffset, size_t* paramSize) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuFuncGetParamCount' in found_functions}} - -cdef CUresult cuFuncGetParamCount(CUfunction func, size_t* paramCount) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuFuncIsLoaded' in found_functions}} - -cdef CUresult cuFuncIsLoaded(CUfunctionLoadingState* state, CUfunction function) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuFuncLoad' in found_functions}} - -cdef CUresult cuFuncLoad(CUfunction function) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuLaunchKernel' in found_functions}} - -cdef CUresult cuLaunchKernel(CUfunction f, unsigned int gridDimX, unsigned int gridDimY, unsigned int gridDimZ, unsigned int blockDimX, unsigned int blockDimY, unsigned int blockDimZ, unsigned int sharedMemBytes, CUstream hStream, void** kernelParams, void** extra) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuLaunchKernelEx' in found_functions}} - -cdef CUresult cuLaunchKernelEx(const CUlaunchConfig* config, CUfunction f, void** kernelParams, void** extra) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuLaunchCooperativeKernel' in found_functions}} - -cdef CUresult cuLaunchCooperativeKernel(CUfunction f, unsigned int gridDimX, unsigned int gridDimY, unsigned int gridDimZ, unsigned int blockDimX, unsigned int blockDimY, unsigned int blockDimZ, unsigned int sharedMemBytes, CUstream hStream, void** kernelParams) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuLaunchCooperativeKernelMultiDevice' in found_functions}} - -cdef CUresult cuLaunchCooperativeKernelMultiDevice(CUDA_LAUNCH_PARAMS* launchParamsList, unsigned int numDevices, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuLaunchHostFunc' in found_functions}} - -cdef CUresult cuLaunchHostFunc(CUstream hStream, CUhostFn fn, void* userData) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuLaunchHostFunc_v2' in found_functions}} - -cdef CUresult cuLaunchHostFunc_v2(CUstream hStream, CUhostFn fn, void* userData, unsigned int syncMode) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuFuncSetBlockShape' in found_functions}} - -cdef CUresult cuFuncSetBlockShape(CUfunction hfunc, int x, int y, int z) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuFuncSetSharedSize' in found_functions}} - -cdef CUresult cuFuncSetSharedSize(CUfunction hfunc, unsigned int numbytes) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuParamSetSize' in found_functions}} - -cdef CUresult cuParamSetSize(CUfunction hfunc, unsigned int numbytes) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuParamSeti' in found_functions}} - -cdef CUresult cuParamSeti(CUfunction hfunc, int offset, unsigned int value) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuParamSetf' in found_functions}} - -cdef CUresult cuParamSetf(CUfunction hfunc, int offset, float value) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuParamSetv' in found_functions}} - -cdef CUresult cuParamSetv(CUfunction hfunc, int offset, void* ptr, unsigned int numbytes) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuLaunch' in found_functions}} - -cdef CUresult cuLaunch(CUfunction f) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuLaunchGrid' in found_functions}} - -cdef CUresult cuLaunchGrid(CUfunction f, int grid_width, int grid_height) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuLaunchGridAsync' in found_functions}} - -cdef CUresult cuLaunchGridAsync(CUfunction f, int grid_width, int grid_height, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuParamSetTexRef' in found_functions}} - -cdef CUresult cuParamSetTexRef(CUfunction hfunc, int texunit, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuFuncSetSharedMemConfig' in found_functions}} - -cdef CUresult cuFuncSetSharedMemConfig(CUfunction hfunc, CUsharedconfig config) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphCreate' in found_functions}} - -cdef CUresult cuGraphCreate(CUgraph* phGraph, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphAddKernelNode_v2' in found_functions}} - -cdef CUresult cuGraphAddKernelNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, const CUDA_KERNEL_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphKernelNodeGetParams_v2' in found_functions}} - -cdef CUresult cuGraphKernelNodeGetParams(CUgraphNode hNode, CUDA_KERNEL_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphKernelNodeSetParams_v2' in found_functions}} - -cdef CUresult cuGraphKernelNodeSetParams(CUgraphNode hNode, const CUDA_KERNEL_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphAddMemcpyNode' in found_functions}} - -cdef CUresult cuGraphAddMemcpyNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, const CUDA_MEMCPY3D* copyParams, CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphMemcpyNodeGetParams' in found_functions}} - -cdef CUresult cuGraphMemcpyNodeGetParams(CUgraphNode hNode, CUDA_MEMCPY3D* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphMemcpyNodeSetParams' in found_functions}} - -cdef CUresult cuGraphMemcpyNodeSetParams(CUgraphNode hNode, const CUDA_MEMCPY3D* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphAddMemsetNode' in found_functions}} - -cdef CUresult cuGraphAddMemsetNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, const CUDA_MEMSET_NODE_PARAMS* memsetParams, CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphMemsetNodeGetParams' in found_functions}} - -cdef CUresult cuGraphMemsetNodeGetParams(CUgraphNode hNode, CUDA_MEMSET_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphMemsetNodeSetParams' in found_functions}} - -cdef CUresult cuGraphMemsetNodeSetParams(CUgraphNode hNode, const CUDA_MEMSET_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphAddHostNode' in found_functions}} - -cdef CUresult cuGraphAddHostNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, const CUDA_HOST_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphHostNodeGetParams' in found_functions}} - -cdef CUresult cuGraphHostNodeGetParams(CUgraphNode hNode, CUDA_HOST_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphHostNodeSetParams' in found_functions}} - -cdef CUresult cuGraphHostNodeSetParams(CUgraphNode hNode, const CUDA_HOST_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphAddChildGraphNode' in found_functions}} - -cdef CUresult cuGraphAddChildGraphNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, CUgraph childGraph) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphChildGraphNodeGetGraph' in found_functions}} - -cdef CUresult cuGraphChildGraphNodeGetGraph(CUgraphNode hNode, CUgraph* phGraph) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphAddEmptyNode' in found_functions}} - -cdef CUresult cuGraphAddEmptyNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphAddEventRecordNode' in found_functions}} - -cdef CUresult cuGraphAddEventRecordNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, CUevent event) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphEventRecordNodeGetEvent' in found_functions}} - -cdef CUresult cuGraphEventRecordNodeGetEvent(CUgraphNode hNode, CUevent* event_out) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphEventRecordNodeSetEvent' in found_functions}} - -cdef CUresult cuGraphEventRecordNodeSetEvent(CUgraphNode hNode, CUevent event) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphAddEventWaitNode' in found_functions}} - -cdef CUresult cuGraphAddEventWaitNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, CUevent event) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphEventWaitNodeGetEvent' in found_functions}} - -cdef CUresult cuGraphEventWaitNodeGetEvent(CUgraphNode hNode, CUevent* event_out) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphEventWaitNodeSetEvent' in found_functions}} - -cdef CUresult cuGraphEventWaitNodeSetEvent(CUgraphNode hNode, CUevent event) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphAddExternalSemaphoresSignalNode' in found_functions}} - -cdef CUresult cuGraphAddExternalSemaphoresSignalNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, const CUDA_EXT_SEM_SIGNAL_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphExternalSemaphoresSignalNodeGetParams' in found_functions}} - -cdef CUresult cuGraphExternalSemaphoresSignalNodeGetParams(CUgraphNode hNode, CUDA_EXT_SEM_SIGNAL_NODE_PARAMS* params_out) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphExternalSemaphoresSignalNodeSetParams' in found_functions}} - -cdef CUresult cuGraphExternalSemaphoresSignalNodeSetParams(CUgraphNode hNode, const CUDA_EXT_SEM_SIGNAL_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphAddExternalSemaphoresWaitNode' in found_functions}} - -cdef CUresult cuGraphAddExternalSemaphoresWaitNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, const CUDA_EXT_SEM_WAIT_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphExternalSemaphoresWaitNodeGetParams' in found_functions}} - -cdef CUresult cuGraphExternalSemaphoresWaitNodeGetParams(CUgraphNode hNode, CUDA_EXT_SEM_WAIT_NODE_PARAMS* params_out) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphExternalSemaphoresWaitNodeSetParams' in found_functions}} - -cdef CUresult cuGraphExternalSemaphoresWaitNodeSetParams(CUgraphNode hNode, const CUDA_EXT_SEM_WAIT_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphAddBatchMemOpNode' in found_functions}} - -cdef CUresult cuGraphAddBatchMemOpNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, const CUDA_BATCH_MEM_OP_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphBatchMemOpNodeGetParams' in found_functions}} - -cdef CUresult cuGraphBatchMemOpNodeGetParams(CUgraphNode hNode, CUDA_BATCH_MEM_OP_NODE_PARAMS* nodeParams_out) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphBatchMemOpNodeSetParams' in found_functions}} - -cdef CUresult cuGraphBatchMemOpNodeSetParams(CUgraphNode hNode, const CUDA_BATCH_MEM_OP_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphExecBatchMemOpNodeSetParams' in found_functions}} - -cdef CUresult cuGraphExecBatchMemOpNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_BATCH_MEM_OP_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphAddMemAllocNode' in found_functions}} - -cdef CUresult cuGraphAddMemAllocNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, CUDA_MEM_ALLOC_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphMemAllocNodeGetParams' in found_functions}} - -cdef CUresult cuGraphMemAllocNodeGetParams(CUgraphNode hNode, CUDA_MEM_ALLOC_NODE_PARAMS* params_out) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphAddMemFreeNode' in found_functions}} - -cdef CUresult cuGraphAddMemFreeNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, CUdeviceptr dptr) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphMemFreeNodeGetParams' in found_functions}} - -cdef CUresult cuGraphMemFreeNodeGetParams(CUgraphNode hNode, CUdeviceptr* dptr_out) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuDeviceGraphMemTrim' in found_functions}} - -cdef CUresult cuDeviceGraphMemTrim(CUdevice device) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuDeviceGetGraphMemAttribute' in found_functions}} - -cdef CUresult cuDeviceGetGraphMemAttribute(CUdevice device, CUgraphMem_attribute attr, void* value) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuDeviceSetGraphMemAttribute' in found_functions}} - -cdef CUresult cuDeviceSetGraphMemAttribute(CUdevice device, CUgraphMem_attribute attr, void* value) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphClone' in found_functions}} - -cdef CUresult cuGraphClone(CUgraph* phGraphClone, CUgraph originalGraph) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphNodeFindInClone' in found_functions}} - -cdef CUresult cuGraphNodeFindInClone(CUgraphNode* phNode, CUgraphNode hOriginalNode, CUgraph hClonedGraph) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphNodeGetType' in found_functions}} - -cdef CUresult cuGraphNodeGetType(CUgraphNode hNode, CUgraphNodeType* typename) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphNodeGetContainingGraph' in found_functions}} - -cdef CUresult cuGraphNodeGetContainingGraph(CUgraphNode hNode, CUgraph* phGraph) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphNodeGetLocalId' in found_functions}} - -cdef CUresult cuGraphNodeGetLocalId(CUgraphNode hNode, unsigned int* nodeId) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphNodeGetToolsId' in found_functions}} - -cdef CUresult cuGraphNodeGetToolsId(CUgraphNode hNode, unsigned long long* toolsNodeId) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphGetId' in found_functions}} - -cdef CUresult cuGraphGetId(CUgraph hGraph, unsigned int* graphId) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphExecGetId' in found_functions}} - -cdef CUresult cuGraphExecGetId(CUgraphExec hGraphExec, unsigned int* graphId) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphGetNodes' in found_functions}} - -cdef CUresult cuGraphGetNodes(CUgraph hGraph, CUgraphNode* nodes, size_t* numNodes) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphGetRootNodes' in found_functions}} - -cdef CUresult cuGraphGetRootNodes(CUgraph hGraph, CUgraphNode* rootNodes, size_t* numRootNodes) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphGetEdges_v2' in found_functions}} - -cdef CUresult cuGraphGetEdges(CUgraph hGraph, CUgraphNode* from_, CUgraphNode* to, CUgraphEdgeData* edgeData, size_t* numEdges) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphNodeGetDependencies_v2' in found_functions}} - -cdef CUresult cuGraphNodeGetDependencies(CUgraphNode hNode, CUgraphNode* dependencies, CUgraphEdgeData* edgeData, size_t* numDependencies) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphNodeGetDependentNodes_v2' in found_functions}} - -cdef CUresult cuGraphNodeGetDependentNodes(CUgraphNode hNode, CUgraphNode* dependentNodes, CUgraphEdgeData* edgeData, size_t* numDependentNodes) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphAddDependencies_v2' in found_functions}} - -cdef CUresult cuGraphAddDependencies(CUgraph hGraph, const CUgraphNode* from_, const CUgraphNode* to, const CUgraphEdgeData* edgeData, size_t numDependencies) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphRemoveDependencies_v2' in found_functions}} - -cdef CUresult cuGraphRemoveDependencies(CUgraph hGraph, const CUgraphNode* from_, const CUgraphNode* to, const CUgraphEdgeData* edgeData, size_t numDependencies) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphDestroyNode' in found_functions}} - -cdef CUresult cuGraphDestroyNode(CUgraphNode hNode) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphInstantiateWithFlags' in found_functions}} - -cdef CUresult cuGraphInstantiate(CUgraphExec* phGraphExec, CUgraph hGraph, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphInstantiateWithParams' in found_functions}} - -cdef CUresult cuGraphInstantiateWithParams(CUgraphExec* phGraphExec, CUgraph hGraph, CUDA_GRAPH_INSTANTIATE_PARAMS* instantiateParams) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphExecGetFlags' in found_functions}} - -cdef CUresult cuGraphExecGetFlags(CUgraphExec hGraphExec, cuuint64_t* flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphExecKernelNodeSetParams_v2' in found_functions}} - -cdef CUresult cuGraphExecKernelNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_KERNEL_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphExecMemcpyNodeSetParams' in found_functions}} - -cdef CUresult cuGraphExecMemcpyNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_MEMCPY3D* copyParams, CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphExecMemsetNodeSetParams' in found_functions}} - -cdef CUresult cuGraphExecMemsetNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_MEMSET_NODE_PARAMS* memsetParams, CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphExecHostNodeSetParams' in found_functions}} - -cdef CUresult cuGraphExecHostNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_HOST_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphExecChildGraphNodeSetParams' in found_functions}} - -cdef CUresult cuGraphExecChildGraphNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, CUgraph childGraph) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphExecEventRecordNodeSetEvent' in found_functions}} - -cdef CUresult cuGraphExecEventRecordNodeSetEvent(CUgraphExec hGraphExec, CUgraphNode hNode, CUevent event) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphExecEventWaitNodeSetEvent' in found_functions}} - -cdef CUresult cuGraphExecEventWaitNodeSetEvent(CUgraphExec hGraphExec, CUgraphNode hNode, CUevent event) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphExecExternalSemaphoresSignalNodeSetParams' in found_functions}} - -cdef CUresult cuGraphExecExternalSemaphoresSignalNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_EXT_SEM_SIGNAL_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphExecExternalSemaphoresWaitNodeSetParams' in found_functions}} - -cdef CUresult cuGraphExecExternalSemaphoresWaitNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_EXT_SEM_WAIT_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphNodeSetEnabled' in found_functions}} - -cdef CUresult cuGraphNodeSetEnabled(CUgraphExec hGraphExec, CUgraphNode hNode, unsigned int isEnabled) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphNodeGetEnabled' in found_functions}} - -cdef CUresult cuGraphNodeGetEnabled(CUgraphExec hGraphExec, CUgraphNode hNode, unsigned int* isEnabled) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphUpload' in found_functions}} - -cdef CUresult cuGraphUpload(CUgraphExec hGraphExec, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphLaunch' in found_functions}} - -cdef CUresult cuGraphLaunch(CUgraphExec hGraphExec, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphExecDestroy' in found_functions}} - -cdef CUresult cuGraphExecDestroy(CUgraphExec hGraphExec) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphDestroy' in found_functions}} - -cdef CUresult cuGraphDestroy(CUgraph hGraph) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphExecUpdate_v2' in found_functions}} - -cdef CUresult cuGraphExecUpdate(CUgraphExec hGraphExec, CUgraph hGraph, CUgraphExecUpdateResultInfo* resultInfo) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphKernelNodeCopyAttributes' in found_functions}} - -cdef CUresult cuGraphKernelNodeCopyAttributes(CUgraphNode dst, CUgraphNode src) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphKernelNodeGetAttribute' in found_functions}} - -cdef CUresult cuGraphKernelNodeGetAttribute(CUgraphNode hNode, CUkernelNodeAttrID attr, CUkernelNodeAttrValue* value_out) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphKernelNodeSetAttribute' in found_functions}} - -cdef CUresult cuGraphKernelNodeSetAttribute(CUgraphNode hNode, CUkernelNodeAttrID attr, const CUkernelNodeAttrValue* value) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphDebugDotPrint' in found_functions}} - -cdef CUresult cuGraphDebugDotPrint(CUgraph hGraph, const char* path, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuUserObjectCreate' in found_functions}} - -cdef CUresult cuUserObjectCreate(CUuserObject* object_out, void* ptr, CUhostFn destroy, unsigned int initialRefcount, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuUserObjectRetain' in found_functions}} - -cdef CUresult cuUserObjectRetain(CUuserObject object, unsigned int count) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuUserObjectRelease' in found_functions}} - -cdef CUresult cuUserObjectRelease(CUuserObject object, unsigned int count) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphRetainUserObject' in found_functions}} - -cdef CUresult cuGraphRetainUserObject(CUgraph graph, CUuserObject object, unsigned int count, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphReleaseUserObject' in found_functions}} - -cdef CUresult cuGraphReleaseUserObject(CUgraph graph, CUuserObject object, unsigned int count) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphAddNode_v2' in found_functions}} - -cdef CUresult cuGraphAddNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, const CUgraphEdgeData* dependencyData, size_t numDependencies, CUgraphNodeParams* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphNodeSetParams' in found_functions}} - -cdef CUresult cuGraphNodeSetParams(CUgraphNode hNode, CUgraphNodeParams* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphNodeGetParams' in found_functions}} - -cdef CUresult cuGraphNodeGetParams(CUgraphNode hNode, CUgraphNodeParams* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphExecNodeSetParams' in found_functions}} - -cdef CUresult cuGraphExecNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, CUgraphNodeParams* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphConditionalHandleCreate' in found_functions}} - -cdef CUresult cuGraphConditionalHandleCreate(CUgraphConditionalHandle* pHandle_out, CUgraph hGraph, CUcontext ctx, unsigned int defaultLaunchValue, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuOccupancyMaxActiveBlocksPerMultiprocessor' in found_functions}} - -cdef CUresult cuOccupancyMaxActiveBlocksPerMultiprocessor(int* numBlocks, CUfunction func, int blockSize, size_t dynamicSMemSize) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags' in found_functions}} - -cdef CUresult cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(int* numBlocks, CUfunction func, int blockSize, size_t dynamicSMemSize, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuOccupancyMaxPotentialBlockSize' in found_functions}} - -cdef CUresult cuOccupancyMaxPotentialBlockSize(int* minGridSize, int* blockSize, CUfunction func, CUoccupancyB2DSize blockSizeToDynamicSMemSize, size_t dynamicSMemSize, int blockSizeLimit) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuOccupancyMaxPotentialBlockSizeWithFlags' in found_functions}} - -cdef CUresult cuOccupancyMaxPotentialBlockSizeWithFlags(int* minGridSize, int* blockSize, CUfunction func, CUoccupancyB2DSize blockSizeToDynamicSMemSize, size_t dynamicSMemSize, int blockSizeLimit, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuOccupancyAvailableDynamicSMemPerBlock' in found_functions}} - -cdef CUresult cuOccupancyAvailableDynamicSMemPerBlock(size_t* dynamicSmemSize, CUfunction func, int numBlocks, int blockSize) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuOccupancyMaxPotentialClusterSize' in found_functions}} - -cdef CUresult cuOccupancyMaxPotentialClusterSize(int* clusterSize, CUfunction func, const CUlaunchConfig* config) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuOccupancyMaxActiveClusters' in found_functions}} - -cdef CUresult cuOccupancyMaxActiveClusters(int* numClusters, CUfunction func, const CUlaunchConfig* config) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuTexRefSetArray' in found_functions}} - -cdef CUresult cuTexRefSetArray(CUtexref hTexRef, CUarray hArray, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuTexRefSetMipmappedArray' in found_functions}} - -cdef CUresult cuTexRefSetMipmappedArray(CUtexref hTexRef, CUmipmappedArray hMipmappedArray, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuTexRefSetAddress_v2' in found_functions}} - -cdef CUresult cuTexRefSetAddress(size_t* ByteOffset, CUtexref hTexRef, CUdeviceptr dptr, size_t numbytes) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuTexRefSetAddress2D_v3' in found_functions}} - -cdef CUresult cuTexRefSetAddress2D(CUtexref hTexRef, const CUDA_ARRAY_DESCRIPTOR* desc, CUdeviceptr dptr, size_t Pitch) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuTexRefSetFormat' in found_functions}} - -cdef CUresult cuTexRefSetFormat(CUtexref hTexRef, CUarray_format fmt, int NumPackedComponents) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuTexRefSetAddressMode' in found_functions}} - -cdef CUresult cuTexRefSetAddressMode(CUtexref hTexRef, int dim, CUaddress_mode am) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuTexRefSetFilterMode' in found_functions}} - -cdef CUresult cuTexRefSetFilterMode(CUtexref hTexRef, CUfilter_mode fm) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuTexRefSetMipmapFilterMode' in found_functions}} - -cdef CUresult cuTexRefSetMipmapFilterMode(CUtexref hTexRef, CUfilter_mode fm) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuTexRefSetMipmapLevelBias' in found_functions}} - -cdef CUresult cuTexRefSetMipmapLevelBias(CUtexref hTexRef, float bias) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuTexRefSetMipmapLevelClamp' in found_functions}} - -cdef CUresult cuTexRefSetMipmapLevelClamp(CUtexref hTexRef, float minMipmapLevelClamp, float maxMipmapLevelClamp) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuTexRefSetMaxAnisotropy' in found_functions}} - -cdef CUresult cuTexRefSetMaxAnisotropy(CUtexref hTexRef, unsigned int maxAniso) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuTexRefSetBorderColor' in found_functions}} - -cdef CUresult cuTexRefSetBorderColor(CUtexref hTexRef, float* pBorderColor) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuTexRefSetFlags' in found_functions}} - -cdef CUresult cuTexRefSetFlags(CUtexref hTexRef, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuTexRefGetAddress_v2' in found_functions}} - -cdef CUresult cuTexRefGetAddress(CUdeviceptr* pdptr, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuTexRefGetArray' in found_functions}} - -cdef CUresult cuTexRefGetArray(CUarray* phArray, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuTexRefGetMipmappedArray' in found_functions}} - -cdef CUresult cuTexRefGetMipmappedArray(CUmipmappedArray* phMipmappedArray, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuTexRefGetAddressMode' in found_functions}} - -cdef CUresult cuTexRefGetAddressMode(CUaddress_mode* pam, CUtexref hTexRef, int dim) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuTexRefGetFilterMode' in found_functions}} - -cdef CUresult cuTexRefGetFilterMode(CUfilter_mode* pfm, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuTexRefGetFormat' in found_functions}} - -cdef CUresult cuTexRefGetFormat(CUarray_format* pFormat, int* pNumChannels, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuTexRefGetMipmapFilterMode' in found_functions}} - -cdef CUresult cuTexRefGetMipmapFilterMode(CUfilter_mode* pfm, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuTexRefGetMipmapLevelBias' in found_functions}} - -cdef CUresult cuTexRefGetMipmapLevelBias(float* pbias, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuTexRefGetMipmapLevelClamp' in found_functions}} - -cdef CUresult cuTexRefGetMipmapLevelClamp(float* pminMipmapLevelClamp, float* pmaxMipmapLevelClamp, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuTexRefGetMaxAnisotropy' in found_functions}} - -cdef CUresult cuTexRefGetMaxAnisotropy(int* pmaxAniso, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuTexRefGetBorderColor' in found_functions}} - -cdef CUresult cuTexRefGetBorderColor(float* pBorderColor, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuTexRefGetFlags' in found_functions}} - -cdef CUresult cuTexRefGetFlags(unsigned int* pFlags, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuTexRefCreate' in found_functions}} - -cdef CUresult cuTexRefCreate(CUtexref* pTexRef) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuTexRefDestroy' in found_functions}} - -cdef CUresult cuTexRefDestroy(CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuSurfRefSetArray' in found_functions}} - -cdef CUresult cuSurfRefSetArray(CUsurfref hSurfRef, CUarray hArray, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuSurfRefGetArray' in found_functions}} - -cdef CUresult cuSurfRefGetArray(CUarray* phArray, CUsurfref hSurfRef) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuTexObjectCreate' in found_functions}} - -cdef CUresult cuTexObjectCreate(CUtexObject* pTexObject, const CUDA_RESOURCE_DESC* pResDesc, const CUDA_TEXTURE_DESC* pTexDesc, const CUDA_RESOURCE_VIEW_DESC* pResViewDesc) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuTexObjectDestroy' in found_functions}} - -cdef CUresult cuTexObjectDestroy(CUtexObject texObject) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuTexObjectGetResourceDesc' in found_functions}} - -cdef CUresult cuTexObjectGetResourceDesc(CUDA_RESOURCE_DESC* pResDesc, CUtexObject texObject) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuTexObjectGetTextureDesc' in found_functions}} - -cdef CUresult cuTexObjectGetTextureDesc(CUDA_TEXTURE_DESC* pTexDesc, CUtexObject texObject) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuTexObjectGetResourceViewDesc' in found_functions}} - -cdef CUresult cuTexObjectGetResourceViewDesc(CUDA_RESOURCE_VIEW_DESC* pResViewDesc, CUtexObject texObject) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuSurfObjectCreate' in found_functions}} - -cdef CUresult cuSurfObjectCreate(CUsurfObject* pSurfObject, const CUDA_RESOURCE_DESC* pResDesc) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuSurfObjectDestroy' in found_functions}} - -cdef CUresult cuSurfObjectDestroy(CUsurfObject surfObject) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuSurfObjectGetResourceDesc' in found_functions}} - -cdef CUresult cuSurfObjectGetResourceDesc(CUDA_RESOURCE_DESC* pResDesc, CUsurfObject surfObject) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuTensorMapEncodeTiled' in found_functions}} - -cdef CUresult cuTensorMapEncodeTiled(CUtensorMap* tensorMap, CUtensorMapDataType tensorDataType, cuuint32_t tensorRank, void* globalAddress, const cuuint64_t* globalDim, const cuuint64_t* globalStrides, const cuuint32_t* boxDim, const cuuint32_t* elementStrides, CUtensorMapInterleave interleave, CUtensorMapSwizzle swizzle, CUtensorMapL2promotion l2Promotion, CUtensorMapFloatOOBfill oobFill) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuTensorMapEncodeIm2col' in found_functions}} - -cdef CUresult cuTensorMapEncodeIm2col(CUtensorMap* tensorMap, CUtensorMapDataType tensorDataType, cuuint32_t tensorRank, void* globalAddress, const cuuint64_t* globalDim, const cuuint64_t* globalStrides, const int* pixelBoxLowerCorner, const int* pixelBoxUpperCorner, cuuint32_t channelsPerPixel, cuuint32_t pixelsPerColumn, const cuuint32_t* elementStrides, CUtensorMapInterleave interleave, CUtensorMapSwizzle swizzle, CUtensorMapL2promotion l2Promotion, CUtensorMapFloatOOBfill oobFill) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuTensorMapEncodeIm2colWide' in found_functions}} - -cdef CUresult cuTensorMapEncodeIm2colWide(CUtensorMap* tensorMap, CUtensorMapDataType tensorDataType, cuuint32_t tensorRank, void* globalAddress, const cuuint64_t* globalDim, const cuuint64_t* globalStrides, int pixelBoxLowerCornerWidth, int pixelBoxUpperCornerWidth, cuuint32_t channelsPerPixel, cuuint32_t pixelsPerColumn, const cuuint32_t* elementStrides, CUtensorMapInterleave interleave, CUtensorMapIm2ColWideMode mode, CUtensorMapSwizzle swizzle, CUtensorMapL2promotion l2Promotion, CUtensorMapFloatOOBfill oobFill) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuTensorMapReplaceAddress' in found_functions}} - -cdef CUresult cuTensorMapReplaceAddress(CUtensorMap* tensorMap, void* globalAddress) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuDeviceCanAccessPeer' in found_functions}} - -cdef CUresult cuDeviceCanAccessPeer(int* canAccessPeer, CUdevice dev, CUdevice peerDev) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuCtxEnablePeerAccess' in found_functions}} - -cdef CUresult cuCtxEnablePeerAccess(CUcontext peerContext, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuCtxDisablePeerAccess' in found_functions}} - -cdef CUresult cuCtxDisablePeerAccess(CUcontext peerContext) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuDeviceGetP2PAttribute' in found_functions}} - -cdef CUresult cuDeviceGetP2PAttribute(int* value, CUdevice_P2PAttribute attrib, CUdevice srcDevice, CUdevice dstDevice) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuDeviceGetP2PAtomicCapabilities' in found_functions}} - -cdef CUresult cuDeviceGetP2PAtomicCapabilities(unsigned int* capabilities, const CUatomicOperation* operations, unsigned int count, CUdevice srcDevice, CUdevice dstDevice) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphicsUnregisterResource' in found_functions}} - -cdef CUresult cuGraphicsUnregisterResource(CUgraphicsResource resource) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphicsSubResourceGetMappedArray' in found_functions}} - -cdef CUresult cuGraphicsSubResourceGetMappedArray(CUarray* pArray, CUgraphicsResource resource, unsigned int arrayIndex, unsigned int mipLevel) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphicsResourceGetMappedMipmappedArray' in found_functions}} - -cdef CUresult cuGraphicsResourceGetMappedMipmappedArray(CUmipmappedArray* pMipmappedArray, CUgraphicsResource resource) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphicsResourceGetMappedPointer_v2' in found_functions}} - -cdef CUresult cuGraphicsResourceGetMappedPointer(CUdeviceptr* pDevPtr, size_t* pSize, CUgraphicsResource resource) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphicsResourceSetMapFlags_v2' in found_functions}} - -cdef CUresult cuGraphicsResourceSetMapFlags(CUgraphicsResource resource, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphicsMapResources' in found_functions}} - -cdef CUresult cuGraphicsMapResources(unsigned int count, CUgraphicsResource* resources, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGraphicsUnmapResources' in found_functions}} - -cdef CUresult cuGraphicsUnmapResources(unsigned int count, CUgraphicsResource* resources, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGetProcAddress_v2' in found_functions}} - -cdef CUresult cuGetProcAddress(const char* symbol, void** pfn, int cudaVersion, cuuint64_t flags, CUdriverProcAddressQueryResult* symbolStatus) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuCoredumpGetAttribute' in found_functions}} - -cdef CUresult cuCoredumpGetAttribute(CUcoredumpSettings attrib, void* value, size_t* size) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuCoredumpGetAttributeGlobal' in found_functions}} - -cdef CUresult cuCoredumpGetAttributeGlobal(CUcoredumpSettings attrib, void* value, size_t* size) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuCoredumpSetAttribute' in found_functions}} - -cdef CUresult cuCoredumpSetAttribute(CUcoredumpSettings attrib, void* value, size_t* size) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuCoredumpSetAttributeGlobal' in found_functions}} - -cdef CUresult cuCoredumpSetAttributeGlobal(CUcoredumpSettings attrib, void* value, size_t* size) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuCoredumpRegisterStartCallback' in found_functions}} - -cdef CUresult cuCoredumpRegisterStartCallback(CUcoredumpStatusCallback callback, void* userData, CUcoredumpCallbackHandle* callbackOut) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuCoredumpRegisterCompleteCallback' in found_functions}} - -cdef CUresult cuCoredumpRegisterCompleteCallback(CUcoredumpStatusCallback callback, void* userData, CUcoredumpCallbackHandle* callbackOut) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuCoredumpDeregisterStartCallback' in found_functions}} - -cdef CUresult cuCoredumpDeregisterStartCallback(CUcoredumpCallbackHandle callback) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuCoredumpDeregisterCompleteCallback' in found_functions}} - -cdef CUresult cuCoredumpDeregisterCompleteCallback(CUcoredumpCallbackHandle callback) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGetExportTable' in found_functions}} - -cdef CUresult cuGetExportTable(const void** ppExportTable, const CUuuid* pExportTableId) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGreenCtxCreate' in found_functions}} - -cdef CUresult cuGreenCtxCreate(CUgreenCtx* phCtx, CUdevResourceDesc desc, CUdevice dev, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGreenCtxDestroy' in found_functions}} - -cdef CUresult cuGreenCtxDestroy(CUgreenCtx hCtx) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuCtxFromGreenCtx' in found_functions}} - -cdef CUresult cuCtxFromGreenCtx(CUcontext* pContext, CUgreenCtx hCtx) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuDeviceGetDevResource' in found_functions}} - -cdef CUresult cuDeviceGetDevResource(CUdevice device, CUdevResource* resource, CUdevResourceType typename) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuCtxGetDevResource' in found_functions}} - -cdef CUresult cuCtxGetDevResource(CUcontext hCtx, CUdevResource* resource, CUdevResourceType typename) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGreenCtxGetDevResource' in found_functions}} - -cdef CUresult cuGreenCtxGetDevResource(CUgreenCtx hCtx, CUdevResource* resource, CUdevResourceType typename) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuDevSmResourceSplitByCount' in found_functions}} - -cdef CUresult cuDevSmResourceSplitByCount(CUdevResource* result, unsigned int* nbGroups, const CUdevResource* input, CUdevResource* remainder, unsigned int flags, unsigned int minCount) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuDevSmResourceSplit' in found_functions}} - -cdef CUresult cuDevSmResourceSplit(CUdevResource* result, unsigned int nbGroups, const CUdevResource* input, CUdevResource* remainder, unsigned int flags, CU_DEV_SM_RESOURCE_GROUP_PARAMS* groupParams) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuDevResourceGenerateDesc' in found_functions}} - -cdef CUresult cuDevResourceGenerateDesc(CUdevResourceDesc* phDesc, CUdevResource* resources, unsigned int nbResources) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGreenCtxRecordEvent' in found_functions}} - -cdef CUresult cuGreenCtxRecordEvent(CUgreenCtx hCtx, CUevent hEvent) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGreenCtxWaitEvent' in found_functions}} - -cdef CUresult cuGreenCtxWaitEvent(CUgreenCtx hCtx, CUevent hEvent) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuStreamGetGreenCtx' in found_functions}} - -cdef CUresult cuStreamGetGreenCtx(CUstream hStream, CUgreenCtx* phCtx) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGreenCtxStreamCreate' in found_functions}} - -cdef CUresult cuGreenCtxStreamCreate(CUstream* phStream, CUgreenCtx greenCtx, unsigned int flags, int priority) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuGreenCtxGetId' in found_functions}} - -cdef CUresult cuGreenCtxGetId(CUgreenCtx greenCtx, unsigned long long* greenCtxId) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuStreamGetDevResource' in found_functions}} - -cdef CUresult cuStreamGetDevResource(CUstream hStream, CUdevResource* resource, CUdevResourceType typename) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuLogsRegisterCallback' in found_functions}} - -cdef CUresult cuLogsRegisterCallback(CUlogsCallback callbackFunc, void* userData, CUlogsCallbackHandle* callback_out) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuLogsUnregisterCallback' in found_functions}} - -cdef CUresult cuLogsUnregisterCallback(CUlogsCallbackHandle callback) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuLogsCurrent' in found_functions}} - -cdef CUresult cuLogsCurrent(CUlogIterator* iterator_out, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuLogsDumpToFile' in found_functions}} - -cdef CUresult cuLogsDumpToFile(CUlogIterator* iterator, const char* pathToFile, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuLogsDumpToMemory' in found_functions}} - -cdef CUresult cuLogsDumpToMemory(CUlogIterator* iterator, char* buffer, size_t* size, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuCheckpointProcessGetRestoreThreadId' in found_functions}} - -cdef CUresult cuCheckpointProcessGetRestoreThreadId(int pid, int* tid) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuCheckpointProcessGetState' in found_functions}} - -cdef CUresult cuCheckpointProcessGetState(int pid, CUprocessState* state) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuCheckpointProcessLock' in found_functions}} - -cdef CUresult cuCheckpointProcessLock(int pid, CUcheckpointLockArgs* args) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuCheckpointProcessCheckpoint' in found_functions}} - -cdef CUresult cuCheckpointProcessCheckpoint(int pid, CUcheckpointCheckpointArgs* args) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuCheckpointProcessRestore' in found_functions}} - -cdef CUresult cuCheckpointProcessRestore(int pid, CUcheckpointRestoreArgs* args) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuCheckpointProcessUnlock' in found_functions}} - -cdef CUresult cuCheckpointProcessUnlock(int pid, CUcheckpointUnlockArgs* args) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuProfilerStart' in found_functions}} - -cdef CUresult cuProfilerStart() except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if 'cuProfilerStop' in found_functions}} - -cdef CUresult cuProfilerStop() except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if True}} - -cdef CUresult cuGraphicsEGLRegisterImage(CUgraphicsResource* pCudaResource, EGLImageKHR image, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if True}} - -cdef CUresult cuEGLStreamConsumerConnect(CUeglStreamConnection* conn, EGLStreamKHR stream) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if True}} - -cdef CUresult cuEGLStreamConsumerConnectWithFlags(CUeglStreamConnection* conn, EGLStreamKHR stream, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if True}} - -cdef CUresult cuEGLStreamConsumerDisconnect(CUeglStreamConnection* conn) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if True}} - -cdef CUresult cuEGLStreamConsumerAcquireFrame(CUeglStreamConnection* conn, CUgraphicsResource* pCudaResource, CUstream* pStream, unsigned int timeout) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if True}} - -cdef CUresult cuEGLStreamConsumerReleaseFrame(CUeglStreamConnection* conn, CUgraphicsResource pCudaResource, CUstream* pStream) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if True}} - -cdef CUresult cuEGLStreamProducerConnect(CUeglStreamConnection* conn, EGLStreamKHR stream, EGLint width, EGLint height) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if True}} - -cdef CUresult cuEGLStreamProducerDisconnect(CUeglStreamConnection* conn) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if True}} - -cdef CUresult cuEGLStreamProducerPresentFrame(CUeglStreamConnection* conn, CUeglFrame eglframe, CUstream* pStream) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if True}} - -cdef CUresult cuEGLStreamProducerReturnFrame(CUeglStreamConnection* conn, CUeglFrame* eglframe, CUstream* pStream) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if True}} - -cdef CUresult cuGraphicsResourceGetMappedEglFrame(CUeglFrame* eglFrame, CUgraphicsResource resource, unsigned int index, unsigned int mipLevel) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if True}} - -cdef CUresult cuEventCreateFromEGLSync(CUevent* phEvent, EGLSyncKHR eglSync, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if True}} - -cdef CUresult cuGraphicsGLRegisterBuffer(CUgraphicsResource* pCudaResource, GLuint buffer, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if True}} - -cdef CUresult cuGraphicsGLRegisterImage(CUgraphicsResource* pCudaResource, GLuint image, GLenum target, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if True}} - -cdef CUresult cuGLGetDevices(unsigned int* pCudaDeviceCount, CUdevice* pCudaDevices, unsigned int cudaDeviceCount, CUGLDeviceList deviceList) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if True}} - -cdef CUresult cuVDPAUGetDevice(CUdevice* pDevice, VdpDevice vdpDevice, VdpGetProcAddress* vdpGetProcAddress) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if True}} - -cdef CUresult cuVDPAUCtxCreate(CUcontext* pCtx, unsigned int flags, CUdevice device, VdpDevice vdpDevice, VdpGetProcAddress* vdpGetProcAddress) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if True}} - -cdef CUresult cuGraphicsVDPAURegisterVideoSurface(CUgraphicsResource* pCudaResource, VdpVideoSurface vdpSurface, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -{{if True}} - -cdef CUresult cuGraphicsVDPAURegisterOutputSurface(CUgraphicsResource* pCudaResource, VdpOutputSurface vdpSurface, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil -{{endif}} - -cdef enum: CUDA_VERSION = 13020 - -cdef enum: CU_IPC_HANDLE_SIZE = 64 - -cdef enum: CU_STREAM_LEGACY = 1 - -cdef enum: CU_STREAM_PER_THREAD = 2 - -cdef enum: CU_COMPUTE_ACCELERATED_TARGET_BASE = 65536 - -cdef enum: CU_COMPUTE_FAMILY_TARGET_BASE = 131072 - -cdef enum: CU_GRAPH_COND_ASSIGN_DEFAULT = 1 - -cdef enum: CU_GRAPH_KERNEL_NODE_PORT_DEFAULT = 0 - -cdef enum: CU_GRAPH_KERNEL_NODE_PORT_PROGRAMMATIC = 1 - -cdef enum: CU_GRAPH_KERNEL_NODE_PORT_LAUNCH_ORDER = 2 - -cdef enum: CU_KERNEL_NODE_ATTRIBUTE_ACCESS_POLICY_WINDOW = 1 - -cdef enum: CU_KERNEL_NODE_ATTRIBUTE_COOPERATIVE = 2 - -cdef enum: CU_KERNEL_NODE_ATTRIBUTE_CLUSTER_DIMENSION = 4 - -cdef enum: CU_KERNEL_NODE_ATTRIBUTE_CLUSTER_SCHEDULING_POLICY_PREFERENCE = 5 - -cdef enum: CU_KERNEL_NODE_ATTRIBUTE_PRIORITY = 8 - -cdef enum: CU_KERNEL_NODE_ATTRIBUTE_MEM_SYNC_DOMAIN_MAP = 9 - -cdef enum: CU_KERNEL_NODE_ATTRIBUTE_MEM_SYNC_DOMAIN = 10 - -cdef enum: CU_KERNEL_NODE_ATTRIBUTE_PREFERRED_CLUSTER_DIMENSION = 11 - -cdef enum: CU_KERNEL_NODE_ATTRIBUTE_DEVICE_UPDATABLE_KERNEL_NODE = 13 - -cdef enum: CU_KERNEL_NODE_ATTRIBUTE_PREFERRED_SHARED_MEMORY_CARVEOUT = 14 - -cdef enum: CU_STREAM_ATTRIBUTE_ACCESS_POLICY_WINDOW = 1 - -cdef enum: CU_STREAM_ATTRIBUTE_SYNCHRONIZATION_POLICY = 3 - -cdef enum: CU_STREAM_ATTRIBUTE_PRIORITY = 8 - -cdef enum: CU_STREAM_ATTRIBUTE_MEM_SYNC_DOMAIN_MAP = 9 - -cdef enum: CU_STREAM_ATTRIBUTE_MEM_SYNC_DOMAIN = 10 - -cdef enum: CU_MEMHOSTALLOC_PORTABLE = 1 - -cdef enum: CU_MEMHOSTALLOC_DEVICEMAP = 2 - -cdef enum: CU_MEMHOSTALLOC_WRITECOMBINED = 4 - -cdef enum: CU_MEMHOSTREGISTER_PORTABLE = 1 - -cdef enum: CU_MEMHOSTREGISTER_DEVICEMAP = 2 - -cdef enum: CU_MEMHOSTREGISTER_IOMEMORY = 4 - -cdef enum: CU_MEMHOSTREGISTER_READ_ONLY = 8 - -cdef enum: CU_ARRAY_SPARSE_PROPERTIES_SINGLE_MIPTAIL = 1 - -cdef enum: CU_TENSOR_MAP_NUM_QWORDS = 16 - -cdef enum: CUDA_EXTERNAL_MEMORY_DEDICATED = 1 - -cdef enum: CUDA_EXTERNAL_SEMAPHORE_SIGNAL_SKIP_NVSCIBUF_MEMSYNC = 1 - -cdef enum: CUDA_EXTERNAL_SEMAPHORE_WAIT_SKIP_NVSCIBUF_MEMSYNC = 2 - -cdef enum: CUDA_NVSCISYNC_ATTR_SIGNAL = 1 - -cdef enum: CUDA_NVSCISYNC_ATTR_WAIT = 2 - -cdef enum: CU_MEM_CREATE_USAGE_TILE_POOL = 1 - -cdef enum: CU_MEM_CREATE_USAGE_HW_DECOMPRESS = 2 - -cdef enum: CU_MEM_POOL_CREATE_USAGE_HW_DECOMPRESS = 2 - -cdef enum: CUDA_COOPERATIVE_LAUNCH_MULTI_DEVICE_NO_PRE_LAUNCH_SYNC = 1 - -cdef enum: CUDA_COOPERATIVE_LAUNCH_MULTI_DEVICE_NO_POST_LAUNCH_SYNC = 2 - -cdef enum: CUDA_ARRAY3D_LAYERED = 1 - -cdef enum: CUDA_ARRAY3D_2DARRAY = 1 - -cdef enum: CUDA_ARRAY3D_SURFACE_LDST = 2 - -cdef enum: CUDA_ARRAY3D_CUBEMAP = 4 - -cdef enum: CUDA_ARRAY3D_TEXTURE_GATHER = 8 - -cdef enum: CUDA_ARRAY3D_DEPTH_TEXTURE = 16 - -cdef enum: CUDA_ARRAY3D_COLOR_ATTACHMENT = 32 - -cdef enum: CUDA_ARRAY3D_SPARSE = 64 - -cdef enum: CUDA_ARRAY3D_DEFERRED_MAPPING = 128 - -cdef enum: CUDA_ARRAY3D_VIDEO_ENCODE_DECODE = 256 - -cdef enum: CU_TRSA_OVERRIDE_FORMAT = 1 - -cdef enum: CU_TRSF_READ_AS_INTEGER = 1 - -cdef enum: CU_TRSF_NORMALIZED_COORDINATES = 2 - -cdef enum: CU_TRSF_SRGB = 16 - -cdef enum: CU_TRSF_DISABLE_TRILINEAR_OPTIMIZATION = 32 - -cdef enum: CU_TRSF_SEAMLESS_CUBEMAP = 64 - -cdef enum: CU_LAUNCH_KERNEL_REQUIRED_BLOCK_DIM = 1 - -cdef enum: CU_LAUNCH_PARAM_END_AS_INT = 0 - -cdef enum: CU_LAUNCH_PARAM_END = 0 - -cdef enum: CU_LAUNCH_PARAM_BUFFER_POINTER_AS_INT = 1 - -cdef enum: CU_LAUNCH_PARAM_BUFFER_POINTER = 1 - -cdef enum: CU_LAUNCH_PARAM_BUFFER_SIZE_AS_INT = 2 - -cdef enum: CU_LAUNCH_PARAM_BUFFER_SIZE = 2 - -cdef enum: CU_PARAM_TR_DEFAULT = -1 - -cdef enum: CU_DEVICE_CPU = -1 - -cdef enum: CU_DEVICE_INVALID = -2 - -cdef enum: MAX_PLANES = 3 - -cdef enum: CUDA_EGL_INFINITE_TIMEOUT = 4294967295 \ No newline at end of file diff --git a/cuda_bindings/cuda/bindings/cydriver.pyx b/cuda_bindings/cuda/bindings/cydriver.pyx new file mode 100644 index 00000000000..314fc85c036 --- /dev/null +++ b/cuda_bindings/cuda/bindings/cydriver.pyx @@ -0,0 +1,2010 @@ +# 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.2.0, generator version 0.3.1.dev1630+gadce055ea.d20260422. Do not modify it directly. + +from ._internal cimport driver as _driver + +cdef CUresult cuGetErrorString(CUresult error, const char** pStr) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGetErrorString(error, pStr) + + +cdef CUresult cuGetErrorName(CUresult error, const char** pStr) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGetErrorName(error, pStr) + + +cdef CUresult cuInit(unsigned int Flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuInit(Flags) + + +cdef CUresult cuDriverGetVersion(int* driverVersion) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuDriverGetVersion(driverVersion) + + +cdef CUresult cuDeviceGet(CUdevice* device, int ordinal) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuDeviceGet(device, ordinal) + + +cdef CUresult cuDeviceGetCount(int* count) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuDeviceGetCount(count) + + +cdef CUresult cuDeviceGetName(char* name, int len, CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuDeviceGetName(name, len, dev) + + +cdef CUresult cuDeviceGetUuid(CUuuid* uuid, CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuDeviceGetUuid_v2(uuid, dev) + + +cdef CUresult cuDeviceGetLuid(char* luid, unsigned int* deviceNodeMask, CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuDeviceGetLuid(luid, deviceNodeMask, dev) + + +cdef CUresult cuDeviceTotalMem(size_t* bytes, CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuDeviceTotalMem_v2(bytes, dev) + + +cdef CUresult cuDeviceGetTexture1DLinearMaxWidth(size_t* maxWidthInElements, CUarray_format format, unsigned numChannels, CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuDeviceGetTexture1DLinearMaxWidth(maxWidthInElements, format, numChannels, dev) + + +cdef CUresult cuDeviceGetAttribute(int* pi, CUdevice_attribute attrib, CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuDeviceGetAttribute(pi, attrib, dev) + + +cdef CUresult cuDeviceGetNvSciSyncAttributes(void* nvSciSyncAttrList, CUdevice dev, int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuDeviceGetNvSciSyncAttributes(nvSciSyncAttrList, dev, flags) + + +cdef CUresult cuDeviceSetMemPool(CUdevice dev, CUmemoryPool pool) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuDeviceSetMemPool(dev, pool) + + +cdef CUresult cuDeviceGetMemPool(CUmemoryPool* pool, CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuDeviceGetMemPool(pool, dev) + + +cdef CUresult cuDeviceGetDefaultMemPool(CUmemoryPool* pool_out, CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuDeviceGetDefaultMemPool(pool_out, dev) + + +cdef CUresult cuDeviceGetExecAffinitySupport(int* pi, CUexecAffinityType type, CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuDeviceGetExecAffinitySupport(pi, type, dev) + + +cdef CUresult cuFlushGPUDirectRDMAWrites(CUflushGPUDirectRDMAWritesTarget target, CUflushGPUDirectRDMAWritesScope scope) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuFlushGPUDirectRDMAWrites(target, scope) + + +cdef CUresult cuDeviceGetProperties(CUdevprop* prop, CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuDeviceGetProperties(prop, dev) + + +cdef CUresult cuDeviceComputeCapability(int* major, int* minor, CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuDeviceComputeCapability(major, minor, dev) + + +cdef CUresult cuDevicePrimaryCtxRetain(CUcontext* pctx, CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuDevicePrimaryCtxRetain(pctx, dev) + + +cdef CUresult cuDevicePrimaryCtxRelease(CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuDevicePrimaryCtxRelease_v2(dev) + + +cdef CUresult cuDevicePrimaryCtxSetFlags(CUdevice dev, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuDevicePrimaryCtxSetFlags_v2(dev, flags) + + +cdef CUresult cuDevicePrimaryCtxGetState(CUdevice dev, unsigned int* flags, int* active) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuDevicePrimaryCtxGetState(dev, flags, active) + + +cdef CUresult cuDevicePrimaryCtxReset(CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuDevicePrimaryCtxReset_v2(dev) + + +cdef CUresult cuCtxCreate(CUcontext* pctx, CUctxCreateParams* ctxCreateParams, unsigned int flags, CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuCtxCreate_v4(pctx, ctxCreateParams, flags, dev) + + +cdef CUresult cuCtxDestroy(CUcontext ctx) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuCtxDestroy_v2(ctx) + + +cdef CUresult cuCtxPushCurrent(CUcontext ctx) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuCtxPushCurrent_v2(ctx) + + +cdef CUresult cuCtxPopCurrent(CUcontext* pctx) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuCtxPopCurrent_v2(pctx) + + +cdef CUresult cuCtxSetCurrent(CUcontext ctx) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuCtxSetCurrent(ctx) + + +cdef CUresult cuCtxGetCurrent(CUcontext* pctx) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuCtxGetCurrent(pctx) + + +cdef CUresult cuCtxGetDevice(CUdevice* device) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuCtxGetDevice(device) + + +cdef CUresult cuCtxGetFlags(unsigned int* flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuCtxGetFlags(flags) + + +cdef CUresult cuCtxSetFlags(unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuCtxSetFlags(flags) + + +cdef CUresult cuCtxGetId(CUcontext ctx, unsigned long long* ctxId) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuCtxGetId(ctx, ctxId) + + +cdef CUresult cuCtxSynchronize() except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuCtxSynchronize() + + +cdef CUresult cuCtxSetLimit(CUlimit limit, size_t value) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuCtxSetLimit(limit, value) + + +cdef CUresult cuCtxGetLimit(size_t* pvalue, CUlimit limit) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuCtxGetLimit(pvalue, limit) + + +cdef CUresult cuCtxGetCacheConfig(CUfunc_cache* pconfig) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuCtxGetCacheConfig(pconfig) + + +cdef CUresult cuCtxSetCacheConfig(CUfunc_cache config) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuCtxSetCacheConfig(config) + + +cdef CUresult cuCtxGetApiVersion(CUcontext ctx, unsigned int* version) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuCtxGetApiVersion(ctx, version) + + +cdef CUresult cuCtxGetStreamPriorityRange(int* leastPriority, int* greatestPriority) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuCtxGetStreamPriorityRange(leastPriority, greatestPriority) + + +cdef CUresult cuCtxResetPersistingL2Cache() except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuCtxResetPersistingL2Cache() + + +cdef CUresult cuCtxGetExecAffinity(CUexecAffinityParam* pExecAffinity, CUexecAffinityType type) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuCtxGetExecAffinity(pExecAffinity, type) + + +cdef CUresult cuCtxRecordEvent(CUcontext hCtx, CUevent hEvent) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuCtxRecordEvent(hCtx, hEvent) + + +cdef CUresult cuCtxWaitEvent(CUcontext hCtx, CUevent hEvent) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuCtxWaitEvent(hCtx, hEvent) + + +cdef CUresult cuCtxAttach(CUcontext* pctx, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuCtxAttach(pctx, flags) + + +cdef CUresult cuCtxDetach(CUcontext ctx) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuCtxDetach(ctx) + + +cdef CUresult cuCtxGetSharedMemConfig(CUsharedconfig* pConfig) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuCtxGetSharedMemConfig(pConfig) + + +cdef CUresult cuCtxSetSharedMemConfig(CUsharedconfig config) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuCtxSetSharedMemConfig(config) + + +cdef CUresult cuModuleLoad(CUmodule* module, const char* fname) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuModuleLoad(module, fname) + + +cdef CUresult cuModuleLoadData(CUmodule* module, const void* image) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuModuleLoadData(module, image) + + +cdef CUresult cuModuleLoadDataEx(CUmodule* module, const void* image, unsigned int numOptions, CUjit_option* options, void** optionValues) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuModuleLoadDataEx(module, image, numOptions, options, optionValues) + + +cdef CUresult cuModuleLoadFatBinary(CUmodule* module, const void* fatCubin) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuModuleLoadFatBinary(module, fatCubin) + + +cdef CUresult cuModuleUnload(CUmodule hmod) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuModuleUnload(hmod) + + +cdef CUresult cuModuleGetLoadingMode(CUmoduleLoadingMode* mode) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuModuleGetLoadingMode(mode) + + +cdef CUresult cuModuleGetFunction(CUfunction* hfunc, CUmodule hmod, const char* name) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuModuleGetFunction(hfunc, hmod, name) + + +cdef CUresult cuModuleGetFunctionCount(unsigned int* count, CUmodule mod) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuModuleGetFunctionCount(count, mod) + + +cdef CUresult cuModuleEnumerateFunctions(CUfunction* functions, unsigned int numFunctions, CUmodule mod) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuModuleEnumerateFunctions(functions, numFunctions, mod) + + +cdef CUresult cuModuleGetGlobal(CUdeviceptr* dptr, size_t* bytes, CUmodule hmod, const char* name) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuModuleGetGlobal_v2(dptr, bytes, hmod, name) + + +cdef CUresult cuLinkCreate(unsigned int numOptions, CUjit_option* options, void** optionValues, CUlinkState* stateOut) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuLinkCreate_v2(numOptions, options, optionValues, stateOut) + + +cdef CUresult cuLinkAddData(CUlinkState state, CUjitInputType type, void* data, size_t size, const char* name, unsigned int numOptions, CUjit_option* options, void** optionValues) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuLinkAddData_v2(state, type, data, size, name, numOptions, options, optionValues) + + +cdef CUresult cuLinkAddFile(CUlinkState state, CUjitInputType type, const char* path, unsigned int numOptions, CUjit_option* options, void** optionValues) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuLinkAddFile_v2(state, type, path, numOptions, options, optionValues) + + +cdef CUresult cuLinkComplete(CUlinkState state, void** cubinOut, size_t* sizeOut) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuLinkComplete(state, cubinOut, sizeOut) + + +cdef CUresult cuLinkDestroy(CUlinkState state) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuLinkDestroy(state) + + +cdef CUresult cuModuleGetTexRef(CUtexref* pTexRef, CUmodule hmod, const char* name) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuModuleGetTexRef(pTexRef, hmod, name) + + +cdef CUresult cuModuleGetSurfRef(CUsurfref* pSurfRef, CUmodule hmod, const char* name) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuModuleGetSurfRef(pSurfRef, hmod, name) + + +cdef CUresult cuLibraryLoadData(CUlibrary* library, const void* code, CUjit_option* jitOptions, void** jitOptionsValues, unsigned int numJitOptions, CUlibraryOption* libraryOptions, void** libraryOptionValues, unsigned int numLibraryOptions) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuLibraryLoadData(library, code, jitOptions, jitOptionsValues, numJitOptions, libraryOptions, libraryOptionValues, numLibraryOptions) + + +cdef CUresult cuLibraryLoadFromFile(CUlibrary* library, const char* fileName, CUjit_option* jitOptions, void** jitOptionsValues, unsigned int numJitOptions, CUlibraryOption* libraryOptions, void** libraryOptionValues, unsigned int numLibraryOptions) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuLibraryLoadFromFile(library, fileName, jitOptions, jitOptionsValues, numJitOptions, libraryOptions, libraryOptionValues, numLibraryOptions) + + +cdef CUresult cuLibraryUnload(CUlibrary library) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuLibraryUnload(library) + + +cdef CUresult cuLibraryGetKernel(CUkernel* pKernel, CUlibrary library, const char* name) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuLibraryGetKernel(pKernel, library, name) + + +cdef CUresult cuLibraryGetKernelCount(unsigned int* count, CUlibrary lib) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuLibraryGetKernelCount(count, lib) + + +cdef CUresult cuLibraryEnumerateKernels(CUkernel* kernels, unsigned int numKernels, CUlibrary lib) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuLibraryEnumerateKernels(kernels, numKernels, lib) + + +cdef CUresult cuLibraryGetModule(CUmodule* pMod, CUlibrary library) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuLibraryGetModule(pMod, library) + + +cdef CUresult cuKernelGetFunction(CUfunction* pFunc, CUkernel kernel) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuKernelGetFunction(pFunc, kernel) + + +cdef CUresult cuKernelGetLibrary(CUlibrary* pLib, CUkernel kernel) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuKernelGetLibrary(pLib, kernel) + + +cdef CUresult cuLibraryGetGlobal(CUdeviceptr* dptr, size_t* bytes, CUlibrary library, const char* name) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuLibraryGetGlobal(dptr, bytes, library, name) + + +cdef CUresult cuLibraryGetManaged(CUdeviceptr* dptr, size_t* bytes, CUlibrary library, const char* name) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuLibraryGetManaged(dptr, bytes, library, name) + + +cdef CUresult cuLibraryGetUnifiedFunction(void** fptr, CUlibrary library, const char* symbol) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuLibraryGetUnifiedFunction(fptr, library, symbol) + + +cdef CUresult cuKernelGetAttribute(int* pi, CUfunction_attribute attrib, CUkernel kernel, CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuKernelGetAttribute(pi, attrib, kernel, dev) + + +cdef CUresult cuKernelSetAttribute(CUfunction_attribute attrib, int val, CUkernel kernel, CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuKernelSetAttribute(attrib, val, kernel, dev) + + +cdef CUresult cuKernelSetCacheConfig(CUkernel kernel, CUfunc_cache config, CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuKernelSetCacheConfig(kernel, config, dev) + + +cdef CUresult cuKernelGetName(const char** name, CUkernel hfunc) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuKernelGetName(name, hfunc) + + +cdef CUresult cuKernelGetParamInfo(CUkernel kernel, size_t paramIndex, size_t* paramOffset, size_t* paramSize) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuKernelGetParamInfo(kernel, paramIndex, paramOffset, paramSize) + + +cdef CUresult cuMemGetInfo(size_t* free, size_t* total) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMemGetInfo_v2(free, total) + + +cdef CUresult cuMemAlloc(CUdeviceptr* dptr, size_t bytesize) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMemAlloc_v2(dptr, bytesize) + + +cdef CUresult cuMemAllocPitch(CUdeviceptr* dptr, size_t* pPitch, size_t WidthInBytes, size_t Height, unsigned int ElementSizeBytes) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMemAllocPitch_v2(dptr, pPitch, WidthInBytes, Height, ElementSizeBytes) + + +cdef CUresult cuMemFree(CUdeviceptr dptr) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMemFree_v2(dptr) + + +cdef CUresult cuMemGetAddressRange(CUdeviceptr* pbase, size_t* psize, CUdeviceptr dptr) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMemGetAddressRange_v2(pbase, psize, dptr) + + +cdef CUresult cuMemAllocHost(void** pp, size_t bytesize) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMemAllocHost_v2(pp, bytesize) + + +cdef CUresult cuMemFreeHost(void* p) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMemFreeHost(p) + + +cdef CUresult cuMemHostAlloc(void** pp, size_t bytesize, unsigned int Flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMemHostAlloc(pp, bytesize, Flags) + + +cdef CUresult cuMemHostGetDevicePointer(CUdeviceptr* pdptr, void* p, unsigned int Flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMemHostGetDevicePointer_v2(pdptr, p, Flags) + + +cdef CUresult cuMemHostGetFlags(unsigned int* pFlags, void* p) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMemHostGetFlags(pFlags, p) + + +cdef CUresult cuMemAllocManaged(CUdeviceptr* dptr, size_t bytesize, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMemAllocManaged(dptr, bytesize, flags) + + +cdef CUresult cuDeviceRegisterAsyncNotification(CUdevice device, CUasyncCallback callbackFunc, void* userData, CUasyncCallbackHandle* callback) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuDeviceRegisterAsyncNotification(device, callbackFunc, userData, callback) + + +cdef CUresult cuDeviceUnregisterAsyncNotification(CUdevice device, CUasyncCallbackHandle callback) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuDeviceUnregisterAsyncNotification(device, callback) + + +cdef CUresult cuDeviceGetByPCIBusId(CUdevice* dev, const char* pciBusId) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuDeviceGetByPCIBusId(dev, pciBusId) + + +cdef CUresult cuDeviceGetPCIBusId(char* pciBusId, int len, CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuDeviceGetPCIBusId(pciBusId, len, dev) + + +cdef CUresult cuIpcGetEventHandle(CUipcEventHandle* pHandle, CUevent event) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuIpcGetEventHandle(pHandle, event) + + +cdef CUresult cuIpcOpenEventHandle(CUevent* phEvent, CUipcEventHandle handle) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuIpcOpenEventHandle(phEvent, handle) + + +cdef CUresult cuIpcGetMemHandle(CUipcMemHandle* pHandle, CUdeviceptr dptr) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuIpcGetMemHandle(pHandle, dptr) + + +cdef CUresult cuIpcOpenMemHandle(CUdeviceptr* pdptr, CUipcMemHandle handle, unsigned int Flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuIpcOpenMemHandle_v2(pdptr, handle, Flags) + + +cdef CUresult cuIpcCloseMemHandle(CUdeviceptr dptr) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuIpcCloseMemHandle(dptr) + + +cdef CUresult cuMemHostRegister(void* p, size_t bytesize, unsigned int Flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMemHostRegister_v2(p, bytesize, Flags) + + +cdef CUresult cuMemHostUnregister(void* p) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMemHostUnregister(p) + + +cdef CUresult cuMemcpy(CUdeviceptr dst, CUdeviceptr src, size_t ByteCount) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMemcpy(dst, src, ByteCount) + + +cdef CUresult cuMemcpyPeer(CUdeviceptr dstDevice, CUcontext dstContext, CUdeviceptr srcDevice, CUcontext srcContext, size_t ByteCount) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMemcpyPeer(dstDevice, dstContext, srcDevice, srcContext, ByteCount) + + +cdef CUresult cuMemcpyHtoD(CUdeviceptr dstDevice, const void* srcHost, size_t ByteCount) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMemcpyHtoD_v2(dstDevice, srcHost, ByteCount) + + +cdef CUresult cuMemcpyDtoH(void* dstHost, CUdeviceptr srcDevice, size_t ByteCount) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMemcpyDtoH_v2(dstHost, srcDevice, ByteCount) + + +cdef CUresult cuMemcpyDtoD(CUdeviceptr dstDevice, CUdeviceptr srcDevice, size_t ByteCount) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMemcpyDtoD_v2(dstDevice, srcDevice, ByteCount) + + +cdef CUresult cuMemcpyDtoA(CUarray dstArray, size_t dstOffset, CUdeviceptr srcDevice, size_t ByteCount) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMemcpyDtoA_v2(dstArray, dstOffset, srcDevice, ByteCount) + + +cdef CUresult cuMemcpyAtoD(CUdeviceptr dstDevice, CUarray srcArray, size_t srcOffset, size_t ByteCount) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMemcpyAtoD_v2(dstDevice, srcArray, srcOffset, ByteCount) + + +cdef CUresult cuMemcpyHtoA(CUarray dstArray, size_t dstOffset, const void* srcHost, size_t ByteCount) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMemcpyHtoA_v2(dstArray, dstOffset, srcHost, ByteCount) + + +cdef CUresult cuMemcpyAtoH(void* dstHost, CUarray srcArray, size_t srcOffset, size_t ByteCount) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMemcpyAtoH_v2(dstHost, srcArray, srcOffset, ByteCount) + + +cdef CUresult cuMemcpyAtoA(CUarray dstArray, size_t dstOffset, CUarray srcArray, size_t srcOffset, size_t ByteCount) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMemcpyAtoA_v2(dstArray, dstOffset, srcArray, srcOffset, ByteCount) + + +cdef CUresult cuMemcpy2D(const CUDA_MEMCPY2D* pCopy) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMemcpy2D_v2(pCopy) + + +cdef CUresult cuMemcpy2DUnaligned(const CUDA_MEMCPY2D* pCopy) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMemcpy2DUnaligned_v2(pCopy) + + +cdef CUresult cuMemcpy3D(const CUDA_MEMCPY3D* pCopy) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMemcpy3D_v2(pCopy) + + +cdef CUresult cuMemcpy3DPeer(const CUDA_MEMCPY3D_PEER* pCopy) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMemcpy3DPeer(pCopy) + + +cdef CUresult cuMemcpyAsync(CUdeviceptr dst, CUdeviceptr src, size_t ByteCount, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMemcpyAsync(dst, src, ByteCount, hStream) + + +cdef CUresult cuMemcpyPeerAsync(CUdeviceptr dstDevice, CUcontext dstContext, CUdeviceptr srcDevice, CUcontext srcContext, size_t ByteCount, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMemcpyPeerAsync(dstDevice, dstContext, srcDevice, srcContext, ByteCount, hStream) + + +cdef CUresult cuMemcpyHtoDAsync(CUdeviceptr dstDevice, const void* srcHost, size_t ByteCount, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMemcpyHtoDAsync_v2(dstDevice, srcHost, ByteCount, hStream) + + +cdef CUresult cuMemcpyDtoHAsync(void* dstHost, CUdeviceptr srcDevice, size_t ByteCount, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMemcpyDtoHAsync_v2(dstHost, srcDevice, ByteCount, hStream) + + +cdef CUresult cuMemcpyDtoDAsync(CUdeviceptr dstDevice, CUdeviceptr srcDevice, size_t ByteCount, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMemcpyDtoDAsync_v2(dstDevice, srcDevice, ByteCount, hStream) + + +cdef CUresult cuMemcpyHtoAAsync(CUarray dstArray, size_t dstOffset, const void* srcHost, size_t ByteCount, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMemcpyHtoAAsync_v2(dstArray, dstOffset, srcHost, ByteCount, hStream) + + +cdef CUresult cuMemcpyAtoHAsync(void* dstHost, CUarray srcArray, size_t srcOffset, size_t ByteCount, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMemcpyAtoHAsync_v2(dstHost, srcArray, srcOffset, ByteCount, hStream) + + +cdef CUresult cuMemcpy2DAsync(const CUDA_MEMCPY2D* pCopy, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMemcpy2DAsync_v2(pCopy, hStream) + + +cdef CUresult cuMemcpy3DAsync(const CUDA_MEMCPY3D* pCopy, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMemcpy3DAsync_v2(pCopy, hStream) + + +cdef CUresult cuMemcpy3DPeerAsync(const CUDA_MEMCPY3D_PEER* pCopy, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMemcpy3DPeerAsync(pCopy, hStream) + + +cdef CUresult cuMemsetD8(CUdeviceptr dstDevice, unsigned char uc, size_t N) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMemsetD8_v2(dstDevice, uc, N) + + +cdef CUresult cuMemsetD16(CUdeviceptr dstDevice, unsigned short us, size_t N) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMemsetD16_v2(dstDevice, us, N) + + +cdef CUresult cuMemsetD32(CUdeviceptr dstDevice, unsigned int ui, size_t N) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMemsetD32_v2(dstDevice, ui, N) + + +cdef CUresult cuMemsetD2D8(CUdeviceptr dstDevice, size_t dstPitch, unsigned char uc, size_t Width, size_t Height) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMemsetD2D8_v2(dstDevice, dstPitch, uc, Width, Height) + + +cdef CUresult cuMemsetD2D16(CUdeviceptr dstDevice, size_t dstPitch, unsigned short us, size_t Width, size_t Height) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMemsetD2D16_v2(dstDevice, dstPitch, us, Width, Height) + + +cdef CUresult cuMemsetD2D32(CUdeviceptr dstDevice, size_t dstPitch, unsigned int ui, size_t Width, size_t Height) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMemsetD2D32_v2(dstDevice, dstPitch, ui, Width, Height) + + +cdef CUresult cuMemsetD8Async(CUdeviceptr dstDevice, unsigned char uc, size_t N, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMemsetD8Async(dstDevice, uc, N, hStream) + + +cdef CUresult cuMemsetD16Async(CUdeviceptr dstDevice, unsigned short us, size_t N, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMemsetD16Async(dstDevice, us, N, hStream) + + +cdef CUresult cuMemsetD32Async(CUdeviceptr dstDevice, unsigned int ui, size_t N, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMemsetD32Async(dstDevice, ui, N, hStream) + + +cdef CUresult cuMemsetD2D8Async(CUdeviceptr dstDevice, size_t dstPitch, unsigned char uc, size_t Width, size_t Height, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMemsetD2D8Async(dstDevice, dstPitch, uc, Width, Height, hStream) + + +cdef CUresult cuMemsetD2D16Async(CUdeviceptr dstDevice, size_t dstPitch, unsigned short us, size_t Width, size_t Height, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMemsetD2D16Async(dstDevice, dstPitch, us, Width, Height, hStream) + + +cdef CUresult cuMemsetD2D32Async(CUdeviceptr dstDevice, size_t dstPitch, unsigned int ui, size_t Width, size_t Height, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMemsetD2D32Async(dstDevice, dstPitch, ui, Width, Height, hStream) + + +cdef CUresult cuArrayCreate(CUarray* pHandle, const CUDA_ARRAY_DESCRIPTOR* pAllocateArray) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuArrayCreate_v2(pHandle, pAllocateArray) + + +cdef CUresult cuArrayGetDescriptor(CUDA_ARRAY_DESCRIPTOR* pArrayDescriptor, CUarray hArray) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuArrayGetDescriptor_v2(pArrayDescriptor, hArray) + + +cdef CUresult cuArrayGetSparseProperties(CUDA_ARRAY_SPARSE_PROPERTIES* sparseProperties, CUarray array) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuArrayGetSparseProperties(sparseProperties, array) + + +cdef CUresult cuMipmappedArrayGetSparseProperties(CUDA_ARRAY_SPARSE_PROPERTIES* sparseProperties, CUmipmappedArray mipmap) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMipmappedArrayGetSparseProperties(sparseProperties, mipmap) + + +cdef CUresult cuArrayGetMemoryRequirements(CUDA_ARRAY_MEMORY_REQUIREMENTS* memoryRequirements, CUarray array, CUdevice device) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuArrayGetMemoryRequirements(memoryRequirements, array, device) + + +cdef CUresult cuMipmappedArrayGetMemoryRequirements(CUDA_ARRAY_MEMORY_REQUIREMENTS* memoryRequirements, CUmipmappedArray mipmap, CUdevice device) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMipmappedArrayGetMemoryRequirements(memoryRequirements, mipmap, device) + + +cdef CUresult cuArrayGetPlane(CUarray* pPlaneArray, CUarray hArray, unsigned int planeIdx) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuArrayGetPlane(pPlaneArray, hArray, planeIdx) + + +cdef CUresult cuArrayDestroy(CUarray hArray) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuArrayDestroy(hArray) + + +cdef CUresult cuArray3DCreate(CUarray* pHandle, const CUDA_ARRAY3D_DESCRIPTOR* pAllocateArray) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuArray3DCreate_v2(pHandle, pAllocateArray) + + +cdef CUresult cuArray3DGetDescriptor(CUDA_ARRAY3D_DESCRIPTOR* pArrayDescriptor, CUarray hArray) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuArray3DGetDescriptor_v2(pArrayDescriptor, hArray) + + +cdef CUresult cuMipmappedArrayCreate(CUmipmappedArray* pHandle, const CUDA_ARRAY3D_DESCRIPTOR* pMipmappedArrayDesc, unsigned int numMipmapLevels) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMipmappedArrayCreate(pHandle, pMipmappedArrayDesc, numMipmapLevels) + + +cdef CUresult cuMipmappedArrayGetLevel(CUarray* pLevelArray, CUmipmappedArray hMipmappedArray, unsigned int level) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMipmappedArrayGetLevel(pLevelArray, hMipmappedArray, level) + + +cdef CUresult cuMipmappedArrayDestroy(CUmipmappedArray hMipmappedArray) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMipmappedArrayDestroy(hMipmappedArray) + + +cdef CUresult cuMemGetHandleForAddressRange(void* handle, CUdeviceptr dptr, size_t size, CUmemRangeHandleType handleType, unsigned long long flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMemGetHandleForAddressRange(handle, dptr, size, handleType, flags) + + +cdef CUresult cuMemBatchDecompressAsync(CUmemDecompressParams* paramsArray, size_t count, unsigned int flags, size_t* errorIndex, CUstream stream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMemBatchDecompressAsync(paramsArray, count, flags, errorIndex, stream) + + +cdef CUresult cuMemAddressReserve(CUdeviceptr* ptr, size_t size, size_t alignment, CUdeviceptr addr, unsigned long long flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMemAddressReserve(ptr, size, alignment, addr, flags) + + +cdef CUresult cuMemAddressFree(CUdeviceptr ptr, size_t size) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMemAddressFree(ptr, size) + + +cdef CUresult cuMemCreate(CUmemGenericAllocationHandle* handle, size_t size, const CUmemAllocationProp* prop, unsigned long long flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMemCreate(handle, size, prop, flags) + + +cdef CUresult cuMemRelease(CUmemGenericAllocationHandle handle) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMemRelease(handle) + + +cdef CUresult cuMemMap(CUdeviceptr ptr, size_t size, size_t offset, CUmemGenericAllocationHandle handle, unsigned long long flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMemMap(ptr, size, offset, handle, flags) + + +cdef CUresult cuMemMapArrayAsync(CUarrayMapInfo* mapInfoList, unsigned int count, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMemMapArrayAsync(mapInfoList, count, hStream) + + +cdef CUresult cuMemUnmap(CUdeviceptr ptr, size_t size) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMemUnmap(ptr, size) + + +cdef CUresult cuMemSetAccess(CUdeviceptr ptr, size_t size, const CUmemAccessDesc* desc, size_t count) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMemSetAccess(ptr, size, desc, count) + + +cdef CUresult cuMemGetAccess(unsigned long long* flags, const CUmemLocation* location, CUdeviceptr ptr) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMemGetAccess(flags, location, ptr) + + +cdef CUresult cuMemExportToShareableHandle(void* shareableHandle, CUmemGenericAllocationHandle handle, CUmemAllocationHandleType handleType, unsigned long long flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMemExportToShareableHandle(shareableHandle, handle, handleType, flags) + + +cdef CUresult cuMemImportFromShareableHandle(CUmemGenericAllocationHandle* handle, void* osHandle, CUmemAllocationHandleType shHandleType) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMemImportFromShareableHandle(handle, osHandle, shHandleType) + + +cdef CUresult cuMemGetAllocationGranularity(size_t* granularity, const CUmemAllocationProp* prop, CUmemAllocationGranularity_flags option) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMemGetAllocationGranularity(granularity, prop, option) + + +cdef CUresult cuMemGetAllocationPropertiesFromHandle(CUmemAllocationProp* prop, CUmemGenericAllocationHandle handle) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMemGetAllocationPropertiesFromHandle(prop, handle) + + +cdef CUresult cuMemRetainAllocationHandle(CUmemGenericAllocationHandle* handle, void* addr) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMemRetainAllocationHandle(handle, addr) + + +cdef CUresult cuMemFreeAsync(CUdeviceptr dptr, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMemFreeAsync(dptr, hStream) + + +cdef CUresult cuMemAllocAsync(CUdeviceptr* dptr, size_t bytesize, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMemAllocAsync(dptr, bytesize, hStream) + + +cdef CUresult cuMemPoolTrimTo(CUmemoryPool pool, size_t minBytesToKeep) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMemPoolTrimTo(pool, minBytesToKeep) + + +cdef CUresult cuMemPoolSetAttribute(CUmemoryPool pool, CUmemPool_attribute attr, void* value) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMemPoolSetAttribute(pool, attr, value) + + +cdef CUresult cuMemPoolGetAttribute(CUmemoryPool pool, CUmemPool_attribute attr, void* value) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMemPoolGetAttribute(pool, attr, value) + + +cdef CUresult cuMemPoolSetAccess(CUmemoryPool pool, const CUmemAccessDesc* map, size_t count) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMemPoolSetAccess(pool, map, count) + + +cdef CUresult cuMemPoolGetAccess(CUmemAccess_flags* flags, CUmemoryPool memPool, CUmemLocation* location) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMemPoolGetAccess(flags, memPool, location) + + +cdef CUresult cuMemPoolCreate(CUmemoryPool* pool, const CUmemPoolProps* poolProps) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMemPoolCreate(pool, poolProps) + + +cdef CUresult cuMemPoolDestroy(CUmemoryPool pool) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMemPoolDestroy(pool) + + +cdef CUresult cuMemAllocFromPoolAsync(CUdeviceptr* dptr, size_t bytesize, CUmemoryPool pool, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMemAllocFromPoolAsync(dptr, bytesize, pool, hStream) + + +cdef CUresult cuMemPoolExportToShareableHandle(void* handle_out, CUmemoryPool pool, CUmemAllocationHandleType handleType, unsigned long long flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMemPoolExportToShareableHandle(handle_out, pool, handleType, flags) + + +cdef CUresult cuMemPoolImportFromShareableHandle(CUmemoryPool* pool_out, void* handle, CUmemAllocationHandleType handleType, unsigned long long flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMemPoolImportFromShareableHandle(pool_out, handle, handleType, flags) + + +cdef CUresult cuMemPoolExportPointer(CUmemPoolPtrExportData* shareData_out, CUdeviceptr ptr) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMemPoolExportPointer(shareData_out, ptr) + + +cdef CUresult cuMemPoolImportPointer(CUdeviceptr* ptr_out, CUmemoryPool pool, CUmemPoolPtrExportData* shareData) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMemPoolImportPointer(ptr_out, pool, shareData) + + +cdef CUresult cuMulticastCreate(CUmemGenericAllocationHandle* mcHandle, const CUmulticastObjectProp* prop) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMulticastCreate(mcHandle, prop) + + +cdef CUresult cuMulticastAddDevice(CUmemGenericAllocationHandle mcHandle, CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMulticastAddDevice(mcHandle, dev) + + +cdef CUresult cuMulticastBindMem(CUmemGenericAllocationHandle mcHandle, size_t mcOffset, CUmemGenericAllocationHandle memHandle, size_t memOffset, size_t size, unsigned long long flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMulticastBindMem(mcHandle, mcOffset, memHandle, memOffset, size, flags) + + +cdef CUresult cuMulticastBindAddr(CUmemGenericAllocationHandle mcHandle, size_t mcOffset, CUdeviceptr memptr, size_t size, unsigned long long flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMulticastBindAddr(mcHandle, mcOffset, memptr, size, flags) + + +cdef CUresult cuMulticastUnbind(CUmemGenericAllocationHandle mcHandle, CUdevice dev, size_t mcOffset, size_t size) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMulticastUnbind(mcHandle, dev, mcOffset, size) + + +cdef CUresult cuMulticastGetGranularity(size_t* granularity, const CUmulticastObjectProp* prop, CUmulticastGranularity_flags option) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMulticastGetGranularity(granularity, prop, option) + + +cdef CUresult cuPointerGetAttribute(void* data, CUpointer_attribute attribute, CUdeviceptr ptr) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuPointerGetAttribute(data, attribute, ptr) + + +cdef CUresult cuMemPrefetchAsync(CUdeviceptr devPtr, size_t count, CUmemLocation location, unsigned int flags, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMemPrefetchAsync_v2(devPtr, count, location, flags, hStream) + + +cdef CUresult cuMemAdvise(CUdeviceptr devPtr, size_t count, CUmem_advise advice, CUmemLocation location) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMemAdvise_v2(devPtr, count, advice, location) + + +cdef CUresult cuMemRangeGetAttribute(void* data, size_t dataSize, CUmem_range_attribute attribute, CUdeviceptr devPtr, size_t count) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMemRangeGetAttribute(data, dataSize, attribute, devPtr, count) + + +cdef CUresult cuMemRangeGetAttributes(void** data, size_t* dataSizes, CUmem_range_attribute* attributes, size_t numAttributes, CUdeviceptr devPtr, size_t count) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMemRangeGetAttributes(data, dataSizes, attributes, numAttributes, devPtr, count) + + +cdef CUresult cuPointerSetAttribute(const void* value, CUpointer_attribute attribute, CUdeviceptr ptr) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuPointerSetAttribute(value, attribute, ptr) + + +cdef CUresult cuPointerGetAttributes(unsigned int numAttributes, CUpointer_attribute* attributes, void** data, CUdeviceptr ptr) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuPointerGetAttributes(numAttributes, attributes, data, ptr) + + +cdef CUresult cuStreamCreate(CUstream* phStream, unsigned int Flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuStreamCreate(phStream, Flags) + + +cdef CUresult cuStreamCreateWithPriority(CUstream* phStream, unsigned int flags, int priority) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuStreamCreateWithPriority(phStream, flags, priority) + + +cdef CUresult cuStreamGetPriority(CUstream hStream, int* priority) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuStreamGetPriority(hStream, priority) + + +cdef CUresult cuStreamGetDevice(CUstream hStream, CUdevice* device) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuStreamGetDevice(hStream, device) + + +cdef CUresult cuStreamGetFlags(CUstream hStream, unsigned int* flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuStreamGetFlags(hStream, flags) + + +cdef CUresult cuStreamGetId(CUstream hStream, unsigned long long* streamId) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuStreamGetId(hStream, streamId) + + +cdef CUresult cuStreamGetCtx(CUstream hStream, CUcontext* pctx) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuStreamGetCtx(hStream, pctx) + + +cdef CUresult cuStreamGetCtx_v2(CUstream hStream, CUcontext* pCtx, CUgreenCtx* pGreenCtx) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuStreamGetCtx_v2(hStream, pCtx, pGreenCtx) + + +cdef CUresult cuStreamWaitEvent(CUstream hStream, CUevent hEvent, unsigned int Flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuStreamWaitEvent(hStream, hEvent, Flags) + + +cdef CUresult cuStreamAddCallback(CUstream hStream, CUstreamCallback callback, void* userData, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuStreamAddCallback(hStream, callback, userData, flags) + + +cdef CUresult cuStreamBeginCapture(CUstream hStream, CUstreamCaptureMode mode) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuStreamBeginCapture_v2(hStream, mode) + + +cdef CUresult cuStreamBeginCaptureToGraph(CUstream hStream, CUgraph hGraph, const CUgraphNode* dependencies, const CUgraphEdgeData* dependencyData, size_t numDependencies, CUstreamCaptureMode mode) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuStreamBeginCaptureToGraph(hStream, hGraph, dependencies, dependencyData, numDependencies, mode) + + +cdef CUresult cuThreadExchangeStreamCaptureMode(CUstreamCaptureMode* mode) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuThreadExchangeStreamCaptureMode(mode) + + +cdef CUresult cuStreamEndCapture(CUstream hStream, CUgraph* phGraph) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuStreamEndCapture(hStream, phGraph) + + +cdef CUresult cuStreamIsCapturing(CUstream hStream, CUstreamCaptureStatus* captureStatus) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuStreamIsCapturing(hStream, captureStatus) + + +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?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuStreamGetCaptureInfo_v3(hStream, captureStatus_out, id_out, graph_out, dependencies_out, edgeData_out, numDependencies_out) + + +cdef CUresult cuStreamUpdateCaptureDependencies(CUstream hStream, CUgraphNode* dependencies, const CUgraphEdgeData* dependencyData, size_t numDependencies, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuStreamUpdateCaptureDependencies_v2(hStream, dependencies, dependencyData, numDependencies, flags) + + +cdef CUresult cuStreamAttachMemAsync(CUstream hStream, CUdeviceptr dptr, size_t length, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuStreamAttachMemAsync(hStream, dptr, length, flags) + + +cdef CUresult cuStreamQuery(CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuStreamQuery(hStream) + + +cdef CUresult cuStreamSynchronize(CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuStreamSynchronize(hStream) + + +cdef CUresult cuStreamDestroy(CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuStreamDestroy_v2(hStream) + + +cdef CUresult cuStreamCopyAttributes(CUstream dst, CUstream src) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuStreamCopyAttributes(dst, src) + + +cdef CUresult cuStreamGetAttribute(CUstream hStream, CUstreamAttrID attr, CUstreamAttrValue* value_out) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuStreamGetAttribute(hStream, attr, value_out) + + +cdef CUresult cuStreamSetAttribute(CUstream hStream, CUstreamAttrID attr, const CUstreamAttrValue* value) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuStreamSetAttribute(hStream, attr, value) + + +cdef CUresult cuEventCreate(CUevent* phEvent, unsigned int Flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuEventCreate(phEvent, Flags) + + +cdef CUresult cuEventRecord(CUevent hEvent, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuEventRecord(hEvent, hStream) + + +cdef CUresult cuEventRecordWithFlags(CUevent hEvent, CUstream hStream, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuEventRecordWithFlags(hEvent, hStream, flags) + + +cdef CUresult cuEventQuery(CUevent hEvent) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuEventQuery(hEvent) + + +cdef CUresult cuEventSynchronize(CUevent hEvent) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuEventSynchronize(hEvent) + + +cdef CUresult cuEventDestroy(CUevent hEvent) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuEventDestroy_v2(hEvent) + + +cdef CUresult cuEventElapsedTime(float* pMilliseconds, CUevent hStart, CUevent hEnd) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuEventElapsedTime_v2(pMilliseconds, hStart, hEnd) + + +cdef CUresult cuImportExternalMemory(CUexternalMemory* extMem_out, const CUDA_EXTERNAL_MEMORY_HANDLE_DESC* memHandleDesc) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuImportExternalMemory(extMem_out, memHandleDesc) + + +cdef CUresult cuExternalMemoryGetMappedBuffer(CUdeviceptr* devPtr, CUexternalMemory extMem, const CUDA_EXTERNAL_MEMORY_BUFFER_DESC* bufferDesc) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuExternalMemoryGetMappedBuffer(devPtr, extMem, bufferDesc) + + +cdef CUresult cuExternalMemoryGetMappedMipmappedArray(CUmipmappedArray* mipmap, CUexternalMemory extMem, const CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC* mipmapDesc) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuExternalMemoryGetMappedMipmappedArray(mipmap, extMem, mipmapDesc) + + +cdef CUresult cuDestroyExternalMemory(CUexternalMemory extMem) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuDestroyExternalMemory(extMem) + + +cdef CUresult cuImportExternalSemaphore(CUexternalSemaphore* extSem_out, const CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC* semHandleDesc) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuImportExternalSemaphore(extSem_out, semHandleDesc) + + +cdef CUresult cuSignalExternalSemaphoresAsync(const CUexternalSemaphore* extSemArray, const CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS* paramsArray, unsigned int numExtSems, CUstream stream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuSignalExternalSemaphoresAsync(extSemArray, paramsArray, numExtSems, stream) + + +cdef CUresult cuWaitExternalSemaphoresAsync(const CUexternalSemaphore* extSemArray, const CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS* paramsArray, unsigned int numExtSems, CUstream stream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuWaitExternalSemaphoresAsync(extSemArray, paramsArray, numExtSems, stream) + + +cdef CUresult cuDestroyExternalSemaphore(CUexternalSemaphore extSem) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuDestroyExternalSemaphore(extSem) + + +cdef CUresult cuStreamWaitValue32(CUstream stream, CUdeviceptr addr, cuuint32_t value, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuStreamWaitValue32_v2(stream, addr, value, flags) + + +cdef CUresult cuStreamWaitValue64(CUstream stream, CUdeviceptr addr, cuuint64_t value, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuStreamWaitValue64_v2(stream, addr, value, flags) + + +cdef CUresult cuStreamWriteValue32(CUstream stream, CUdeviceptr addr, cuuint32_t value, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuStreamWriteValue32_v2(stream, addr, value, flags) + + +cdef CUresult cuStreamWriteValue64(CUstream stream, CUdeviceptr addr, cuuint64_t value, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuStreamWriteValue64_v2(stream, addr, value, flags) + + +cdef CUresult cuStreamBatchMemOp(CUstream stream, unsigned int count, CUstreamBatchMemOpParams* paramArray, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuStreamBatchMemOp_v2(stream, count, paramArray, flags) + + +cdef CUresult cuFuncGetAttribute(int* pi, CUfunction_attribute attrib, CUfunction hfunc) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuFuncGetAttribute(pi, attrib, hfunc) + + +cdef CUresult cuFuncSetAttribute(CUfunction hfunc, CUfunction_attribute attrib, int value) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuFuncSetAttribute(hfunc, attrib, value) + + +cdef CUresult cuFuncSetCacheConfig(CUfunction hfunc, CUfunc_cache config) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuFuncSetCacheConfig(hfunc, config) + + +cdef CUresult cuFuncGetModule(CUmodule* hmod, CUfunction hfunc) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuFuncGetModule(hmod, hfunc) + + +cdef CUresult cuFuncGetName(const char** name, CUfunction hfunc) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuFuncGetName(name, hfunc) + + +cdef CUresult cuFuncGetParamInfo(CUfunction func, size_t paramIndex, size_t* paramOffset, size_t* paramSize) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuFuncGetParamInfo(func, paramIndex, paramOffset, paramSize) + + +cdef CUresult cuFuncIsLoaded(CUfunctionLoadingState* state, CUfunction function) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuFuncIsLoaded(state, function) + + +cdef CUresult cuFuncLoad(CUfunction function) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuFuncLoad(function) + + +cdef CUresult cuLaunchKernel(CUfunction f, unsigned int gridDimX, unsigned int gridDimY, unsigned int gridDimZ, unsigned int blockDimX, unsigned int blockDimY, unsigned int blockDimZ, unsigned int sharedMemBytes, CUstream hStream, void** kernelParams, void** extra) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuLaunchKernel(f, gridDimX, gridDimY, gridDimZ, blockDimX, blockDimY, blockDimZ, sharedMemBytes, hStream, kernelParams, extra) + + +cdef CUresult cuLaunchKernelEx(const CUlaunchConfig* config, CUfunction f, void** kernelParams, void** extra) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuLaunchKernelEx(config, f, kernelParams, extra) + + +cdef CUresult cuLaunchCooperativeKernel(CUfunction f, unsigned int gridDimX, unsigned int gridDimY, unsigned int gridDimZ, unsigned int blockDimX, unsigned int blockDimY, unsigned int blockDimZ, unsigned int sharedMemBytes, CUstream hStream, void** kernelParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuLaunchCooperativeKernel(f, gridDimX, gridDimY, gridDimZ, blockDimX, blockDimY, blockDimZ, sharedMemBytes, hStream, kernelParams) + + +cdef CUresult cuLaunchCooperativeKernelMultiDevice(CUDA_LAUNCH_PARAMS* launchParamsList, unsigned int numDevices, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuLaunchCooperativeKernelMultiDevice(launchParamsList, numDevices, flags) + + +cdef CUresult cuLaunchHostFunc(CUstream hStream, CUhostFn fn, void* userData) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuLaunchHostFunc(hStream, fn, userData) + + +cdef CUresult cuFuncSetBlockShape(CUfunction hfunc, int x, int y, int z) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuFuncSetBlockShape(hfunc, x, y, z) + + +cdef CUresult cuFuncSetSharedSize(CUfunction hfunc, unsigned int bytes) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuFuncSetSharedSize(hfunc, bytes) + + +cdef CUresult cuParamSetSize(CUfunction hfunc, unsigned int numbytes) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuParamSetSize(hfunc, numbytes) + + +cdef CUresult cuParamSeti(CUfunction hfunc, int offset, unsigned int value) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuParamSeti(hfunc, offset, value) + + +cdef CUresult cuParamSetf(CUfunction hfunc, int offset, float value) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuParamSetf(hfunc, offset, value) + + +cdef CUresult cuParamSetv(CUfunction hfunc, int offset, void* ptr, unsigned int numbytes) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuParamSetv(hfunc, offset, ptr, numbytes) + + +cdef CUresult cuLaunch(CUfunction f) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuLaunch(f) + + +cdef CUresult cuLaunchGrid(CUfunction f, int grid_width, int grid_height) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuLaunchGrid(f, grid_width, grid_height) + + +cdef CUresult cuLaunchGridAsync(CUfunction f, int grid_width, int grid_height, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuLaunchGridAsync(f, grid_width, grid_height, hStream) + + +cdef CUresult cuParamSetTexRef(CUfunction hfunc, int texunit, CUtexref hTexRef) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuParamSetTexRef(hfunc, texunit, hTexRef) + + +cdef CUresult cuFuncSetSharedMemConfig(CUfunction hfunc, CUsharedconfig config) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuFuncSetSharedMemConfig(hfunc, config) + + +cdef CUresult cuGraphCreate(CUgraph* phGraph, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGraphCreate(phGraph, flags) + + +cdef CUresult cuGraphAddKernelNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, const CUDA_KERNEL_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGraphAddKernelNode_v2(phGraphNode, hGraph, dependencies, numDependencies, nodeParams) + + +cdef CUresult cuGraphKernelNodeGetParams(CUgraphNode hNode, CUDA_KERNEL_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGraphKernelNodeGetParams_v2(hNode, nodeParams) + + +cdef CUresult cuGraphKernelNodeSetParams(CUgraphNode hNode, const CUDA_KERNEL_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGraphKernelNodeSetParams_v2(hNode, nodeParams) + + +cdef CUresult cuGraphAddMemcpyNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, const CUDA_MEMCPY3D* copyParams, CUcontext ctx) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGraphAddMemcpyNode(phGraphNode, hGraph, dependencies, numDependencies, copyParams, ctx) + + +cdef CUresult cuGraphMemcpyNodeGetParams(CUgraphNode hNode, CUDA_MEMCPY3D* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGraphMemcpyNodeGetParams(hNode, nodeParams) + + +cdef CUresult cuGraphMemcpyNodeSetParams(CUgraphNode hNode, const CUDA_MEMCPY3D* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGraphMemcpyNodeSetParams(hNode, nodeParams) + + +cdef CUresult cuGraphAddMemsetNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, const CUDA_MEMSET_NODE_PARAMS* memsetParams, CUcontext ctx) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGraphAddMemsetNode(phGraphNode, hGraph, dependencies, numDependencies, memsetParams, ctx) + + +cdef CUresult cuGraphMemsetNodeGetParams(CUgraphNode hNode, CUDA_MEMSET_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGraphMemsetNodeGetParams(hNode, nodeParams) + + +cdef CUresult cuGraphMemsetNodeSetParams(CUgraphNode hNode, const CUDA_MEMSET_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGraphMemsetNodeSetParams(hNode, nodeParams) + + +cdef CUresult cuGraphAddHostNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, const CUDA_HOST_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGraphAddHostNode(phGraphNode, hGraph, dependencies, numDependencies, nodeParams) + + +cdef CUresult cuGraphHostNodeGetParams(CUgraphNode hNode, CUDA_HOST_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGraphHostNodeGetParams(hNode, nodeParams) + + +cdef CUresult cuGraphHostNodeSetParams(CUgraphNode hNode, const CUDA_HOST_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGraphHostNodeSetParams(hNode, nodeParams) + + +cdef CUresult cuGraphAddChildGraphNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, CUgraph childGraph) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGraphAddChildGraphNode(phGraphNode, hGraph, dependencies, numDependencies, childGraph) + + +cdef CUresult cuGraphChildGraphNodeGetGraph(CUgraphNode hNode, CUgraph* phGraph) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGraphChildGraphNodeGetGraph(hNode, phGraph) + + +cdef CUresult cuGraphAddEmptyNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGraphAddEmptyNode(phGraphNode, hGraph, dependencies, numDependencies) + + +cdef CUresult cuGraphAddEventRecordNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, CUevent event) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGraphAddEventRecordNode(phGraphNode, hGraph, dependencies, numDependencies, event) + + +cdef CUresult cuGraphEventRecordNodeGetEvent(CUgraphNode hNode, CUevent* event_out) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGraphEventRecordNodeGetEvent(hNode, event_out) + + +cdef CUresult cuGraphEventRecordNodeSetEvent(CUgraphNode hNode, CUevent event) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGraphEventRecordNodeSetEvent(hNode, event) + + +cdef CUresult cuGraphAddEventWaitNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, CUevent event) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGraphAddEventWaitNode(phGraphNode, hGraph, dependencies, numDependencies, event) + + +cdef CUresult cuGraphEventWaitNodeGetEvent(CUgraphNode hNode, CUevent* event_out) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGraphEventWaitNodeGetEvent(hNode, event_out) + + +cdef CUresult cuGraphEventWaitNodeSetEvent(CUgraphNode hNode, CUevent event) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGraphEventWaitNodeSetEvent(hNode, event) + + +cdef CUresult cuGraphAddExternalSemaphoresSignalNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, const CUDA_EXT_SEM_SIGNAL_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGraphAddExternalSemaphoresSignalNode(phGraphNode, hGraph, dependencies, numDependencies, nodeParams) + + +cdef CUresult cuGraphExternalSemaphoresSignalNodeGetParams(CUgraphNode hNode, CUDA_EXT_SEM_SIGNAL_NODE_PARAMS* params_out) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGraphExternalSemaphoresSignalNodeGetParams(hNode, params_out) + + +cdef CUresult cuGraphExternalSemaphoresSignalNodeSetParams(CUgraphNode hNode, const CUDA_EXT_SEM_SIGNAL_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGraphExternalSemaphoresSignalNodeSetParams(hNode, nodeParams) + + +cdef CUresult cuGraphAddExternalSemaphoresWaitNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, const CUDA_EXT_SEM_WAIT_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGraphAddExternalSemaphoresWaitNode(phGraphNode, hGraph, dependencies, numDependencies, nodeParams) + + +cdef CUresult cuGraphExternalSemaphoresWaitNodeGetParams(CUgraphNode hNode, CUDA_EXT_SEM_WAIT_NODE_PARAMS* params_out) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGraphExternalSemaphoresWaitNodeGetParams(hNode, params_out) + + +cdef CUresult cuGraphExternalSemaphoresWaitNodeSetParams(CUgraphNode hNode, const CUDA_EXT_SEM_WAIT_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGraphExternalSemaphoresWaitNodeSetParams(hNode, nodeParams) + + +cdef CUresult cuGraphAddBatchMemOpNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, const CUDA_BATCH_MEM_OP_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGraphAddBatchMemOpNode(phGraphNode, hGraph, dependencies, numDependencies, nodeParams) + + +cdef CUresult cuGraphBatchMemOpNodeGetParams(CUgraphNode hNode, CUDA_BATCH_MEM_OP_NODE_PARAMS* nodeParams_out) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGraphBatchMemOpNodeGetParams(hNode, nodeParams_out) + + +cdef CUresult cuGraphBatchMemOpNodeSetParams(CUgraphNode hNode, const CUDA_BATCH_MEM_OP_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGraphBatchMemOpNodeSetParams(hNode, nodeParams) + + +cdef CUresult cuGraphExecBatchMemOpNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_BATCH_MEM_OP_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGraphExecBatchMemOpNodeSetParams(hGraphExec, hNode, nodeParams) + + +cdef CUresult cuGraphAddMemAllocNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, CUDA_MEM_ALLOC_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGraphAddMemAllocNode(phGraphNode, hGraph, dependencies, numDependencies, nodeParams) + + +cdef CUresult cuGraphMemAllocNodeGetParams(CUgraphNode hNode, CUDA_MEM_ALLOC_NODE_PARAMS* params_out) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGraphMemAllocNodeGetParams(hNode, params_out) + + +cdef CUresult cuGraphAddMemFreeNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, CUdeviceptr dptr) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGraphAddMemFreeNode(phGraphNode, hGraph, dependencies, numDependencies, dptr) + + +cdef CUresult cuGraphMemFreeNodeGetParams(CUgraphNode hNode, CUdeviceptr* dptr_out) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGraphMemFreeNodeGetParams(hNode, dptr_out) + + +cdef CUresult cuDeviceGraphMemTrim(CUdevice device) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuDeviceGraphMemTrim(device) + + +cdef CUresult cuDeviceGetGraphMemAttribute(CUdevice device, CUgraphMem_attribute attr, void* value) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuDeviceGetGraphMemAttribute(device, attr, value) + + +cdef CUresult cuDeviceSetGraphMemAttribute(CUdevice device, CUgraphMem_attribute attr, void* value) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuDeviceSetGraphMemAttribute(device, attr, value) + + +cdef CUresult cuGraphClone(CUgraph* phGraphClone, CUgraph originalGraph) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGraphClone(phGraphClone, originalGraph) + + +cdef CUresult cuGraphNodeFindInClone(CUgraphNode* phNode, CUgraphNode hOriginalNode, CUgraph hClonedGraph) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGraphNodeFindInClone(phNode, hOriginalNode, hClonedGraph) + + +cdef CUresult cuGraphNodeGetType(CUgraphNode hNode, CUgraphNodeType* type) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGraphNodeGetType(hNode, type) + + +cdef CUresult cuGraphGetNodes(CUgraph hGraph, CUgraphNode* nodes, size_t* numNodes) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGraphGetNodes(hGraph, nodes, numNodes) + + +cdef CUresult cuGraphGetRootNodes(CUgraph hGraph, CUgraphNode* rootNodes, size_t* numRootNodes) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGraphGetRootNodes(hGraph, rootNodes, numRootNodes) + + +cdef CUresult cuGraphGetEdges(CUgraph hGraph, CUgraphNode* from_, CUgraphNode* to, CUgraphEdgeData* edgeData, size_t* numEdges) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGraphGetEdges_v2(hGraph, from_, to, edgeData, numEdges) + + +cdef CUresult cuGraphNodeGetDependencies(CUgraphNode hNode, CUgraphNode* dependencies, CUgraphEdgeData* edgeData, size_t* numDependencies) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGraphNodeGetDependencies_v2(hNode, dependencies, edgeData, numDependencies) + + +cdef CUresult cuGraphNodeGetDependentNodes(CUgraphNode hNode, CUgraphNode* dependentNodes, CUgraphEdgeData* edgeData, size_t* numDependentNodes) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGraphNodeGetDependentNodes_v2(hNode, dependentNodes, edgeData, numDependentNodes) + + +cdef CUresult cuGraphAddDependencies(CUgraph hGraph, const CUgraphNode* from_, const CUgraphNode* to, const CUgraphEdgeData* edgeData, size_t numDependencies) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGraphAddDependencies_v2(hGraph, from_, to, edgeData, numDependencies) + + +cdef CUresult cuGraphRemoveDependencies(CUgraph hGraph, const CUgraphNode* from_, const CUgraphNode* to, const CUgraphEdgeData* edgeData, size_t numDependencies) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGraphRemoveDependencies_v2(hGraph, from_, to, edgeData, numDependencies) + + +cdef CUresult cuGraphDestroyNode(CUgraphNode hNode) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGraphDestroyNode(hNode) + + +cdef CUresult cuGraphInstantiate(CUgraphExec* phGraphExec, CUgraph hGraph, unsigned long long flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGraphInstantiateWithFlags(phGraphExec, hGraph, flags) + + +cdef CUresult cuGraphInstantiateWithParams(CUgraphExec* phGraphExec, CUgraph hGraph, CUDA_GRAPH_INSTANTIATE_PARAMS* instantiateParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGraphInstantiateWithParams(phGraphExec, hGraph, instantiateParams) + + +cdef CUresult cuGraphExecGetFlags(CUgraphExec hGraphExec, cuuint64_t* flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGraphExecGetFlags(hGraphExec, flags) + + +cdef CUresult cuGraphExecKernelNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_KERNEL_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGraphExecKernelNodeSetParams_v2(hGraphExec, hNode, nodeParams) + + +cdef CUresult cuGraphExecMemcpyNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_MEMCPY3D* copyParams, CUcontext ctx) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGraphExecMemcpyNodeSetParams(hGraphExec, hNode, copyParams, ctx) + + +cdef CUresult cuGraphExecMemsetNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_MEMSET_NODE_PARAMS* memsetParams, CUcontext ctx) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGraphExecMemsetNodeSetParams(hGraphExec, hNode, memsetParams, ctx) + + +cdef CUresult cuGraphExecHostNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_HOST_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGraphExecHostNodeSetParams(hGraphExec, hNode, nodeParams) + + +cdef CUresult cuGraphExecChildGraphNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, CUgraph childGraph) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGraphExecChildGraphNodeSetParams(hGraphExec, hNode, childGraph) + + +cdef CUresult cuGraphExecEventRecordNodeSetEvent(CUgraphExec hGraphExec, CUgraphNode hNode, CUevent event) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGraphExecEventRecordNodeSetEvent(hGraphExec, hNode, event) + + +cdef CUresult cuGraphExecEventWaitNodeSetEvent(CUgraphExec hGraphExec, CUgraphNode hNode, CUevent event) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGraphExecEventWaitNodeSetEvent(hGraphExec, hNode, event) + + +cdef CUresult cuGraphExecExternalSemaphoresSignalNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_EXT_SEM_SIGNAL_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGraphExecExternalSemaphoresSignalNodeSetParams(hGraphExec, hNode, nodeParams) + + +cdef CUresult cuGraphExecExternalSemaphoresWaitNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_EXT_SEM_WAIT_NODE_PARAMS* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGraphExecExternalSemaphoresWaitNodeSetParams(hGraphExec, hNode, nodeParams) + + +cdef CUresult cuGraphNodeSetEnabled(CUgraphExec hGraphExec, CUgraphNode hNode, unsigned int isEnabled) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGraphNodeSetEnabled(hGraphExec, hNode, isEnabled) + + +cdef CUresult cuGraphNodeGetEnabled(CUgraphExec hGraphExec, CUgraphNode hNode, unsigned int* isEnabled) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGraphNodeGetEnabled(hGraphExec, hNode, isEnabled) + + +cdef CUresult cuGraphUpload(CUgraphExec hGraphExec, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGraphUpload(hGraphExec, hStream) + + +cdef CUresult cuGraphLaunch(CUgraphExec hGraphExec, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGraphLaunch(hGraphExec, hStream) + + +cdef CUresult cuGraphExecDestroy(CUgraphExec hGraphExec) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGraphExecDestroy(hGraphExec) + + +cdef CUresult cuGraphDestroy(CUgraph hGraph) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGraphDestroy(hGraph) + + +cdef CUresult cuGraphExecUpdate(CUgraphExec hGraphExec, CUgraph hGraph, CUgraphExecUpdateResultInfo* resultInfo) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGraphExecUpdate_v2(hGraphExec, hGraph, resultInfo) + + +cdef CUresult cuGraphKernelNodeCopyAttributes(CUgraphNode dst, CUgraphNode src) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGraphKernelNodeCopyAttributes(dst, src) + + +cdef CUresult cuGraphKernelNodeGetAttribute(CUgraphNode hNode, CUkernelNodeAttrID attr, CUkernelNodeAttrValue* value_out) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGraphKernelNodeGetAttribute(hNode, attr, value_out) + + +cdef CUresult cuGraphKernelNodeSetAttribute(CUgraphNode hNode, CUkernelNodeAttrID attr, const CUkernelNodeAttrValue* value) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGraphKernelNodeSetAttribute(hNode, attr, value) + + +cdef CUresult cuGraphDebugDotPrint(CUgraph hGraph, const char* path, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGraphDebugDotPrint(hGraph, path, flags) + + +cdef CUresult cuUserObjectCreate(CUuserObject* object_out, void* ptr, CUhostFn destroy, unsigned int initialRefcount, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuUserObjectCreate(object_out, ptr, destroy, initialRefcount, flags) + + +cdef CUresult cuUserObjectRetain(CUuserObject object, unsigned int count) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuUserObjectRetain(object, count) + + +cdef CUresult cuUserObjectRelease(CUuserObject object, unsigned int count) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuUserObjectRelease(object, count) + + +cdef CUresult cuGraphRetainUserObject(CUgraph graph, CUuserObject object, unsigned int count, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGraphRetainUserObject(graph, object, count, flags) + + +cdef CUresult cuGraphReleaseUserObject(CUgraph graph, CUuserObject object, unsigned int count) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGraphReleaseUserObject(graph, object, count) + + +cdef CUresult cuGraphAddNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, const CUgraphEdgeData* dependencyData, size_t numDependencies, CUgraphNodeParams* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGraphAddNode_v2(phGraphNode, hGraph, dependencies, dependencyData, numDependencies, nodeParams) + + +cdef CUresult cuGraphNodeSetParams(CUgraphNode hNode, CUgraphNodeParams* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGraphNodeSetParams(hNode, nodeParams) + + +cdef CUresult cuGraphExecNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, CUgraphNodeParams* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGraphExecNodeSetParams(hGraphExec, hNode, nodeParams) + + +cdef CUresult cuGraphConditionalHandleCreate(CUgraphConditionalHandle* pHandle_out, CUgraph hGraph, CUcontext ctx, unsigned int defaultLaunchValue, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGraphConditionalHandleCreate(pHandle_out, hGraph, ctx, defaultLaunchValue, flags) + + +cdef CUresult cuOccupancyMaxActiveBlocksPerMultiprocessor(int* numBlocks, CUfunction func, int blockSize, size_t dynamicSMemSize) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuOccupancyMaxActiveBlocksPerMultiprocessor(numBlocks, func, blockSize, dynamicSMemSize) + + +cdef CUresult cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(int* numBlocks, CUfunction func, int blockSize, size_t dynamicSMemSize, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(numBlocks, func, blockSize, dynamicSMemSize, flags) + + +cdef CUresult cuOccupancyMaxPotentialBlockSize(int* minGridSize, int* blockSize, CUfunction func, CUoccupancyB2DSize blockSizeToDynamicSMemSize, size_t dynamicSMemSize, int blockSizeLimit) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuOccupancyMaxPotentialBlockSize(minGridSize, blockSize, func, blockSizeToDynamicSMemSize, dynamicSMemSize, blockSizeLimit) + + +cdef CUresult cuOccupancyMaxPotentialBlockSizeWithFlags(int* minGridSize, int* blockSize, CUfunction func, CUoccupancyB2DSize blockSizeToDynamicSMemSize, size_t dynamicSMemSize, int blockSizeLimit, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuOccupancyMaxPotentialBlockSizeWithFlags(minGridSize, blockSize, func, blockSizeToDynamicSMemSize, dynamicSMemSize, blockSizeLimit, flags) + + +cdef CUresult cuOccupancyAvailableDynamicSMemPerBlock(size_t* dynamicSmemSize, CUfunction func, int numBlocks, int blockSize) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuOccupancyAvailableDynamicSMemPerBlock(dynamicSmemSize, func, numBlocks, blockSize) + + +cdef CUresult cuOccupancyMaxPotentialClusterSize(int* clusterSize, CUfunction func, const CUlaunchConfig* config) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuOccupancyMaxPotentialClusterSize(clusterSize, func, config) + + +cdef CUresult cuOccupancyMaxActiveClusters(int* numClusters, CUfunction func, const CUlaunchConfig* config) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuOccupancyMaxActiveClusters(numClusters, func, config) + + +cdef CUresult cuTexRefSetArray(CUtexref hTexRef, CUarray hArray, unsigned int Flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuTexRefSetArray(hTexRef, hArray, Flags) + + +cdef CUresult cuTexRefSetMipmappedArray(CUtexref hTexRef, CUmipmappedArray hMipmappedArray, unsigned int Flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuTexRefSetMipmappedArray(hTexRef, hMipmappedArray, Flags) + + +cdef CUresult cuTexRefSetAddress(size_t* ByteOffset, CUtexref hTexRef, CUdeviceptr dptr, size_t bytes) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuTexRefSetAddress_v2(ByteOffset, hTexRef, dptr, bytes) + + +cdef CUresult cuTexRefSetAddress2D(CUtexref hTexRef, const CUDA_ARRAY_DESCRIPTOR* desc, CUdeviceptr dptr, size_t Pitch) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuTexRefSetAddress2D_v3(hTexRef, desc, dptr, Pitch) + + +cdef CUresult cuTexRefSetFormat(CUtexref hTexRef, CUarray_format fmt, int NumPackedComponents) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuTexRefSetFormat(hTexRef, fmt, NumPackedComponents) + + +cdef CUresult cuTexRefSetAddressMode(CUtexref hTexRef, int dim, CUaddress_mode am) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuTexRefSetAddressMode(hTexRef, dim, am) + + +cdef CUresult cuTexRefSetFilterMode(CUtexref hTexRef, CUfilter_mode fm) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuTexRefSetFilterMode(hTexRef, fm) + + +cdef CUresult cuTexRefSetMipmapFilterMode(CUtexref hTexRef, CUfilter_mode fm) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuTexRefSetMipmapFilterMode(hTexRef, fm) + + +cdef CUresult cuTexRefSetMipmapLevelBias(CUtexref hTexRef, float bias) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuTexRefSetMipmapLevelBias(hTexRef, bias) + + +cdef CUresult cuTexRefSetMipmapLevelClamp(CUtexref hTexRef, float minMipmapLevelClamp, float maxMipmapLevelClamp) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuTexRefSetMipmapLevelClamp(hTexRef, minMipmapLevelClamp, maxMipmapLevelClamp) + + +cdef CUresult cuTexRefSetMaxAnisotropy(CUtexref hTexRef, unsigned int maxAniso) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuTexRefSetMaxAnisotropy(hTexRef, maxAniso) + + +cdef CUresult cuTexRefSetBorderColor(CUtexref hTexRef, float* pBorderColor) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuTexRefSetBorderColor(hTexRef, pBorderColor) + + +cdef CUresult cuTexRefSetFlags(CUtexref hTexRef, unsigned int Flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuTexRefSetFlags(hTexRef, Flags) + + +cdef CUresult cuTexRefGetAddress(CUdeviceptr* pdptr, CUtexref hTexRef) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuTexRefGetAddress_v2(pdptr, hTexRef) + + +cdef CUresult cuTexRefGetArray(CUarray* phArray, CUtexref hTexRef) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuTexRefGetArray(phArray, hTexRef) + + +cdef CUresult cuTexRefGetMipmappedArray(CUmipmappedArray* phMipmappedArray, CUtexref hTexRef) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuTexRefGetMipmappedArray(phMipmappedArray, hTexRef) + + +cdef CUresult cuTexRefGetAddressMode(CUaddress_mode* pam, CUtexref hTexRef, int dim) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuTexRefGetAddressMode(pam, hTexRef, dim) + + +cdef CUresult cuTexRefGetFilterMode(CUfilter_mode* pfm, CUtexref hTexRef) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuTexRefGetFilterMode(pfm, hTexRef) + + +cdef CUresult cuTexRefGetFormat(CUarray_format* pFormat, int* pNumChannels, CUtexref hTexRef) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuTexRefGetFormat(pFormat, pNumChannels, hTexRef) + + +cdef CUresult cuTexRefGetMipmapFilterMode(CUfilter_mode* pfm, CUtexref hTexRef) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuTexRefGetMipmapFilterMode(pfm, hTexRef) + + +cdef CUresult cuTexRefGetMipmapLevelBias(float* pbias, CUtexref hTexRef) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuTexRefGetMipmapLevelBias(pbias, hTexRef) + + +cdef CUresult cuTexRefGetMipmapLevelClamp(float* pminMipmapLevelClamp, float* pmaxMipmapLevelClamp, CUtexref hTexRef) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuTexRefGetMipmapLevelClamp(pminMipmapLevelClamp, pmaxMipmapLevelClamp, hTexRef) + + +cdef CUresult cuTexRefGetMaxAnisotropy(int* pmaxAniso, CUtexref hTexRef) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuTexRefGetMaxAnisotropy(pmaxAniso, hTexRef) + + +cdef CUresult cuTexRefGetBorderColor(float* pBorderColor, CUtexref hTexRef) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuTexRefGetBorderColor(pBorderColor, hTexRef) + + +cdef CUresult cuTexRefGetFlags(unsigned int* pFlags, CUtexref hTexRef) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuTexRefGetFlags(pFlags, hTexRef) + + +cdef CUresult cuTexRefCreate(CUtexref* pTexRef) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuTexRefCreate(pTexRef) + + +cdef CUresult cuTexRefDestroy(CUtexref hTexRef) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuTexRefDestroy(hTexRef) + + +cdef CUresult cuSurfRefSetArray(CUsurfref hSurfRef, CUarray hArray, unsigned int Flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuSurfRefSetArray(hSurfRef, hArray, Flags) + + +cdef CUresult cuSurfRefGetArray(CUarray* phArray, CUsurfref hSurfRef) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuSurfRefGetArray(phArray, hSurfRef) + + +cdef CUresult cuTexObjectCreate(CUtexObject* pTexObject, const CUDA_RESOURCE_DESC* pResDesc, const CUDA_TEXTURE_DESC* pTexDesc, const CUDA_RESOURCE_VIEW_DESC* pResViewDesc) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuTexObjectCreate(pTexObject, pResDesc, pTexDesc, pResViewDesc) + + +cdef CUresult cuTexObjectDestroy(CUtexObject texObject) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuTexObjectDestroy(texObject) + + +cdef CUresult cuTexObjectGetResourceDesc(CUDA_RESOURCE_DESC* pResDesc, CUtexObject texObject) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuTexObjectGetResourceDesc(pResDesc, texObject) + + +cdef CUresult cuTexObjectGetTextureDesc(CUDA_TEXTURE_DESC* pTexDesc, CUtexObject texObject) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuTexObjectGetTextureDesc(pTexDesc, texObject) + + +cdef CUresult cuTexObjectGetResourceViewDesc(CUDA_RESOURCE_VIEW_DESC* pResViewDesc, CUtexObject texObject) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuTexObjectGetResourceViewDesc(pResViewDesc, texObject) + + +cdef CUresult cuSurfObjectCreate(CUsurfObject* pSurfObject, const CUDA_RESOURCE_DESC* pResDesc) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuSurfObjectCreate(pSurfObject, pResDesc) + + +cdef CUresult cuSurfObjectDestroy(CUsurfObject surfObject) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuSurfObjectDestroy(surfObject) + + +cdef CUresult cuSurfObjectGetResourceDesc(CUDA_RESOURCE_DESC* pResDesc, CUsurfObject surfObject) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuSurfObjectGetResourceDesc(pResDesc, surfObject) + + +cdef CUresult cuTensorMapEncodeTiled(CUtensorMap* tensorMap, CUtensorMapDataType tensorDataType, cuuint32_t tensorRank, void* globalAddress, const cuuint64_t* globalDim, const cuuint64_t* globalStrides, const cuuint32_t* boxDim, const cuuint32_t* elementStrides, CUtensorMapInterleave interleave, CUtensorMapSwizzle swizzle, CUtensorMapL2promotion l2Promotion, CUtensorMapFloatOOBfill oobFill) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuTensorMapEncodeTiled(tensorMap, tensorDataType, tensorRank, globalAddress, globalDim, globalStrides, boxDim, elementStrides, interleave, swizzle, l2Promotion, oobFill) + + +cdef CUresult cuTensorMapEncodeIm2col(CUtensorMap* tensorMap, CUtensorMapDataType tensorDataType, cuuint32_t tensorRank, void* globalAddress, const cuuint64_t* globalDim, const cuuint64_t* globalStrides, const int* pixelBoxLowerCorner, const int* pixelBoxUpperCorner, cuuint32_t channelsPerPixel, cuuint32_t pixelsPerColumn, const cuuint32_t* elementStrides, CUtensorMapInterleave interleave, CUtensorMapSwizzle swizzle, CUtensorMapL2promotion l2Promotion, CUtensorMapFloatOOBfill oobFill) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuTensorMapEncodeIm2col(tensorMap, tensorDataType, tensorRank, globalAddress, globalDim, globalStrides, pixelBoxLowerCorner, pixelBoxUpperCorner, channelsPerPixel, pixelsPerColumn, elementStrides, interleave, swizzle, l2Promotion, oobFill) + + +cdef CUresult cuTensorMapEncodeIm2colWide(CUtensorMap* tensorMap, CUtensorMapDataType tensorDataType, cuuint32_t tensorRank, void* globalAddress, const cuuint64_t* globalDim, const cuuint64_t* globalStrides, int pixelBoxLowerCornerWidth, int pixelBoxUpperCornerWidth, cuuint32_t channelsPerPixel, cuuint32_t pixelsPerColumn, const cuuint32_t* elementStrides, CUtensorMapInterleave interleave, CUtensorMapIm2ColWideMode mode, CUtensorMapSwizzle swizzle, CUtensorMapL2promotion l2Promotion, CUtensorMapFloatOOBfill oobFill) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuTensorMapEncodeIm2colWide(tensorMap, tensorDataType, tensorRank, globalAddress, globalDim, globalStrides, pixelBoxLowerCornerWidth, pixelBoxUpperCornerWidth, channelsPerPixel, pixelsPerColumn, elementStrides, interleave, mode, swizzle, l2Promotion, oobFill) + + +cdef CUresult cuTensorMapReplaceAddress(CUtensorMap* tensorMap, void* globalAddress) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuTensorMapReplaceAddress(tensorMap, globalAddress) + + +cdef CUresult cuDeviceCanAccessPeer(int* canAccessPeer, CUdevice dev, CUdevice peerDev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuDeviceCanAccessPeer(canAccessPeer, dev, peerDev) + + +cdef CUresult cuCtxEnablePeerAccess(CUcontext peerContext, unsigned int Flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuCtxEnablePeerAccess(peerContext, Flags) + + +cdef CUresult cuCtxDisablePeerAccess(CUcontext peerContext) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuCtxDisablePeerAccess(peerContext) + + +cdef CUresult cuDeviceGetP2PAttribute(int* value, CUdevice_P2PAttribute attrib, CUdevice srcDevice, CUdevice dstDevice) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuDeviceGetP2PAttribute(value, attrib, srcDevice, dstDevice) + + +cdef CUresult cuGraphicsUnregisterResource(CUgraphicsResource resource) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGraphicsUnregisterResource(resource) + + +cdef CUresult cuGraphicsSubResourceGetMappedArray(CUarray* pArray, CUgraphicsResource resource, unsigned int arrayIndex, unsigned int mipLevel) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGraphicsSubResourceGetMappedArray(pArray, resource, arrayIndex, mipLevel) + + +cdef CUresult cuGraphicsResourceGetMappedMipmappedArray(CUmipmappedArray* pMipmappedArray, CUgraphicsResource resource) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGraphicsResourceGetMappedMipmappedArray(pMipmappedArray, resource) + + +cdef CUresult cuGraphicsResourceGetMappedPointer(CUdeviceptr* pDevPtr, size_t* pSize, CUgraphicsResource resource) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGraphicsResourceGetMappedPointer_v2(pDevPtr, pSize, resource) + + +cdef CUresult cuGraphicsResourceSetMapFlags(CUgraphicsResource resource, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGraphicsResourceSetMapFlags_v2(resource, flags) + + +cdef CUresult cuGraphicsMapResources(unsigned int count, CUgraphicsResource* resources, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGraphicsMapResources(count, resources, hStream) + + +cdef CUresult cuGraphicsUnmapResources(unsigned int count, CUgraphicsResource* resources, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGraphicsUnmapResources(count, resources, hStream) + + +cdef CUresult cuGetProcAddress(const char* symbol, void** pfn, int cudaVersion, cuuint64_t flags, CUdriverProcAddressQueryResult* symbolStatus) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGetProcAddress_v2(symbol, pfn, cudaVersion, flags, symbolStatus) + + +cdef CUresult cuCoredumpGetAttribute(CUcoredumpSettings attrib, void* value, size_t* size) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuCoredumpGetAttribute(attrib, value, size) + + +cdef CUresult cuCoredumpGetAttributeGlobal(CUcoredumpSettings attrib, void* value, size_t* size) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuCoredumpGetAttributeGlobal(attrib, value, size) + + +cdef CUresult cuCoredumpSetAttribute(CUcoredumpSettings attrib, void* value, size_t* size) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuCoredumpSetAttribute(attrib, value, size) + + +cdef CUresult cuCoredumpSetAttributeGlobal(CUcoredumpSettings attrib, void* value, size_t* size) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuCoredumpSetAttributeGlobal(attrib, value, size) + + +cdef CUresult cuGetExportTable(const void** ppExportTable, const CUuuid* pExportTableId) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGetExportTable(ppExportTable, pExportTableId) + + +cdef CUresult cuGreenCtxCreate(CUgreenCtx* phCtx, CUdevResourceDesc desc, CUdevice dev, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGreenCtxCreate(phCtx, desc, dev, flags) + + +cdef CUresult cuGreenCtxDestroy(CUgreenCtx hCtx) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGreenCtxDestroy(hCtx) + + +cdef CUresult cuCtxFromGreenCtx(CUcontext* pContext, CUgreenCtx hCtx) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuCtxFromGreenCtx(pContext, hCtx) + + +cdef CUresult cuDeviceGetDevResource(CUdevice device, CUdevResource* resource, CUdevResourceType type) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuDeviceGetDevResource(device, resource, type) + + +cdef CUresult cuCtxGetDevResource(CUcontext hCtx, CUdevResource* resource, CUdevResourceType type) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuCtxGetDevResource(hCtx, resource, type) + + +cdef CUresult cuGreenCtxGetDevResource(CUgreenCtx hCtx, CUdevResource* resource, CUdevResourceType type) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGreenCtxGetDevResource(hCtx, resource, type) + + +cdef CUresult cuDevSmResourceSplitByCount(CUdevResource* result, unsigned int* nbGroups, const CUdevResource* input, CUdevResource* remainder, unsigned int flags, unsigned int minCount) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuDevSmResourceSplitByCount(result, nbGroups, input, remainder, flags, minCount) + + +cdef CUresult cuDevResourceGenerateDesc(CUdevResourceDesc* phDesc, CUdevResource* resources, unsigned int nbResources) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuDevResourceGenerateDesc(phDesc, resources, nbResources) + + +cdef CUresult cuGreenCtxRecordEvent(CUgreenCtx hCtx, CUevent hEvent) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGreenCtxRecordEvent(hCtx, hEvent) + + +cdef CUresult cuGreenCtxWaitEvent(CUgreenCtx hCtx, CUevent hEvent) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGreenCtxWaitEvent(hCtx, hEvent) + + +cdef CUresult cuStreamGetGreenCtx(CUstream hStream, CUgreenCtx* phCtx) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuStreamGetGreenCtx(hStream, phCtx) + + +cdef CUresult cuGreenCtxStreamCreate(CUstream* phStream, CUgreenCtx greenCtx, unsigned int flags, int priority) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGreenCtxStreamCreate(phStream, greenCtx, flags, priority) + + +cdef CUresult cuLogsRegisterCallback(CUlogsCallback callbackFunc, void* userData, CUlogsCallbackHandle* callback_out) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuLogsRegisterCallback(callbackFunc, userData, callback_out) + + +cdef CUresult cuLogsUnregisterCallback(CUlogsCallbackHandle callback) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuLogsUnregisterCallback(callback) + + +cdef CUresult cuLogsCurrent(CUlogIterator* iterator_out, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuLogsCurrent(iterator_out, flags) + + +cdef CUresult cuLogsDumpToFile(CUlogIterator* iterator, const char* pathToFile, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuLogsDumpToFile(iterator, pathToFile, flags) + + +cdef CUresult cuLogsDumpToMemory(CUlogIterator* iterator, char* buffer, size_t* size, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuLogsDumpToMemory(iterator, buffer, size, flags) + + +cdef CUresult cuCheckpointProcessGetRestoreThreadId(int pid, int* tid) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuCheckpointProcessGetRestoreThreadId(pid, tid) + + +cdef CUresult cuCheckpointProcessGetState(int pid, CUprocessState* state) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuCheckpointProcessGetState(pid, state) + + +cdef CUresult cuCheckpointProcessLock(int pid, CUcheckpointLockArgs* args) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuCheckpointProcessLock(pid, args) + + +cdef CUresult cuCheckpointProcessCheckpoint(int pid, CUcheckpointCheckpointArgs* args) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuCheckpointProcessCheckpoint(pid, args) + + +cdef CUresult cuCheckpointProcessRestore(int pid, CUcheckpointRestoreArgs* args) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuCheckpointProcessRestore(pid, args) + + +cdef CUresult cuCheckpointProcessUnlock(int pid, CUcheckpointUnlockArgs* args) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuCheckpointProcessUnlock(pid, args) + + +cdef CUresult cuGraphicsEGLRegisterImage(CUgraphicsResource* pCudaResource, EGLImageKHR image, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGraphicsEGLRegisterImage(pCudaResource, image, flags) + + +cdef CUresult cuEGLStreamConsumerConnect(CUeglStreamConnection* conn, EGLStreamKHR stream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuEGLStreamConsumerConnect(conn, stream) + + +cdef CUresult cuEGLStreamConsumerConnectWithFlags(CUeglStreamConnection* conn, EGLStreamKHR stream, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuEGLStreamConsumerConnectWithFlags(conn, stream, flags) + + +cdef CUresult cuEGLStreamConsumerDisconnect(CUeglStreamConnection* conn) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuEGLStreamConsumerDisconnect(conn) + + +cdef CUresult cuEGLStreamConsumerAcquireFrame(CUeglStreamConnection* conn, CUgraphicsResource* pCudaResource, CUstream* pStream, unsigned int timeout) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuEGLStreamConsumerAcquireFrame(conn, pCudaResource, pStream, timeout) + + +cdef CUresult cuEGLStreamConsumerReleaseFrame(CUeglStreamConnection* conn, CUgraphicsResource pCudaResource, CUstream* pStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuEGLStreamConsumerReleaseFrame(conn, pCudaResource, pStream) + + +cdef CUresult cuEGLStreamProducerConnect(CUeglStreamConnection* conn, EGLStreamKHR stream, EGLint width, EGLint height) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuEGLStreamProducerConnect(conn, stream, width, height) + + +cdef CUresult cuEGLStreamProducerDisconnect(CUeglStreamConnection* conn) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuEGLStreamProducerDisconnect(conn) + + +cdef CUresult cuEGLStreamProducerPresentFrame(CUeglStreamConnection* conn, CUeglFrame eglframe, CUstream* pStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuEGLStreamProducerPresentFrame(conn, eglframe, pStream) + + +cdef CUresult cuEGLStreamProducerReturnFrame(CUeglStreamConnection* conn, CUeglFrame* eglframe, CUstream* pStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuEGLStreamProducerReturnFrame(conn, eglframe, pStream) + + +cdef CUresult cuGraphicsResourceGetMappedEglFrame(CUeglFrame* eglFrame, CUgraphicsResource resource, unsigned int index, unsigned int mipLevel) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGraphicsResourceGetMappedEglFrame(eglFrame, resource, index, mipLevel) + + +cdef CUresult cuEventCreateFromEGLSync(CUevent* phEvent, EGLSyncKHR eglSync, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuEventCreateFromEGLSync(phEvent, eglSync, flags) + + +cdef CUresult cuGraphicsGLRegisterBuffer(CUgraphicsResource* pCudaResource, GLuint buffer, unsigned int Flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGraphicsGLRegisterBuffer(pCudaResource, buffer, Flags) + + +cdef CUresult cuGraphicsGLRegisterImage(CUgraphicsResource* pCudaResource, GLuint image, GLenum target, unsigned int Flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGraphicsGLRegisterImage(pCudaResource, image, target, Flags) + + +cdef CUresult cuGLGetDevices(unsigned int* pCudaDeviceCount, CUdevice* pCudaDevices, unsigned int cudaDeviceCount, CUGLDeviceList deviceList) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGLGetDevices_v2(pCudaDeviceCount, pCudaDevices, cudaDeviceCount, deviceList) + + +cdef CUresult cuGLCtxCreate(CUcontext* pCtx, unsigned int Flags, CUdevice device) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGLCtxCreate_v2(pCtx, Flags, device) + + +cdef CUresult cuGLInit() except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGLInit() + + +cdef CUresult cuGLRegisterBufferObject(GLuint buffer) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGLRegisterBufferObject(buffer) + + +cdef CUresult cuGLMapBufferObject(CUdeviceptr* dptr, size_t* size, GLuint buffer) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGLMapBufferObject_v2(dptr, size, buffer) + + +cdef CUresult cuGLUnmapBufferObject(GLuint buffer) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGLUnmapBufferObject(buffer) + + +cdef CUresult cuGLUnregisterBufferObject(GLuint buffer) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGLUnregisterBufferObject(buffer) + + +cdef CUresult cuGLSetBufferObjectMapFlags(GLuint buffer, unsigned int Flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGLSetBufferObjectMapFlags(buffer, Flags) + + +cdef CUresult cuGLMapBufferObjectAsync(CUdeviceptr* dptr, size_t* size, GLuint buffer, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGLMapBufferObjectAsync_v2(dptr, size, buffer, hStream) + + +cdef CUresult cuGLUnmapBufferObjectAsync(GLuint buffer, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGLUnmapBufferObjectAsync(buffer, hStream) + + +cdef CUresult cuProfilerInitialize(const char* configFile, const char* outputFile, CUoutput_mode outputMode) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuProfilerInitialize(configFile, outputFile, outputMode) + + +cdef CUresult cuProfilerStart() except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuProfilerStart() + + +cdef CUresult cuProfilerStop() except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuProfilerStop() + + +cdef CUresult cuVDPAUGetDevice(CUdevice* pDevice, VdpDevice vdpDevice, VdpGetProcAddress* vdpGetProcAddress) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuVDPAUGetDevice(pDevice, vdpDevice, vdpGetProcAddress) + + +cdef CUresult cuVDPAUCtxCreate(CUcontext* pCtx, unsigned int flags, CUdevice device, VdpDevice vdpDevice, VdpGetProcAddress* vdpGetProcAddress) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuVDPAUCtxCreate_v2(pCtx, flags, device, vdpDevice, vdpGetProcAddress) + + +cdef CUresult cuGraphicsVDPAURegisterVideoSurface(CUgraphicsResource* pCudaResource, VdpVideoSurface vdpSurface, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGraphicsVDPAURegisterVideoSurface(pCudaResource, vdpSurface, flags) + + +cdef CUresult cuGraphicsVDPAURegisterOutputSurface(CUgraphicsResource* pCudaResource, VdpOutputSurface vdpSurface, unsigned int flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGraphicsVDPAURegisterOutputSurface(pCudaResource, vdpSurface, flags) + + +cdef CUresult cuDeviceGetHostAtomicCapabilities(unsigned int* capabilities, const CUatomicOperation* operations, unsigned int count, CUdevice dev) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuDeviceGetHostAtomicCapabilities(capabilities, operations, count, dev) + + +cdef CUresult cuCtxGetDevice_v2(CUdevice* device, CUcontext ctx) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuCtxGetDevice_v2(device, ctx) + + +cdef CUresult cuCtxSynchronize_v2(CUcontext ctx) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuCtxSynchronize_v2(ctx) + + +cdef CUresult cuMemcpyBatchAsync(CUdeviceptr* dsts, CUdeviceptr* srcs, size_t* sizes, size_t count, CUmemcpyAttributes* attrs, size_t* attrsIdxs, size_t numAttrs, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMemcpyBatchAsync_v2(dsts, srcs, sizes, count, attrs, attrsIdxs, numAttrs, hStream) + + +cdef CUresult cuMemcpy3DBatchAsync(size_t numOps, CUDA_MEMCPY3D_BATCH_OP* opList, unsigned long long flags, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMemcpy3DBatchAsync_v2(numOps, opList, flags, hStream) + + +cdef CUresult cuMemGetDefaultMemPool(CUmemoryPool* pool_out, CUmemLocation* location, CUmemAllocationType type) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMemGetDefaultMemPool(pool_out, location, type) + + +cdef CUresult cuMemGetMemPool(CUmemoryPool* pool, CUmemLocation* location, CUmemAllocationType type) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMemGetMemPool(pool, location, type) + + +cdef CUresult cuMemSetMemPool(CUmemLocation* location, CUmemAllocationType type, CUmemoryPool pool) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMemSetMemPool(location, type, pool) + + +cdef CUresult cuMulticastBindMem_v2(CUmemGenericAllocationHandle mcHandle, CUdevice dev, size_t mcOffset, CUmemGenericAllocationHandle memHandle, size_t memOffset, size_t size, unsigned long long flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMulticastBindMem_v2(mcHandle, dev, mcOffset, memHandle, memOffset, size, flags) + + +cdef CUresult cuMulticastBindAddr_v2(CUmemGenericAllocationHandle mcHandle, CUdevice dev, size_t mcOffset, CUdeviceptr memptr, size_t size, unsigned long long flags) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMulticastBindAddr_v2(mcHandle, dev, mcOffset, memptr, size, flags) + + +cdef CUresult cuMemPrefetchBatchAsync(CUdeviceptr* dptrs, size_t* sizes, size_t count, CUmemLocation* prefetchLocs, size_t* prefetchLocIdxs, size_t numPrefetchLocs, unsigned long long flags, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMemPrefetchBatchAsync(dptrs, sizes, count, prefetchLocs, prefetchLocIdxs, numPrefetchLocs, flags, hStream) + + +cdef CUresult cuMemDiscardBatchAsync(CUdeviceptr* dptrs, size_t* sizes, size_t count, unsigned long long flags, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMemDiscardBatchAsync(dptrs, sizes, count, flags, hStream) + + +cdef CUresult cuMemDiscardAndPrefetchBatchAsync(CUdeviceptr* dptrs, size_t* sizes, size_t count, CUmemLocation* prefetchLocs, size_t* prefetchLocIdxs, size_t numPrefetchLocs, unsigned long long flags, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMemDiscardAndPrefetchBatchAsync(dptrs, sizes, count, prefetchLocs, prefetchLocIdxs, numPrefetchLocs, flags, hStream) + + +cdef CUresult cuGraphNodeGetContainingGraph(CUgraphNode hNode, CUgraph* phGraph) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGraphNodeGetContainingGraph(hNode, phGraph) + + +cdef CUresult cuGraphNodeGetLocalId(CUgraphNode hNode, unsigned int* nodeId) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGraphNodeGetLocalId(hNode, nodeId) + + +cdef CUresult cuGraphNodeGetToolsId(CUgraphNode hNode, unsigned long long* toolsNodeId) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGraphNodeGetToolsId(hNode, toolsNodeId) + + +cdef CUresult cuGraphGetId(CUgraph hGraph, unsigned int* graphId) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGraphGetId(hGraph, graphId) + + +cdef CUresult cuGraphExecGetId(CUgraphExec hGraphExec, unsigned int* graphId) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGraphExecGetId(hGraphExec, graphId) + + +cdef CUresult cuDeviceGetP2PAtomicCapabilities(unsigned int* capabilities, const CUatomicOperation* operations, unsigned int count, CUdevice srcDevice, CUdevice dstDevice) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuDeviceGetP2PAtomicCapabilities(capabilities, operations, count, srcDevice, dstDevice) + + +cdef CUresult cuDevSmResourceSplit(CUdevResource* result, unsigned int nbGroups, const CUdevResource* input, CUdevResource* remainder, unsigned int flags, CU_DEV_SM_RESOURCE_GROUP_PARAMS* groupParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuDevSmResourceSplit(result, nbGroups, input, remainder, flags, groupParams) + + +cdef CUresult cuGreenCtxGetId(CUgreenCtx greenCtx, unsigned long long* greenCtxId) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGreenCtxGetId(greenCtx, greenCtxId) + + +cdef CUresult cuStreamGetDevResource(CUstream hStream, CUdevResource* resource, CUdevResourceType type) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuStreamGetDevResource(hStream, resource, type) + + +cdef CUresult cuKernelGetParamCount(CUkernel kernel, size_t* paramCount) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuKernelGetParamCount(kernel, paramCount) + + +cdef CUresult cuMemcpyWithAttributesAsync(CUdeviceptr dst, CUdeviceptr src, size_t size, CUmemcpyAttributes* attr, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMemcpyWithAttributesAsync(dst, src, size, attr, hStream) + + +cdef CUresult cuMemcpy3DWithAttributesAsync(CUDA_MEMCPY3D_BATCH_OP* op, unsigned long long flags, CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuMemcpy3DWithAttributesAsync(op, flags, hStream) + + +cdef CUresult cuStreamBeginCaptureToCig(CUstream hStream, CUstreamCigCaptureParams* streamCigCaptureParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuStreamBeginCaptureToCig(hStream, streamCigCaptureParams) + + +cdef CUresult cuStreamEndCaptureToCig(CUstream hStream) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuStreamEndCaptureToCig(hStream) + + +cdef CUresult cuFuncGetParamCount(CUfunction func, size_t* paramCount) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuFuncGetParamCount(func, paramCount) + + +cdef CUresult cuLaunchHostFunc_v2(CUstream hStream, CUhostFn fn, void* userData, unsigned int syncMode) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuLaunchHostFunc_v2(hStream, fn, userData, syncMode) + + +cdef CUresult cuGraphNodeGetParams(CUgraphNode hNode, CUgraphNodeParams* nodeParams) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuGraphNodeGetParams(hNode, nodeParams) + + +cdef CUresult cuCoredumpRegisterStartCallback(CUcoredumpStatusCallback callback, void* userData, CUcoredumpCallbackHandle* callbackOut) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuCoredumpRegisterStartCallback(callback, userData, callbackOut) + + +cdef CUresult cuCoredumpRegisterCompleteCallback(CUcoredumpStatusCallback callback, void* userData, CUcoredumpCallbackHandle* callbackOut) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuCoredumpRegisterCompleteCallback(callback, userData, callbackOut) + + +cdef CUresult cuCoredumpDeregisterStartCallback(CUcoredumpCallbackHandle callback) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuCoredumpDeregisterStartCallback(callback) + + +cdef CUresult cuCoredumpDeregisterCompleteCallback(CUcoredumpCallbackHandle callback) except?_CURESULT_INTERNAL_LOADING_ERROR nogil: + return _driver._cuCoredumpDeregisterCompleteCallback(callback) diff --git a/cuda_bindings/cuda/bindings/cydriver.pyx.in b/cuda_bindings/cuda/bindings/cydriver.pyx.in deleted file mode 100644 index 527fd10d05f..00000000000 --- a/cuda_bindings/cuda/bindings/cydriver.pyx.in +++ /dev/null @@ -1,2951 +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.2.0, generator version 0.3.1.dev1422+gf4812259e.d20260318. Do not modify it directly. -cimport cuda.bindings._bindings.cydriver as cydriver - -{{if 'cuGetErrorString' in found_functions}} - -cdef CUresult cuGetErrorString(CUresult error, const char** pStr) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGetErrorString(error, pStr) -{{endif}} - -{{if 'cuGetErrorName' in found_functions}} - -cdef CUresult cuGetErrorName(CUresult error, const char** pStr) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGetErrorName(error, pStr) -{{endif}} - -{{if 'cuInit' in found_functions}} - -cdef CUresult cuInit(unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuInit(Flags) -{{endif}} - -{{if 'cuDriverGetVersion' in found_functions}} - -cdef CUresult cuDriverGetVersion(int* driverVersion) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuDriverGetVersion(driverVersion) -{{endif}} - -{{if 'cuDeviceGet' in found_functions}} - -cdef CUresult cuDeviceGet(CUdevice* device, int ordinal) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuDeviceGet(device, ordinal) -{{endif}} - -{{if 'cuDeviceGetCount' in found_functions}} - -cdef CUresult cuDeviceGetCount(int* count) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuDeviceGetCount(count) -{{endif}} - -{{if 'cuDeviceGetName' in found_functions}} - -cdef CUresult cuDeviceGetName(char* name, int length, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuDeviceGetName(name, length, dev) -{{endif}} - -{{if 'cuDeviceGetUuid_v2' in found_functions}} - -cdef CUresult cuDeviceGetUuid(CUuuid* uuid, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuDeviceGetUuid_v2(uuid, dev) -{{endif}} - -{{if 'cuDeviceGetLuid' in found_functions}} - -cdef CUresult cuDeviceGetLuid(char* luid, unsigned int* deviceNodeMask, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuDeviceGetLuid(luid, deviceNodeMask, dev) -{{endif}} - -{{if 'cuDeviceTotalMem_v2' in found_functions}} - -cdef CUresult cuDeviceTotalMem(size_t* numbytes, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuDeviceTotalMem_v2(numbytes, dev) -{{endif}} - -{{if 'cuDeviceGetTexture1DLinearMaxWidth' in found_functions}} - -cdef CUresult cuDeviceGetTexture1DLinearMaxWidth(size_t* maxWidthInElements, CUarray_format pformat, unsigned numChannels, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuDeviceGetTexture1DLinearMaxWidth(maxWidthInElements, pformat, numChannels, dev) -{{endif}} - -{{if 'cuDeviceGetAttribute' in found_functions}} - -cdef CUresult cuDeviceGetAttribute(int* pi, CUdevice_attribute attrib, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuDeviceGetAttribute(pi, attrib, dev) -{{endif}} - -{{if 'cuDeviceGetHostAtomicCapabilities' in found_functions}} - -cdef CUresult cuDeviceGetHostAtomicCapabilities(unsigned int* capabilities, const CUatomicOperation* operations, unsigned int count, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuDeviceGetHostAtomicCapabilities(capabilities, operations, count, dev) -{{endif}} - -{{if 'cuDeviceGetNvSciSyncAttributes' in found_functions}} - -cdef CUresult cuDeviceGetNvSciSyncAttributes(void* nvSciSyncAttrList, CUdevice dev, int flags) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuDeviceGetNvSciSyncAttributes(nvSciSyncAttrList, dev, flags) -{{endif}} - -{{if 'cuDeviceSetMemPool' in found_functions}} - -cdef CUresult cuDeviceSetMemPool(CUdevice dev, CUmemoryPool pool) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuDeviceSetMemPool(dev, pool) -{{endif}} - -{{if 'cuDeviceGetMemPool' in found_functions}} - -cdef CUresult cuDeviceGetMemPool(CUmemoryPool* pool, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuDeviceGetMemPool(pool, dev) -{{endif}} - -{{if 'cuDeviceGetDefaultMemPool' in found_functions}} - -cdef CUresult cuDeviceGetDefaultMemPool(CUmemoryPool* pool_out, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuDeviceGetDefaultMemPool(pool_out, dev) -{{endif}} - -{{if 'cuDeviceGetExecAffinitySupport' in found_functions}} - -cdef CUresult cuDeviceGetExecAffinitySupport(int* pi, CUexecAffinityType typename, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuDeviceGetExecAffinitySupport(pi, typename, dev) -{{endif}} - -{{if 'cuFlushGPUDirectRDMAWrites' in found_functions}} - -cdef CUresult cuFlushGPUDirectRDMAWrites(CUflushGPUDirectRDMAWritesTarget target, CUflushGPUDirectRDMAWritesScope scope) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuFlushGPUDirectRDMAWrites(target, scope) -{{endif}} - -{{if 'cuDeviceGetProperties' in found_functions}} - -cdef CUresult cuDeviceGetProperties(CUdevprop* prop, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuDeviceGetProperties(prop, dev) -{{endif}} - -{{if 'cuDeviceComputeCapability' in found_functions}} - -cdef CUresult cuDeviceComputeCapability(int* major, int* minor, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuDeviceComputeCapability(major, minor, dev) -{{endif}} - -{{if 'cuDevicePrimaryCtxRetain' in found_functions}} - -cdef CUresult cuDevicePrimaryCtxRetain(CUcontext* pctx, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuDevicePrimaryCtxRetain(pctx, dev) -{{endif}} - -{{if 'cuDevicePrimaryCtxRelease_v2' in found_functions}} - -cdef CUresult cuDevicePrimaryCtxRelease(CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuDevicePrimaryCtxRelease_v2(dev) -{{endif}} - -{{if 'cuDevicePrimaryCtxSetFlags_v2' in found_functions}} - -cdef CUresult cuDevicePrimaryCtxSetFlags(CUdevice dev, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuDevicePrimaryCtxSetFlags_v2(dev, flags) -{{endif}} - -{{if 'cuDevicePrimaryCtxGetState' in found_functions}} - -cdef CUresult cuDevicePrimaryCtxGetState(CUdevice dev, unsigned int* flags, int* active) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuDevicePrimaryCtxGetState(dev, flags, active) -{{endif}} - -{{if 'cuDevicePrimaryCtxReset_v2' in found_functions}} - -cdef CUresult cuDevicePrimaryCtxReset(CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuDevicePrimaryCtxReset_v2(dev) -{{endif}} - -{{if 'cuCtxCreate_v4' in found_functions}} - -cdef CUresult cuCtxCreate(CUcontext* pctx, CUctxCreateParams* ctxCreateParams, unsigned int flags, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuCtxCreate_v4(pctx, ctxCreateParams, flags, dev) -{{endif}} - -{{if 'cuCtxDestroy_v2' in found_functions}} - -cdef CUresult cuCtxDestroy(CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuCtxDestroy_v2(ctx) -{{endif}} - -{{if 'cuCtxPushCurrent_v2' in found_functions}} - -cdef CUresult cuCtxPushCurrent(CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuCtxPushCurrent_v2(ctx) -{{endif}} - -{{if 'cuCtxPopCurrent_v2' in found_functions}} - -cdef CUresult cuCtxPopCurrent(CUcontext* pctx) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuCtxPopCurrent_v2(pctx) -{{endif}} - -{{if 'cuCtxSetCurrent' in found_functions}} - -cdef CUresult cuCtxSetCurrent(CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuCtxSetCurrent(ctx) -{{endif}} - -{{if 'cuCtxGetCurrent' in found_functions}} - -cdef CUresult cuCtxGetCurrent(CUcontext* pctx) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuCtxGetCurrent(pctx) -{{endif}} - -{{if 'cuCtxGetDevice' in found_functions}} - -cdef CUresult cuCtxGetDevice(CUdevice* device) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuCtxGetDevice(device) -{{endif}} - -{{if 'cuCtxGetDevice_v2' in found_functions}} - -cdef CUresult cuCtxGetDevice_v2(CUdevice* device, CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuCtxGetDevice_v2(device, ctx) -{{endif}} - -{{if 'cuCtxGetFlags' in found_functions}} - -cdef CUresult cuCtxGetFlags(unsigned int* flags) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuCtxGetFlags(flags) -{{endif}} - -{{if 'cuCtxSetFlags' in found_functions}} - -cdef CUresult cuCtxSetFlags(unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuCtxSetFlags(flags) -{{endif}} - -{{if 'cuCtxGetId' in found_functions}} - -cdef CUresult cuCtxGetId(CUcontext ctx, unsigned long long* ctxId) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuCtxGetId(ctx, ctxId) -{{endif}} - -{{if 'cuCtxSynchronize' in found_functions}} - -cdef CUresult cuCtxSynchronize() except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuCtxSynchronize() -{{endif}} - -{{if 'cuCtxSynchronize_v2' in found_functions}} - -cdef CUresult cuCtxSynchronize_v2(CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuCtxSynchronize_v2(ctx) -{{endif}} - -{{if 'cuCtxSetLimit' in found_functions}} - -cdef CUresult cuCtxSetLimit(CUlimit limit, size_t value) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuCtxSetLimit(limit, value) -{{endif}} - -{{if 'cuCtxGetLimit' in found_functions}} - -cdef CUresult cuCtxGetLimit(size_t* pvalue, CUlimit limit) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuCtxGetLimit(pvalue, limit) -{{endif}} - -{{if 'cuCtxGetCacheConfig' in found_functions}} - -cdef CUresult cuCtxGetCacheConfig(CUfunc_cache* pconfig) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuCtxGetCacheConfig(pconfig) -{{endif}} - -{{if 'cuCtxSetCacheConfig' in found_functions}} - -cdef CUresult cuCtxSetCacheConfig(CUfunc_cache config) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuCtxSetCacheConfig(config) -{{endif}} - -{{if 'cuCtxGetApiVersion' in found_functions}} - -cdef CUresult cuCtxGetApiVersion(CUcontext ctx, unsigned int* version) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuCtxGetApiVersion(ctx, version) -{{endif}} - -{{if 'cuCtxGetStreamPriorityRange' in found_functions}} - -cdef CUresult cuCtxGetStreamPriorityRange(int* leastPriority, int* greatestPriority) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuCtxGetStreamPriorityRange(leastPriority, greatestPriority) -{{endif}} - -{{if 'cuCtxResetPersistingL2Cache' in found_functions}} - -cdef CUresult cuCtxResetPersistingL2Cache() except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuCtxResetPersistingL2Cache() -{{endif}} - -{{if 'cuCtxGetExecAffinity' in found_functions}} - -cdef CUresult cuCtxGetExecAffinity(CUexecAffinityParam* pExecAffinity, CUexecAffinityType typename) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuCtxGetExecAffinity(pExecAffinity, typename) -{{endif}} - -{{if 'cuCtxRecordEvent' in found_functions}} - -cdef CUresult cuCtxRecordEvent(CUcontext hCtx, CUevent hEvent) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuCtxRecordEvent(hCtx, hEvent) -{{endif}} - -{{if 'cuCtxWaitEvent' in found_functions}} - -cdef CUresult cuCtxWaitEvent(CUcontext hCtx, CUevent hEvent) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuCtxWaitEvent(hCtx, hEvent) -{{endif}} - -{{if 'cuCtxAttach' in found_functions}} - -cdef CUresult cuCtxAttach(CUcontext* pctx, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuCtxAttach(pctx, flags) -{{endif}} - -{{if 'cuCtxDetach' in found_functions}} - -cdef CUresult cuCtxDetach(CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuCtxDetach(ctx) -{{endif}} - -{{if 'cuCtxGetSharedMemConfig' in found_functions}} - -cdef CUresult cuCtxGetSharedMemConfig(CUsharedconfig* pConfig) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuCtxGetSharedMemConfig(pConfig) -{{endif}} - -{{if 'cuCtxSetSharedMemConfig' in found_functions}} - -cdef CUresult cuCtxSetSharedMemConfig(CUsharedconfig config) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuCtxSetSharedMemConfig(config) -{{endif}} - -{{if 'cuModuleLoad' in found_functions}} - -cdef CUresult cuModuleLoad(CUmodule* module, const char* fname) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuModuleLoad(module, fname) -{{endif}} - -{{if 'cuModuleLoadData' in found_functions}} - -cdef CUresult cuModuleLoadData(CUmodule* module, const void* image) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuModuleLoadData(module, image) -{{endif}} - -{{if 'cuModuleLoadDataEx' in found_functions}} - -cdef CUresult cuModuleLoadDataEx(CUmodule* module, const void* image, unsigned int numOptions, CUjit_option* options, void** optionValues) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuModuleLoadDataEx(module, image, numOptions, options, optionValues) -{{endif}} - -{{if 'cuModuleLoadFatBinary' in found_functions}} - -cdef CUresult cuModuleLoadFatBinary(CUmodule* module, const void* fatCubin) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuModuleLoadFatBinary(module, fatCubin) -{{endif}} - -{{if 'cuModuleUnload' in found_functions}} - -cdef CUresult cuModuleUnload(CUmodule hmod) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuModuleUnload(hmod) -{{endif}} - -{{if 'cuModuleGetLoadingMode' in found_functions}} - -cdef CUresult cuModuleGetLoadingMode(CUmoduleLoadingMode* mode) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuModuleGetLoadingMode(mode) -{{endif}} - -{{if 'cuModuleGetFunction' in found_functions}} - -cdef CUresult cuModuleGetFunction(CUfunction* hfunc, CUmodule hmod, const char* name) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuModuleGetFunction(hfunc, hmod, name) -{{endif}} - -{{if 'cuModuleGetFunctionCount' in found_functions}} - -cdef CUresult cuModuleGetFunctionCount(unsigned int* count, CUmodule mod) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuModuleGetFunctionCount(count, mod) -{{endif}} - -{{if 'cuModuleEnumerateFunctions' in found_functions}} - -cdef CUresult cuModuleEnumerateFunctions(CUfunction* functions, unsigned int numFunctions, CUmodule mod) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuModuleEnumerateFunctions(functions, numFunctions, mod) -{{endif}} - -{{if 'cuModuleGetGlobal_v2' in found_functions}} - -cdef CUresult cuModuleGetGlobal(CUdeviceptr* dptr, size_t* numbytes, CUmodule hmod, const char* name) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuModuleGetGlobal_v2(dptr, numbytes, hmod, name) -{{endif}} - -{{if 'cuLinkCreate_v2' in found_functions}} - -cdef CUresult cuLinkCreate(unsigned int numOptions, CUjit_option* options, void** optionValues, CUlinkState* stateOut) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuLinkCreate_v2(numOptions, options, optionValues, stateOut) -{{endif}} - -{{if 'cuLinkAddData_v2' in found_functions}} - -cdef CUresult cuLinkAddData(CUlinkState state, CUjitInputType typename, void* data, size_t size, const char* name, unsigned int numOptions, CUjit_option* options, void** optionValues) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuLinkAddData_v2(state, typename, data, size, name, numOptions, options, optionValues) -{{endif}} - -{{if 'cuLinkAddFile_v2' in found_functions}} - -cdef CUresult cuLinkAddFile(CUlinkState state, CUjitInputType typename, const char* path, unsigned int numOptions, CUjit_option* options, void** optionValues) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuLinkAddFile_v2(state, typename, path, numOptions, options, optionValues) -{{endif}} - -{{if 'cuLinkComplete' in found_functions}} - -cdef CUresult cuLinkComplete(CUlinkState state, void** cubinOut, size_t* sizeOut) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuLinkComplete(state, cubinOut, sizeOut) -{{endif}} - -{{if 'cuLinkDestroy' in found_functions}} - -cdef CUresult cuLinkDestroy(CUlinkState state) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuLinkDestroy(state) -{{endif}} - -{{if 'cuModuleGetTexRef' in found_functions}} - -cdef CUresult cuModuleGetTexRef(CUtexref* pTexRef, CUmodule hmod, const char* name) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuModuleGetTexRef(pTexRef, hmod, name) -{{endif}} - -{{if 'cuModuleGetSurfRef' in found_functions}} - -cdef CUresult cuModuleGetSurfRef(CUsurfref* pSurfRef, CUmodule hmod, const char* name) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuModuleGetSurfRef(pSurfRef, hmod, name) -{{endif}} - -{{if 'cuLibraryLoadData' in found_functions}} - -cdef CUresult cuLibraryLoadData(CUlibrary* library, const void* code, CUjit_option* jitOptions, void** jitOptionsValues, unsigned int numJitOptions, CUlibraryOption* libraryOptions, void** libraryOptionValues, unsigned int numLibraryOptions) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuLibraryLoadData(library, code, jitOptions, jitOptionsValues, numJitOptions, libraryOptions, libraryOptionValues, numLibraryOptions) -{{endif}} - -{{if 'cuLibraryLoadFromFile' in found_functions}} - -cdef CUresult cuLibraryLoadFromFile(CUlibrary* library, const char* fileName, CUjit_option* jitOptions, void** jitOptionsValues, unsigned int numJitOptions, CUlibraryOption* libraryOptions, void** libraryOptionValues, unsigned int numLibraryOptions) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuLibraryLoadFromFile(library, fileName, jitOptions, jitOptionsValues, numJitOptions, libraryOptions, libraryOptionValues, numLibraryOptions) -{{endif}} - -{{if 'cuLibraryUnload' in found_functions}} - -cdef CUresult cuLibraryUnload(CUlibrary library) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuLibraryUnload(library) -{{endif}} - -{{if 'cuLibraryGetKernel' in found_functions}} - -cdef CUresult cuLibraryGetKernel(CUkernel* pKernel, CUlibrary library, const char* name) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuLibraryGetKernel(pKernel, library, name) -{{endif}} - -{{if 'cuLibraryGetKernelCount' in found_functions}} - -cdef CUresult cuLibraryGetKernelCount(unsigned int* count, CUlibrary lib) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuLibraryGetKernelCount(count, lib) -{{endif}} - -{{if 'cuLibraryEnumerateKernels' in found_functions}} - -cdef CUresult cuLibraryEnumerateKernels(CUkernel* kernels, unsigned int numKernels, CUlibrary lib) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuLibraryEnumerateKernels(kernels, numKernels, lib) -{{endif}} - -{{if 'cuLibraryGetModule' in found_functions}} - -cdef CUresult cuLibraryGetModule(CUmodule* pMod, CUlibrary library) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuLibraryGetModule(pMod, library) -{{endif}} - -{{if 'cuKernelGetFunction' in found_functions}} - -cdef CUresult cuKernelGetFunction(CUfunction* pFunc, CUkernel kernel) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuKernelGetFunction(pFunc, kernel) -{{endif}} - -{{if 'cuKernelGetLibrary' in found_functions}} - -cdef CUresult cuKernelGetLibrary(CUlibrary* pLib, CUkernel kernel) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuKernelGetLibrary(pLib, kernel) -{{endif}} - -{{if 'cuLibraryGetGlobal' in found_functions}} - -cdef CUresult cuLibraryGetGlobal(CUdeviceptr* dptr, size_t* numbytes, CUlibrary library, const char* name) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuLibraryGetGlobal(dptr, numbytes, library, name) -{{endif}} - -{{if 'cuLibraryGetManaged' in found_functions}} - -cdef CUresult cuLibraryGetManaged(CUdeviceptr* dptr, size_t* numbytes, CUlibrary library, const char* name) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuLibraryGetManaged(dptr, numbytes, library, name) -{{endif}} - -{{if 'cuLibraryGetUnifiedFunction' in found_functions}} - -cdef CUresult cuLibraryGetUnifiedFunction(void** fptr, CUlibrary library, const char* symbol) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuLibraryGetUnifiedFunction(fptr, library, symbol) -{{endif}} - -{{if 'cuKernelGetAttribute' in found_functions}} - -cdef CUresult cuKernelGetAttribute(int* pi, CUfunction_attribute attrib, CUkernel kernel, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuKernelGetAttribute(pi, attrib, kernel, dev) -{{endif}} - -{{if 'cuKernelSetAttribute' in found_functions}} - -cdef CUresult cuKernelSetAttribute(CUfunction_attribute attrib, int val, CUkernel kernel, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuKernelSetAttribute(attrib, val, kernel, dev) -{{endif}} - -{{if 'cuKernelSetCacheConfig' in found_functions}} - -cdef CUresult cuKernelSetCacheConfig(CUkernel kernel, CUfunc_cache config, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuKernelSetCacheConfig(kernel, config, dev) -{{endif}} - -{{if 'cuKernelGetName' in found_functions}} - -cdef CUresult cuKernelGetName(const char** name, CUkernel hfunc) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuKernelGetName(name, hfunc) -{{endif}} - -{{if 'cuKernelGetParamInfo' in found_functions}} - -cdef CUresult cuKernelGetParamInfo(CUkernel kernel, size_t paramIndex, size_t* paramOffset, size_t* paramSize) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuKernelGetParamInfo(kernel, paramIndex, paramOffset, paramSize) -{{endif}} - -{{if 'cuKernelGetParamCount' in found_functions}} - -cdef CUresult cuKernelGetParamCount(CUkernel kernel, size_t* paramCount) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuKernelGetParamCount(kernel, paramCount) -{{endif}} - -{{if 'cuMemGetInfo_v2' in found_functions}} - -cdef CUresult cuMemGetInfo(size_t* free, size_t* total) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMemGetInfo_v2(free, total) -{{endif}} - -{{if 'cuMemAlloc_v2' in found_functions}} - -cdef CUresult cuMemAlloc(CUdeviceptr* dptr, size_t bytesize) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMemAlloc_v2(dptr, bytesize) -{{endif}} - -{{if 'cuMemAllocPitch_v2' in found_functions}} - -cdef CUresult cuMemAllocPitch(CUdeviceptr* dptr, size_t* pPitch, size_t WidthInBytes, size_t Height, unsigned int ElementSizeBytes) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMemAllocPitch_v2(dptr, pPitch, WidthInBytes, Height, ElementSizeBytes) -{{endif}} - -{{if 'cuMemFree_v2' in found_functions}} - -cdef CUresult cuMemFree(CUdeviceptr dptr) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMemFree_v2(dptr) -{{endif}} - -{{if 'cuMemGetAddressRange_v2' in found_functions}} - -cdef CUresult cuMemGetAddressRange(CUdeviceptr* pbase, size_t* psize, CUdeviceptr dptr) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMemGetAddressRange_v2(pbase, psize, dptr) -{{endif}} - -{{if 'cuMemAllocHost_v2' in found_functions}} - -cdef CUresult cuMemAllocHost(void** pp, size_t bytesize) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMemAllocHost_v2(pp, bytesize) -{{endif}} - -{{if 'cuMemFreeHost' in found_functions}} - -cdef CUresult cuMemFreeHost(void* p) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMemFreeHost(p) -{{endif}} - -{{if 'cuMemHostAlloc' in found_functions}} - -cdef CUresult cuMemHostAlloc(void** pp, size_t bytesize, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMemHostAlloc(pp, bytesize, Flags) -{{endif}} - -{{if 'cuMemHostGetDevicePointer_v2' in found_functions}} - -cdef CUresult cuMemHostGetDevicePointer(CUdeviceptr* pdptr, void* p, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMemHostGetDevicePointer_v2(pdptr, p, Flags) -{{endif}} - -{{if 'cuMemHostGetFlags' in found_functions}} - -cdef CUresult cuMemHostGetFlags(unsigned int* pFlags, void* p) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMemHostGetFlags(pFlags, p) -{{endif}} - -{{if 'cuMemAllocManaged' in found_functions}} - -cdef CUresult cuMemAllocManaged(CUdeviceptr* dptr, size_t bytesize, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMemAllocManaged(dptr, bytesize, flags) -{{endif}} - -{{if 'cuDeviceRegisterAsyncNotification' in found_functions}} - -cdef CUresult cuDeviceRegisterAsyncNotification(CUdevice device, CUasyncCallback callbackFunc, void* userData, CUasyncCallbackHandle* callback) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuDeviceRegisterAsyncNotification(device, callbackFunc, userData, callback) -{{endif}} - -{{if 'cuDeviceUnregisterAsyncNotification' in found_functions}} - -cdef CUresult cuDeviceUnregisterAsyncNotification(CUdevice device, CUasyncCallbackHandle callback) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuDeviceUnregisterAsyncNotification(device, callback) -{{endif}} - -{{if 'cuDeviceGetByPCIBusId' in found_functions}} - -cdef CUresult cuDeviceGetByPCIBusId(CUdevice* dev, const char* pciBusId) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuDeviceGetByPCIBusId(dev, pciBusId) -{{endif}} - -{{if 'cuDeviceGetPCIBusId' in found_functions}} - -cdef CUresult cuDeviceGetPCIBusId(char* pciBusId, int length, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuDeviceGetPCIBusId(pciBusId, length, dev) -{{endif}} - -{{if 'cuIpcGetEventHandle' in found_functions}} - -cdef CUresult cuIpcGetEventHandle(CUipcEventHandle* pHandle, CUevent event) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuIpcGetEventHandle(pHandle, event) -{{endif}} - -{{if 'cuIpcOpenEventHandle' in found_functions}} - -cdef CUresult cuIpcOpenEventHandle(CUevent* phEvent, CUipcEventHandle handle) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuIpcOpenEventHandle(phEvent, handle) -{{endif}} - -{{if 'cuIpcGetMemHandle' in found_functions}} - -cdef CUresult cuIpcGetMemHandle(CUipcMemHandle* pHandle, CUdeviceptr dptr) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuIpcGetMemHandle(pHandle, dptr) -{{endif}} - -{{if 'cuIpcOpenMemHandle_v2' in found_functions}} - -cdef CUresult cuIpcOpenMemHandle(CUdeviceptr* pdptr, CUipcMemHandle handle, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuIpcOpenMemHandle_v2(pdptr, handle, Flags) -{{endif}} - -{{if 'cuIpcCloseMemHandle' in found_functions}} - -cdef CUresult cuIpcCloseMemHandle(CUdeviceptr dptr) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuIpcCloseMemHandle(dptr) -{{endif}} - -{{if 'cuMemHostRegister_v2' in found_functions}} - -cdef CUresult cuMemHostRegister(void* p, size_t bytesize, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMemHostRegister_v2(p, bytesize, Flags) -{{endif}} - -{{if 'cuMemHostUnregister' in found_functions}} - -cdef CUresult cuMemHostUnregister(void* p) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMemHostUnregister(p) -{{endif}} - -{{if 'cuMemcpy' in found_functions}} - -cdef CUresult cuMemcpy(CUdeviceptr dst, CUdeviceptr src, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMemcpy(dst, src, ByteCount) -{{endif}} - -{{if 'cuMemcpyPeer' in found_functions}} - -cdef CUresult cuMemcpyPeer(CUdeviceptr dstDevice, CUcontext dstContext, CUdeviceptr srcDevice, CUcontext srcContext, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMemcpyPeer(dstDevice, dstContext, srcDevice, srcContext, ByteCount) -{{endif}} - -{{if 'cuMemcpyHtoD_v2' in found_functions}} - -cdef CUresult cuMemcpyHtoD(CUdeviceptr dstDevice, const void* srcHost, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMemcpyHtoD_v2(dstDevice, srcHost, ByteCount) -{{endif}} - -{{if 'cuMemcpyDtoH_v2' in found_functions}} - -cdef CUresult cuMemcpyDtoH(void* dstHost, CUdeviceptr srcDevice, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMemcpyDtoH_v2(dstHost, srcDevice, ByteCount) -{{endif}} - -{{if 'cuMemcpyDtoD_v2' in found_functions}} - -cdef CUresult cuMemcpyDtoD(CUdeviceptr dstDevice, CUdeviceptr srcDevice, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMemcpyDtoD_v2(dstDevice, srcDevice, ByteCount) -{{endif}} - -{{if 'cuMemcpyDtoA_v2' in found_functions}} - -cdef CUresult cuMemcpyDtoA(CUarray dstArray, size_t dstOffset, CUdeviceptr srcDevice, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMemcpyDtoA_v2(dstArray, dstOffset, srcDevice, ByteCount) -{{endif}} - -{{if 'cuMemcpyAtoD_v2' in found_functions}} - -cdef CUresult cuMemcpyAtoD(CUdeviceptr dstDevice, CUarray srcArray, size_t srcOffset, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMemcpyAtoD_v2(dstDevice, srcArray, srcOffset, ByteCount) -{{endif}} - -{{if 'cuMemcpyHtoA_v2' in found_functions}} - -cdef CUresult cuMemcpyHtoA(CUarray dstArray, size_t dstOffset, const void* srcHost, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMemcpyHtoA_v2(dstArray, dstOffset, srcHost, ByteCount) -{{endif}} - -{{if 'cuMemcpyAtoH_v2' in found_functions}} - -cdef CUresult cuMemcpyAtoH(void* dstHost, CUarray srcArray, size_t srcOffset, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMemcpyAtoH_v2(dstHost, srcArray, srcOffset, ByteCount) -{{endif}} - -{{if 'cuMemcpyAtoA_v2' in found_functions}} - -cdef CUresult cuMemcpyAtoA(CUarray dstArray, size_t dstOffset, CUarray srcArray, size_t srcOffset, size_t ByteCount) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMemcpyAtoA_v2(dstArray, dstOffset, srcArray, srcOffset, ByteCount) -{{endif}} - -{{if 'cuMemcpy2D_v2' in found_functions}} - -cdef CUresult cuMemcpy2D(const CUDA_MEMCPY2D* pCopy) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMemcpy2D_v2(pCopy) -{{endif}} - -{{if 'cuMemcpy2DUnaligned_v2' in found_functions}} - -cdef CUresult cuMemcpy2DUnaligned(const CUDA_MEMCPY2D* pCopy) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMemcpy2DUnaligned_v2(pCopy) -{{endif}} - -{{if 'cuMemcpy3D_v2' in found_functions}} - -cdef CUresult cuMemcpy3D(const CUDA_MEMCPY3D* pCopy) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMemcpy3D_v2(pCopy) -{{endif}} - -{{if 'cuMemcpy3DPeer' in found_functions}} - -cdef CUresult cuMemcpy3DPeer(const CUDA_MEMCPY3D_PEER* pCopy) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMemcpy3DPeer(pCopy) -{{endif}} - -{{if 'cuMemcpyAsync' in found_functions}} - -cdef CUresult cuMemcpyAsync(CUdeviceptr dst, CUdeviceptr src, size_t ByteCount, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMemcpyAsync(dst, src, ByteCount, hStream) -{{endif}} - -{{if 'cuMemcpyPeerAsync' in found_functions}} - -cdef CUresult cuMemcpyPeerAsync(CUdeviceptr dstDevice, CUcontext dstContext, CUdeviceptr srcDevice, CUcontext srcContext, size_t ByteCount, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMemcpyPeerAsync(dstDevice, dstContext, srcDevice, srcContext, ByteCount, hStream) -{{endif}} - -{{if 'cuMemcpyHtoDAsync_v2' in found_functions}} - -cdef CUresult cuMemcpyHtoDAsync(CUdeviceptr dstDevice, const void* srcHost, size_t ByteCount, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMemcpyHtoDAsync_v2(dstDevice, srcHost, ByteCount, hStream) -{{endif}} - -{{if 'cuMemcpyDtoHAsync_v2' in found_functions}} - -cdef CUresult cuMemcpyDtoHAsync(void* dstHost, CUdeviceptr srcDevice, size_t ByteCount, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMemcpyDtoHAsync_v2(dstHost, srcDevice, ByteCount, hStream) -{{endif}} - -{{if 'cuMemcpyDtoDAsync_v2' in found_functions}} - -cdef CUresult cuMemcpyDtoDAsync(CUdeviceptr dstDevice, CUdeviceptr srcDevice, size_t ByteCount, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMemcpyDtoDAsync_v2(dstDevice, srcDevice, ByteCount, hStream) -{{endif}} - -{{if 'cuMemcpyHtoAAsync_v2' in found_functions}} - -cdef CUresult cuMemcpyHtoAAsync(CUarray dstArray, size_t dstOffset, const void* srcHost, size_t ByteCount, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMemcpyHtoAAsync_v2(dstArray, dstOffset, srcHost, ByteCount, hStream) -{{endif}} - -{{if 'cuMemcpyAtoHAsync_v2' in found_functions}} - -cdef CUresult cuMemcpyAtoHAsync(void* dstHost, CUarray srcArray, size_t srcOffset, size_t ByteCount, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMemcpyAtoHAsync_v2(dstHost, srcArray, srcOffset, ByteCount, hStream) -{{endif}} - -{{if 'cuMemcpy2DAsync_v2' in found_functions}} - -cdef CUresult cuMemcpy2DAsync(const CUDA_MEMCPY2D* pCopy, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMemcpy2DAsync_v2(pCopy, hStream) -{{endif}} - -{{if 'cuMemcpy3DAsync_v2' in found_functions}} - -cdef CUresult cuMemcpy3DAsync(const CUDA_MEMCPY3D* pCopy, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMemcpy3DAsync_v2(pCopy, hStream) -{{endif}} - -{{if 'cuMemcpy3DPeerAsync' in found_functions}} - -cdef CUresult cuMemcpy3DPeerAsync(const CUDA_MEMCPY3D_PEER* pCopy, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMemcpy3DPeerAsync(pCopy, hStream) -{{endif}} - -{{if 'cuMemcpyBatchAsync_v2' in found_functions}} - -cdef CUresult cuMemcpyBatchAsync(CUdeviceptr* dsts, CUdeviceptr* srcs, size_t* sizes, size_t count, CUmemcpyAttributes* attrs, size_t* attrsIdxs, size_t numAttrs, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMemcpyBatchAsync_v2(dsts, srcs, sizes, count, attrs, attrsIdxs, numAttrs, hStream) -{{endif}} - -{{if 'cuMemcpy3DBatchAsync_v2' in found_functions}} - -cdef CUresult cuMemcpy3DBatchAsync(size_t numOps, CUDA_MEMCPY3D_BATCH_OP* opList, unsigned long long flags, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMemcpy3DBatchAsync_v2(numOps, opList, flags, hStream) -{{endif}} - -{{if 'cuMemcpyWithAttributesAsync' in found_functions}} - -cdef CUresult cuMemcpyWithAttributesAsync(CUdeviceptr dst, CUdeviceptr src, size_t size, CUmemcpyAttributes* attr, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMemcpyWithAttributesAsync(dst, src, size, attr, hStream) -{{endif}} - -{{if 'cuMemcpy3DWithAttributesAsync' in found_functions}} - -cdef CUresult cuMemcpy3DWithAttributesAsync(CUDA_MEMCPY3D_BATCH_OP* op, unsigned long long flags, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMemcpy3DWithAttributesAsync(op, flags, hStream) -{{endif}} - -{{if 'cuMemsetD8_v2' in found_functions}} - -cdef CUresult cuMemsetD8(CUdeviceptr dstDevice, unsigned char uc, size_t N) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMemsetD8_v2(dstDevice, uc, N) -{{endif}} - -{{if 'cuMemsetD16_v2' in found_functions}} - -cdef CUresult cuMemsetD16(CUdeviceptr dstDevice, unsigned short us, size_t N) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMemsetD16_v2(dstDevice, us, N) -{{endif}} - -{{if 'cuMemsetD32_v2' in found_functions}} - -cdef CUresult cuMemsetD32(CUdeviceptr dstDevice, unsigned int ui, size_t N) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMemsetD32_v2(dstDevice, ui, N) -{{endif}} - -{{if 'cuMemsetD2D8_v2' in found_functions}} - -cdef CUresult cuMemsetD2D8(CUdeviceptr dstDevice, size_t dstPitch, unsigned char uc, size_t Width, size_t Height) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMemsetD2D8_v2(dstDevice, dstPitch, uc, Width, Height) -{{endif}} - -{{if 'cuMemsetD2D16_v2' in found_functions}} - -cdef CUresult cuMemsetD2D16(CUdeviceptr dstDevice, size_t dstPitch, unsigned short us, size_t Width, size_t Height) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMemsetD2D16_v2(dstDevice, dstPitch, us, Width, Height) -{{endif}} - -{{if 'cuMemsetD2D32_v2' in found_functions}} - -cdef CUresult cuMemsetD2D32(CUdeviceptr dstDevice, size_t dstPitch, unsigned int ui, size_t Width, size_t Height) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMemsetD2D32_v2(dstDevice, dstPitch, ui, Width, Height) -{{endif}} - -{{if 'cuMemsetD8Async' in found_functions}} - -cdef CUresult cuMemsetD8Async(CUdeviceptr dstDevice, unsigned char uc, size_t N, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMemsetD8Async(dstDevice, uc, N, hStream) -{{endif}} - -{{if 'cuMemsetD16Async' in found_functions}} - -cdef CUresult cuMemsetD16Async(CUdeviceptr dstDevice, unsigned short us, size_t N, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMemsetD16Async(dstDevice, us, N, hStream) -{{endif}} - -{{if 'cuMemsetD32Async' in found_functions}} - -cdef CUresult cuMemsetD32Async(CUdeviceptr dstDevice, unsigned int ui, size_t N, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMemsetD32Async(dstDevice, ui, N, hStream) -{{endif}} - -{{if 'cuMemsetD2D8Async' in found_functions}} - -cdef CUresult cuMemsetD2D8Async(CUdeviceptr dstDevice, size_t dstPitch, unsigned char uc, size_t Width, size_t Height, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMemsetD2D8Async(dstDevice, dstPitch, uc, Width, Height, hStream) -{{endif}} - -{{if 'cuMemsetD2D16Async' in found_functions}} - -cdef CUresult cuMemsetD2D16Async(CUdeviceptr dstDevice, size_t dstPitch, unsigned short us, size_t Width, size_t Height, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMemsetD2D16Async(dstDevice, dstPitch, us, Width, Height, hStream) -{{endif}} - -{{if 'cuMemsetD2D32Async' in found_functions}} - -cdef CUresult cuMemsetD2D32Async(CUdeviceptr dstDevice, size_t dstPitch, unsigned int ui, size_t Width, size_t Height, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMemsetD2D32Async(dstDevice, dstPitch, ui, Width, Height, hStream) -{{endif}} - -{{if 'cuArrayCreate_v2' in found_functions}} - -cdef CUresult cuArrayCreate(CUarray* pHandle, const CUDA_ARRAY_DESCRIPTOR* pAllocateArray) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuArrayCreate_v2(pHandle, pAllocateArray) -{{endif}} - -{{if 'cuArrayGetDescriptor_v2' in found_functions}} - -cdef CUresult cuArrayGetDescriptor(CUDA_ARRAY_DESCRIPTOR* pArrayDescriptor, CUarray hArray) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuArrayGetDescriptor_v2(pArrayDescriptor, hArray) -{{endif}} - -{{if 'cuArrayGetSparseProperties' in found_functions}} - -cdef CUresult cuArrayGetSparseProperties(CUDA_ARRAY_SPARSE_PROPERTIES* sparseProperties, CUarray array) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuArrayGetSparseProperties(sparseProperties, array) -{{endif}} - -{{if 'cuMipmappedArrayGetSparseProperties' in found_functions}} - -cdef CUresult cuMipmappedArrayGetSparseProperties(CUDA_ARRAY_SPARSE_PROPERTIES* sparseProperties, CUmipmappedArray mipmap) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMipmappedArrayGetSparseProperties(sparseProperties, mipmap) -{{endif}} - -{{if 'cuArrayGetMemoryRequirements' in found_functions}} - -cdef CUresult cuArrayGetMemoryRequirements(CUDA_ARRAY_MEMORY_REQUIREMENTS* memoryRequirements, CUarray array, CUdevice device) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuArrayGetMemoryRequirements(memoryRequirements, array, device) -{{endif}} - -{{if 'cuMipmappedArrayGetMemoryRequirements' in found_functions}} - -cdef CUresult cuMipmappedArrayGetMemoryRequirements(CUDA_ARRAY_MEMORY_REQUIREMENTS* memoryRequirements, CUmipmappedArray mipmap, CUdevice device) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMipmappedArrayGetMemoryRequirements(memoryRequirements, mipmap, device) -{{endif}} - -{{if 'cuArrayGetPlane' in found_functions}} - -cdef CUresult cuArrayGetPlane(CUarray* pPlaneArray, CUarray hArray, unsigned int planeIdx) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuArrayGetPlane(pPlaneArray, hArray, planeIdx) -{{endif}} - -{{if 'cuArrayDestroy' in found_functions}} - -cdef CUresult cuArrayDestroy(CUarray hArray) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuArrayDestroy(hArray) -{{endif}} - -{{if 'cuArray3DCreate_v2' in found_functions}} - -cdef CUresult cuArray3DCreate(CUarray* pHandle, const CUDA_ARRAY3D_DESCRIPTOR* pAllocateArray) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuArray3DCreate_v2(pHandle, pAllocateArray) -{{endif}} - -{{if 'cuArray3DGetDescriptor_v2' in found_functions}} - -cdef CUresult cuArray3DGetDescriptor(CUDA_ARRAY3D_DESCRIPTOR* pArrayDescriptor, CUarray hArray) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuArray3DGetDescriptor_v2(pArrayDescriptor, hArray) -{{endif}} - -{{if 'cuMipmappedArrayCreate' in found_functions}} - -cdef CUresult cuMipmappedArrayCreate(CUmipmappedArray* pHandle, const CUDA_ARRAY3D_DESCRIPTOR* pMipmappedArrayDesc, unsigned int numMipmapLevels) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMipmappedArrayCreate(pHandle, pMipmappedArrayDesc, numMipmapLevels) -{{endif}} - -{{if 'cuMipmappedArrayGetLevel' in found_functions}} - -cdef CUresult cuMipmappedArrayGetLevel(CUarray* pLevelArray, CUmipmappedArray hMipmappedArray, unsigned int level) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMipmappedArrayGetLevel(pLevelArray, hMipmappedArray, level) -{{endif}} - -{{if 'cuMipmappedArrayDestroy' in found_functions}} - -cdef CUresult cuMipmappedArrayDestroy(CUmipmappedArray hMipmappedArray) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMipmappedArrayDestroy(hMipmappedArray) -{{endif}} - -{{if 'cuMemGetHandleForAddressRange' in found_functions}} - -cdef CUresult cuMemGetHandleForAddressRange(void* handle, CUdeviceptr dptr, size_t size, CUmemRangeHandleType handleType, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMemGetHandleForAddressRange(handle, dptr, size, handleType, flags) -{{endif}} - -{{if 'cuMemBatchDecompressAsync' in found_functions}} - -cdef CUresult cuMemBatchDecompressAsync(CUmemDecompressParams* paramsArray, size_t count, unsigned int flags, size_t* errorIndex, CUstream stream) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMemBatchDecompressAsync(paramsArray, count, flags, errorIndex, stream) -{{endif}} - -{{if 'cuMemAddressReserve' in found_functions}} - -cdef CUresult cuMemAddressReserve(CUdeviceptr* ptr, size_t size, size_t alignment, CUdeviceptr addr, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMemAddressReserve(ptr, size, alignment, addr, flags) -{{endif}} - -{{if 'cuMemAddressFree' in found_functions}} - -cdef CUresult cuMemAddressFree(CUdeviceptr ptr, size_t size) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMemAddressFree(ptr, size) -{{endif}} - -{{if 'cuMemCreate' in found_functions}} - -cdef CUresult cuMemCreate(CUmemGenericAllocationHandle* handle, size_t size, const CUmemAllocationProp* prop, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMemCreate(handle, size, prop, flags) -{{endif}} - -{{if 'cuMemRelease' in found_functions}} - -cdef CUresult cuMemRelease(CUmemGenericAllocationHandle handle) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMemRelease(handle) -{{endif}} - -{{if 'cuMemMap' in found_functions}} - -cdef CUresult cuMemMap(CUdeviceptr ptr, size_t size, size_t offset, CUmemGenericAllocationHandle handle, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMemMap(ptr, size, offset, handle, flags) -{{endif}} - -{{if 'cuMemMapArrayAsync' in found_functions}} - -cdef CUresult cuMemMapArrayAsync(CUarrayMapInfo* mapInfoList, unsigned int count, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMemMapArrayAsync(mapInfoList, count, hStream) -{{endif}} - -{{if 'cuMemUnmap' in found_functions}} - -cdef CUresult cuMemUnmap(CUdeviceptr ptr, size_t size) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMemUnmap(ptr, size) -{{endif}} - -{{if 'cuMemSetAccess' in found_functions}} - -cdef CUresult cuMemSetAccess(CUdeviceptr ptr, size_t size, const CUmemAccessDesc* desc, size_t count) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMemSetAccess(ptr, size, desc, count) -{{endif}} - -{{if 'cuMemGetAccess' in found_functions}} - -cdef CUresult cuMemGetAccess(unsigned long long* flags, const CUmemLocation* location, CUdeviceptr ptr) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMemGetAccess(flags, location, ptr) -{{endif}} - -{{if 'cuMemExportToShareableHandle' in found_functions}} - -cdef CUresult cuMemExportToShareableHandle(void* shareableHandle, CUmemGenericAllocationHandle handle, CUmemAllocationHandleType handleType, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMemExportToShareableHandle(shareableHandle, handle, handleType, flags) -{{endif}} - -{{if 'cuMemImportFromShareableHandle' in found_functions}} - -cdef CUresult cuMemImportFromShareableHandle(CUmemGenericAllocationHandle* handle, void* osHandle, CUmemAllocationHandleType shHandleType) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMemImportFromShareableHandle(handle, osHandle, shHandleType) -{{endif}} - -{{if 'cuMemGetAllocationGranularity' in found_functions}} - -cdef CUresult cuMemGetAllocationGranularity(size_t* granularity, const CUmemAllocationProp* prop, CUmemAllocationGranularity_flags option) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMemGetAllocationGranularity(granularity, prop, option) -{{endif}} - -{{if 'cuMemGetAllocationPropertiesFromHandle' in found_functions}} - -cdef CUresult cuMemGetAllocationPropertiesFromHandle(CUmemAllocationProp* prop, CUmemGenericAllocationHandle handle) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMemGetAllocationPropertiesFromHandle(prop, handle) -{{endif}} - -{{if 'cuMemRetainAllocationHandle' in found_functions}} - -cdef CUresult cuMemRetainAllocationHandle(CUmemGenericAllocationHandle* handle, void* addr) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMemRetainAllocationHandle(handle, addr) -{{endif}} - -{{if 'cuMemFreeAsync' in found_functions}} - -cdef CUresult cuMemFreeAsync(CUdeviceptr dptr, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMemFreeAsync(dptr, hStream) -{{endif}} - -{{if 'cuMemAllocAsync' in found_functions}} - -cdef CUresult cuMemAllocAsync(CUdeviceptr* dptr, size_t bytesize, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMemAllocAsync(dptr, bytesize, hStream) -{{endif}} - -{{if 'cuMemPoolTrimTo' in found_functions}} - -cdef CUresult cuMemPoolTrimTo(CUmemoryPool pool, size_t minBytesToKeep) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMemPoolTrimTo(pool, minBytesToKeep) -{{endif}} - -{{if 'cuMemPoolSetAttribute' in found_functions}} - -cdef CUresult cuMemPoolSetAttribute(CUmemoryPool pool, CUmemPool_attribute attr, void* value) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMemPoolSetAttribute(pool, attr, value) -{{endif}} - -{{if 'cuMemPoolGetAttribute' in found_functions}} - -cdef CUresult cuMemPoolGetAttribute(CUmemoryPool pool, CUmemPool_attribute attr, void* value) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMemPoolGetAttribute(pool, attr, value) -{{endif}} - -{{if 'cuMemPoolSetAccess' in found_functions}} - -cdef CUresult cuMemPoolSetAccess(CUmemoryPool pool, const CUmemAccessDesc* map, size_t count) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMemPoolSetAccess(pool, map, count) -{{endif}} - -{{if 'cuMemPoolGetAccess' in found_functions}} - -cdef CUresult cuMemPoolGetAccess(CUmemAccess_flags* flags, CUmemoryPool memPool, CUmemLocation* location) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMemPoolGetAccess(flags, memPool, location) -{{endif}} - -{{if 'cuMemPoolCreate' in found_functions}} - -cdef CUresult cuMemPoolCreate(CUmemoryPool* pool, const CUmemPoolProps* poolProps) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMemPoolCreate(pool, poolProps) -{{endif}} - -{{if 'cuMemPoolDestroy' in found_functions}} - -cdef CUresult cuMemPoolDestroy(CUmemoryPool pool) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMemPoolDestroy(pool) -{{endif}} - -{{if 'cuMemGetDefaultMemPool' in found_functions}} - -cdef CUresult cuMemGetDefaultMemPool(CUmemoryPool* pool_out, CUmemLocation* location, CUmemAllocationType typename) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMemGetDefaultMemPool(pool_out, location, typename) -{{endif}} - -{{if 'cuMemGetMemPool' in found_functions}} - -cdef CUresult cuMemGetMemPool(CUmemoryPool* pool, CUmemLocation* location, CUmemAllocationType typename) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMemGetMemPool(pool, location, typename) -{{endif}} - -{{if 'cuMemSetMemPool' in found_functions}} - -cdef CUresult cuMemSetMemPool(CUmemLocation* location, CUmemAllocationType typename, CUmemoryPool pool) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMemSetMemPool(location, typename, pool) -{{endif}} - -{{if 'cuMemAllocFromPoolAsync' in found_functions}} - -cdef CUresult cuMemAllocFromPoolAsync(CUdeviceptr* dptr, size_t bytesize, CUmemoryPool pool, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMemAllocFromPoolAsync(dptr, bytesize, pool, hStream) -{{endif}} - -{{if 'cuMemPoolExportToShareableHandle' in found_functions}} - -cdef CUresult cuMemPoolExportToShareableHandle(void* handle_out, CUmemoryPool pool, CUmemAllocationHandleType handleType, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMemPoolExportToShareableHandle(handle_out, pool, handleType, flags) -{{endif}} - -{{if 'cuMemPoolImportFromShareableHandle' in found_functions}} - -cdef CUresult cuMemPoolImportFromShareableHandle(CUmemoryPool* pool_out, void* handle, CUmemAllocationHandleType handleType, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMemPoolImportFromShareableHandle(pool_out, handle, handleType, flags) -{{endif}} - -{{if 'cuMemPoolExportPointer' in found_functions}} - -cdef CUresult cuMemPoolExportPointer(CUmemPoolPtrExportData* shareData_out, CUdeviceptr ptr) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMemPoolExportPointer(shareData_out, ptr) -{{endif}} - -{{if 'cuMemPoolImportPointer' in found_functions}} - -cdef CUresult cuMemPoolImportPointer(CUdeviceptr* ptr_out, CUmemoryPool pool, CUmemPoolPtrExportData* shareData) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMemPoolImportPointer(ptr_out, pool, shareData) -{{endif}} - -{{if 'cuMulticastCreate' in found_functions}} - -cdef CUresult cuMulticastCreate(CUmemGenericAllocationHandle* mcHandle, const CUmulticastObjectProp* prop) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMulticastCreate(mcHandle, prop) -{{endif}} - -{{if 'cuMulticastAddDevice' in found_functions}} - -cdef CUresult cuMulticastAddDevice(CUmemGenericAllocationHandle mcHandle, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMulticastAddDevice(mcHandle, dev) -{{endif}} - -{{if 'cuMulticastBindMem' in found_functions}} - -cdef CUresult cuMulticastBindMem(CUmemGenericAllocationHandle mcHandle, size_t mcOffset, CUmemGenericAllocationHandle memHandle, size_t memOffset, size_t size, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMulticastBindMem(mcHandle, mcOffset, memHandle, memOffset, size, flags) -{{endif}} - -{{if 'cuMulticastBindMem_v2' in found_functions}} - -cdef CUresult cuMulticastBindMem_v2(CUmemGenericAllocationHandle mcHandle, CUdevice dev, size_t mcOffset, CUmemGenericAllocationHandle memHandle, size_t memOffset, size_t size, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMulticastBindMem_v2(mcHandle, dev, mcOffset, memHandle, memOffset, size, flags) -{{endif}} - -{{if 'cuMulticastBindAddr' in found_functions}} - -cdef CUresult cuMulticastBindAddr(CUmemGenericAllocationHandle mcHandle, size_t mcOffset, CUdeviceptr memptr, size_t size, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMulticastBindAddr(mcHandle, mcOffset, memptr, size, flags) -{{endif}} - -{{if 'cuMulticastBindAddr_v2' in found_functions}} - -cdef CUresult cuMulticastBindAddr_v2(CUmemGenericAllocationHandle mcHandle, CUdevice dev, size_t mcOffset, CUdeviceptr memptr, size_t size, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMulticastBindAddr_v2(mcHandle, dev, mcOffset, memptr, size, flags) -{{endif}} - -{{if 'cuMulticastUnbind' in found_functions}} - -cdef CUresult cuMulticastUnbind(CUmemGenericAllocationHandle mcHandle, CUdevice dev, size_t mcOffset, size_t size) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMulticastUnbind(mcHandle, dev, mcOffset, size) -{{endif}} - -{{if 'cuMulticastGetGranularity' in found_functions}} - -cdef CUresult cuMulticastGetGranularity(size_t* granularity, const CUmulticastObjectProp* prop, CUmulticastGranularity_flags option) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMulticastGetGranularity(granularity, prop, option) -{{endif}} - -{{if 'cuPointerGetAttribute' in found_functions}} - -cdef CUresult cuPointerGetAttribute(void* data, CUpointer_attribute attribute, CUdeviceptr ptr) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuPointerGetAttribute(data, attribute, ptr) -{{endif}} - -{{if 'cuMemPrefetchAsync_v2' in found_functions}} - -cdef CUresult cuMemPrefetchAsync(CUdeviceptr devPtr, size_t count, CUmemLocation location, unsigned int flags, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMemPrefetchAsync_v2(devPtr, count, location, flags, hStream) -{{endif}} - -{{if 'cuMemAdvise_v2' in found_functions}} - -cdef CUresult cuMemAdvise(CUdeviceptr devPtr, size_t count, CUmem_advise advice, CUmemLocation location) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMemAdvise_v2(devPtr, count, advice, location) -{{endif}} - -{{if 'cuMemPrefetchBatchAsync' in found_functions}} - -cdef CUresult cuMemPrefetchBatchAsync(CUdeviceptr* dptrs, size_t* sizes, size_t count, CUmemLocation* prefetchLocs, size_t* prefetchLocIdxs, size_t numPrefetchLocs, unsigned long long flags, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMemPrefetchBatchAsync(dptrs, sizes, count, prefetchLocs, prefetchLocIdxs, numPrefetchLocs, flags, hStream) -{{endif}} - -{{if 'cuMemDiscardBatchAsync' in found_functions}} - -cdef CUresult cuMemDiscardBatchAsync(CUdeviceptr* dptrs, size_t* sizes, size_t count, unsigned long long flags, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMemDiscardBatchAsync(dptrs, sizes, count, flags, hStream) -{{endif}} - -{{if 'cuMemDiscardAndPrefetchBatchAsync' in found_functions}} - -cdef CUresult cuMemDiscardAndPrefetchBatchAsync(CUdeviceptr* dptrs, size_t* sizes, size_t count, CUmemLocation* prefetchLocs, size_t* prefetchLocIdxs, size_t numPrefetchLocs, unsigned long long flags, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMemDiscardAndPrefetchBatchAsync(dptrs, sizes, count, prefetchLocs, prefetchLocIdxs, numPrefetchLocs, flags, hStream) -{{endif}} - -{{if 'cuMemRangeGetAttribute' in found_functions}} - -cdef CUresult cuMemRangeGetAttribute(void* data, size_t dataSize, CUmem_range_attribute attribute, CUdeviceptr devPtr, size_t count) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMemRangeGetAttribute(data, dataSize, attribute, devPtr, count) -{{endif}} - -{{if 'cuMemRangeGetAttributes' in found_functions}} - -cdef CUresult cuMemRangeGetAttributes(void** data, size_t* dataSizes, CUmem_range_attribute* attributes, size_t numAttributes, CUdeviceptr devPtr, size_t count) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuMemRangeGetAttributes(data, dataSizes, attributes, numAttributes, devPtr, count) -{{endif}} - -{{if 'cuPointerSetAttribute' in found_functions}} - -cdef CUresult cuPointerSetAttribute(const void* value, CUpointer_attribute attribute, CUdeviceptr ptr) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuPointerSetAttribute(value, attribute, ptr) -{{endif}} - -{{if 'cuPointerGetAttributes' in found_functions}} - -cdef CUresult cuPointerGetAttributes(unsigned int numAttributes, CUpointer_attribute* attributes, void** data, CUdeviceptr ptr) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuPointerGetAttributes(numAttributes, attributes, data, ptr) -{{endif}} - -{{if 'cuStreamCreate' in found_functions}} - -cdef CUresult cuStreamCreate(CUstream* phStream, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuStreamCreate(phStream, Flags) -{{endif}} - -{{if 'cuStreamCreateWithPriority' in found_functions}} - -cdef CUresult cuStreamCreateWithPriority(CUstream* phStream, unsigned int flags, int priority) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuStreamCreateWithPriority(phStream, flags, priority) -{{endif}} - -{{if 'cuStreamBeginCaptureToCig' in found_functions}} - -cdef CUresult cuStreamBeginCaptureToCig(CUstream hStream, CUstreamCigCaptureParams* streamCigCaptureParams) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuStreamBeginCaptureToCig(hStream, streamCigCaptureParams) -{{endif}} - -{{if 'cuStreamEndCaptureToCig' in found_functions}} - -cdef CUresult cuStreamEndCaptureToCig(CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuStreamEndCaptureToCig(hStream) -{{endif}} - -{{if 'cuStreamGetPriority' in found_functions}} - -cdef CUresult cuStreamGetPriority(CUstream hStream, int* priority) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuStreamGetPriority(hStream, priority) -{{endif}} - -{{if 'cuStreamGetDevice' in found_functions}} - -cdef CUresult cuStreamGetDevice(CUstream hStream, CUdevice* device) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuStreamGetDevice(hStream, device) -{{endif}} - -{{if 'cuStreamGetFlags' in found_functions}} - -cdef CUresult cuStreamGetFlags(CUstream hStream, unsigned int* flags) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuStreamGetFlags(hStream, flags) -{{endif}} - -{{if 'cuStreamGetId' in found_functions}} - -cdef CUresult cuStreamGetId(CUstream hStream, unsigned long long* streamId) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuStreamGetId(hStream, streamId) -{{endif}} - -{{if 'cuStreamGetCtx' in found_functions}} - -cdef CUresult cuStreamGetCtx(CUstream hStream, CUcontext* pctx) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuStreamGetCtx(hStream, pctx) -{{endif}} - -{{if 'cuStreamGetCtx_v2' in found_functions}} - -cdef CUresult cuStreamGetCtx_v2(CUstream hStream, CUcontext* pCtx, CUgreenCtx* pGreenCtx) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuStreamGetCtx_v2(hStream, pCtx, pGreenCtx) -{{endif}} - -{{if 'cuStreamWaitEvent' in found_functions}} - -cdef CUresult cuStreamWaitEvent(CUstream hStream, CUevent hEvent, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuStreamWaitEvent(hStream, hEvent, Flags) -{{endif}} - -{{if 'cuStreamAddCallback' in found_functions}} - -cdef CUresult cuStreamAddCallback(CUstream hStream, CUstreamCallback callback, void* userData, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuStreamAddCallback(hStream, callback, userData, flags) -{{endif}} - -{{if 'cuStreamBeginCapture_v2' in found_functions}} - -cdef CUresult cuStreamBeginCapture(CUstream hStream, CUstreamCaptureMode mode) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuStreamBeginCapture_v2(hStream, mode) -{{endif}} - -{{if 'cuStreamBeginCaptureToGraph' in found_functions}} - -cdef CUresult cuStreamBeginCaptureToGraph(CUstream hStream, CUgraph hGraph, const CUgraphNode* dependencies, const CUgraphEdgeData* dependencyData, size_t numDependencies, CUstreamCaptureMode mode) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuStreamBeginCaptureToGraph(hStream, hGraph, dependencies, dependencyData, numDependencies, mode) -{{endif}} - -{{if 'cuThreadExchangeStreamCaptureMode' in found_functions}} - -cdef CUresult cuThreadExchangeStreamCaptureMode(CUstreamCaptureMode* mode) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuThreadExchangeStreamCaptureMode(mode) -{{endif}} - -{{if 'cuStreamEndCapture' in found_functions}} - -cdef CUresult cuStreamEndCapture(CUstream hStream, CUgraph* phGraph) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuStreamEndCapture(hStream, phGraph) -{{endif}} - -{{if 'cuStreamIsCapturing' in found_functions}} - -cdef CUresult cuStreamIsCapturing(CUstream hStream, CUstreamCaptureStatus* captureStatus) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuStreamIsCapturing(hStream, captureStatus) -{{endif}} - -{{if 'cuStreamGetCaptureInfo_v3' in found_functions}} - -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 cydriver._cuStreamGetCaptureInfo_v3(hStream, captureStatus_out, id_out, graph_out, dependencies_out, edgeData_out, numDependencies_out) -{{endif}} - -{{if 'cuStreamUpdateCaptureDependencies_v2' in found_functions}} - -cdef CUresult cuStreamUpdateCaptureDependencies(CUstream hStream, CUgraphNode* dependencies, const CUgraphEdgeData* dependencyData, size_t numDependencies, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuStreamUpdateCaptureDependencies_v2(hStream, dependencies, dependencyData, numDependencies, flags) -{{endif}} - -{{if 'cuStreamAttachMemAsync' in found_functions}} - -cdef CUresult cuStreamAttachMemAsync(CUstream hStream, CUdeviceptr dptr, size_t length, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuStreamAttachMemAsync(hStream, dptr, length, flags) -{{endif}} - -{{if 'cuStreamQuery' in found_functions}} - -cdef CUresult cuStreamQuery(CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuStreamQuery(hStream) -{{endif}} - -{{if 'cuStreamSynchronize' in found_functions}} - -cdef CUresult cuStreamSynchronize(CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuStreamSynchronize(hStream) -{{endif}} - -{{if 'cuStreamDestroy_v2' in found_functions}} - -cdef CUresult cuStreamDestroy(CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuStreamDestroy_v2(hStream) -{{endif}} - -{{if 'cuStreamCopyAttributes' in found_functions}} - -cdef CUresult cuStreamCopyAttributes(CUstream dst, CUstream src) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuStreamCopyAttributes(dst, src) -{{endif}} - -{{if 'cuStreamGetAttribute' in found_functions}} - -cdef CUresult cuStreamGetAttribute(CUstream hStream, CUstreamAttrID attr, CUstreamAttrValue* value_out) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuStreamGetAttribute(hStream, attr, value_out) -{{endif}} - -{{if 'cuStreamSetAttribute' in found_functions}} - -cdef CUresult cuStreamSetAttribute(CUstream hStream, CUstreamAttrID attr, const CUstreamAttrValue* value) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuStreamSetAttribute(hStream, attr, value) -{{endif}} - -{{if 'cuEventCreate' in found_functions}} - -cdef CUresult cuEventCreate(CUevent* phEvent, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuEventCreate(phEvent, Flags) -{{endif}} - -{{if 'cuEventRecord' in found_functions}} - -cdef CUresult cuEventRecord(CUevent hEvent, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuEventRecord(hEvent, hStream) -{{endif}} - -{{if 'cuEventRecordWithFlags' in found_functions}} - -cdef CUresult cuEventRecordWithFlags(CUevent hEvent, CUstream hStream, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuEventRecordWithFlags(hEvent, hStream, flags) -{{endif}} - -{{if 'cuEventQuery' in found_functions}} - -cdef CUresult cuEventQuery(CUevent hEvent) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuEventQuery(hEvent) -{{endif}} - -{{if 'cuEventSynchronize' in found_functions}} - -cdef CUresult cuEventSynchronize(CUevent hEvent) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuEventSynchronize(hEvent) -{{endif}} - -{{if 'cuEventDestroy_v2' in found_functions}} - -cdef CUresult cuEventDestroy(CUevent hEvent) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuEventDestroy_v2(hEvent) -{{endif}} - -{{if 'cuEventElapsedTime_v2' in found_functions}} - -cdef CUresult cuEventElapsedTime(float* pMilliseconds, CUevent hStart, CUevent hEnd) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuEventElapsedTime_v2(pMilliseconds, hStart, hEnd) -{{endif}} - -{{if 'cuImportExternalMemory' in found_functions}} - -cdef CUresult cuImportExternalMemory(CUexternalMemory* extMem_out, const CUDA_EXTERNAL_MEMORY_HANDLE_DESC* memHandleDesc) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuImportExternalMemory(extMem_out, memHandleDesc) -{{endif}} - -{{if 'cuExternalMemoryGetMappedBuffer' in found_functions}} - -cdef CUresult cuExternalMemoryGetMappedBuffer(CUdeviceptr* devPtr, CUexternalMemory extMem, const CUDA_EXTERNAL_MEMORY_BUFFER_DESC* bufferDesc) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuExternalMemoryGetMappedBuffer(devPtr, extMem, bufferDesc) -{{endif}} - -{{if 'cuExternalMemoryGetMappedMipmappedArray' in found_functions}} - -cdef CUresult cuExternalMemoryGetMappedMipmappedArray(CUmipmappedArray* mipmap, CUexternalMemory extMem, const CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC* mipmapDesc) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuExternalMemoryGetMappedMipmappedArray(mipmap, extMem, mipmapDesc) -{{endif}} - -{{if 'cuDestroyExternalMemory' in found_functions}} - -cdef CUresult cuDestroyExternalMemory(CUexternalMemory extMem) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuDestroyExternalMemory(extMem) -{{endif}} - -{{if 'cuImportExternalSemaphore' in found_functions}} - -cdef CUresult cuImportExternalSemaphore(CUexternalSemaphore* extSem_out, const CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC* semHandleDesc) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuImportExternalSemaphore(extSem_out, semHandleDesc) -{{endif}} - -{{if 'cuSignalExternalSemaphoresAsync' in found_functions}} - -cdef CUresult cuSignalExternalSemaphoresAsync(const CUexternalSemaphore* extSemArray, const CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS* paramsArray, unsigned int numExtSems, CUstream stream) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuSignalExternalSemaphoresAsync(extSemArray, paramsArray, numExtSems, stream) -{{endif}} - -{{if 'cuWaitExternalSemaphoresAsync' in found_functions}} - -cdef CUresult cuWaitExternalSemaphoresAsync(const CUexternalSemaphore* extSemArray, const CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS* paramsArray, unsigned int numExtSems, CUstream stream) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuWaitExternalSemaphoresAsync(extSemArray, paramsArray, numExtSems, stream) -{{endif}} - -{{if 'cuDestroyExternalSemaphore' in found_functions}} - -cdef CUresult cuDestroyExternalSemaphore(CUexternalSemaphore extSem) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuDestroyExternalSemaphore(extSem) -{{endif}} - -{{if 'cuStreamWaitValue32_v2' in found_functions}} - -cdef CUresult cuStreamWaitValue32(CUstream stream, CUdeviceptr addr, cuuint32_t value, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuStreamWaitValue32_v2(stream, addr, value, flags) -{{endif}} - -{{if 'cuStreamWaitValue64_v2' in found_functions}} - -cdef CUresult cuStreamWaitValue64(CUstream stream, CUdeviceptr addr, cuuint64_t value, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuStreamWaitValue64_v2(stream, addr, value, flags) -{{endif}} - -{{if 'cuStreamWriteValue32_v2' in found_functions}} - -cdef CUresult cuStreamWriteValue32(CUstream stream, CUdeviceptr addr, cuuint32_t value, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuStreamWriteValue32_v2(stream, addr, value, flags) -{{endif}} - -{{if 'cuStreamWriteValue64_v2' in found_functions}} - -cdef CUresult cuStreamWriteValue64(CUstream stream, CUdeviceptr addr, cuuint64_t value, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuStreamWriteValue64_v2(stream, addr, value, flags) -{{endif}} - -{{if 'cuStreamBatchMemOp_v2' in found_functions}} - -cdef CUresult cuStreamBatchMemOp(CUstream stream, unsigned int count, CUstreamBatchMemOpParams* paramArray, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuStreamBatchMemOp_v2(stream, count, paramArray, flags) -{{endif}} - -{{if 'cuFuncGetAttribute' in found_functions}} - -cdef CUresult cuFuncGetAttribute(int* pi, CUfunction_attribute attrib, CUfunction hfunc) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuFuncGetAttribute(pi, attrib, hfunc) -{{endif}} - -{{if 'cuFuncSetAttribute' in found_functions}} - -cdef CUresult cuFuncSetAttribute(CUfunction hfunc, CUfunction_attribute attrib, int value) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuFuncSetAttribute(hfunc, attrib, value) -{{endif}} - -{{if 'cuFuncSetCacheConfig' in found_functions}} - -cdef CUresult cuFuncSetCacheConfig(CUfunction hfunc, CUfunc_cache config) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuFuncSetCacheConfig(hfunc, config) -{{endif}} - -{{if 'cuFuncGetModule' in found_functions}} - -cdef CUresult cuFuncGetModule(CUmodule* hmod, CUfunction hfunc) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuFuncGetModule(hmod, hfunc) -{{endif}} - -{{if 'cuFuncGetName' in found_functions}} - -cdef CUresult cuFuncGetName(const char** name, CUfunction hfunc) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuFuncGetName(name, hfunc) -{{endif}} - -{{if 'cuFuncGetParamInfo' in found_functions}} - -cdef CUresult cuFuncGetParamInfo(CUfunction func, size_t paramIndex, size_t* paramOffset, size_t* paramSize) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuFuncGetParamInfo(func, paramIndex, paramOffset, paramSize) -{{endif}} - -{{if 'cuFuncGetParamCount' in found_functions}} - -cdef CUresult cuFuncGetParamCount(CUfunction func, size_t* paramCount) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuFuncGetParamCount(func, paramCount) -{{endif}} - -{{if 'cuFuncIsLoaded' in found_functions}} - -cdef CUresult cuFuncIsLoaded(CUfunctionLoadingState* state, CUfunction function) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuFuncIsLoaded(state, function) -{{endif}} - -{{if 'cuFuncLoad' in found_functions}} - -cdef CUresult cuFuncLoad(CUfunction function) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuFuncLoad(function) -{{endif}} - -{{if 'cuLaunchKernel' in found_functions}} - -cdef CUresult cuLaunchKernel(CUfunction f, unsigned int gridDimX, unsigned int gridDimY, unsigned int gridDimZ, unsigned int blockDimX, unsigned int blockDimY, unsigned int blockDimZ, unsigned int sharedMemBytes, CUstream hStream, void** kernelParams, void** extra) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuLaunchKernel(f, gridDimX, gridDimY, gridDimZ, blockDimX, blockDimY, blockDimZ, sharedMemBytes, hStream, kernelParams, extra) -{{endif}} - -{{if 'cuLaunchKernelEx' in found_functions}} - -cdef CUresult cuLaunchKernelEx(const CUlaunchConfig* config, CUfunction f, void** kernelParams, void** extra) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuLaunchKernelEx(config, f, kernelParams, extra) -{{endif}} - -{{if 'cuLaunchCooperativeKernel' in found_functions}} - -cdef CUresult cuLaunchCooperativeKernel(CUfunction f, unsigned int gridDimX, unsigned int gridDimY, unsigned int gridDimZ, unsigned int blockDimX, unsigned int blockDimY, unsigned int blockDimZ, unsigned int sharedMemBytes, CUstream hStream, void** kernelParams) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuLaunchCooperativeKernel(f, gridDimX, gridDimY, gridDimZ, blockDimX, blockDimY, blockDimZ, sharedMemBytes, hStream, kernelParams) -{{endif}} - -{{if 'cuLaunchCooperativeKernelMultiDevice' in found_functions}} - -cdef CUresult cuLaunchCooperativeKernelMultiDevice(CUDA_LAUNCH_PARAMS* launchParamsList, unsigned int numDevices, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuLaunchCooperativeKernelMultiDevice(launchParamsList, numDevices, flags) -{{endif}} - -{{if 'cuLaunchHostFunc' in found_functions}} - -cdef CUresult cuLaunchHostFunc(CUstream hStream, CUhostFn fn, void* userData) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuLaunchHostFunc(hStream, fn, userData) -{{endif}} - -{{if 'cuLaunchHostFunc_v2' in found_functions}} - -cdef CUresult cuLaunchHostFunc_v2(CUstream hStream, CUhostFn fn, void* userData, unsigned int syncMode) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuLaunchHostFunc_v2(hStream, fn, userData, syncMode) -{{endif}} - -{{if 'cuFuncSetBlockShape' in found_functions}} - -cdef CUresult cuFuncSetBlockShape(CUfunction hfunc, int x, int y, int z) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuFuncSetBlockShape(hfunc, x, y, z) -{{endif}} - -{{if 'cuFuncSetSharedSize' in found_functions}} - -cdef CUresult cuFuncSetSharedSize(CUfunction hfunc, unsigned int numbytes) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuFuncSetSharedSize(hfunc, numbytes) -{{endif}} - -{{if 'cuParamSetSize' in found_functions}} - -cdef CUresult cuParamSetSize(CUfunction hfunc, unsigned int numbytes) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuParamSetSize(hfunc, numbytes) -{{endif}} - -{{if 'cuParamSeti' in found_functions}} - -cdef CUresult cuParamSeti(CUfunction hfunc, int offset, unsigned int value) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuParamSeti(hfunc, offset, value) -{{endif}} - -{{if 'cuParamSetf' in found_functions}} - -cdef CUresult cuParamSetf(CUfunction hfunc, int offset, float value) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuParamSetf(hfunc, offset, value) -{{endif}} - -{{if 'cuParamSetv' in found_functions}} - -cdef CUresult cuParamSetv(CUfunction hfunc, int offset, void* ptr, unsigned int numbytes) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuParamSetv(hfunc, offset, ptr, numbytes) -{{endif}} - -{{if 'cuLaunch' in found_functions}} - -cdef CUresult cuLaunch(CUfunction f) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuLaunch(f) -{{endif}} - -{{if 'cuLaunchGrid' in found_functions}} - -cdef CUresult cuLaunchGrid(CUfunction f, int grid_width, int grid_height) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuLaunchGrid(f, grid_width, grid_height) -{{endif}} - -{{if 'cuLaunchGridAsync' in found_functions}} - -cdef CUresult cuLaunchGridAsync(CUfunction f, int grid_width, int grid_height, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuLaunchGridAsync(f, grid_width, grid_height, hStream) -{{endif}} - -{{if 'cuParamSetTexRef' in found_functions}} - -cdef CUresult cuParamSetTexRef(CUfunction hfunc, int texunit, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuParamSetTexRef(hfunc, texunit, hTexRef) -{{endif}} - -{{if 'cuFuncSetSharedMemConfig' in found_functions}} - -cdef CUresult cuFuncSetSharedMemConfig(CUfunction hfunc, CUsharedconfig config) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuFuncSetSharedMemConfig(hfunc, config) -{{endif}} - -{{if 'cuGraphCreate' in found_functions}} - -cdef CUresult cuGraphCreate(CUgraph* phGraph, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGraphCreate(phGraph, flags) -{{endif}} - -{{if 'cuGraphAddKernelNode_v2' in found_functions}} - -cdef CUresult cuGraphAddKernelNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, const CUDA_KERNEL_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGraphAddKernelNode_v2(phGraphNode, hGraph, dependencies, numDependencies, nodeParams) -{{endif}} - -{{if 'cuGraphKernelNodeGetParams_v2' in found_functions}} - -cdef CUresult cuGraphKernelNodeGetParams(CUgraphNode hNode, CUDA_KERNEL_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGraphKernelNodeGetParams_v2(hNode, nodeParams) -{{endif}} - -{{if 'cuGraphKernelNodeSetParams_v2' in found_functions}} - -cdef CUresult cuGraphKernelNodeSetParams(CUgraphNode hNode, const CUDA_KERNEL_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGraphKernelNodeSetParams_v2(hNode, nodeParams) -{{endif}} - -{{if 'cuGraphAddMemcpyNode' in found_functions}} - -cdef CUresult cuGraphAddMemcpyNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, const CUDA_MEMCPY3D* copyParams, CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGraphAddMemcpyNode(phGraphNode, hGraph, dependencies, numDependencies, copyParams, ctx) -{{endif}} - -{{if 'cuGraphMemcpyNodeGetParams' in found_functions}} - -cdef CUresult cuGraphMemcpyNodeGetParams(CUgraphNode hNode, CUDA_MEMCPY3D* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGraphMemcpyNodeGetParams(hNode, nodeParams) -{{endif}} - -{{if 'cuGraphMemcpyNodeSetParams' in found_functions}} - -cdef CUresult cuGraphMemcpyNodeSetParams(CUgraphNode hNode, const CUDA_MEMCPY3D* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGraphMemcpyNodeSetParams(hNode, nodeParams) -{{endif}} - -{{if 'cuGraphAddMemsetNode' in found_functions}} - -cdef CUresult cuGraphAddMemsetNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, const CUDA_MEMSET_NODE_PARAMS* memsetParams, CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGraphAddMemsetNode(phGraphNode, hGraph, dependencies, numDependencies, memsetParams, ctx) -{{endif}} - -{{if 'cuGraphMemsetNodeGetParams' in found_functions}} - -cdef CUresult cuGraphMemsetNodeGetParams(CUgraphNode hNode, CUDA_MEMSET_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGraphMemsetNodeGetParams(hNode, nodeParams) -{{endif}} - -{{if 'cuGraphMemsetNodeSetParams' in found_functions}} - -cdef CUresult cuGraphMemsetNodeSetParams(CUgraphNode hNode, const CUDA_MEMSET_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGraphMemsetNodeSetParams(hNode, nodeParams) -{{endif}} - -{{if 'cuGraphAddHostNode' in found_functions}} - -cdef CUresult cuGraphAddHostNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, const CUDA_HOST_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGraphAddHostNode(phGraphNode, hGraph, dependencies, numDependencies, nodeParams) -{{endif}} - -{{if 'cuGraphHostNodeGetParams' in found_functions}} - -cdef CUresult cuGraphHostNodeGetParams(CUgraphNode hNode, CUDA_HOST_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGraphHostNodeGetParams(hNode, nodeParams) -{{endif}} - -{{if 'cuGraphHostNodeSetParams' in found_functions}} - -cdef CUresult cuGraphHostNodeSetParams(CUgraphNode hNode, const CUDA_HOST_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGraphHostNodeSetParams(hNode, nodeParams) -{{endif}} - -{{if 'cuGraphAddChildGraphNode' in found_functions}} - -cdef CUresult cuGraphAddChildGraphNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, CUgraph childGraph) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGraphAddChildGraphNode(phGraphNode, hGraph, dependencies, numDependencies, childGraph) -{{endif}} - -{{if 'cuGraphChildGraphNodeGetGraph' in found_functions}} - -cdef CUresult cuGraphChildGraphNodeGetGraph(CUgraphNode hNode, CUgraph* phGraph) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGraphChildGraphNodeGetGraph(hNode, phGraph) -{{endif}} - -{{if 'cuGraphAddEmptyNode' in found_functions}} - -cdef CUresult cuGraphAddEmptyNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGraphAddEmptyNode(phGraphNode, hGraph, dependencies, numDependencies) -{{endif}} - -{{if 'cuGraphAddEventRecordNode' in found_functions}} - -cdef CUresult cuGraphAddEventRecordNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, CUevent event) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGraphAddEventRecordNode(phGraphNode, hGraph, dependencies, numDependencies, event) -{{endif}} - -{{if 'cuGraphEventRecordNodeGetEvent' in found_functions}} - -cdef CUresult cuGraphEventRecordNodeGetEvent(CUgraphNode hNode, CUevent* event_out) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGraphEventRecordNodeGetEvent(hNode, event_out) -{{endif}} - -{{if 'cuGraphEventRecordNodeSetEvent' in found_functions}} - -cdef CUresult cuGraphEventRecordNodeSetEvent(CUgraphNode hNode, CUevent event) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGraphEventRecordNodeSetEvent(hNode, event) -{{endif}} - -{{if 'cuGraphAddEventWaitNode' in found_functions}} - -cdef CUresult cuGraphAddEventWaitNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, CUevent event) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGraphAddEventWaitNode(phGraphNode, hGraph, dependencies, numDependencies, event) -{{endif}} - -{{if 'cuGraphEventWaitNodeGetEvent' in found_functions}} - -cdef CUresult cuGraphEventWaitNodeGetEvent(CUgraphNode hNode, CUevent* event_out) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGraphEventWaitNodeGetEvent(hNode, event_out) -{{endif}} - -{{if 'cuGraphEventWaitNodeSetEvent' in found_functions}} - -cdef CUresult cuGraphEventWaitNodeSetEvent(CUgraphNode hNode, CUevent event) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGraphEventWaitNodeSetEvent(hNode, event) -{{endif}} - -{{if 'cuGraphAddExternalSemaphoresSignalNode' in found_functions}} - -cdef CUresult cuGraphAddExternalSemaphoresSignalNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, const CUDA_EXT_SEM_SIGNAL_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGraphAddExternalSemaphoresSignalNode(phGraphNode, hGraph, dependencies, numDependencies, nodeParams) -{{endif}} - -{{if 'cuGraphExternalSemaphoresSignalNodeGetParams' in found_functions}} - -cdef CUresult cuGraphExternalSemaphoresSignalNodeGetParams(CUgraphNode hNode, CUDA_EXT_SEM_SIGNAL_NODE_PARAMS* params_out) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGraphExternalSemaphoresSignalNodeGetParams(hNode, params_out) -{{endif}} - -{{if 'cuGraphExternalSemaphoresSignalNodeSetParams' in found_functions}} - -cdef CUresult cuGraphExternalSemaphoresSignalNodeSetParams(CUgraphNode hNode, const CUDA_EXT_SEM_SIGNAL_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGraphExternalSemaphoresSignalNodeSetParams(hNode, nodeParams) -{{endif}} - -{{if 'cuGraphAddExternalSemaphoresWaitNode' in found_functions}} - -cdef CUresult cuGraphAddExternalSemaphoresWaitNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, const CUDA_EXT_SEM_WAIT_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGraphAddExternalSemaphoresWaitNode(phGraphNode, hGraph, dependencies, numDependencies, nodeParams) -{{endif}} - -{{if 'cuGraphExternalSemaphoresWaitNodeGetParams' in found_functions}} - -cdef CUresult cuGraphExternalSemaphoresWaitNodeGetParams(CUgraphNode hNode, CUDA_EXT_SEM_WAIT_NODE_PARAMS* params_out) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGraphExternalSemaphoresWaitNodeGetParams(hNode, params_out) -{{endif}} - -{{if 'cuGraphExternalSemaphoresWaitNodeSetParams' in found_functions}} - -cdef CUresult cuGraphExternalSemaphoresWaitNodeSetParams(CUgraphNode hNode, const CUDA_EXT_SEM_WAIT_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGraphExternalSemaphoresWaitNodeSetParams(hNode, nodeParams) -{{endif}} - -{{if 'cuGraphAddBatchMemOpNode' in found_functions}} - -cdef CUresult cuGraphAddBatchMemOpNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, const CUDA_BATCH_MEM_OP_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGraphAddBatchMemOpNode(phGraphNode, hGraph, dependencies, numDependencies, nodeParams) -{{endif}} - -{{if 'cuGraphBatchMemOpNodeGetParams' in found_functions}} - -cdef CUresult cuGraphBatchMemOpNodeGetParams(CUgraphNode hNode, CUDA_BATCH_MEM_OP_NODE_PARAMS* nodeParams_out) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGraphBatchMemOpNodeGetParams(hNode, nodeParams_out) -{{endif}} - -{{if 'cuGraphBatchMemOpNodeSetParams' in found_functions}} - -cdef CUresult cuGraphBatchMemOpNodeSetParams(CUgraphNode hNode, const CUDA_BATCH_MEM_OP_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGraphBatchMemOpNodeSetParams(hNode, nodeParams) -{{endif}} - -{{if 'cuGraphExecBatchMemOpNodeSetParams' in found_functions}} - -cdef CUresult cuGraphExecBatchMemOpNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_BATCH_MEM_OP_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGraphExecBatchMemOpNodeSetParams(hGraphExec, hNode, nodeParams) -{{endif}} - -{{if 'cuGraphAddMemAllocNode' in found_functions}} - -cdef CUresult cuGraphAddMemAllocNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, CUDA_MEM_ALLOC_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGraphAddMemAllocNode(phGraphNode, hGraph, dependencies, numDependencies, nodeParams) -{{endif}} - -{{if 'cuGraphMemAllocNodeGetParams' in found_functions}} - -cdef CUresult cuGraphMemAllocNodeGetParams(CUgraphNode hNode, CUDA_MEM_ALLOC_NODE_PARAMS* params_out) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGraphMemAllocNodeGetParams(hNode, params_out) -{{endif}} - -{{if 'cuGraphAddMemFreeNode' in found_functions}} - -cdef CUresult cuGraphAddMemFreeNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, size_t numDependencies, CUdeviceptr dptr) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGraphAddMemFreeNode(phGraphNode, hGraph, dependencies, numDependencies, dptr) -{{endif}} - -{{if 'cuGraphMemFreeNodeGetParams' in found_functions}} - -cdef CUresult cuGraphMemFreeNodeGetParams(CUgraphNode hNode, CUdeviceptr* dptr_out) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGraphMemFreeNodeGetParams(hNode, dptr_out) -{{endif}} - -{{if 'cuDeviceGraphMemTrim' in found_functions}} - -cdef CUresult cuDeviceGraphMemTrim(CUdevice device) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuDeviceGraphMemTrim(device) -{{endif}} - -{{if 'cuDeviceGetGraphMemAttribute' in found_functions}} - -cdef CUresult cuDeviceGetGraphMemAttribute(CUdevice device, CUgraphMem_attribute attr, void* value) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuDeviceGetGraphMemAttribute(device, attr, value) -{{endif}} - -{{if 'cuDeviceSetGraphMemAttribute' in found_functions}} - -cdef CUresult cuDeviceSetGraphMemAttribute(CUdevice device, CUgraphMem_attribute attr, void* value) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuDeviceSetGraphMemAttribute(device, attr, value) -{{endif}} - -{{if 'cuGraphClone' in found_functions}} - -cdef CUresult cuGraphClone(CUgraph* phGraphClone, CUgraph originalGraph) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGraphClone(phGraphClone, originalGraph) -{{endif}} - -{{if 'cuGraphNodeFindInClone' in found_functions}} - -cdef CUresult cuGraphNodeFindInClone(CUgraphNode* phNode, CUgraphNode hOriginalNode, CUgraph hClonedGraph) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGraphNodeFindInClone(phNode, hOriginalNode, hClonedGraph) -{{endif}} - -{{if 'cuGraphNodeGetType' in found_functions}} - -cdef CUresult cuGraphNodeGetType(CUgraphNode hNode, CUgraphNodeType* typename) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGraphNodeGetType(hNode, typename) -{{endif}} - -{{if 'cuGraphNodeGetContainingGraph' in found_functions}} - -cdef CUresult cuGraphNodeGetContainingGraph(CUgraphNode hNode, CUgraph* phGraph) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGraphNodeGetContainingGraph(hNode, phGraph) -{{endif}} - -{{if 'cuGraphNodeGetLocalId' in found_functions}} - -cdef CUresult cuGraphNodeGetLocalId(CUgraphNode hNode, unsigned int* nodeId) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGraphNodeGetLocalId(hNode, nodeId) -{{endif}} - -{{if 'cuGraphNodeGetToolsId' in found_functions}} - -cdef CUresult cuGraphNodeGetToolsId(CUgraphNode hNode, unsigned long long* toolsNodeId) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGraphNodeGetToolsId(hNode, toolsNodeId) -{{endif}} - -{{if 'cuGraphGetId' in found_functions}} - -cdef CUresult cuGraphGetId(CUgraph hGraph, unsigned int* graphId) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGraphGetId(hGraph, graphId) -{{endif}} - -{{if 'cuGraphExecGetId' in found_functions}} - -cdef CUresult cuGraphExecGetId(CUgraphExec hGraphExec, unsigned int* graphId) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGraphExecGetId(hGraphExec, graphId) -{{endif}} - -{{if 'cuGraphGetNodes' in found_functions}} - -cdef CUresult cuGraphGetNodes(CUgraph hGraph, CUgraphNode* nodes, size_t* numNodes) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGraphGetNodes(hGraph, nodes, numNodes) -{{endif}} - -{{if 'cuGraphGetRootNodes' in found_functions}} - -cdef CUresult cuGraphGetRootNodes(CUgraph hGraph, CUgraphNode* rootNodes, size_t* numRootNodes) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGraphGetRootNodes(hGraph, rootNodes, numRootNodes) -{{endif}} - -{{if 'cuGraphGetEdges_v2' in found_functions}} - -cdef CUresult cuGraphGetEdges(CUgraph hGraph, CUgraphNode* from_, CUgraphNode* to, CUgraphEdgeData* edgeData, size_t* numEdges) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGraphGetEdges_v2(hGraph, from_, to, edgeData, numEdges) -{{endif}} - -{{if 'cuGraphNodeGetDependencies_v2' in found_functions}} - -cdef CUresult cuGraphNodeGetDependencies(CUgraphNode hNode, CUgraphNode* dependencies, CUgraphEdgeData* edgeData, size_t* numDependencies) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGraphNodeGetDependencies_v2(hNode, dependencies, edgeData, numDependencies) -{{endif}} - -{{if 'cuGraphNodeGetDependentNodes_v2' in found_functions}} - -cdef CUresult cuGraphNodeGetDependentNodes(CUgraphNode hNode, CUgraphNode* dependentNodes, CUgraphEdgeData* edgeData, size_t* numDependentNodes) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGraphNodeGetDependentNodes_v2(hNode, dependentNodes, edgeData, numDependentNodes) -{{endif}} - -{{if 'cuGraphAddDependencies_v2' in found_functions}} - -cdef CUresult cuGraphAddDependencies(CUgraph hGraph, const CUgraphNode* from_, const CUgraphNode* to, const CUgraphEdgeData* edgeData, size_t numDependencies) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGraphAddDependencies_v2(hGraph, from_, to, edgeData, numDependencies) -{{endif}} - -{{if 'cuGraphRemoveDependencies_v2' in found_functions}} - -cdef CUresult cuGraphRemoveDependencies(CUgraph hGraph, const CUgraphNode* from_, const CUgraphNode* to, const CUgraphEdgeData* edgeData, size_t numDependencies) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGraphRemoveDependencies_v2(hGraph, from_, to, edgeData, numDependencies) -{{endif}} - -{{if 'cuGraphDestroyNode' in found_functions}} - -cdef CUresult cuGraphDestroyNode(CUgraphNode hNode) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGraphDestroyNode(hNode) -{{endif}} - -{{if 'cuGraphInstantiateWithFlags' in found_functions}} - -cdef CUresult cuGraphInstantiate(CUgraphExec* phGraphExec, CUgraph hGraph, unsigned long long flags) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGraphInstantiateWithFlags(phGraphExec, hGraph, flags) -{{endif}} - -{{if 'cuGraphInstantiateWithParams' in found_functions}} - -cdef CUresult cuGraphInstantiateWithParams(CUgraphExec* phGraphExec, CUgraph hGraph, CUDA_GRAPH_INSTANTIATE_PARAMS* instantiateParams) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGraphInstantiateWithParams(phGraphExec, hGraph, instantiateParams) -{{endif}} - -{{if 'cuGraphExecGetFlags' in found_functions}} - -cdef CUresult cuGraphExecGetFlags(CUgraphExec hGraphExec, cuuint64_t* flags) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGraphExecGetFlags(hGraphExec, flags) -{{endif}} - -{{if 'cuGraphExecKernelNodeSetParams_v2' in found_functions}} - -cdef CUresult cuGraphExecKernelNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_KERNEL_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGraphExecKernelNodeSetParams_v2(hGraphExec, hNode, nodeParams) -{{endif}} - -{{if 'cuGraphExecMemcpyNodeSetParams' in found_functions}} - -cdef CUresult cuGraphExecMemcpyNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_MEMCPY3D* copyParams, CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGraphExecMemcpyNodeSetParams(hGraphExec, hNode, copyParams, ctx) -{{endif}} - -{{if 'cuGraphExecMemsetNodeSetParams' in found_functions}} - -cdef CUresult cuGraphExecMemsetNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_MEMSET_NODE_PARAMS* memsetParams, CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGraphExecMemsetNodeSetParams(hGraphExec, hNode, memsetParams, ctx) -{{endif}} - -{{if 'cuGraphExecHostNodeSetParams' in found_functions}} - -cdef CUresult cuGraphExecHostNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_HOST_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGraphExecHostNodeSetParams(hGraphExec, hNode, nodeParams) -{{endif}} - -{{if 'cuGraphExecChildGraphNodeSetParams' in found_functions}} - -cdef CUresult cuGraphExecChildGraphNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, CUgraph childGraph) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGraphExecChildGraphNodeSetParams(hGraphExec, hNode, childGraph) -{{endif}} - -{{if 'cuGraphExecEventRecordNodeSetEvent' in found_functions}} - -cdef CUresult cuGraphExecEventRecordNodeSetEvent(CUgraphExec hGraphExec, CUgraphNode hNode, CUevent event) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGraphExecEventRecordNodeSetEvent(hGraphExec, hNode, event) -{{endif}} - -{{if 'cuGraphExecEventWaitNodeSetEvent' in found_functions}} - -cdef CUresult cuGraphExecEventWaitNodeSetEvent(CUgraphExec hGraphExec, CUgraphNode hNode, CUevent event) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGraphExecEventWaitNodeSetEvent(hGraphExec, hNode, event) -{{endif}} - -{{if 'cuGraphExecExternalSemaphoresSignalNodeSetParams' in found_functions}} - -cdef CUresult cuGraphExecExternalSemaphoresSignalNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_EXT_SEM_SIGNAL_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGraphExecExternalSemaphoresSignalNodeSetParams(hGraphExec, hNode, nodeParams) -{{endif}} - -{{if 'cuGraphExecExternalSemaphoresWaitNodeSetParams' in found_functions}} - -cdef CUresult cuGraphExecExternalSemaphoresWaitNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, const CUDA_EXT_SEM_WAIT_NODE_PARAMS* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGraphExecExternalSemaphoresWaitNodeSetParams(hGraphExec, hNode, nodeParams) -{{endif}} - -{{if 'cuGraphNodeSetEnabled' in found_functions}} - -cdef CUresult cuGraphNodeSetEnabled(CUgraphExec hGraphExec, CUgraphNode hNode, unsigned int isEnabled) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGraphNodeSetEnabled(hGraphExec, hNode, isEnabled) -{{endif}} - -{{if 'cuGraphNodeGetEnabled' in found_functions}} - -cdef CUresult cuGraphNodeGetEnabled(CUgraphExec hGraphExec, CUgraphNode hNode, unsigned int* isEnabled) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGraphNodeGetEnabled(hGraphExec, hNode, isEnabled) -{{endif}} - -{{if 'cuGraphUpload' in found_functions}} - -cdef CUresult cuGraphUpload(CUgraphExec hGraphExec, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGraphUpload(hGraphExec, hStream) -{{endif}} - -{{if 'cuGraphLaunch' in found_functions}} - -cdef CUresult cuGraphLaunch(CUgraphExec hGraphExec, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGraphLaunch(hGraphExec, hStream) -{{endif}} - -{{if 'cuGraphExecDestroy' in found_functions}} - -cdef CUresult cuGraphExecDestroy(CUgraphExec hGraphExec) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGraphExecDestroy(hGraphExec) -{{endif}} - -{{if 'cuGraphDestroy' in found_functions}} - -cdef CUresult cuGraphDestroy(CUgraph hGraph) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGraphDestroy(hGraph) -{{endif}} - -{{if 'cuGraphExecUpdate_v2' in found_functions}} - -cdef CUresult cuGraphExecUpdate(CUgraphExec hGraphExec, CUgraph hGraph, CUgraphExecUpdateResultInfo* resultInfo) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGraphExecUpdate_v2(hGraphExec, hGraph, resultInfo) -{{endif}} - -{{if 'cuGraphKernelNodeCopyAttributes' in found_functions}} - -cdef CUresult cuGraphKernelNodeCopyAttributes(CUgraphNode dst, CUgraphNode src) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGraphKernelNodeCopyAttributes(dst, src) -{{endif}} - -{{if 'cuGraphKernelNodeGetAttribute' in found_functions}} - -cdef CUresult cuGraphKernelNodeGetAttribute(CUgraphNode hNode, CUkernelNodeAttrID attr, CUkernelNodeAttrValue* value_out) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGraphKernelNodeGetAttribute(hNode, attr, value_out) -{{endif}} - -{{if 'cuGraphKernelNodeSetAttribute' in found_functions}} - -cdef CUresult cuGraphKernelNodeSetAttribute(CUgraphNode hNode, CUkernelNodeAttrID attr, const CUkernelNodeAttrValue* value) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGraphKernelNodeSetAttribute(hNode, attr, value) -{{endif}} - -{{if 'cuGraphDebugDotPrint' in found_functions}} - -cdef CUresult cuGraphDebugDotPrint(CUgraph hGraph, const char* path, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGraphDebugDotPrint(hGraph, path, flags) -{{endif}} - -{{if 'cuUserObjectCreate' in found_functions}} - -cdef CUresult cuUserObjectCreate(CUuserObject* object_out, void* ptr, CUhostFn destroy, unsigned int initialRefcount, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuUserObjectCreate(object_out, ptr, destroy, initialRefcount, flags) -{{endif}} - -{{if 'cuUserObjectRetain' in found_functions}} - -cdef CUresult cuUserObjectRetain(CUuserObject object, unsigned int count) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuUserObjectRetain(object, count) -{{endif}} - -{{if 'cuUserObjectRelease' in found_functions}} - -cdef CUresult cuUserObjectRelease(CUuserObject object, unsigned int count) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuUserObjectRelease(object, count) -{{endif}} - -{{if 'cuGraphRetainUserObject' in found_functions}} - -cdef CUresult cuGraphRetainUserObject(CUgraph graph, CUuserObject object, unsigned int count, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGraphRetainUserObject(graph, object, count, flags) -{{endif}} - -{{if 'cuGraphReleaseUserObject' in found_functions}} - -cdef CUresult cuGraphReleaseUserObject(CUgraph graph, CUuserObject object, unsigned int count) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGraphReleaseUserObject(graph, object, count) -{{endif}} - -{{if 'cuGraphAddNode_v2' in found_functions}} - -cdef CUresult cuGraphAddNode(CUgraphNode* phGraphNode, CUgraph hGraph, const CUgraphNode* dependencies, const CUgraphEdgeData* dependencyData, size_t numDependencies, CUgraphNodeParams* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGraphAddNode_v2(phGraphNode, hGraph, dependencies, dependencyData, numDependencies, nodeParams) -{{endif}} - -{{if 'cuGraphNodeSetParams' in found_functions}} - -cdef CUresult cuGraphNodeSetParams(CUgraphNode hNode, CUgraphNodeParams* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGraphNodeSetParams(hNode, nodeParams) -{{endif}} - -{{if 'cuGraphNodeGetParams' in found_functions}} - -cdef CUresult cuGraphNodeGetParams(CUgraphNode hNode, CUgraphNodeParams* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGraphNodeGetParams(hNode, nodeParams) -{{endif}} - -{{if 'cuGraphExecNodeSetParams' in found_functions}} - -cdef CUresult cuGraphExecNodeSetParams(CUgraphExec hGraphExec, CUgraphNode hNode, CUgraphNodeParams* nodeParams) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGraphExecNodeSetParams(hGraphExec, hNode, nodeParams) -{{endif}} - -{{if 'cuGraphConditionalHandleCreate' in found_functions}} - -cdef CUresult cuGraphConditionalHandleCreate(CUgraphConditionalHandle* pHandle_out, CUgraph hGraph, CUcontext ctx, unsigned int defaultLaunchValue, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGraphConditionalHandleCreate(pHandle_out, hGraph, ctx, defaultLaunchValue, flags) -{{endif}} - -{{if 'cuOccupancyMaxActiveBlocksPerMultiprocessor' in found_functions}} - -cdef CUresult cuOccupancyMaxActiveBlocksPerMultiprocessor(int* numBlocks, CUfunction func, int blockSize, size_t dynamicSMemSize) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuOccupancyMaxActiveBlocksPerMultiprocessor(numBlocks, func, blockSize, dynamicSMemSize) -{{endif}} - -{{if 'cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags' in found_functions}} - -cdef CUresult cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(int* numBlocks, CUfunction func, int blockSize, size_t dynamicSMemSize, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(numBlocks, func, blockSize, dynamicSMemSize, flags) -{{endif}} - -{{if 'cuOccupancyMaxPotentialBlockSize' in found_functions}} - -cdef CUresult cuOccupancyMaxPotentialBlockSize(int* minGridSize, int* blockSize, CUfunction func, CUoccupancyB2DSize blockSizeToDynamicSMemSize, size_t dynamicSMemSize, int blockSizeLimit) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuOccupancyMaxPotentialBlockSize(minGridSize, blockSize, func, blockSizeToDynamicSMemSize, dynamicSMemSize, blockSizeLimit) -{{endif}} - -{{if 'cuOccupancyMaxPotentialBlockSizeWithFlags' in found_functions}} - -cdef CUresult cuOccupancyMaxPotentialBlockSizeWithFlags(int* minGridSize, int* blockSize, CUfunction func, CUoccupancyB2DSize blockSizeToDynamicSMemSize, size_t dynamicSMemSize, int blockSizeLimit, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuOccupancyMaxPotentialBlockSizeWithFlags(minGridSize, blockSize, func, blockSizeToDynamicSMemSize, dynamicSMemSize, blockSizeLimit, flags) -{{endif}} - -{{if 'cuOccupancyAvailableDynamicSMemPerBlock' in found_functions}} - -cdef CUresult cuOccupancyAvailableDynamicSMemPerBlock(size_t* dynamicSmemSize, CUfunction func, int numBlocks, int blockSize) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuOccupancyAvailableDynamicSMemPerBlock(dynamicSmemSize, func, numBlocks, blockSize) -{{endif}} - -{{if 'cuOccupancyMaxPotentialClusterSize' in found_functions}} - -cdef CUresult cuOccupancyMaxPotentialClusterSize(int* clusterSize, CUfunction func, const CUlaunchConfig* config) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuOccupancyMaxPotentialClusterSize(clusterSize, func, config) -{{endif}} - -{{if 'cuOccupancyMaxActiveClusters' in found_functions}} - -cdef CUresult cuOccupancyMaxActiveClusters(int* numClusters, CUfunction func, const CUlaunchConfig* config) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuOccupancyMaxActiveClusters(numClusters, func, config) -{{endif}} - -{{if 'cuTexRefSetArray' in found_functions}} - -cdef CUresult cuTexRefSetArray(CUtexref hTexRef, CUarray hArray, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuTexRefSetArray(hTexRef, hArray, Flags) -{{endif}} - -{{if 'cuTexRefSetMipmappedArray' in found_functions}} - -cdef CUresult cuTexRefSetMipmappedArray(CUtexref hTexRef, CUmipmappedArray hMipmappedArray, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuTexRefSetMipmappedArray(hTexRef, hMipmappedArray, Flags) -{{endif}} - -{{if 'cuTexRefSetAddress_v2' in found_functions}} - -cdef CUresult cuTexRefSetAddress(size_t* ByteOffset, CUtexref hTexRef, CUdeviceptr dptr, size_t numbytes) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuTexRefSetAddress_v2(ByteOffset, hTexRef, dptr, numbytes) -{{endif}} - -{{if 'cuTexRefSetAddress2D_v3' in found_functions}} - -cdef CUresult cuTexRefSetAddress2D(CUtexref hTexRef, const CUDA_ARRAY_DESCRIPTOR* desc, CUdeviceptr dptr, size_t Pitch) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuTexRefSetAddress2D_v3(hTexRef, desc, dptr, Pitch) -{{endif}} - -{{if 'cuTexRefSetFormat' in found_functions}} - -cdef CUresult cuTexRefSetFormat(CUtexref hTexRef, CUarray_format fmt, int NumPackedComponents) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuTexRefSetFormat(hTexRef, fmt, NumPackedComponents) -{{endif}} - -{{if 'cuTexRefSetAddressMode' in found_functions}} - -cdef CUresult cuTexRefSetAddressMode(CUtexref hTexRef, int dim, CUaddress_mode am) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuTexRefSetAddressMode(hTexRef, dim, am) -{{endif}} - -{{if 'cuTexRefSetFilterMode' in found_functions}} - -cdef CUresult cuTexRefSetFilterMode(CUtexref hTexRef, CUfilter_mode fm) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuTexRefSetFilterMode(hTexRef, fm) -{{endif}} - -{{if 'cuTexRefSetMipmapFilterMode' in found_functions}} - -cdef CUresult cuTexRefSetMipmapFilterMode(CUtexref hTexRef, CUfilter_mode fm) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuTexRefSetMipmapFilterMode(hTexRef, fm) -{{endif}} - -{{if 'cuTexRefSetMipmapLevelBias' in found_functions}} - -cdef CUresult cuTexRefSetMipmapLevelBias(CUtexref hTexRef, float bias) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuTexRefSetMipmapLevelBias(hTexRef, bias) -{{endif}} - -{{if 'cuTexRefSetMipmapLevelClamp' in found_functions}} - -cdef CUresult cuTexRefSetMipmapLevelClamp(CUtexref hTexRef, float minMipmapLevelClamp, float maxMipmapLevelClamp) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuTexRefSetMipmapLevelClamp(hTexRef, minMipmapLevelClamp, maxMipmapLevelClamp) -{{endif}} - -{{if 'cuTexRefSetMaxAnisotropy' in found_functions}} - -cdef CUresult cuTexRefSetMaxAnisotropy(CUtexref hTexRef, unsigned int maxAniso) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuTexRefSetMaxAnisotropy(hTexRef, maxAniso) -{{endif}} - -{{if 'cuTexRefSetBorderColor' in found_functions}} - -cdef CUresult cuTexRefSetBorderColor(CUtexref hTexRef, float* pBorderColor) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuTexRefSetBorderColor(hTexRef, pBorderColor) -{{endif}} - -{{if 'cuTexRefSetFlags' in found_functions}} - -cdef CUresult cuTexRefSetFlags(CUtexref hTexRef, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuTexRefSetFlags(hTexRef, Flags) -{{endif}} - -{{if 'cuTexRefGetAddress_v2' in found_functions}} - -cdef CUresult cuTexRefGetAddress(CUdeviceptr* pdptr, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuTexRefGetAddress_v2(pdptr, hTexRef) -{{endif}} - -{{if 'cuTexRefGetArray' in found_functions}} - -cdef CUresult cuTexRefGetArray(CUarray* phArray, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuTexRefGetArray(phArray, hTexRef) -{{endif}} - -{{if 'cuTexRefGetMipmappedArray' in found_functions}} - -cdef CUresult cuTexRefGetMipmappedArray(CUmipmappedArray* phMipmappedArray, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuTexRefGetMipmappedArray(phMipmappedArray, hTexRef) -{{endif}} - -{{if 'cuTexRefGetAddressMode' in found_functions}} - -cdef CUresult cuTexRefGetAddressMode(CUaddress_mode* pam, CUtexref hTexRef, int dim) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuTexRefGetAddressMode(pam, hTexRef, dim) -{{endif}} - -{{if 'cuTexRefGetFilterMode' in found_functions}} - -cdef CUresult cuTexRefGetFilterMode(CUfilter_mode* pfm, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuTexRefGetFilterMode(pfm, hTexRef) -{{endif}} - -{{if 'cuTexRefGetFormat' in found_functions}} - -cdef CUresult cuTexRefGetFormat(CUarray_format* pFormat, int* pNumChannels, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuTexRefGetFormat(pFormat, pNumChannels, hTexRef) -{{endif}} - -{{if 'cuTexRefGetMipmapFilterMode' in found_functions}} - -cdef CUresult cuTexRefGetMipmapFilterMode(CUfilter_mode* pfm, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuTexRefGetMipmapFilterMode(pfm, hTexRef) -{{endif}} - -{{if 'cuTexRefGetMipmapLevelBias' in found_functions}} - -cdef CUresult cuTexRefGetMipmapLevelBias(float* pbias, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuTexRefGetMipmapLevelBias(pbias, hTexRef) -{{endif}} - -{{if 'cuTexRefGetMipmapLevelClamp' in found_functions}} - -cdef CUresult cuTexRefGetMipmapLevelClamp(float* pminMipmapLevelClamp, float* pmaxMipmapLevelClamp, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuTexRefGetMipmapLevelClamp(pminMipmapLevelClamp, pmaxMipmapLevelClamp, hTexRef) -{{endif}} - -{{if 'cuTexRefGetMaxAnisotropy' in found_functions}} - -cdef CUresult cuTexRefGetMaxAnisotropy(int* pmaxAniso, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuTexRefGetMaxAnisotropy(pmaxAniso, hTexRef) -{{endif}} - -{{if 'cuTexRefGetBorderColor' in found_functions}} - -cdef CUresult cuTexRefGetBorderColor(float* pBorderColor, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuTexRefGetBorderColor(pBorderColor, hTexRef) -{{endif}} - -{{if 'cuTexRefGetFlags' in found_functions}} - -cdef CUresult cuTexRefGetFlags(unsigned int* pFlags, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuTexRefGetFlags(pFlags, hTexRef) -{{endif}} - -{{if 'cuTexRefCreate' in found_functions}} - -cdef CUresult cuTexRefCreate(CUtexref* pTexRef) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuTexRefCreate(pTexRef) -{{endif}} - -{{if 'cuTexRefDestroy' in found_functions}} - -cdef CUresult cuTexRefDestroy(CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuTexRefDestroy(hTexRef) -{{endif}} - -{{if 'cuSurfRefSetArray' in found_functions}} - -cdef CUresult cuSurfRefSetArray(CUsurfref hSurfRef, CUarray hArray, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuSurfRefSetArray(hSurfRef, hArray, Flags) -{{endif}} - -{{if 'cuSurfRefGetArray' in found_functions}} - -cdef CUresult cuSurfRefGetArray(CUarray* phArray, CUsurfref hSurfRef) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuSurfRefGetArray(phArray, hSurfRef) -{{endif}} - -{{if 'cuTexObjectCreate' in found_functions}} - -cdef CUresult cuTexObjectCreate(CUtexObject* pTexObject, const CUDA_RESOURCE_DESC* pResDesc, const CUDA_TEXTURE_DESC* pTexDesc, const CUDA_RESOURCE_VIEW_DESC* pResViewDesc) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuTexObjectCreate(pTexObject, pResDesc, pTexDesc, pResViewDesc) -{{endif}} - -{{if 'cuTexObjectDestroy' in found_functions}} - -cdef CUresult cuTexObjectDestroy(CUtexObject texObject) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuTexObjectDestroy(texObject) -{{endif}} - -{{if 'cuTexObjectGetResourceDesc' in found_functions}} - -cdef CUresult cuTexObjectGetResourceDesc(CUDA_RESOURCE_DESC* pResDesc, CUtexObject texObject) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuTexObjectGetResourceDesc(pResDesc, texObject) -{{endif}} - -{{if 'cuTexObjectGetTextureDesc' in found_functions}} - -cdef CUresult cuTexObjectGetTextureDesc(CUDA_TEXTURE_DESC* pTexDesc, CUtexObject texObject) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuTexObjectGetTextureDesc(pTexDesc, texObject) -{{endif}} - -{{if 'cuTexObjectGetResourceViewDesc' in found_functions}} - -cdef CUresult cuTexObjectGetResourceViewDesc(CUDA_RESOURCE_VIEW_DESC* pResViewDesc, CUtexObject texObject) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuTexObjectGetResourceViewDesc(pResViewDesc, texObject) -{{endif}} - -{{if 'cuSurfObjectCreate' in found_functions}} - -cdef CUresult cuSurfObjectCreate(CUsurfObject* pSurfObject, const CUDA_RESOURCE_DESC* pResDesc) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuSurfObjectCreate(pSurfObject, pResDesc) -{{endif}} - -{{if 'cuSurfObjectDestroy' in found_functions}} - -cdef CUresult cuSurfObjectDestroy(CUsurfObject surfObject) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuSurfObjectDestroy(surfObject) -{{endif}} - -{{if 'cuSurfObjectGetResourceDesc' in found_functions}} - -cdef CUresult cuSurfObjectGetResourceDesc(CUDA_RESOURCE_DESC* pResDesc, CUsurfObject surfObject) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuSurfObjectGetResourceDesc(pResDesc, surfObject) -{{endif}} - -{{if 'cuTensorMapEncodeTiled' in found_functions}} - -cdef CUresult cuTensorMapEncodeTiled(CUtensorMap* tensorMap, CUtensorMapDataType tensorDataType, cuuint32_t tensorRank, void* globalAddress, const cuuint64_t* globalDim, const cuuint64_t* globalStrides, const cuuint32_t* boxDim, const cuuint32_t* elementStrides, CUtensorMapInterleave interleave, CUtensorMapSwizzle swizzle, CUtensorMapL2promotion l2Promotion, CUtensorMapFloatOOBfill oobFill) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuTensorMapEncodeTiled(tensorMap, tensorDataType, tensorRank, globalAddress, globalDim, globalStrides, boxDim, elementStrides, interleave, swizzle, l2Promotion, oobFill) -{{endif}} - -{{if 'cuTensorMapEncodeIm2col' in found_functions}} - -cdef CUresult cuTensorMapEncodeIm2col(CUtensorMap* tensorMap, CUtensorMapDataType tensorDataType, cuuint32_t tensorRank, void* globalAddress, const cuuint64_t* globalDim, const cuuint64_t* globalStrides, const int* pixelBoxLowerCorner, const int* pixelBoxUpperCorner, cuuint32_t channelsPerPixel, cuuint32_t pixelsPerColumn, const cuuint32_t* elementStrides, CUtensorMapInterleave interleave, CUtensorMapSwizzle swizzle, CUtensorMapL2promotion l2Promotion, CUtensorMapFloatOOBfill oobFill) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuTensorMapEncodeIm2col(tensorMap, tensorDataType, tensorRank, globalAddress, globalDim, globalStrides, pixelBoxLowerCorner, pixelBoxUpperCorner, channelsPerPixel, pixelsPerColumn, elementStrides, interleave, swizzle, l2Promotion, oobFill) -{{endif}} - -{{if 'cuTensorMapEncodeIm2colWide' in found_functions}} - -cdef CUresult cuTensorMapEncodeIm2colWide(CUtensorMap* tensorMap, CUtensorMapDataType tensorDataType, cuuint32_t tensorRank, void* globalAddress, const cuuint64_t* globalDim, const cuuint64_t* globalStrides, int pixelBoxLowerCornerWidth, int pixelBoxUpperCornerWidth, cuuint32_t channelsPerPixel, cuuint32_t pixelsPerColumn, const cuuint32_t* elementStrides, CUtensorMapInterleave interleave, CUtensorMapIm2ColWideMode mode, CUtensorMapSwizzle swizzle, CUtensorMapL2promotion l2Promotion, CUtensorMapFloatOOBfill oobFill) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuTensorMapEncodeIm2colWide(tensorMap, tensorDataType, tensorRank, globalAddress, globalDim, globalStrides, pixelBoxLowerCornerWidth, pixelBoxUpperCornerWidth, channelsPerPixel, pixelsPerColumn, elementStrides, interleave, mode, swizzle, l2Promotion, oobFill) -{{endif}} - -{{if 'cuTensorMapReplaceAddress' in found_functions}} - -cdef CUresult cuTensorMapReplaceAddress(CUtensorMap* tensorMap, void* globalAddress) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuTensorMapReplaceAddress(tensorMap, globalAddress) -{{endif}} - -{{if 'cuDeviceCanAccessPeer' in found_functions}} - -cdef CUresult cuDeviceCanAccessPeer(int* canAccessPeer, CUdevice dev, CUdevice peerDev) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuDeviceCanAccessPeer(canAccessPeer, dev, peerDev) -{{endif}} - -{{if 'cuCtxEnablePeerAccess' in found_functions}} - -cdef CUresult cuCtxEnablePeerAccess(CUcontext peerContext, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuCtxEnablePeerAccess(peerContext, Flags) -{{endif}} - -{{if 'cuCtxDisablePeerAccess' in found_functions}} - -cdef CUresult cuCtxDisablePeerAccess(CUcontext peerContext) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuCtxDisablePeerAccess(peerContext) -{{endif}} - -{{if 'cuDeviceGetP2PAttribute' in found_functions}} - -cdef CUresult cuDeviceGetP2PAttribute(int* value, CUdevice_P2PAttribute attrib, CUdevice srcDevice, CUdevice dstDevice) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuDeviceGetP2PAttribute(value, attrib, srcDevice, dstDevice) -{{endif}} - -{{if 'cuDeviceGetP2PAtomicCapabilities' in found_functions}} - -cdef CUresult cuDeviceGetP2PAtomicCapabilities(unsigned int* capabilities, const CUatomicOperation* operations, unsigned int count, CUdevice srcDevice, CUdevice dstDevice) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuDeviceGetP2PAtomicCapabilities(capabilities, operations, count, srcDevice, dstDevice) -{{endif}} - -{{if 'cuGraphicsUnregisterResource' in found_functions}} - -cdef CUresult cuGraphicsUnregisterResource(CUgraphicsResource resource) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGraphicsUnregisterResource(resource) -{{endif}} - -{{if 'cuGraphicsSubResourceGetMappedArray' in found_functions}} - -cdef CUresult cuGraphicsSubResourceGetMappedArray(CUarray* pArray, CUgraphicsResource resource, unsigned int arrayIndex, unsigned int mipLevel) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGraphicsSubResourceGetMappedArray(pArray, resource, arrayIndex, mipLevel) -{{endif}} - -{{if 'cuGraphicsResourceGetMappedMipmappedArray' in found_functions}} - -cdef CUresult cuGraphicsResourceGetMappedMipmappedArray(CUmipmappedArray* pMipmappedArray, CUgraphicsResource resource) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGraphicsResourceGetMappedMipmappedArray(pMipmappedArray, resource) -{{endif}} - -{{if 'cuGraphicsResourceGetMappedPointer_v2' in found_functions}} - -cdef CUresult cuGraphicsResourceGetMappedPointer(CUdeviceptr* pDevPtr, size_t* pSize, CUgraphicsResource resource) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGraphicsResourceGetMappedPointer_v2(pDevPtr, pSize, resource) -{{endif}} - -{{if 'cuGraphicsResourceSetMapFlags_v2' in found_functions}} - -cdef CUresult cuGraphicsResourceSetMapFlags(CUgraphicsResource resource, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGraphicsResourceSetMapFlags_v2(resource, flags) -{{endif}} - -{{if 'cuGraphicsMapResources' in found_functions}} - -cdef CUresult cuGraphicsMapResources(unsigned int count, CUgraphicsResource* resources, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGraphicsMapResources(count, resources, hStream) -{{endif}} - -{{if 'cuGraphicsUnmapResources' in found_functions}} - -cdef CUresult cuGraphicsUnmapResources(unsigned int count, CUgraphicsResource* resources, CUstream hStream) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGraphicsUnmapResources(count, resources, hStream) -{{endif}} - -{{if 'cuGetProcAddress_v2' in found_functions}} - -cdef CUresult cuGetProcAddress(const char* symbol, void** pfn, int cudaVersion, cuuint64_t flags, CUdriverProcAddressQueryResult* symbolStatus) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGetProcAddress_v2(symbol, pfn, cudaVersion, flags, symbolStatus) -{{endif}} - -{{if 'cuCoredumpGetAttribute' in found_functions}} - -cdef CUresult cuCoredumpGetAttribute(CUcoredumpSettings attrib, void* value, size_t* size) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuCoredumpGetAttribute(attrib, value, size) -{{endif}} - -{{if 'cuCoredumpGetAttributeGlobal' in found_functions}} - -cdef CUresult cuCoredumpGetAttributeGlobal(CUcoredumpSettings attrib, void* value, size_t* size) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuCoredumpGetAttributeGlobal(attrib, value, size) -{{endif}} - -{{if 'cuCoredumpSetAttribute' in found_functions}} - -cdef CUresult cuCoredumpSetAttribute(CUcoredumpSettings attrib, void* value, size_t* size) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuCoredumpSetAttribute(attrib, value, size) -{{endif}} - -{{if 'cuCoredumpSetAttributeGlobal' in found_functions}} - -cdef CUresult cuCoredumpSetAttributeGlobal(CUcoredumpSettings attrib, void* value, size_t* size) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuCoredumpSetAttributeGlobal(attrib, value, size) -{{endif}} - -{{if 'cuCoredumpRegisterStartCallback' in found_functions}} - -cdef CUresult cuCoredumpRegisterStartCallback(CUcoredumpStatusCallback callback, void* userData, CUcoredumpCallbackHandle* callbackOut) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuCoredumpRegisterStartCallback(callback, userData, callbackOut) -{{endif}} - -{{if 'cuCoredumpRegisterCompleteCallback' in found_functions}} - -cdef CUresult cuCoredumpRegisterCompleteCallback(CUcoredumpStatusCallback callback, void* userData, CUcoredumpCallbackHandle* callbackOut) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuCoredumpRegisterCompleteCallback(callback, userData, callbackOut) -{{endif}} - -{{if 'cuCoredumpDeregisterStartCallback' in found_functions}} - -cdef CUresult cuCoredumpDeregisterStartCallback(CUcoredumpCallbackHandle callback) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuCoredumpDeregisterStartCallback(callback) -{{endif}} - -{{if 'cuCoredumpDeregisterCompleteCallback' in found_functions}} - -cdef CUresult cuCoredumpDeregisterCompleteCallback(CUcoredumpCallbackHandle callback) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuCoredumpDeregisterCompleteCallback(callback) -{{endif}} - -{{if 'cuGetExportTable' in found_functions}} - -cdef CUresult cuGetExportTable(const void** ppExportTable, const CUuuid* pExportTableId) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGetExportTable(ppExportTable, pExportTableId) -{{endif}} - -{{if 'cuGreenCtxCreate' in found_functions}} - -cdef CUresult cuGreenCtxCreate(CUgreenCtx* phCtx, CUdevResourceDesc desc, CUdevice dev, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGreenCtxCreate(phCtx, desc, dev, flags) -{{endif}} - -{{if 'cuGreenCtxDestroy' in found_functions}} - -cdef CUresult cuGreenCtxDestroy(CUgreenCtx hCtx) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGreenCtxDestroy(hCtx) -{{endif}} - -{{if 'cuCtxFromGreenCtx' in found_functions}} - -cdef CUresult cuCtxFromGreenCtx(CUcontext* pContext, CUgreenCtx hCtx) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuCtxFromGreenCtx(pContext, hCtx) -{{endif}} - -{{if 'cuDeviceGetDevResource' in found_functions}} - -cdef CUresult cuDeviceGetDevResource(CUdevice device, CUdevResource* resource, CUdevResourceType typename) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuDeviceGetDevResource(device, resource, typename) -{{endif}} - -{{if 'cuCtxGetDevResource' in found_functions}} - -cdef CUresult cuCtxGetDevResource(CUcontext hCtx, CUdevResource* resource, CUdevResourceType typename) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuCtxGetDevResource(hCtx, resource, typename) -{{endif}} - -{{if 'cuGreenCtxGetDevResource' in found_functions}} - -cdef CUresult cuGreenCtxGetDevResource(CUgreenCtx hCtx, CUdevResource* resource, CUdevResourceType typename) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGreenCtxGetDevResource(hCtx, resource, typename) -{{endif}} - -{{if 'cuDevSmResourceSplitByCount' in found_functions}} - -cdef CUresult cuDevSmResourceSplitByCount(CUdevResource* result, unsigned int* nbGroups, const CUdevResource* input, CUdevResource* remainder, unsigned int flags, unsigned int minCount) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuDevSmResourceSplitByCount(result, nbGroups, input, remainder, flags, minCount) -{{endif}} - -{{if 'cuDevSmResourceSplit' in found_functions}} - -cdef CUresult cuDevSmResourceSplit(CUdevResource* result, unsigned int nbGroups, const CUdevResource* input, CUdevResource* remainder, unsigned int flags, CU_DEV_SM_RESOURCE_GROUP_PARAMS* groupParams) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuDevSmResourceSplit(result, nbGroups, input, remainder, flags, groupParams) -{{endif}} - -{{if 'cuDevResourceGenerateDesc' in found_functions}} - -cdef CUresult cuDevResourceGenerateDesc(CUdevResourceDesc* phDesc, CUdevResource* resources, unsigned int nbResources) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuDevResourceGenerateDesc(phDesc, resources, nbResources) -{{endif}} - -{{if 'cuGreenCtxRecordEvent' in found_functions}} - -cdef CUresult cuGreenCtxRecordEvent(CUgreenCtx hCtx, CUevent hEvent) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGreenCtxRecordEvent(hCtx, hEvent) -{{endif}} - -{{if 'cuGreenCtxWaitEvent' in found_functions}} - -cdef CUresult cuGreenCtxWaitEvent(CUgreenCtx hCtx, CUevent hEvent) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGreenCtxWaitEvent(hCtx, hEvent) -{{endif}} - -{{if 'cuStreamGetGreenCtx' in found_functions}} - -cdef CUresult cuStreamGetGreenCtx(CUstream hStream, CUgreenCtx* phCtx) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuStreamGetGreenCtx(hStream, phCtx) -{{endif}} - -{{if 'cuGreenCtxStreamCreate' in found_functions}} - -cdef CUresult cuGreenCtxStreamCreate(CUstream* phStream, CUgreenCtx greenCtx, unsigned int flags, int priority) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGreenCtxStreamCreate(phStream, greenCtx, flags, priority) -{{endif}} - -{{if 'cuGreenCtxGetId' in found_functions}} - -cdef CUresult cuGreenCtxGetId(CUgreenCtx greenCtx, unsigned long long* greenCtxId) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGreenCtxGetId(greenCtx, greenCtxId) -{{endif}} - -{{if 'cuStreamGetDevResource' in found_functions}} - -cdef CUresult cuStreamGetDevResource(CUstream hStream, CUdevResource* resource, CUdevResourceType typename) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuStreamGetDevResource(hStream, resource, typename) -{{endif}} - -{{if 'cuLogsRegisterCallback' in found_functions}} - -cdef CUresult cuLogsRegisterCallback(CUlogsCallback callbackFunc, void* userData, CUlogsCallbackHandle* callback_out) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuLogsRegisterCallback(callbackFunc, userData, callback_out) -{{endif}} - -{{if 'cuLogsUnregisterCallback' in found_functions}} - -cdef CUresult cuLogsUnregisterCallback(CUlogsCallbackHandle callback) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuLogsUnregisterCallback(callback) -{{endif}} - -{{if 'cuLogsCurrent' in found_functions}} - -cdef CUresult cuLogsCurrent(CUlogIterator* iterator_out, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuLogsCurrent(iterator_out, flags) -{{endif}} - -{{if 'cuLogsDumpToFile' in found_functions}} - -cdef CUresult cuLogsDumpToFile(CUlogIterator* iterator, const char* pathToFile, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuLogsDumpToFile(iterator, pathToFile, flags) -{{endif}} - -{{if 'cuLogsDumpToMemory' in found_functions}} - -cdef CUresult cuLogsDumpToMemory(CUlogIterator* iterator, char* buffer, size_t* size, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuLogsDumpToMemory(iterator, buffer, size, flags) -{{endif}} - -{{if 'cuCheckpointProcessGetRestoreThreadId' in found_functions}} - -cdef CUresult cuCheckpointProcessGetRestoreThreadId(int pid, int* tid) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuCheckpointProcessGetRestoreThreadId(pid, tid) -{{endif}} - -{{if 'cuCheckpointProcessGetState' in found_functions}} - -cdef CUresult cuCheckpointProcessGetState(int pid, CUprocessState* state) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuCheckpointProcessGetState(pid, state) -{{endif}} - -{{if 'cuCheckpointProcessLock' in found_functions}} - -cdef CUresult cuCheckpointProcessLock(int pid, CUcheckpointLockArgs* args) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuCheckpointProcessLock(pid, args) -{{endif}} - -{{if 'cuCheckpointProcessCheckpoint' in found_functions}} - -cdef CUresult cuCheckpointProcessCheckpoint(int pid, CUcheckpointCheckpointArgs* args) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuCheckpointProcessCheckpoint(pid, args) -{{endif}} - -{{if 'cuCheckpointProcessRestore' in found_functions}} - -cdef CUresult cuCheckpointProcessRestore(int pid, CUcheckpointRestoreArgs* args) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuCheckpointProcessRestore(pid, args) -{{endif}} - -{{if 'cuCheckpointProcessUnlock' in found_functions}} - -cdef CUresult cuCheckpointProcessUnlock(int pid, CUcheckpointUnlockArgs* args) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuCheckpointProcessUnlock(pid, args) -{{endif}} - -{{if 'cuProfilerStart' in found_functions}} - -cdef CUresult cuProfilerStart() except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuProfilerStart() -{{endif}} - -{{if 'cuProfilerStop' in found_functions}} - -cdef CUresult cuProfilerStop() except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuProfilerStop() -{{endif}} - -{{if True}} - -cdef CUresult cuGraphicsEGLRegisterImage(CUgraphicsResource* pCudaResource, EGLImageKHR image, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGraphicsEGLRegisterImage(pCudaResource, image, flags) -{{endif}} - -{{if True}} - -cdef CUresult cuEGLStreamConsumerConnect(CUeglStreamConnection* conn, EGLStreamKHR stream) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuEGLStreamConsumerConnect(conn, stream) -{{endif}} - -{{if True}} - -cdef CUresult cuEGLStreamConsumerConnectWithFlags(CUeglStreamConnection* conn, EGLStreamKHR stream, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuEGLStreamConsumerConnectWithFlags(conn, stream, flags) -{{endif}} - -{{if True}} - -cdef CUresult cuEGLStreamConsumerDisconnect(CUeglStreamConnection* conn) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuEGLStreamConsumerDisconnect(conn) -{{endif}} - -{{if True}} - -cdef CUresult cuEGLStreamConsumerAcquireFrame(CUeglStreamConnection* conn, CUgraphicsResource* pCudaResource, CUstream* pStream, unsigned int timeout) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuEGLStreamConsumerAcquireFrame(conn, pCudaResource, pStream, timeout) -{{endif}} - -{{if True}} - -cdef CUresult cuEGLStreamConsumerReleaseFrame(CUeglStreamConnection* conn, CUgraphicsResource pCudaResource, CUstream* pStream) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuEGLStreamConsumerReleaseFrame(conn, pCudaResource, pStream) -{{endif}} - -{{if True}} - -cdef CUresult cuEGLStreamProducerConnect(CUeglStreamConnection* conn, EGLStreamKHR stream, EGLint width, EGLint height) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuEGLStreamProducerConnect(conn, stream, width, height) -{{endif}} - -{{if True}} - -cdef CUresult cuEGLStreamProducerDisconnect(CUeglStreamConnection* conn) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuEGLStreamProducerDisconnect(conn) -{{endif}} - -{{if True}} - -cdef CUresult cuEGLStreamProducerPresentFrame(CUeglStreamConnection* conn, CUeglFrame eglframe, CUstream* pStream) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuEGLStreamProducerPresentFrame(conn, eglframe, pStream) -{{endif}} - -{{if True}} - -cdef CUresult cuEGLStreamProducerReturnFrame(CUeglStreamConnection* conn, CUeglFrame* eglframe, CUstream* pStream) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuEGLStreamProducerReturnFrame(conn, eglframe, pStream) -{{endif}} - -{{if True}} - -cdef CUresult cuGraphicsResourceGetMappedEglFrame(CUeglFrame* eglFrame, CUgraphicsResource resource, unsigned int index, unsigned int mipLevel) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGraphicsResourceGetMappedEglFrame(eglFrame, resource, index, mipLevel) -{{endif}} - -{{if True}} - -cdef CUresult cuEventCreateFromEGLSync(CUevent* phEvent, EGLSyncKHR eglSync, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuEventCreateFromEGLSync(phEvent, eglSync, flags) -{{endif}} - -{{if True}} - -cdef CUresult cuGraphicsGLRegisterBuffer(CUgraphicsResource* pCudaResource, GLuint buffer, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGraphicsGLRegisterBuffer(pCudaResource, buffer, Flags) -{{endif}} - -{{if True}} - -cdef CUresult cuGraphicsGLRegisterImage(CUgraphicsResource* pCudaResource, GLuint image, GLenum target, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGraphicsGLRegisterImage(pCudaResource, image, target, Flags) -{{endif}} - -{{if True}} - -cdef CUresult cuGLGetDevices(unsigned int* pCudaDeviceCount, CUdevice* pCudaDevices, unsigned int cudaDeviceCount, CUGLDeviceList deviceList) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGLGetDevices_v2(pCudaDeviceCount, pCudaDevices, cudaDeviceCount, deviceList) -{{endif}} - -{{if True}} - -cdef CUresult cuVDPAUGetDevice(CUdevice* pDevice, VdpDevice vdpDevice, VdpGetProcAddress* vdpGetProcAddress) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuVDPAUGetDevice(pDevice, vdpDevice, vdpGetProcAddress) -{{endif}} - -{{if True}} - -cdef CUresult cuVDPAUCtxCreate(CUcontext* pCtx, unsigned int flags, CUdevice device, VdpDevice vdpDevice, VdpGetProcAddress* vdpGetProcAddress) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuVDPAUCtxCreate_v2(pCtx, flags, device, vdpDevice, vdpGetProcAddress) -{{endif}} - -{{if True}} - -cdef CUresult cuGraphicsVDPAURegisterVideoSurface(CUgraphicsResource* pCudaResource, VdpVideoSurface vdpSurface, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGraphicsVDPAURegisterVideoSurface(pCudaResource, vdpSurface, flags) -{{endif}} - -{{if True}} - -cdef CUresult cuGraphicsVDPAURegisterOutputSurface(CUgraphicsResource* pCudaResource, VdpOutputSurface vdpSurface, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil: - return cydriver._cuGraphicsVDPAURegisterOutputSurface(pCudaResource, vdpSurface, flags) -{{endif}} diff --git a/cuda_bindings/cuda/bindings/cynvrtc.pxd b/cuda_bindings/cuda/bindings/cynvrtc.pxd index 6bf1bda94e1..f19b1c135a7 100644 --- a/cuda_bindings/cuda/bindings/cynvrtc.pxd +++ b/cuda_bindings/cuda/bindings/cynvrtc.pxd @@ -2,84 +2,65 @@ # # SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE # -# This code was automatically generated with version 13.2.0, generator version 0.3.1.dev1364+ged01d643e. Do not modify it directly. +# This code was automatically generated across versions from 12.9.0 to 13.2.0, generator version 0.3.1.dev1630+gadce055ea.d20260422. Do not modify it directly. from libc.stdint cimport uint32_t, uint64_t -cdef extern from "nvrtc.h": +# ENUMS +cdef extern from '': ctypedef enum nvrtcResult: - NVRTC_SUCCESS = 0 - NVRTC_ERROR_OUT_OF_MEMORY = 1 - NVRTC_ERROR_PROGRAM_CREATION_FAILURE = 2 - NVRTC_ERROR_INVALID_INPUT = 3 - NVRTC_ERROR_INVALID_PROGRAM = 4 - NVRTC_ERROR_INVALID_OPTION = 5 - NVRTC_ERROR_COMPILATION = 6 - NVRTC_ERROR_BUILTIN_OPERATION_FAILURE = 7 - NVRTC_ERROR_NO_NAME_EXPRESSIONS_AFTER_COMPILATION = 8 - NVRTC_ERROR_NO_LOWERED_NAMES_BEFORE_COMPILATION = 9 - NVRTC_ERROR_NAME_EXPRESSION_NOT_VALID = 10 - NVRTC_ERROR_INTERNAL_ERROR = 11 - NVRTC_ERROR_TIME_FILE_WRITE_FAILED = 12 - NVRTC_ERROR_NO_PCH_CREATE_ATTEMPTED = 13 - NVRTC_ERROR_PCH_CREATE_HEAP_EXHAUSTED = 14 - NVRTC_ERROR_PCH_CREATE = 15 - NVRTC_ERROR_CANCELLED = 16 - NVRTC_ERROR_TIME_TRACE_FILE_WRITE_FAILED = 17 - - cdef struct _nvrtcProgram: - pass - ctypedef _nvrtcProgram* nvrtcProgram - -cdef const char* nvrtcGetErrorString(nvrtcResult result) except ?NULL nogil - -cdef nvrtcResult nvrtcVersion(int* major, int* minor) except ?NVRTC_ERROR_INVALID_INPUT nogil - -cdef nvrtcResult nvrtcGetNumSupportedArchs(int* numArchs) except ?NVRTC_ERROR_INVALID_INPUT nogil - -cdef nvrtcResult nvrtcGetSupportedArchs(int* supportedArchs) except ?NVRTC_ERROR_INVALID_INPUT nogil - -cdef nvrtcResult nvrtcCreateProgram(nvrtcProgram* prog, const char* src, const char* name, int numHeaders, const char** headers, const char** includeNames) except ?NVRTC_ERROR_INVALID_INPUT nogil - -cdef nvrtcResult nvrtcDestroyProgram(nvrtcProgram* prog) except ?NVRTC_ERROR_INVALID_INPUT nogil - -cdef nvrtcResult nvrtcCompileProgram(nvrtcProgram prog, int numOptions, const char** options) except ?NVRTC_ERROR_INVALID_INPUT nogil - -cdef nvrtcResult nvrtcGetPTXSize(nvrtcProgram prog, size_t* ptxSizeRet) except ?NVRTC_ERROR_INVALID_INPUT nogil - -cdef nvrtcResult nvrtcGetPTX(nvrtcProgram prog, char* ptx) except ?NVRTC_ERROR_INVALID_INPUT nogil - -cdef nvrtcResult nvrtcGetCUBINSize(nvrtcProgram prog, size_t* cubinSizeRet) except ?NVRTC_ERROR_INVALID_INPUT nogil - -cdef nvrtcResult nvrtcGetCUBIN(nvrtcProgram prog, char* cubin) except ?NVRTC_ERROR_INVALID_INPUT nogil - -cdef nvrtcResult nvrtcGetLTOIRSize(nvrtcProgram prog, size_t* LTOIRSizeRet) except ?NVRTC_ERROR_INVALID_INPUT nogil - -cdef nvrtcResult nvrtcGetLTOIR(nvrtcProgram prog, char* LTOIR) except ?NVRTC_ERROR_INVALID_INPUT nogil - -cdef nvrtcResult nvrtcGetOptiXIRSize(nvrtcProgram prog, size_t* optixirSizeRet) except ?NVRTC_ERROR_INVALID_INPUT nogil - -cdef nvrtcResult nvrtcGetOptiXIR(nvrtcProgram prog, char* optixir) except ?NVRTC_ERROR_INVALID_INPUT nogil - -cdef nvrtcResult nvrtcGetProgramLogSize(nvrtcProgram prog, size_t* logSizeRet) except ?NVRTC_ERROR_INVALID_INPUT nogil - -cdef nvrtcResult nvrtcGetProgramLog(nvrtcProgram prog, char* log) except ?NVRTC_ERROR_INVALID_INPUT nogil - -cdef nvrtcResult nvrtcAddNameExpression(nvrtcProgram prog, const char* name_expression) except ?NVRTC_ERROR_INVALID_INPUT nogil - -cdef nvrtcResult nvrtcGetLoweredName(nvrtcProgram prog, const char* name_expression, const char** lowered_name) except ?NVRTC_ERROR_INVALID_INPUT nogil - -cdef nvrtcResult nvrtcGetPCHHeapSize(size_t* ret) except ?NVRTC_ERROR_INVALID_INPUT nogil - -cdef nvrtcResult nvrtcSetPCHHeapSize(size_t size) except ?NVRTC_ERROR_INVALID_INPUT nogil - -cdef nvrtcResult nvrtcGetPCHCreateStatus(nvrtcProgram prog) except ?NVRTC_ERROR_INVALID_INPUT nogil - -cdef nvrtcResult nvrtcGetPCHHeapSizeRequired(nvrtcProgram prog, size_t* size) except ?NVRTC_ERROR_INVALID_INPUT nogil - -cdef nvrtcResult nvrtcSetFlowCallback(nvrtcProgram prog, void* callback, void* payload) except ?NVRTC_ERROR_INVALID_INPUT nogil - -cdef nvrtcResult nvrtcGetTileIRSize(nvrtcProgram prog, size_t* TileIRSizeRet) except ?NVRTC_ERROR_INVALID_INPUT nogil - -cdef nvrtcResult nvrtcGetTileIR(nvrtcProgram prog, char* TileIR) except ?NVRTC_ERROR_INVALID_INPUT nogil + NVRTC_SUCCESS + NVRTC_ERROR_OUT_OF_MEMORY + NVRTC_ERROR_PROGRAM_CREATION_FAILURE + NVRTC_ERROR_INVALID_INPUT + NVRTC_ERROR_INVALID_PROGRAM + NVRTC_ERROR_INVALID_OPTION + NVRTC_ERROR_COMPILATION + NVRTC_ERROR_BUILTIN_OPERATION_FAILURE + NVRTC_ERROR_NO_NAME_EXPRESSIONS_AFTER_COMPILATION + NVRTC_ERROR_NO_LOWERED_NAMES_BEFORE_COMPILATION + NVRTC_ERROR_NAME_EXPRESSION_NOT_VALID + NVRTC_ERROR_INTERNAL_ERROR + NVRTC_ERROR_TIME_FILE_WRITE_FAILED + NVRTC_ERROR_NO_PCH_CREATE_ATTEMPTED + NVRTC_ERROR_PCH_CREATE_HEAP_EXHAUSTED + NVRTC_ERROR_PCH_CREATE + NVRTC_ERROR_CANCELLED + NVRTC_ERROR_TIME_TRACE_FILE_WRITE_FAILED +cdef enum: _NVRTCRESULT_INTERNAL_LOADING_ERROR = -42 + + +# TYPES +cdef extern from '': + ctypedef void* nvrtcProgram 'nvrtcProgram' + + + +# FUNCTIONS +cdef const char* nvrtcGetErrorString(nvrtcResult result) except?NULL nogil +cdef nvrtcResult nvrtcVersion(int* major, int* minor) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil +cdef nvrtcResult nvrtcGetNumSupportedArchs(int* numArchs) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil +cdef nvrtcResult nvrtcGetSupportedArchs(int* supportedArchs) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil +cdef nvrtcResult nvrtcCreateProgram(nvrtcProgram* prog, const char* src, const char* name, int numHeaders, const char* const* headers, const char* const* includeNames) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil +cdef nvrtcResult nvrtcDestroyProgram(nvrtcProgram* prog) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil +cdef nvrtcResult nvrtcCompileProgram(nvrtcProgram prog, int numOptions, const char* const* options) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil +cdef nvrtcResult nvrtcGetPTXSize(nvrtcProgram prog, size_t* ptxSizeRet) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil +cdef nvrtcResult nvrtcGetPTX(nvrtcProgram prog, char* ptx) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil +cdef nvrtcResult nvrtcGetCUBINSize(nvrtcProgram prog, size_t* cubinSizeRet) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil +cdef nvrtcResult nvrtcGetCUBIN(nvrtcProgram prog, char* cubin) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil +cdef nvrtcResult nvrtcGetLTOIRSize(nvrtcProgram prog, size_t* LTOIRSizeRet) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil +cdef nvrtcResult nvrtcGetLTOIR(nvrtcProgram prog, char* LTOIR) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil +cdef nvrtcResult nvrtcGetOptiXIRSize(nvrtcProgram prog, size_t* optixirSizeRet) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil +cdef nvrtcResult nvrtcGetOptiXIR(nvrtcProgram prog, char* optixir) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil +cdef nvrtcResult nvrtcGetProgramLogSize(nvrtcProgram prog, size_t* logSizeRet) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil +cdef nvrtcResult nvrtcGetProgramLog(nvrtcProgram prog, char* log) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil +cdef nvrtcResult nvrtcAddNameExpression(nvrtcProgram prog, const char* const name_expression) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil +cdef nvrtcResult nvrtcGetLoweredName(nvrtcProgram prog, const char* const name_expression, const char** lowered_name) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil +cdef nvrtcResult nvrtcGetPCHHeapSize(size_t* ret) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil +cdef nvrtcResult nvrtcSetPCHHeapSize(size_t size) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil +cdef nvrtcResult nvrtcGetPCHCreateStatus(nvrtcProgram prog) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil +cdef nvrtcResult nvrtcGetPCHHeapSizeRequired(nvrtcProgram prog, size_t* size) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil +cdef nvrtcResult nvrtcSetFlowCallback(nvrtcProgram prog, void * callback, void* payload) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil +cdef nvrtcResult nvrtcGetTileIRSize(nvrtcProgram prog, size_t* TileIRSizeRet) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil +cdef nvrtcResult nvrtcGetTileIR(nvrtcProgram prog, char* TileIR) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil diff --git a/cuda_bindings/cuda/bindings/cynvrtc.pyx b/cuda_bindings/cuda/bindings/cynvrtc.pyx index 2bf71611d72..85a93f3d3e3 100644 --- a/cuda_bindings/cuda/bindings/cynvrtc.pyx +++ b/cuda_bindings/cuda/bindings/cynvrtc.pyx @@ -2,84 +2,109 @@ # # SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE # -# This code was automatically generated with version 13.2.0, generator version 0.3.1.dev1364+ged01d643e. Do not modify it directly. +# This code was automatically generated across versions from 12.9.0 to 13.2.0, generator version 0.3.1.dev1630+gadce055ea.d20260422. Do not modify it directly. from ._internal cimport nvrtc as _nvrtc -cdef const char* nvrtcGetErrorString(nvrtcResult result) except ?NULL nogil: +cdef const char* nvrtcGetErrorString(nvrtcResult result) except?NULL nogil: return _nvrtc._nvrtcGetErrorString(result) -cdef nvrtcResult nvrtcVersion(int* major, int* minor) except ?NVRTC_ERROR_INVALID_INPUT nogil: + +cdef nvrtcResult nvrtcVersion(int* major, int* minor) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: return _nvrtc._nvrtcVersion(major, minor) -cdef nvrtcResult nvrtcGetNumSupportedArchs(int* numArchs) except ?NVRTC_ERROR_INVALID_INPUT nogil: + +cdef nvrtcResult nvrtcGetNumSupportedArchs(int* numArchs) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: return _nvrtc._nvrtcGetNumSupportedArchs(numArchs) -cdef nvrtcResult nvrtcGetSupportedArchs(int* supportedArchs) except ?NVRTC_ERROR_INVALID_INPUT nogil: + +cdef nvrtcResult nvrtcGetSupportedArchs(int* supportedArchs) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: return _nvrtc._nvrtcGetSupportedArchs(supportedArchs) -cdef nvrtcResult nvrtcCreateProgram(nvrtcProgram* prog, const char* src, const char* name, int numHeaders, const char** headers, const char** includeNames) except ?NVRTC_ERROR_INVALID_INPUT nogil: + +cdef nvrtcResult nvrtcCreateProgram(nvrtcProgram* prog, const char* src, const char* name, int numHeaders, const char* const* headers, const char* const* includeNames) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: return _nvrtc._nvrtcCreateProgram(prog, src, name, numHeaders, headers, includeNames) -cdef nvrtcResult nvrtcDestroyProgram(nvrtcProgram* prog) except ?NVRTC_ERROR_INVALID_INPUT nogil: + +cdef nvrtcResult nvrtcDestroyProgram(nvrtcProgram* prog) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: return _nvrtc._nvrtcDestroyProgram(prog) -cdef nvrtcResult nvrtcCompileProgram(nvrtcProgram prog, int numOptions, const char** options) except ?NVRTC_ERROR_INVALID_INPUT nogil: + +cdef nvrtcResult nvrtcCompileProgram(nvrtcProgram prog, int numOptions, const char* const* options) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: return _nvrtc._nvrtcCompileProgram(prog, numOptions, options) -cdef nvrtcResult nvrtcGetPTXSize(nvrtcProgram prog, size_t* ptxSizeRet) except ?NVRTC_ERROR_INVALID_INPUT nogil: + +cdef nvrtcResult nvrtcGetPTXSize(nvrtcProgram prog, size_t* ptxSizeRet) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: return _nvrtc._nvrtcGetPTXSize(prog, ptxSizeRet) -cdef nvrtcResult nvrtcGetPTX(nvrtcProgram prog, char* ptx) except ?NVRTC_ERROR_INVALID_INPUT nogil: + +cdef nvrtcResult nvrtcGetPTX(nvrtcProgram prog, char* ptx) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: return _nvrtc._nvrtcGetPTX(prog, ptx) -cdef nvrtcResult nvrtcGetCUBINSize(nvrtcProgram prog, size_t* cubinSizeRet) except ?NVRTC_ERROR_INVALID_INPUT nogil: + +cdef nvrtcResult nvrtcGetCUBINSize(nvrtcProgram prog, size_t* cubinSizeRet) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: return _nvrtc._nvrtcGetCUBINSize(prog, cubinSizeRet) -cdef nvrtcResult nvrtcGetCUBIN(nvrtcProgram prog, char* cubin) except ?NVRTC_ERROR_INVALID_INPUT nogil: + +cdef nvrtcResult nvrtcGetCUBIN(nvrtcProgram prog, char* cubin) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: return _nvrtc._nvrtcGetCUBIN(prog, cubin) -cdef nvrtcResult nvrtcGetLTOIRSize(nvrtcProgram prog, size_t* LTOIRSizeRet) except ?NVRTC_ERROR_INVALID_INPUT nogil: + +cdef nvrtcResult nvrtcGetLTOIRSize(nvrtcProgram prog, size_t* LTOIRSizeRet) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: return _nvrtc._nvrtcGetLTOIRSize(prog, LTOIRSizeRet) -cdef nvrtcResult nvrtcGetLTOIR(nvrtcProgram prog, char* LTOIR) except ?NVRTC_ERROR_INVALID_INPUT nogil: + +cdef nvrtcResult nvrtcGetLTOIR(nvrtcProgram prog, char* LTOIR) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: return _nvrtc._nvrtcGetLTOIR(prog, LTOIR) -cdef nvrtcResult nvrtcGetOptiXIRSize(nvrtcProgram prog, size_t* optixirSizeRet) except ?NVRTC_ERROR_INVALID_INPUT nogil: + +cdef nvrtcResult nvrtcGetOptiXIRSize(nvrtcProgram prog, size_t* optixirSizeRet) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: return _nvrtc._nvrtcGetOptiXIRSize(prog, optixirSizeRet) -cdef nvrtcResult nvrtcGetOptiXIR(nvrtcProgram prog, char* optixir) except ?NVRTC_ERROR_INVALID_INPUT nogil: + +cdef nvrtcResult nvrtcGetOptiXIR(nvrtcProgram prog, char* optixir) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: return _nvrtc._nvrtcGetOptiXIR(prog, optixir) -cdef nvrtcResult nvrtcGetProgramLogSize(nvrtcProgram prog, size_t* logSizeRet) except ?NVRTC_ERROR_INVALID_INPUT nogil: + +cdef nvrtcResult nvrtcGetProgramLogSize(nvrtcProgram prog, size_t* logSizeRet) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: return _nvrtc._nvrtcGetProgramLogSize(prog, logSizeRet) -cdef nvrtcResult nvrtcGetProgramLog(nvrtcProgram prog, char* log) except ?NVRTC_ERROR_INVALID_INPUT nogil: + +cdef nvrtcResult nvrtcGetProgramLog(nvrtcProgram prog, char* log) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: return _nvrtc._nvrtcGetProgramLog(prog, log) -cdef nvrtcResult nvrtcAddNameExpression(nvrtcProgram prog, const char* name_expression) except ?NVRTC_ERROR_INVALID_INPUT nogil: + +cdef nvrtcResult nvrtcAddNameExpression(nvrtcProgram prog, const char* const name_expression) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: return _nvrtc._nvrtcAddNameExpression(prog, name_expression) -cdef nvrtcResult nvrtcGetLoweredName(nvrtcProgram prog, const char* name_expression, const char** lowered_name) except ?NVRTC_ERROR_INVALID_INPUT nogil: + +cdef nvrtcResult nvrtcGetLoweredName(nvrtcProgram prog, const char* const name_expression, const char** lowered_name) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: return _nvrtc._nvrtcGetLoweredName(prog, name_expression, lowered_name) -cdef nvrtcResult nvrtcGetPCHHeapSize(size_t* ret) except ?NVRTC_ERROR_INVALID_INPUT nogil: + +cdef nvrtcResult nvrtcGetPCHHeapSize(size_t* ret) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: return _nvrtc._nvrtcGetPCHHeapSize(ret) -cdef nvrtcResult nvrtcSetPCHHeapSize(size_t size) except ?NVRTC_ERROR_INVALID_INPUT nogil: + +cdef nvrtcResult nvrtcSetPCHHeapSize(size_t size) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: return _nvrtc._nvrtcSetPCHHeapSize(size) -cdef nvrtcResult nvrtcGetPCHCreateStatus(nvrtcProgram prog) except ?NVRTC_ERROR_INVALID_INPUT nogil: + +cdef nvrtcResult nvrtcGetPCHCreateStatus(nvrtcProgram prog) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: return _nvrtc._nvrtcGetPCHCreateStatus(prog) -cdef nvrtcResult nvrtcGetPCHHeapSizeRequired(nvrtcProgram prog, size_t* size) except ?NVRTC_ERROR_INVALID_INPUT nogil: + +cdef nvrtcResult nvrtcGetPCHHeapSizeRequired(nvrtcProgram prog, size_t* size) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: return _nvrtc._nvrtcGetPCHHeapSizeRequired(prog, size) -cdef nvrtcResult nvrtcSetFlowCallback(nvrtcProgram prog, void* callback, void* payload) except ?NVRTC_ERROR_INVALID_INPUT nogil: + +cdef nvrtcResult nvrtcSetFlowCallback(nvrtcProgram prog, void * callback, void* payload) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: return _nvrtc._nvrtcSetFlowCallback(prog, callback, payload) -cdef nvrtcResult nvrtcGetTileIRSize(nvrtcProgram prog, size_t* TileIRSizeRet) except ?NVRTC_ERROR_INVALID_INPUT nogil: + +cdef nvrtcResult nvrtcGetTileIRSize(nvrtcProgram prog, size_t* TileIRSizeRet) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: return _nvrtc._nvrtcGetTileIRSize(prog, TileIRSizeRet) -cdef nvrtcResult nvrtcGetTileIR(nvrtcProgram prog, char* TileIR) except ?NVRTC_ERROR_INVALID_INPUT nogil: + +cdef nvrtcResult nvrtcGetTileIR(nvrtcProgram prog, char* TileIR) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: return _nvrtc._nvrtcGetTileIR(prog, TileIR) diff --git a/cuda_bindings/cuda/bindings/driver.pxd.in b/cuda_bindings/cuda/bindings/driver.pxd similarity index 60% rename from cuda_bindings/cuda/bindings/driver.pxd.in rename to cuda_bindings/cuda/bindings/driver.pxd index a5328c2f5e8..2558a077a80 100644 --- a/cuda_bindings/cuda/bindings/driver.pxd.in +++ b/cuda_bindings/cuda/bindings/driver.pxd @@ -1,13 +1,11 @@ # 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.2.0, generator version 0.3.1.dev1422+gf4812259e.d20260318. Do not modify it directly. +# This code was automatically generated with version 13.2.0, generator version 0.3.1.dev1630+gadce055ea.d20260422. Do not modify it directly. cimport cuda.bindings.cydriver as cydriver include "_lib/utils.pxd" -{{if 'CUcontext' in found_types}} - cdef class CUcontext: """ @@ -21,9 +19,6 @@ cdef class CUcontext: """ cdef cydriver.CUcontext _pvt_val cdef cydriver.CUcontext* _pvt_ptr -{{endif}} - -{{if 'CUmodule' in found_types}} cdef class CUmodule: """ @@ -38,9 +33,6 @@ cdef class CUmodule: """ cdef cydriver.CUmodule _pvt_val cdef cydriver.CUmodule* _pvt_ptr -{{endif}} - -{{if 'CUfunction' in found_types}} cdef class CUfunction: """ @@ -55,9 +47,6 @@ cdef class CUfunction: """ cdef cydriver.CUfunction _pvt_val cdef cydriver.CUfunction* _pvt_ptr -{{endif}} - -{{if 'CUlibrary' in found_types}} cdef class CUlibrary: """ @@ -72,9 +61,6 @@ cdef class CUlibrary: """ cdef cydriver.CUlibrary _pvt_val cdef cydriver.CUlibrary* _pvt_ptr -{{endif}} - -{{if 'CUkernel' in found_types}} cdef class CUkernel: """ @@ -89,9 +75,6 @@ cdef class CUkernel: """ cdef cydriver.CUkernel _pvt_val cdef cydriver.CUkernel* _pvt_ptr -{{endif}} - -{{if 'CUarray' in found_types}} cdef class CUarray: """ @@ -106,9 +89,6 @@ cdef class CUarray: """ cdef cydriver.CUarray _pvt_val cdef cydriver.CUarray* _pvt_ptr -{{endif}} - -{{if 'CUmipmappedArray' in found_types}} cdef class CUmipmappedArray: """ @@ -123,9 +103,6 @@ cdef class CUmipmappedArray: """ cdef cydriver.CUmipmappedArray _pvt_val cdef cydriver.CUmipmappedArray* _pvt_ptr -{{endif}} - -{{if 'CUtexref' in found_types}} cdef class CUtexref: """ @@ -140,9 +117,6 @@ cdef class CUtexref: """ cdef cydriver.CUtexref _pvt_val cdef cydriver.CUtexref* _pvt_ptr -{{endif}} - -{{if 'CUsurfref' in found_types}} cdef class CUsurfref: """ @@ -157,9 +131,6 @@ cdef class CUsurfref: """ cdef cydriver.CUsurfref _pvt_val cdef cydriver.CUsurfref* _pvt_ptr -{{endif}} - -{{if 'CUevent' in found_types}} cdef class CUevent: """ @@ -174,9 +145,6 @@ cdef class CUevent: """ cdef cydriver.CUevent _pvt_val cdef cydriver.CUevent* _pvt_ptr -{{endif}} - -{{if 'CUstream' in found_types}} cdef class CUstream: """ @@ -191,9 +159,6 @@ cdef class CUstream: """ cdef cydriver.CUstream _pvt_val cdef cydriver.CUstream* _pvt_ptr -{{endif}} - -{{if 'CUgraphicsResource' in found_types}} cdef class CUgraphicsResource: """ @@ -208,9 +173,6 @@ cdef class CUgraphicsResource: """ cdef cydriver.CUgraphicsResource _pvt_val cdef cydriver.CUgraphicsResource* _pvt_ptr -{{endif}} - -{{if 'CUexternalMemory' in found_types}} cdef class CUexternalMemory: """ @@ -225,9 +187,6 @@ cdef class CUexternalMemory: """ cdef cydriver.CUexternalMemory _pvt_val cdef cydriver.CUexternalMemory* _pvt_ptr -{{endif}} - -{{if 'CUexternalSemaphore' in found_types}} cdef class CUexternalSemaphore: """ @@ -242,9 +201,6 @@ cdef class CUexternalSemaphore: """ cdef cydriver.CUexternalSemaphore _pvt_val cdef cydriver.CUexternalSemaphore* _pvt_ptr -{{endif}} - -{{if 'CUgraph' in found_types}} cdef class CUgraph: """ @@ -259,9 +215,6 @@ cdef class CUgraph: """ cdef cydriver.CUgraph _pvt_val cdef cydriver.CUgraph* _pvt_ptr -{{endif}} - -{{if 'CUgraphNode' in found_types}} cdef class CUgraphNode: """ @@ -276,9 +229,6 @@ cdef class CUgraphNode: """ cdef cydriver.CUgraphNode _pvt_val cdef cydriver.CUgraphNode* _pvt_ptr -{{endif}} - -{{if 'CUgraphExec' in found_types}} cdef class CUgraphExec: """ @@ -293,9 +243,6 @@ cdef class CUgraphExec: """ cdef cydriver.CUgraphExec _pvt_val cdef cydriver.CUgraphExec* _pvt_ptr -{{endif}} - -{{if 'CUmemoryPool' in found_types}} cdef class CUmemoryPool: """ @@ -310,9 +257,6 @@ cdef class CUmemoryPool: """ cdef cydriver.CUmemoryPool _pvt_val cdef cydriver.CUmemoryPool* _pvt_ptr -{{endif}} - -{{if 'CUuserObject' in found_types}} cdef class CUuserObject: """ @@ -327,9 +271,6 @@ cdef class CUuserObject: """ cdef cydriver.CUuserObject _pvt_val cdef cydriver.CUuserObject* _pvt_ptr -{{endif}} - -{{if 'CUgraphDeviceNode' in found_types}} cdef class CUgraphDeviceNode: """ @@ -344,9 +285,6 @@ cdef class CUgraphDeviceNode: """ cdef cydriver.CUgraphDeviceNode _pvt_val cdef cydriver.CUgraphDeviceNode* _pvt_ptr -{{endif}} - -{{if 'CUasyncCallbackHandle' in found_types}} cdef class CUasyncCallbackHandle: """ @@ -361,9 +299,6 @@ cdef class CUasyncCallbackHandle: """ cdef cydriver.CUasyncCallbackHandle _pvt_val cdef cydriver.CUasyncCallbackHandle* _pvt_ptr -{{endif}} - -{{if 'CUgreenCtx' in found_types}} cdef class CUgreenCtx: """ @@ -378,9 +313,6 @@ cdef class CUgreenCtx: """ cdef cydriver.CUgreenCtx _pvt_val cdef cydriver.CUgreenCtx* _pvt_ptr -{{endif}} - -{{if 'CUlinkState' in found_types}} cdef class CUlinkState: """ @@ -394,9 +326,6 @@ cdef class CUlinkState: cdef cydriver.CUlinkState _pvt_val cdef cydriver.CUlinkState* _pvt_ptr cdef list _keepalive -{{endif}} - -{{if 'CUcoredumpCallbackHandle' in found_types}} cdef class CUcoredumpCallbackHandle: """ Opaque handle representing a registered coredump status callback. @@ -411,9 +340,6 @@ cdef class CUcoredumpCallbackHandle: """ cdef cydriver.CUcoredumpCallbackHandle _pvt_val cdef cydriver.CUcoredumpCallbackHandle* _pvt_ptr -{{endif}} - -{{if 'CUdevResourceDesc' in found_types}} cdef class CUdevResourceDesc: """ @@ -428,9 +354,6 @@ cdef class CUdevResourceDesc: """ cdef cydriver.CUdevResourceDesc _pvt_val cdef cydriver.CUdevResourceDesc* _pvt_ptr -{{endif}} - -{{if 'CUlogsCallbackHandle' in found_types}} cdef class CUlogsCallbackHandle: """ @@ -443,9 +366,6 @@ cdef class CUlogsCallbackHandle: """ cdef cydriver.CUlogsCallbackHandle _pvt_val cdef cydriver.CUlogsCallbackHandle* _pvt_ptr -{{endif}} - -{{if True}} cdef class CUeglStreamConnection: """ @@ -460,9 +380,6 @@ cdef class CUeglStreamConnection: """ cdef cydriver.CUeglStreamConnection _pvt_val cdef cydriver.CUeglStreamConnection* _pvt_ptr -{{endif}} - -{{if True}} cdef class EGLImageKHR: """ @@ -475,9 +392,6 @@ cdef class EGLImageKHR: """ cdef cydriver.EGLImageKHR _pvt_val cdef cydriver.EGLImageKHR* _pvt_ptr -{{endif}} - -{{if True}} cdef class EGLStreamKHR: """ @@ -490,9 +404,6 @@ cdef class EGLStreamKHR: """ cdef cydriver.EGLStreamKHR _pvt_val cdef cydriver.EGLStreamKHR* _pvt_ptr -{{endif}} - -{{if True}} cdef class EGLSyncKHR: """ @@ -505,9 +416,6 @@ cdef class EGLSyncKHR: """ cdef cydriver.EGLSyncKHR _pvt_val cdef cydriver.EGLSyncKHR* _pvt_ptr -{{endif}} - -{{if 'CUasyncCallback' in found_types}} cdef class CUasyncCallback: """ @@ -520,9 +428,6 @@ cdef class CUasyncCallback: """ cdef cydriver.CUasyncCallback _pvt_val cdef cydriver.CUasyncCallback* _pvt_ptr -{{endif}} - -{{if 'CUhostFn' in found_types}} cdef class CUhostFn: """ @@ -535,9 +440,6 @@ cdef class CUhostFn: """ cdef cydriver.CUhostFn _pvt_val cdef cydriver.CUhostFn* _pvt_ptr -{{endif}} - -{{if 'CUstreamCallback' in found_types}} cdef class CUstreamCallback: """ @@ -550,9 +452,6 @@ cdef class CUstreamCallback: """ cdef cydriver.CUstreamCallback _pvt_val cdef cydriver.CUstreamCallback* _pvt_ptr -{{endif}} - -{{if 'CUoccupancyB2DSize' in found_types}} cdef class CUoccupancyB2DSize: """ @@ -565,9 +464,6 @@ cdef class CUoccupancyB2DSize: """ cdef cydriver.CUoccupancyB2DSize _pvt_val cdef cydriver.CUoccupancyB2DSize* _pvt_ptr -{{endif}} - -{{if 'CUcoredumpStatusCallback' in found_types}} cdef class CUcoredumpStatusCallback: """ @@ -580,9 +476,6 @@ cdef class CUcoredumpStatusCallback: """ cdef cydriver.CUcoredumpStatusCallback _pvt_val cdef cydriver.CUcoredumpStatusCallback* _pvt_ptr -{{endif}} - -{{if 'CUlogsCallback' in found_types}} cdef class CUlogsCallback: """ @@ -595,18 +488,15 @@ cdef class CUlogsCallback: """ cdef cydriver.CUlogsCallback _pvt_val cdef cydriver.CUlogsCallback* _pvt_ptr -{{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 ------- @@ -615,8 +505,6 @@ cdef class CUuuid_st: """ cdef cydriver.CUuuid_st _pvt_val cdef cydriver.CUuuid_st* _pvt_ptr -{{endif}} -{{if 'CUmemFabricHandle_st' in found_struct}} cdef class CUmemFabricHandle_st: """ @@ -627,10 +515,10 @@ cdef class CUmemFabricHandle_st: Attributes ---------- - {{if 'CUmemFabricHandle_st.data' in found_struct}} + data : bytes - {{endif}} + Methods ------- @@ -639,8 +527,6 @@ cdef class CUmemFabricHandle_st: """ cdef cydriver.CUmemFabricHandle_st _pvt_val cdef cydriver.CUmemFabricHandle_st* _pvt_ptr -{{endif}} -{{if 'CUipcEventHandle_st' in found_struct}} cdef class CUipcEventHandle_st: """ @@ -648,10 +534,10 @@ cdef class CUipcEventHandle_st: Attributes ---------- - {{if 'CUipcEventHandle_st.reserved' in found_struct}} + reserved : bytes - {{endif}} + Methods ------- @@ -660,8 +546,6 @@ cdef class CUipcEventHandle_st: """ cdef cydriver.CUipcEventHandle_st _pvt_val cdef cydriver.CUipcEventHandle_st* _pvt_ptr -{{endif}} -{{if 'CUipcMemHandle_st' in found_struct}} cdef class CUipcMemHandle_st: """ @@ -669,10 +553,10 @@ cdef class CUipcMemHandle_st: Attributes ---------- - {{if 'CUipcMemHandle_st.reserved' in found_struct}} + reserved : bytes - {{endif}} + Methods ------- @@ -681,37 +565,35 @@ cdef class CUipcMemHandle_st: """ cdef cydriver.CUipcMemHandle_st _pvt_val cdef cydriver.CUipcMemHandle_st* _pvt_ptr -{{endif}} -{{if 'CUstreamBatchMemOpParams_union.waitValue' in found_struct}} cdef class CUstreamMemOpWaitValueParams_st: """ Attributes ---------- - {{if 'CUstreamBatchMemOpParams_union.waitValue.operation' in found_struct}} + operation : CUstreamBatchMemOpType - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.waitValue.address' in found_struct}} + + address : CUdeviceptr - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.waitValue.value' in found_struct}} + + value : cuuint32_t - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.waitValue.value64' in found_struct}} + + value64 : cuuint64_t - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.waitValue.flags' in found_struct}} + + flags : unsigned int See CUstreamWaitValue_flags. - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.waitValue.alias' in found_struct}} + + alias : CUdeviceptr For driver internal use. Initial value is unimportant. - {{endif}} + Methods ------- @@ -719,49 +601,47 @@ cdef class CUstreamMemOpWaitValueParams_st: Get memory address of class instance """ cdef cydriver.CUstreamBatchMemOpParams_union* _pvt_ptr - {{if 'CUstreamBatchMemOpParams_union.waitValue.address' in found_struct}} + cdef CUdeviceptr _address - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.waitValue.value' in found_struct}} + + cdef cuuint32_t _value - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.waitValue.value64' in found_struct}} + + cdef cuuint64_t _value64 - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.waitValue.alias' in found_struct}} + + cdef CUdeviceptr _alias - {{endif}} -{{endif}} -{{if 'CUstreamBatchMemOpParams_union.writeValue' in found_struct}} + cdef class CUstreamMemOpWriteValueParams_st: """ Attributes ---------- - {{if 'CUstreamBatchMemOpParams_union.writeValue.operation' in found_struct}} + operation : CUstreamBatchMemOpType - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.writeValue.address' in found_struct}} + + address : CUdeviceptr - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.writeValue.value' in found_struct}} + + value : cuuint32_t - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.writeValue.value64' in found_struct}} + + value64 : cuuint64_t - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.writeValue.flags' in found_struct}} + + flags : unsigned int See CUstreamWriteValue_flags. - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.writeValue.alias' in found_struct}} + + alias : CUdeviceptr For driver internal use. Initial value is unimportant. - {{endif}} + Methods ------- @@ -769,33 +649,31 @@ cdef class CUstreamMemOpWriteValueParams_st: Get memory address of class instance """ cdef cydriver.CUstreamBatchMemOpParams_union* _pvt_ptr - {{if 'CUstreamBatchMemOpParams_union.writeValue.address' in found_struct}} + cdef CUdeviceptr _address - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.writeValue.value' in found_struct}} + + cdef cuuint32_t _value - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.writeValue.value64' in found_struct}} + + cdef cuuint64_t _value64 - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.writeValue.alias' in found_struct}} + + cdef CUdeviceptr _alias - {{endif}} -{{endif}} -{{if 'CUstreamBatchMemOpParams_union.flushRemoteWrites' in found_struct}} + cdef class CUstreamMemOpFlushRemoteWritesParams_st: """ Attributes ---------- - {{if 'CUstreamBatchMemOpParams_union.flushRemoteWrites.operation' in found_struct}} + operation : CUstreamBatchMemOpType - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.flushRemoteWrites.flags' in found_struct}} + + flags : unsigned int Must be 0. - {{endif}} + Methods ------- @@ -803,21 +681,19 @@ cdef class CUstreamMemOpFlushRemoteWritesParams_st: Get memory address of class instance """ cdef cydriver.CUstreamBatchMemOpParams_union* _pvt_ptr -{{endif}} -{{if 'CUstreamBatchMemOpParams_union.memoryBarrier' in found_struct}} cdef class CUstreamMemOpMemoryBarrierParams_st: """ Attributes ---------- - {{if 'CUstreamBatchMemOpParams_union.memoryBarrier.operation' in found_struct}} + operation : CUstreamBatchMemOpType < Only supported in the _v2 API - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.memoryBarrier.flags' in found_struct}} + + flags : unsigned int See CUstreamMemoryBarrier_flags - {{endif}} + Methods ------- @@ -825,41 +701,39 @@ cdef class CUstreamMemOpMemoryBarrierParams_st: Get memory address of class instance """ cdef cydriver.CUstreamBatchMemOpParams_union* _pvt_ptr -{{endif}} -{{if 'CUstreamBatchMemOpParams_union.atomicReduction' in found_struct}} cdef class CUstreamMemOpAtomicReductionParams_st: """ Attributes ---------- - {{if 'CUstreamBatchMemOpParams_union.atomicReduction.operation' in found_struct}} + operation : CUstreamBatchMemOpType - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.atomicReduction.flags' in found_struct}} + + flags : unsigned int Must be 0 - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.atomicReduction.reductionOp' in found_struct}} + + reductionOp : CUstreamAtomicReductionOpType See CUstreamAtomicReductionOpType - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.atomicReduction.dataType' in found_struct}} + + dataType : CUstreamAtomicReductionDataType See CUstreamAtomicReductionDataType - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.atomicReduction.address' in found_struct}} + + address : CUdeviceptr The address the atomic operation will be operated on - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.atomicReduction.value' in found_struct}} + + value : cuuint64_t The operand value the atomic operation will operate with - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.atomicReduction.alias' in found_struct}} + + alias : CUdeviceptr For driver internal use. Initial value is unimportant. - {{endif}} + Methods ------- @@ -867,17 +741,15 @@ cdef class CUstreamMemOpAtomicReductionParams_st: Get memory address of class instance """ cdef cydriver.CUstreamBatchMemOpParams_union* _pvt_ptr - {{if 'CUstreamBatchMemOpParams_union.atomicReduction.address' in found_struct}} + cdef CUdeviceptr _address - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.atomicReduction.value' in found_struct}} + + cdef cuuint64_t _value - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.atomicReduction.alias' in found_struct}} + + cdef CUdeviceptr _alias - {{endif}} -{{endif}} -{{if 'CUstreamBatchMemOpParams_union' in found_struct}} + cdef class CUstreamBatchMemOpParams_union: """ @@ -885,37 +757,37 @@ cdef class CUstreamBatchMemOpParams_union: Attributes ---------- - {{if 'CUstreamBatchMemOpParams_union.operation' in found_struct}} + operation : CUstreamBatchMemOpType Operation. This is the first field of all the union elemets and acts as a TAG to determine which union member is valid. - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.waitValue' in found_struct}} + + waitValue : CUstreamMemOpWaitValueParams_st Params for CU_STREAM_MEM_OP_WAIT_VALUE_32 and CU_STREAM_MEM_OP_WAIT_VALUE_64 operations. - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.writeValue' in found_struct}} + + writeValue : CUstreamMemOpWriteValueParams_st Params for CU_STREAM_MEM_OP_WRITE_VALUE_32 and CU_STREAM_MEM_OP_WRITE_VALUE_64 operations. - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.flushRemoteWrites' in found_struct}} + + flushRemoteWrites : CUstreamMemOpFlushRemoteWritesParams_st Params for CU_STREAM_MEM_OP_FLUSH_REMOTE_WRITES operations. - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.memoryBarrier' in found_struct}} + + memoryBarrier : CUstreamMemOpMemoryBarrierParams_st Params for CU_STREAM_MEM_OP_BARRIER operations. - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.atomicReduction' in found_struct}} + + atomicReduction : CUstreamMemOpAtomicReductionParams_st - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.pad' in found_struct}} + + pad : list[cuuint64_t] - {{endif}} + Methods ------- @@ -924,23 +796,21 @@ cdef class CUstreamBatchMemOpParams_union: """ cdef cydriver.CUstreamBatchMemOpParams_union _pvt_val cdef cydriver.CUstreamBatchMemOpParams_union* _pvt_ptr - {{if 'CUstreamBatchMemOpParams_union.waitValue' in found_struct}} + cdef CUstreamMemOpWaitValueParams_st _waitValue - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.writeValue' in found_struct}} + + cdef CUstreamMemOpWriteValueParams_st _writeValue - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.flushRemoteWrites' in found_struct}} + + cdef CUstreamMemOpFlushRemoteWritesParams_st _flushRemoteWrites - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.memoryBarrier' in found_struct}} + + cdef CUstreamMemOpMemoryBarrierParams_st _memoryBarrier - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.atomicReduction' in found_struct}} + + cdef CUstreamMemOpAtomicReductionParams_st _atomicReduction - {{endif}} -{{endif}} -{{if 'CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st' in found_struct}} + cdef class CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st: """ @@ -949,22 +819,22 @@ cdef class CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st: Attributes ---------- - {{if 'CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st.ctx' in found_struct}} + ctx : CUcontext - {{endif}} - {{if 'CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st.count' in found_struct}} + + count : unsigned int - {{endif}} - {{if 'CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st.paramArray' in found_struct}} + + paramArray : CUstreamBatchMemOpParams - {{endif}} - {{if 'CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st.flags' in found_struct}} + + flags : unsigned int - {{endif}} + Methods ------- @@ -973,15 +843,13 @@ cdef class CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st: """ cdef cydriver.CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st _pvt_val cdef cydriver.CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st* _pvt_ptr - {{if 'CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st.ctx' in found_struct}} + cdef CUcontext _ctx - {{endif}} - {{if 'CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st.paramArray' in found_struct}} + + cdef size_t _paramArray_length cdef cydriver.CUstreamBatchMemOpParams* _paramArray - {{endif}} -{{endif}} -{{if 'CUDA_BATCH_MEM_OP_NODE_PARAMS_v2_st' in found_struct}} + cdef class CUDA_BATCH_MEM_OP_NODE_PARAMS_v2_st: """ @@ -989,22 +857,22 @@ cdef class CUDA_BATCH_MEM_OP_NODE_PARAMS_v2_st: Attributes ---------- - {{if 'CUDA_BATCH_MEM_OP_NODE_PARAMS_v2_st.ctx' in found_struct}} + ctx : CUcontext Context to use for the operations. - {{endif}} - {{if 'CUDA_BATCH_MEM_OP_NODE_PARAMS_v2_st.count' in found_struct}} + + count : unsigned int Number of operations in paramArray. - {{endif}} - {{if 'CUDA_BATCH_MEM_OP_NODE_PARAMS_v2_st.paramArray' in found_struct}} + + paramArray : CUstreamBatchMemOpParams Array of batch memory operations. - {{endif}} - {{if 'CUDA_BATCH_MEM_OP_NODE_PARAMS_v2_st.flags' in found_struct}} + + flags : unsigned int Flags to control the node. - {{endif}} + Methods ------- @@ -1013,24 +881,22 @@ cdef class CUDA_BATCH_MEM_OP_NODE_PARAMS_v2_st: """ cdef cydriver.CUDA_BATCH_MEM_OP_NODE_PARAMS_v2_st _pvt_val cdef cydriver.CUDA_BATCH_MEM_OP_NODE_PARAMS_v2_st* _pvt_ptr - {{if 'CUDA_BATCH_MEM_OP_NODE_PARAMS_v2_st.ctx' in found_struct}} + cdef CUcontext _ctx - {{endif}} - {{if 'CUDA_BATCH_MEM_OP_NODE_PARAMS_v2_st.paramArray' in found_struct}} + + cdef size_t _paramArray_length cdef cydriver.CUstreamBatchMemOpParams* _paramArray - {{endif}} -{{endif}} -{{if 'CUasyncNotificationInfo_st.info.overBudget' in found_struct}} + cdef class anon_struct0: """ Attributes ---------- - {{if 'CUasyncNotificationInfo_st.info.overBudget.bytesOverBudget' in found_struct}} + bytesOverBudget : unsigned long long - {{endif}} + Methods ------- @@ -1038,17 +904,15 @@ cdef class anon_struct0: Get memory address of class instance """ cdef cydriver.CUasyncNotificationInfo_st* _pvt_ptr -{{endif}} -{{if 'CUasyncNotificationInfo_st.info' in found_struct}} cdef class anon_union2: """ Attributes ---------- - {{if 'CUasyncNotificationInfo_st.info.overBudget' in found_struct}} + overBudget : anon_struct0 - {{endif}} + Methods ------- @@ -1056,11 +920,9 @@ cdef class anon_union2: Get memory address of class instance """ cdef cydriver.CUasyncNotificationInfo_st* _pvt_ptr - {{if 'CUasyncNotificationInfo_st.info.overBudget' in found_struct}} + cdef anon_struct0 _overBudget - {{endif}} -{{endif}} -{{if 'CUasyncNotificationInfo_st' in found_struct}} + cdef class CUasyncNotificationInfo_st: """ @@ -1068,15 +930,15 @@ cdef class CUasyncNotificationInfo_st: Attributes ---------- - {{if 'CUasyncNotificationInfo_st.type' in found_struct}} + type : CUasyncNotificationType The type of notification being sent - {{endif}} - {{if 'CUasyncNotificationInfo_st.info' in found_struct}} + + info : anon_union2 Information about the notification. `typename` must be checked in order to interpret this field. - {{endif}} + Methods ------- @@ -1085,11 +947,9 @@ cdef class CUasyncNotificationInfo_st: """ cdef cydriver.CUasyncNotificationInfo_st* _val_ptr cdef cydriver.CUasyncNotificationInfo_st* _pvt_ptr - {{if 'CUasyncNotificationInfo_st.info' in found_struct}} + cdef anon_union2 _info - {{endif}} -{{endif}} -{{if 'CUdevprop_st' in found_struct}} + cdef class CUdevprop_st: """ @@ -1097,46 +957,46 @@ cdef class CUdevprop_st: Attributes ---------- - {{if 'CUdevprop_st.maxThreadsPerBlock' in found_struct}} + maxThreadsPerBlock : int Maximum number of threads per block - {{endif}} - {{if 'CUdevprop_st.maxThreadsDim' in found_struct}} + + maxThreadsDim : list[int] Maximum size of each dimension of a block - {{endif}} - {{if 'CUdevprop_st.maxGridSize' in found_struct}} + + maxGridSize : list[int] Maximum size of each dimension of a grid - {{endif}} - {{if 'CUdevprop_st.sharedMemPerBlock' in found_struct}} + + sharedMemPerBlock : int Shared memory available per block in bytes - {{endif}} - {{if 'CUdevprop_st.totalConstantMemory' in found_struct}} + + totalConstantMemory : int Constant memory available on device in bytes - {{endif}} - {{if 'CUdevprop_st.SIMDWidth' in found_struct}} + + SIMDWidth : int Warp size in threads - {{endif}} - {{if 'CUdevprop_st.memPitch' in found_struct}} + + memPitch : int Maximum pitch in bytes allowed by memory copies - {{endif}} - {{if 'CUdevprop_st.regsPerBlock' in found_struct}} + + regsPerBlock : int 32-bit registers available per block - {{endif}} - {{if 'CUdevprop_st.clockRate' in found_struct}} + + clockRate : int Clock frequency in kilohertz - {{endif}} - {{if 'CUdevprop_st.textureAlign' in found_struct}} + + textureAlign : int Alignment requirement for textures - {{endif}} + Methods ------- @@ -1145,8 +1005,6 @@ cdef class CUdevprop_st: """ cdef cydriver.CUdevprop_st _pvt_val cdef cydriver.CUdevprop_st* _pvt_ptr -{{endif}} -{{if 'CUaccessPolicyWindow_st' in found_struct}} cdef class CUaccessPolicyWindow_st: """ @@ -1163,29 +1021,29 @@ cdef class CUaccessPolicyWindow_st: Attributes ---------- - {{if 'CUaccessPolicyWindow_st.base_ptr' in found_struct}} + base_ptr : Any Starting address of the access policy window. CUDA driver may align it. - {{endif}} - {{if 'CUaccessPolicyWindow_st.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 'CUaccessPolicyWindow_st.hitRatio' in found_struct}} + + hitRatio : float hitRatio specifies percentage of lines assigned hitProp, rest are assigned missProp. - {{endif}} - {{if 'CUaccessPolicyWindow_st.hitProp' in found_struct}} + + hitProp : CUaccessProperty CUaccessProperty set for hit. - {{endif}} - {{if 'CUaccessPolicyWindow_st.missProp' in found_struct}} + + missProp : CUaccessProperty CUaccessProperty set for miss. Must be either NORMAL or STREAMING - {{endif}} + Methods ------- @@ -1194,11 +1052,9 @@ cdef class CUaccessPolicyWindow_st: """ cdef cydriver.CUaccessPolicyWindow_st _pvt_val cdef cydriver.CUaccessPolicyWindow_st* _pvt_ptr - {{if 'CUaccessPolicyWindow_st.base_ptr' in found_struct}} + cdef _HelperInputVoidPtr _cybase_ptr - {{endif}} -{{endif}} -{{if 'CUDA_KERNEL_NODE_PARAMS_st' in found_struct}} + cdef class CUDA_KERNEL_NODE_PARAMS_st: """ @@ -1206,46 +1062,46 @@ cdef class CUDA_KERNEL_NODE_PARAMS_st: Attributes ---------- - {{if 'CUDA_KERNEL_NODE_PARAMS_st.func' in found_struct}} + func : CUfunction Kernel to launch - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_st.gridDimX' in found_struct}} + + gridDimX : unsigned int Width of grid in blocks - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_st.gridDimY' in found_struct}} + + gridDimY : unsigned int Height of grid in blocks - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_st.gridDimZ' in found_struct}} + + gridDimZ : unsigned int Depth of grid in blocks - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_st.blockDimX' in found_struct}} + + blockDimX : unsigned int X dimension of each thread block - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_st.blockDimY' in found_struct}} + + blockDimY : unsigned int Y dimension of each thread block - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_st.blockDimZ' in found_struct}} + + blockDimZ : unsigned int Z dimension of each thread block - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_st.sharedMemBytes' in found_struct}} + + sharedMemBytes : unsigned int Dynamic shared-memory size per thread block in bytes - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_st.kernelParams' in found_struct}} + + kernelParams : Any Array of pointers to kernel parameters - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_st.extra' in found_struct}} + + extra : Any Extra options - {{endif}} + Methods ------- @@ -1254,14 +1110,12 @@ cdef class CUDA_KERNEL_NODE_PARAMS_st: """ cdef cydriver.CUDA_KERNEL_NODE_PARAMS_st _pvt_val cdef cydriver.CUDA_KERNEL_NODE_PARAMS_st* _pvt_ptr - {{if 'CUDA_KERNEL_NODE_PARAMS_st.func' in found_struct}} + cdef CUfunction _func - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_st.kernelParams' in found_struct}} + + cdef _HelperKernelParams _cykernelParams - {{endif}} -{{endif}} -{{if 'CUDA_KERNEL_NODE_PARAMS_v2_st' in found_struct}} + cdef class CUDA_KERNEL_NODE_PARAMS_v2_st: """ @@ -1269,56 +1123,56 @@ cdef class CUDA_KERNEL_NODE_PARAMS_v2_st: Attributes ---------- - {{if 'CUDA_KERNEL_NODE_PARAMS_v2_st.func' in found_struct}} + func : CUfunction Kernel to launch - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v2_st.gridDimX' in found_struct}} + + gridDimX : unsigned int Width of grid in blocks - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v2_st.gridDimY' in found_struct}} + + gridDimY : unsigned int Height of grid in blocks - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v2_st.gridDimZ' in found_struct}} + + gridDimZ : unsigned int Depth of grid in blocks - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v2_st.blockDimX' in found_struct}} + + blockDimX : unsigned int X dimension of each thread block - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v2_st.blockDimY' in found_struct}} + + blockDimY : unsigned int Y dimension of each thread block - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v2_st.blockDimZ' in found_struct}} + + blockDimZ : unsigned int Z dimension of each thread block - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v2_st.sharedMemBytes' in found_struct}} + + sharedMemBytes : unsigned int Dynamic shared-memory size per thread block in bytes - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v2_st.kernelParams' in found_struct}} + + kernelParams : Any Array of pointers to kernel parameters - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v2_st.extra' in found_struct}} + + extra : Any Extra options - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v2_st.kern' in found_struct}} + + kern : CUkernel Kernel to launch, will only be referenced if func is NULL - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v2_st.ctx' in found_struct}} + + ctx : CUcontext Context for the kernel task to run in. The value NULL will indicate the current context should be used by the api. This field is ignored if func is set. - {{endif}} + Methods ------- @@ -1327,20 +1181,18 @@ cdef class CUDA_KERNEL_NODE_PARAMS_v2_st: """ cdef cydriver.CUDA_KERNEL_NODE_PARAMS_v2_st _pvt_val cdef cydriver.CUDA_KERNEL_NODE_PARAMS_v2_st* _pvt_ptr - {{if 'CUDA_KERNEL_NODE_PARAMS_v2_st.func' in found_struct}} + cdef CUfunction _func - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v2_st.kernelParams' in found_struct}} + + cdef _HelperKernelParams _cykernelParams - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v2_st.kern' in found_struct}} + + cdef CUkernel _kern - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v2_st.ctx' in found_struct}} + + cdef CUcontext _ctx - {{endif}} -{{endif}} -{{if 'CUDA_KERNEL_NODE_PARAMS_v3_st' in found_struct}} + cdef class CUDA_KERNEL_NODE_PARAMS_v3_st: """ @@ -1348,56 +1200,56 @@ cdef class CUDA_KERNEL_NODE_PARAMS_v3_st: Attributes ---------- - {{if 'CUDA_KERNEL_NODE_PARAMS_v3_st.func' in found_struct}} + func : CUfunction Kernel to launch - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v3_st.gridDimX' in found_struct}} + + gridDimX : unsigned int Width of grid in blocks - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v3_st.gridDimY' in found_struct}} + + gridDimY : unsigned int Height of grid in blocks - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v3_st.gridDimZ' in found_struct}} + + gridDimZ : unsigned int Depth of grid in blocks - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v3_st.blockDimX' in found_struct}} + + blockDimX : unsigned int X dimension of each thread block - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v3_st.blockDimY' in found_struct}} + + blockDimY : unsigned int Y dimension of each thread block - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v3_st.blockDimZ' in found_struct}} + + blockDimZ : unsigned int Z dimension of each thread block - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v3_st.sharedMemBytes' in found_struct}} + + sharedMemBytes : unsigned int Dynamic shared-memory size per thread block in bytes - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v3_st.kernelParams' in found_struct}} + + kernelParams : Any Array of pointers to kernel parameters - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v3_st.extra' in found_struct}} + + extra : Any Extra options - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v3_st.kern' in found_struct}} + + kern : CUkernel Kernel to launch, will only be referenced if func is NULL - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v3_st.ctx' in found_struct}} + + ctx : CUcontext Context for the kernel task to run in. The value NULL will indicate the current context should be used by the api. This field is ignored if func is set. - {{endif}} + Methods ------- @@ -1406,20 +1258,18 @@ cdef class CUDA_KERNEL_NODE_PARAMS_v3_st: """ cdef cydriver.CUDA_KERNEL_NODE_PARAMS_v3_st _pvt_val cdef cydriver.CUDA_KERNEL_NODE_PARAMS_v3_st* _pvt_ptr - {{if 'CUDA_KERNEL_NODE_PARAMS_v3_st.func' in found_struct}} + cdef CUfunction _func - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v3_st.kernelParams' in found_struct}} + + cdef _HelperKernelParams _cykernelParams - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v3_st.kern' in found_struct}} + + cdef CUkernel _kern - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v3_st.ctx' in found_struct}} + + cdef CUcontext _ctx - {{endif}} -{{endif}} -{{if 'CUDA_MEMSET_NODE_PARAMS_st' in found_struct}} + cdef class CUDA_MEMSET_NODE_PARAMS_st: """ @@ -1427,30 +1277,30 @@ cdef class CUDA_MEMSET_NODE_PARAMS_st: Attributes ---------- - {{if 'CUDA_MEMSET_NODE_PARAMS_st.dst' in found_struct}} + dst : CUdeviceptr Destination device pointer - {{endif}} - {{if 'CUDA_MEMSET_NODE_PARAMS_st.pitch' in found_struct}} + + pitch : size_t Pitch of destination device pointer. Unused if height is 1 - {{endif}} - {{if 'CUDA_MEMSET_NODE_PARAMS_st.value' in found_struct}} + + value : unsigned int Value to be set - {{endif}} - {{if 'CUDA_MEMSET_NODE_PARAMS_st.elementSize' in found_struct}} + + elementSize : unsigned int Size of each element in bytes. Must be 1, 2, or 4. - {{endif}} - {{if 'CUDA_MEMSET_NODE_PARAMS_st.width' in found_struct}} + + width : size_t Width of the row in elements - {{endif}} - {{if 'CUDA_MEMSET_NODE_PARAMS_st.height' in found_struct}} + + height : size_t Number of rows - {{endif}} + Methods ------- @@ -1459,11 +1309,9 @@ cdef class CUDA_MEMSET_NODE_PARAMS_st: """ cdef cydriver.CUDA_MEMSET_NODE_PARAMS_st _pvt_val cdef cydriver.CUDA_MEMSET_NODE_PARAMS_st* _pvt_ptr - {{if 'CUDA_MEMSET_NODE_PARAMS_st.dst' in found_struct}} + cdef CUdeviceptr _dst - {{endif}} -{{endif}} -{{if 'CUDA_MEMSET_NODE_PARAMS_v2_st' in found_struct}} + cdef class CUDA_MEMSET_NODE_PARAMS_v2_st: """ @@ -1471,34 +1319,34 @@ cdef class CUDA_MEMSET_NODE_PARAMS_v2_st: Attributes ---------- - {{if 'CUDA_MEMSET_NODE_PARAMS_v2_st.dst' in found_struct}} + dst : CUdeviceptr Destination device pointer - {{endif}} - {{if 'CUDA_MEMSET_NODE_PARAMS_v2_st.pitch' in found_struct}} + + pitch : size_t Pitch of destination device pointer. Unused if height is 1 - {{endif}} - {{if 'CUDA_MEMSET_NODE_PARAMS_v2_st.value' in found_struct}} + + value : unsigned int Value to be set - {{endif}} - {{if 'CUDA_MEMSET_NODE_PARAMS_v2_st.elementSize' in found_struct}} + + elementSize : unsigned int Size of each element in bytes. Must be 1, 2, or 4. - {{endif}} - {{if 'CUDA_MEMSET_NODE_PARAMS_v2_st.width' in found_struct}} + + width : size_t Width of the row in elements - {{endif}} - {{if 'CUDA_MEMSET_NODE_PARAMS_v2_st.height' in found_struct}} + + height : size_t Number of rows - {{endif}} - {{if 'CUDA_MEMSET_NODE_PARAMS_v2_st.ctx' in found_struct}} + + ctx : CUcontext Context on which to run the node - {{endif}} + Methods ------- @@ -1507,14 +1355,12 @@ cdef class CUDA_MEMSET_NODE_PARAMS_v2_st: """ cdef cydriver.CUDA_MEMSET_NODE_PARAMS_v2_st _pvt_val cdef cydriver.CUDA_MEMSET_NODE_PARAMS_v2_st* _pvt_ptr - {{if 'CUDA_MEMSET_NODE_PARAMS_v2_st.dst' in found_struct}} + cdef CUdeviceptr _dst - {{endif}} - {{if 'CUDA_MEMSET_NODE_PARAMS_v2_st.ctx' in found_struct}} + + cdef CUcontext _ctx - {{endif}} -{{endif}} -{{if 'CUDA_HOST_NODE_PARAMS_st' in found_struct}} + cdef class CUDA_HOST_NODE_PARAMS_st: """ @@ -1522,14 +1368,14 @@ cdef class CUDA_HOST_NODE_PARAMS_st: Attributes ---------- - {{if 'CUDA_HOST_NODE_PARAMS_st.fn' in found_struct}} + fn : CUhostFn The function to call when the node executes - {{endif}} - {{if 'CUDA_HOST_NODE_PARAMS_st.userData' in found_struct}} + + userData : Any Argument to pass to the function - {{endif}} + Methods ------- @@ -1538,14 +1384,12 @@ cdef class CUDA_HOST_NODE_PARAMS_st: """ cdef cydriver.CUDA_HOST_NODE_PARAMS_st _pvt_val cdef cydriver.CUDA_HOST_NODE_PARAMS_st* _pvt_ptr - {{if 'CUDA_HOST_NODE_PARAMS_st.fn' in found_struct}} + cdef CUhostFn _fn - {{endif}} - {{if 'CUDA_HOST_NODE_PARAMS_st.userData' in found_struct}} + + cdef _HelperInputVoidPtr _cyuserData - {{endif}} -{{endif}} -{{if 'CUDA_HOST_NODE_PARAMS_v2_st' in found_struct}} + cdef class CUDA_HOST_NODE_PARAMS_v2_st: """ @@ -1553,18 +1397,18 @@ cdef class CUDA_HOST_NODE_PARAMS_v2_st: Attributes ---------- - {{if 'CUDA_HOST_NODE_PARAMS_v2_st.fn' in found_struct}} + fn : CUhostFn The function to call when the node executes - {{endif}} - {{if 'CUDA_HOST_NODE_PARAMS_v2_st.userData' in found_struct}} + + userData : Any Argument to pass to the function - {{endif}} - {{if 'CUDA_HOST_NODE_PARAMS_v2_st.syncMode' in found_struct}} + + syncMode : unsigned int The sync mode to use for the host task - {{endif}} + Methods ------- @@ -1573,14 +1417,12 @@ cdef class CUDA_HOST_NODE_PARAMS_v2_st: """ cdef cydriver.CUDA_HOST_NODE_PARAMS_v2_st _pvt_val cdef cydriver.CUDA_HOST_NODE_PARAMS_v2_st* _pvt_ptr - {{if 'CUDA_HOST_NODE_PARAMS_v2_st.fn' in found_struct}} + cdef CUhostFn _fn - {{endif}} - {{if 'CUDA_HOST_NODE_PARAMS_v2_st.userData' in found_struct}} + + cdef _HelperInputVoidPtr _cyuserData - {{endif}} -{{endif}} -{{if 'CUDA_CONDITIONAL_NODE_PARAMS' in found_struct}} + cdef class CUDA_CONDITIONAL_NODE_PARAMS: """ @@ -1588,22 +1430,22 @@ cdef class CUDA_CONDITIONAL_NODE_PARAMS: Attributes ---------- - {{if 'CUDA_CONDITIONAL_NODE_PARAMS.handle' in found_struct}} + handle : CUgraphConditionalHandle Conditional node handle. Handles must be created in advance of creating the node using cuGraphConditionalHandleCreate. - {{endif}} - {{if 'CUDA_CONDITIONAL_NODE_PARAMS.type' in found_struct}} + + type : CUgraphConditionalNodeType Type of conditional node. - {{endif}} - {{if 'CUDA_CONDITIONAL_NODE_PARAMS.size' in found_struct}} + + size : unsigned int Size of graph output array. Allowed values are 1 for CU_GRAPH_COND_TYPE_WHILE, 1 or 2 for CU_GRAPH_COND_TYPE_IF, or any value greater than zero for CU_GRAPH_COND_TYPE_SWITCH. - {{endif}} - {{if 'CUDA_CONDITIONAL_NODE_PARAMS.phGraph_out' in found_struct}} + + phGraph_out : CUgraph CUDA-owned array populated with conditional node child graphs during creation of the node. Valid for the lifetime of the @@ -1621,12 +1463,12 @@ cdef class CUDA_CONDITIONAL_NODE_PARAMS: condition is non-zero. CU_GRAPH_COND_TYPE_SWITCH: phGraph_out[n] is executed when the condition is equal to n. If the condition >= `size`, no body graph is executed. - {{endif}} - {{if 'CUDA_CONDITIONAL_NODE_PARAMS.ctx' in found_struct}} + + ctx : CUcontext Context on which to run the node. Must match context used to create the handle and all body nodes. - {{endif}} + Methods ------- @@ -1635,18 +1477,16 @@ cdef class CUDA_CONDITIONAL_NODE_PARAMS: """ cdef cydriver.CUDA_CONDITIONAL_NODE_PARAMS _pvt_val cdef cydriver.CUDA_CONDITIONAL_NODE_PARAMS* _pvt_ptr - {{if 'CUDA_CONDITIONAL_NODE_PARAMS.handle' in found_struct}} + cdef CUgraphConditionalHandle _handle - {{endif}} - {{if 'CUDA_CONDITIONAL_NODE_PARAMS.phGraph_out' in found_struct}} + + cdef size_t _phGraph_out_length cdef cydriver.CUgraph* _phGraph_out - {{endif}} - {{if 'CUDA_CONDITIONAL_NODE_PARAMS.ctx' in found_struct}} + + cdef CUcontext _ctx - {{endif}} -{{endif}} -{{if 'CUgraphEdgeData_st' in found_struct}} + cdef class CUgraphEdgeData_st: """ @@ -1657,7 +1497,7 @@ cdef class CUgraphEdgeData_st: Attributes ---------- - {{if 'CUgraphEdgeData_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 @@ -1668,8 +1508,8 @@ cdef class CUgraphEdgeData_st: CU_GRAPH_KERNEL_NODE_PORT_DEFAULT, CU_GRAPH_KERNEL_NODE_PORT_PROGRAMMATIC, or CU_GRAPH_KERNEL_NODE_PORT_LAUNCH_ORDER. - {{endif}} - {{if 'CUgraphEdgeData_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`). @@ -1677,18 +1517,18 @@ cdef class CUgraphEdgeData_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 'CUgraphEdgeData_st.type' in found_struct}} + + type : bytes This should be populated with a value from CUgraphDependencyType. (It is typed as char due to compiler-specific layout of bitfields.) See CUgraphDependencyType. - {{endif}} - {{if 'CUgraphEdgeData_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 ------- @@ -1697,8 +1537,6 @@ cdef class CUgraphEdgeData_st: """ cdef cydriver.CUgraphEdgeData_st _pvt_val cdef cydriver.CUgraphEdgeData_st* _pvt_ptr -{{endif}} -{{if 'CUDA_GRAPH_INSTANTIATE_PARAMS_st' in found_struct}} cdef class CUDA_GRAPH_INSTANTIATE_PARAMS_st: """ @@ -1706,22 +1544,22 @@ cdef class CUDA_GRAPH_INSTANTIATE_PARAMS_st: Attributes ---------- - {{if 'CUDA_GRAPH_INSTANTIATE_PARAMS_st.flags' in found_struct}} + flags : cuuint64_t Instantiation flags - {{endif}} - {{if 'CUDA_GRAPH_INSTANTIATE_PARAMS_st.hUploadStream' in found_struct}} + + hUploadStream : CUstream Upload stream - {{endif}} - {{if 'CUDA_GRAPH_INSTANTIATE_PARAMS_st.hErrNode_out' in found_struct}} + + hErrNode_out : CUgraphNode The node which caused instantiation to fail, if any - {{endif}} - {{if 'CUDA_GRAPH_INSTANTIATE_PARAMS_st.result_out' in found_struct}} + + result_out : CUgraphInstantiateResult Whether instantiation was successful. If it failed, the reason why - {{endif}} + Methods ------- @@ -1730,17 +1568,15 @@ cdef class CUDA_GRAPH_INSTANTIATE_PARAMS_st: """ cdef cydriver.CUDA_GRAPH_INSTANTIATE_PARAMS_st _pvt_val cdef cydriver.CUDA_GRAPH_INSTANTIATE_PARAMS_st* _pvt_ptr - {{if 'CUDA_GRAPH_INSTANTIATE_PARAMS_st.flags' in found_struct}} + cdef cuuint64_t _flags - {{endif}} - {{if 'CUDA_GRAPH_INSTANTIATE_PARAMS_st.hUploadStream' in found_struct}} + + cdef CUstream _hUploadStream - {{endif}} - {{if 'CUDA_GRAPH_INSTANTIATE_PARAMS_st.hErrNode_out' in found_struct}} + + cdef CUgraphNode _hErrNode_out - {{endif}} -{{endif}} -{{if 'CUlaunchMemSyncDomainMap_st' in found_struct}} + cdef class CUlaunchMemSyncDomainMap_st: """ @@ -1754,14 +1590,14 @@ cdef class CUlaunchMemSyncDomainMap_st: Attributes ---------- - {{if 'CUlaunchMemSyncDomainMap_st.default_' in found_struct}} + default_ : bytes The default domain ID to use for designated kernels - {{endif}} - {{if 'CUlaunchMemSyncDomainMap_st.remote' in found_struct}} + + remote : bytes The remote domain ID to use for designated kernels - {{endif}} + Methods ------- @@ -1770,25 +1606,23 @@ cdef class CUlaunchMemSyncDomainMap_st: """ cdef cydriver.CUlaunchMemSyncDomainMap_st _pvt_val cdef cydriver.CUlaunchMemSyncDomainMap_st* _pvt_ptr -{{endif}} -{{if 'CUlaunchAttributeValue_union.clusterDim' in found_struct}} cdef class anon_struct1: """ Attributes ---------- - {{if 'CUlaunchAttributeValue_union.clusterDim.x' in found_struct}} + x : unsigned int - {{endif}} - {{if 'CUlaunchAttributeValue_union.clusterDim.y' in found_struct}} + + y : unsigned int - {{endif}} - {{if 'CUlaunchAttributeValue_union.clusterDim.z' in found_struct}} + + z : unsigned int - {{endif}} + Methods ------- @@ -1796,25 +1630,23 @@ cdef class anon_struct1: Get memory address of class instance """ cdef cydriver.CUlaunchAttributeValue_union* _pvt_ptr -{{endif}} -{{if 'CUlaunchAttributeValue_union.programmaticEvent' in found_struct}} cdef class anon_struct2: """ Attributes ---------- - {{if 'CUlaunchAttributeValue_union.programmaticEvent.event' in found_struct}} + event : CUevent - {{endif}} - {{if 'CUlaunchAttributeValue_union.programmaticEvent.flags' in found_struct}} + + flags : int - {{endif}} - {{if 'CUlaunchAttributeValue_union.programmaticEvent.triggerAtBlockStart' in found_struct}} + + triggerAtBlockStart : int - {{endif}} + Methods ------- @@ -1822,24 +1654,22 @@ cdef class anon_struct2: Get memory address of class instance """ cdef cydriver.CUlaunchAttributeValue_union* _pvt_ptr - {{if 'CUlaunchAttributeValue_union.programmaticEvent.event' in found_struct}} + cdef CUevent _event - {{endif}} -{{endif}} -{{if 'CUlaunchAttributeValue_union.launchCompletionEvent' in found_struct}} + cdef class anon_struct3: """ Attributes ---------- - {{if 'CUlaunchAttributeValue_union.launchCompletionEvent.event' in found_struct}} + event : CUevent - {{endif}} - {{if 'CUlaunchAttributeValue_union.launchCompletionEvent.flags' in found_struct}} + + flags : int - {{endif}} + Methods ------- @@ -1847,28 +1677,26 @@ cdef class anon_struct3: Get memory address of class instance """ cdef cydriver.CUlaunchAttributeValue_union* _pvt_ptr - {{if 'CUlaunchAttributeValue_union.launchCompletionEvent.event' in found_struct}} + cdef CUevent _event - {{endif}} -{{endif}} -{{if 'CUlaunchAttributeValue_union.preferredClusterDim' in found_struct}} + cdef class anon_struct4: """ Attributes ---------- - {{if 'CUlaunchAttributeValue_union.preferredClusterDim.x' in found_struct}} + x : unsigned int - {{endif}} - {{if 'CUlaunchAttributeValue_union.preferredClusterDim.y' in found_struct}} + + y : unsigned int - {{endif}} - {{if 'CUlaunchAttributeValue_union.preferredClusterDim.z' in found_struct}} + + z : unsigned int - {{endif}} + Methods ------- @@ -1876,21 +1704,19 @@ cdef class anon_struct4: Get memory address of class instance """ cdef cydriver.CUlaunchAttributeValue_union* _pvt_ptr -{{endif}} -{{if 'CUlaunchAttributeValue_union.deviceUpdatableKernelNode' in found_struct}} cdef class anon_struct5: """ Attributes ---------- - {{if 'CUlaunchAttributeValue_union.deviceUpdatableKernelNode.deviceUpdatable' in found_struct}} + deviceUpdatable : int - {{endif}} - {{if 'CUlaunchAttributeValue_union.deviceUpdatableKernelNode.devNode' in found_struct}} + + devNode : CUgraphDeviceNode - {{endif}} + Methods ------- @@ -1898,11 +1724,9 @@ cdef class anon_struct5: Get memory address of class instance """ cdef cydriver.CUlaunchAttributeValue_union* _pvt_ptr - {{if 'CUlaunchAttributeValue_union.deviceUpdatableKernelNode.devNode' in found_struct}} + cdef CUgraphDeviceNode _devNode - {{endif}} -{{endif}} -{{if 'CUlaunchAttributeValue_union' in found_struct}} + cdef class CUlaunchAttributeValue_union: """ @@ -1910,26 +1734,26 @@ cdef class CUlaunchAttributeValue_union: Attributes ---------- - {{if 'CUlaunchAttributeValue_union.pad' in found_struct}} + pad : bytes - {{endif}} - {{if 'CUlaunchAttributeValue_union.accessPolicyWindow' in found_struct}} + + accessPolicyWindow : CUaccessPolicyWindow Value of launch attribute CU_LAUNCH_ATTRIBUTE_ACCESS_POLICY_WINDOW. - {{endif}} - {{if 'CUlaunchAttributeValue_union.cooperative' in found_struct}} + + cooperative : int Value of launch attribute CU_LAUNCH_ATTRIBUTE_COOPERATIVE. Nonzero indicates a cooperative kernel (see cuLaunchCooperativeKernel). - {{endif}} - {{if 'CUlaunchAttributeValue_union.syncPolicy' in found_struct}} + + syncPolicy : CUsynchronizationPolicy Value of launch attribute CU_LAUNCH_ATTRIBUTE_SYNCHRONIZATION_POLICY. CUsynchronizationPolicy for work queued up in this stream - {{endif}} - {{if 'CUlaunchAttributeValue_union.clusterDim' in found_struct}} + + clusterDim : anon_struct1 Value of launch attribute CU_LAUNCH_ATTRIBUTE_CLUSTER_DIMENSION that represents the desired cluster dimensions for the kernel. @@ -1938,19 +1762,19 @@ cdef class CUlaunchAttributeValue_union: - `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 'CUlaunchAttributeValue_union.clusterSchedulingPolicyPreference' in found_struct}} + + clusterSchedulingPolicyPreference : CUclusterSchedulingPolicy Value of launch attribute CU_LAUNCH_ATTRIBUTE_CLUSTER_SCHEDULING_POLICY_PREFERENCE. Cluster scheduling policy preference for the kernel. - {{endif}} - {{if 'CUlaunchAttributeValue_union.programmaticStreamSerializationAllowed' in found_struct}} + + programmaticStreamSerializationAllowed : int Value of launch attribute CU_LAUNCH_ATTRIBUTE_PROGRAMMATIC_STREAM_SERIALIZATION. - {{endif}} - {{if 'CUlaunchAttributeValue_union.programmaticEvent' in found_struct}} + + programmaticEvent : anon_struct2 Value of launch attribute CU_LAUNCH_ATTRIBUTE_PROGRAMMATIC_EVENT with the following fields: - `CUevent` event - Event to fire when @@ -1958,31 +1782,31 @@ cdef class CUlaunchAttributeValue_union: cuEventRecordWithFlags. Does not accept :CU_EVENT_RECORD_EXTERNAL. - `triggerAtBlockStart` - If this is set to non-0, each block launch will automatically trigger the event. - {{endif}} - {{if 'CUlaunchAttributeValue_union.launchCompletionEvent' in found_struct}} + + launchCompletionEvent : anon_struct3 Value of launch attribute CU_LAUNCH_ATTRIBUTE_LAUNCH_COMPLETION_EVENT with the following fields: - `CUevent` event - Event to fire when the last block launches - `int` flags; - Event record flags, see cuEventRecordWithFlags. Does not accept CU_EVENT_RECORD_EXTERNAL. - {{endif}} - {{if 'CUlaunchAttributeValue_union.priority' in found_struct}} + + priority : int Value of launch attribute CU_LAUNCH_ATTRIBUTE_PRIORITY. Execution priority of the kernel. - {{endif}} - {{if 'CUlaunchAttributeValue_union.memSyncDomainMap' in found_struct}} + + memSyncDomainMap : CUlaunchMemSyncDomainMap Value of launch attribute CU_LAUNCH_ATTRIBUTE_MEM_SYNC_DOMAIN_MAP. See CUlaunchMemSyncDomainMap. - {{endif}} - {{if 'CUlaunchAttributeValue_union.memSyncDomain' in found_struct}} + + memSyncDomain : CUlaunchMemSyncDomain Value of launch attribute CU_LAUNCH_ATTRIBUTE_MEM_SYNC_DOMAIN. See::CUlaunchMemSyncDomain - {{endif}} - {{if 'CUlaunchAttributeValue_union.preferredClusterDim' in found_struct}} + + preferredClusterDim : anon_struct4 Value of launch attribute CU_LAUNCH_ATTRIBUTE_PREFERRED_CLUSTER_DIMENSION that represents the @@ -1996,8 +1820,8 @@ cdef class CUlaunchAttributeValue_union: CUlaunchAttributeValue::clusterDim. - `z` - The Z dimension of the preferred cluster, in blocks. Must be equal to the `z` field of CUlaunchAttributeValue::clusterDim. - {{endif}} - {{if 'CUlaunchAttributeValue_union.deviceUpdatableKernelNode' in found_struct}} + + deviceUpdatableKernelNode : anon_struct5 Value of launch attribute CU_LAUNCH_ATTRIBUTE_DEVICE_UPDATABLE_KERNEL_NODE. with the @@ -2005,26 +1829,26 @@ cdef class CUlaunchAttributeValue_union: resulting kernel node should be device-updatable. - `CUgraphDeviceNode` devNode - Returns a handle to pass to the various device-side update functions. - {{endif}} - {{if 'CUlaunchAttributeValue_union.sharedMemCarveout' in found_struct}} + + sharedMemCarveout : unsigned int Value of launch attribute CU_LAUNCH_ATTRIBUTE_PREFERRED_SHARED_MEMORY_CARVEOUT. - {{endif}} - {{if 'CUlaunchAttributeValue_union.nvlinkUtilCentricScheduling' in found_struct}} + + nvlinkUtilCentricScheduling : unsigned int - {{endif}} - {{if 'CUlaunchAttributeValue_union.portableClusterSizeMode' in found_struct}} + + portableClusterSizeMode : CUlaunchAttributePortableClusterMode Value of launch attribute CU_LAUNCH_ATTRIBUTE_PORTABLE_CLUSTER_SIZE_MODE. - {{endif}} - {{if 'CUlaunchAttributeValue_union.sharedMemoryMode' in found_struct}} + + sharedMemoryMode : CUsharedMemoryMode Value of launch attribute CU_LAUNCH_ATTRIBUTE_SHARED_MEMORY_MODE. See CUsharedMemoryMode for acceptable values. - {{endif}} + Methods ------- @@ -2033,29 +1857,27 @@ cdef class CUlaunchAttributeValue_union: """ cdef cydriver.CUlaunchAttributeValue_union _pvt_val cdef cydriver.CUlaunchAttributeValue_union* _pvt_ptr - {{if 'CUlaunchAttributeValue_union.accessPolicyWindow' in found_struct}} + cdef CUaccessPolicyWindow _accessPolicyWindow - {{endif}} - {{if 'CUlaunchAttributeValue_union.clusterDim' in found_struct}} + + cdef anon_struct1 _clusterDim - {{endif}} - {{if 'CUlaunchAttributeValue_union.programmaticEvent' in found_struct}} + + cdef anon_struct2 _programmaticEvent - {{endif}} - {{if 'CUlaunchAttributeValue_union.launchCompletionEvent' in found_struct}} + + cdef anon_struct3 _launchCompletionEvent - {{endif}} - {{if 'CUlaunchAttributeValue_union.memSyncDomainMap' in found_struct}} + + cdef CUlaunchMemSyncDomainMap _memSyncDomainMap - {{endif}} - {{if 'CUlaunchAttributeValue_union.preferredClusterDim' in found_struct}} + + cdef anon_struct4 _preferredClusterDim - {{endif}} - {{if 'CUlaunchAttributeValue_union.deviceUpdatableKernelNode' in found_struct}} + + cdef anon_struct5 _deviceUpdatableKernelNode - {{endif}} -{{endif}} -{{if 'CUlaunchAttribute_st' in found_struct}} + cdef class CUlaunchAttribute_st: """ @@ -2063,14 +1885,14 @@ cdef class CUlaunchAttribute_st: Attributes ---------- - {{if 'CUlaunchAttribute_st.id' in found_struct}} + id : CUlaunchAttributeID Attribute to set - {{endif}} - {{if 'CUlaunchAttribute_st.value' in found_struct}} + + value : CUlaunchAttributeValue Value of the attribute - {{endif}} + Methods ------- @@ -2079,11 +1901,9 @@ cdef class CUlaunchAttribute_st: """ cdef cydriver.CUlaunchAttribute_st _pvt_val cdef cydriver.CUlaunchAttribute_st* _pvt_ptr - {{if 'CUlaunchAttribute_st.value' in found_struct}} + cdef CUlaunchAttributeValue _value - {{endif}} -{{endif}} -{{if 'CUlaunchConfig_st' in found_struct}} + cdef class CUlaunchConfig_st: """ @@ -2091,46 +1911,46 @@ cdef class CUlaunchConfig_st: Attributes ---------- - {{if 'CUlaunchConfig_st.gridDimX' in found_struct}} + gridDimX : unsigned int Width of grid in blocks - {{endif}} - {{if 'CUlaunchConfig_st.gridDimY' in found_struct}} + + gridDimY : unsigned int Height of grid in blocks - {{endif}} - {{if 'CUlaunchConfig_st.gridDimZ' in found_struct}} + + gridDimZ : unsigned int Depth of grid in blocks - {{endif}} - {{if 'CUlaunchConfig_st.blockDimX' in found_struct}} + + blockDimX : unsigned int X dimension of each thread block - {{endif}} - {{if 'CUlaunchConfig_st.blockDimY' in found_struct}} + + blockDimY : unsigned int Y dimension of each thread block - {{endif}} - {{if 'CUlaunchConfig_st.blockDimZ' in found_struct}} + + blockDimZ : unsigned int Z dimension of each thread block - {{endif}} - {{if 'CUlaunchConfig_st.sharedMemBytes' in found_struct}} + + sharedMemBytes : unsigned int Dynamic shared-memory size per thread block in bytes - {{endif}} - {{if 'CUlaunchConfig_st.hStream' in found_struct}} + + hStream : CUstream Stream identifier - {{endif}} - {{if 'CUlaunchConfig_st.attrs' in found_struct}} + + attrs : CUlaunchAttribute List of attributes; nullable if CUlaunchConfig::numAttrs == 0 - {{endif}} - {{if 'CUlaunchConfig_st.numAttrs' in found_struct}} + + numAttrs : unsigned int Number of attributes populated in CUlaunchConfig::attrs - {{endif}} + Methods ------- @@ -2139,15 +1959,13 @@ cdef class CUlaunchConfig_st: """ cdef cydriver.CUlaunchConfig_st _pvt_val cdef cydriver.CUlaunchConfig_st* _pvt_ptr - {{if 'CUlaunchConfig_st.hStream' in found_struct}} + cdef CUstream _hStream - {{endif}} - {{if 'CUlaunchConfig_st.attrs' in found_struct}} + + cdef size_t _attrs_length cdef cydriver.CUlaunchAttribute* _attrs - {{endif}} -{{endif}} -{{if 'CUexecAffinitySmCount_st' in found_struct}} + cdef class CUexecAffinitySmCount_st: """ @@ -2155,10 +1973,10 @@ cdef class CUexecAffinitySmCount_st: Attributes ---------- - {{if 'CUexecAffinitySmCount_st.val' in found_struct}} + val : unsigned int The number of SMs the context is limited to use. - {{endif}} + Methods ------- @@ -2167,17 +1985,15 @@ cdef class CUexecAffinitySmCount_st: """ cdef cydriver.CUexecAffinitySmCount_st _pvt_val cdef cydriver.CUexecAffinitySmCount_st* _pvt_ptr -{{endif}} -{{if 'CUexecAffinityParam_st.param' in found_struct}} cdef class anon_union3: """ Attributes ---------- - {{if 'CUexecAffinityParam_st.param.smCount' in found_struct}} + smCount : CUexecAffinitySmCount - {{endif}} + Methods ------- @@ -2185,11 +2001,9 @@ cdef class anon_union3: Get memory address of class instance """ cdef cydriver.CUexecAffinityParam_st* _pvt_ptr - {{if 'CUexecAffinityParam_st.param.smCount' in found_struct}} + cdef CUexecAffinitySmCount _smCount - {{endif}} -{{endif}} -{{if 'CUexecAffinityParam_st' in found_struct}} + cdef class CUexecAffinityParam_st: """ @@ -2197,14 +2011,14 @@ cdef class CUexecAffinityParam_st: Attributes ---------- - {{if 'CUexecAffinityParam_st.type' in found_struct}} + type : CUexecAffinityType Type of execution affinity. - {{endif}} - {{if 'CUexecAffinityParam_st.param' in found_struct}} + + param : anon_union3 - {{endif}} + Methods ------- @@ -2213,11 +2027,9 @@ cdef class CUexecAffinityParam_st: """ cdef cydriver.CUexecAffinityParam_st* _val_ptr cdef cydriver.CUexecAffinityParam_st* _pvt_ptr - {{if 'CUexecAffinityParam_st.param' in found_struct}} + cdef anon_union3 _param - {{endif}} -{{endif}} -{{if 'CUctxCigParam_st' in found_struct}} + cdef class CUctxCigParam_st: """ @@ -2225,15 +2037,15 @@ cdef class CUctxCigParam_st: Attributes ---------- - {{if 'CUctxCigParam_st.sharedDataType' in found_struct}} + sharedDataType : CUcigDataType Type of shared data from graphics client (D3D12 or Vulkan). - {{endif}} - {{if 'CUctxCigParam_st.sharedData' in found_struct}} + + sharedData : Any Graphics client data handle (ID3D12CommandQueue or Nvidia specific data blob). - {{endif}} + Methods ------- @@ -2242,11 +2054,9 @@ cdef class CUctxCigParam_st: """ cdef cydriver.CUctxCigParam_st _pvt_val cdef cydriver.CUctxCigParam_st* _pvt_ptr - {{if 'CUctxCigParam_st.sharedData' in found_struct}} + cdef _HelperInputVoidPtr _cysharedData - {{endif}} -{{endif}} -{{if 'CUctxCreateParams_st' in found_struct}} + cdef class CUctxCreateParams_st: """ @@ -2256,23 +2066,23 @@ cdef class CUctxCreateParams_st: Attributes ---------- - {{if 'CUctxCreateParams_st.execAffinityParams' in found_struct}} + execAffinityParams : CUexecAffinityParam Array of execution affinity parameters to limit context resources (e.g., SM count). Only supported Volta+ MPS. Mutually exclusive with cigParams. - {{endif}} - {{if 'CUctxCreateParams_st.numExecAffinityParams' in found_struct}} + + numExecAffinityParams : int Number of elements in execAffinityParams array. Must be 0 if execAffinityParams is NULL. - {{endif}} - {{if 'CUctxCreateParams_st.cigParams' in found_struct}} + + cigParams : CUctxCigParam CIG (CUDA in Graphics) parameters for sharing data from D3D12/Vulkan graphics clients. Mutually exclusive with execAffinityParams. - {{endif}} + Methods ------- @@ -2281,16 +2091,14 @@ cdef class CUctxCreateParams_st: """ cdef cydriver.CUctxCreateParams_st _pvt_val cdef cydriver.CUctxCreateParams_st* _pvt_ptr - {{if 'CUctxCreateParams_st.execAffinityParams' in found_struct}} + cdef size_t _execAffinityParams_length cdef cydriver.CUexecAffinityParam* _execAffinityParams - {{endif}} - {{if 'CUctxCreateParams_st.cigParams' in found_struct}} + + cdef size_t _cigParams_length cdef cydriver.CUctxCigParam* _cigParams - {{endif}} -{{endif}} -{{if 'CUstreamCigParam_st' in found_struct}} + cdef class CUstreamCigParam_st: """ @@ -2298,15 +2106,15 @@ cdef class CUstreamCigParam_st: Attributes ---------- - {{if 'CUstreamCigParam_st.streamSharedDataType' in found_struct}} + streamSharedDataType : CUstreamCigDataType Type of shared data from graphics client (D3D12). - {{endif}} - {{if 'CUstreamCigParam_st.streamSharedData' in found_struct}} + + streamSharedData : Any Graphics client data handle (ID3D12CommandList/ID3D12GraphicsCommandList). - {{endif}} + Methods ------- @@ -2315,11 +2123,9 @@ cdef class CUstreamCigParam_st: """ cdef cydriver.CUstreamCigParam_st _pvt_val cdef cydriver.CUstreamCigParam_st* _pvt_ptr - {{if 'CUstreamCigParam_st.streamSharedData' in found_struct}} + cdef _HelperInputVoidPtr _cystreamSharedData - {{endif}} -{{endif}} -{{if 'CUstreamCigCaptureParams_st' in found_struct}} + cdef class CUstreamCigCaptureParams_st: """ @@ -2328,11 +2134,11 @@ cdef class CUstreamCigCaptureParams_st: Attributes ---------- - {{if 'CUstreamCigCaptureParams_st.streamCigParams' in found_struct}} + streamCigParams : CUstreamCigParam CIG (CUDA in Graphics) parameters for sharing command list data from D3D12 graphics clients. - {{endif}} + Methods ------- @@ -2341,33 +2147,31 @@ cdef class CUstreamCigCaptureParams_st: """ cdef cydriver.CUstreamCigCaptureParams_st _pvt_val cdef cydriver.CUstreamCigCaptureParams_st* _pvt_ptr - {{if 'CUstreamCigCaptureParams_st.streamCigParams' in found_struct}} + cdef size_t _streamCigParams_length cdef cydriver.CUstreamCigParam* _streamCigParams - {{endif}} -{{endif}} -{{if 'CUlibraryHostUniversalFunctionAndDataTable_st' in found_struct}} + cdef class CUlibraryHostUniversalFunctionAndDataTable_st: """ Attributes ---------- - {{if 'CUlibraryHostUniversalFunctionAndDataTable_st.functionTable' in found_struct}} + functionTable : Any - {{endif}} - {{if 'CUlibraryHostUniversalFunctionAndDataTable_st.functionWindowSize' in found_struct}} + + functionWindowSize : size_t - {{endif}} - {{if 'CUlibraryHostUniversalFunctionAndDataTable_st.dataTable' in found_struct}} + + dataTable : Any - {{endif}} - {{if 'CUlibraryHostUniversalFunctionAndDataTable_st.dataWindowSize' in found_struct}} + + dataWindowSize : size_t - {{endif}} + Methods ------- @@ -2376,14 +2180,12 @@ cdef class CUlibraryHostUniversalFunctionAndDataTable_st: """ cdef cydriver.CUlibraryHostUniversalFunctionAndDataTable_st _pvt_val cdef cydriver.CUlibraryHostUniversalFunctionAndDataTable_st* _pvt_ptr - {{if 'CUlibraryHostUniversalFunctionAndDataTable_st.functionTable' in found_struct}} + cdef _HelperInputVoidPtr _cyfunctionTable - {{endif}} - {{if 'CUlibraryHostUniversalFunctionAndDataTable_st.dataTable' in found_struct}} + + cdef _HelperInputVoidPtr _cydataTable - {{endif}} -{{endif}} -{{if 'CUDA_MEMCPY2D_st' in found_struct}} + cdef class CUDA_MEMCPY2D_st: """ @@ -2391,70 +2193,70 @@ cdef class CUDA_MEMCPY2D_st: Attributes ---------- - {{if 'CUDA_MEMCPY2D_st.srcXInBytes' in found_struct}} + srcXInBytes : size_t Source X in bytes - {{endif}} - {{if 'CUDA_MEMCPY2D_st.srcY' in found_struct}} + + srcY : size_t Source Y - {{endif}} - {{if 'CUDA_MEMCPY2D_st.srcMemoryType' in found_struct}} + + srcMemoryType : CUmemorytype Source memory type (host, device, array) - {{endif}} - {{if 'CUDA_MEMCPY2D_st.srcHost' in found_struct}} + + srcHost : Any Source host pointer - {{endif}} - {{if 'CUDA_MEMCPY2D_st.srcDevice' in found_struct}} + + srcDevice : CUdeviceptr Source device pointer - {{endif}} - {{if 'CUDA_MEMCPY2D_st.srcArray' in found_struct}} + + srcArray : CUarray Source array reference - {{endif}} - {{if 'CUDA_MEMCPY2D_st.srcPitch' in found_struct}} + + srcPitch : size_t Source pitch (ignored when src is array) - {{endif}} - {{if 'CUDA_MEMCPY2D_st.dstXInBytes' in found_struct}} + + dstXInBytes : size_t Destination X in bytes - {{endif}} - {{if 'CUDA_MEMCPY2D_st.dstY' in found_struct}} + + dstY : size_t Destination Y - {{endif}} - {{if 'CUDA_MEMCPY2D_st.dstMemoryType' in found_struct}} + + dstMemoryType : CUmemorytype Destination memory type (host, device, array) - {{endif}} - {{if 'CUDA_MEMCPY2D_st.dstHost' in found_struct}} + + dstHost : Any Destination host pointer - {{endif}} - {{if 'CUDA_MEMCPY2D_st.dstDevice' in found_struct}} + + dstDevice : CUdeviceptr Destination device pointer - {{endif}} - {{if 'CUDA_MEMCPY2D_st.dstArray' in found_struct}} + + dstArray : CUarray Destination array reference - {{endif}} - {{if 'CUDA_MEMCPY2D_st.dstPitch' in found_struct}} + + dstPitch : size_t Destination pitch (ignored when dst is array) - {{endif}} - {{if 'CUDA_MEMCPY2D_st.WidthInBytes' in found_struct}} + + WidthInBytes : size_t Width of 2D memory copy in bytes - {{endif}} - {{if 'CUDA_MEMCPY2D_st.Height' in found_struct}} + + Height : size_t Height of 2D memory copy - {{endif}} + Methods ------- @@ -2463,26 +2265,24 @@ cdef class CUDA_MEMCPY2D_st: """ cdef cydriver.CUDA_MEMCPY2D_st _pvt_val cdef cydriver.CUDA_MEMCPY2D_st* _pvt_ptr - {{if 'CUDA_MEMCPY2D_st.srcHost' in found_struct}} + cdef _HelperInputVoidPtr _cysrcHost - {{endif}} - {{if 'CUDA_MEMCPY2D_st.srcDevice' in found_struct}} + + cdef CUdeviceptr _srcDevice - {{endif}} - {{if 'CUDA_MEMCPY2D_st.srcArray' in found_struct}} + + cdef CUarray _srcArray - {{endif}} - {{if 'CUDA_MEMCPY2D_st.dstHost' in found_struct}} + + cdef _HelperInputVoidPtr _cydstHost - {{endif}} - {{if 'CUDA_MEMCPY2D_st.dstDevice' in found_struct}} + + cdef CUdeviceptr _dstDevice - {{endif}} - {{if 'CUDA_MEMCPY2D_st.dstArray' in found_struct}} + + cdef CUarray _dstArray - {{endif}} -{{endif}} -{{if 'CUDA_MEMCPY3D_st' in found_struct}} + cdef class CUDA_MEMCPY3D_st: """ @@ -2490,107 +2290,107 @@ cdef class CUDA_MEMCPY3D_st: Attributes ---------- - {{if 'CUDA_MEMCPY3D_st.srcXInBytes' in found_struct}} + srcXInBytes : size_t Source X in bytes - {{endif}} - {{if 'CUDA_MEMCPY3D_st.srcY' in found_struct}} + + srcY : size_t Source Y - {{endif}} - {{if 'CUDA_MEMCPY3D_st.srcZ' in found_struct}} + + srcZ : size_t Source Z - {{endif}} - {{if 'CUDA_MEMCPY3D_st.srcLOD' in found_struct}} + + srcLOD : size_t Source LOD - {{endif}} - {{if 'CUDA_MEMCPY3D_st.srcMemoryType' in found_struct}} + + srcMemoryType : CUmemorytype Source memory type (host, device, array) - {{endif}} - {{if 'CUDA_MEMCPY3D_st.srcHost' in found_struct}} + + srcHost : Any Source host pointer - {{endif}} - {{if 'CUDA_MEMCPY3D_st.srcDevice' in found_struct}} + + srcDevice : CUdeviceptr Source device pointer - {{endif}} - {{if 'CUDA_MEMCPY3D_st.srcArray' in found_struct}} + + srcArray : CUarray Source array reference - {{endif}} - {{if 'CUDA_MEMCPY3D_st.reserved0' in found_struct}} + + reserved0 : Any Must be NULL - {{endif}} - {{if 'CUDA_MEMCPY3D_st.srcPitch' in found_struct}} + + srcPitch : size_t Source pitch (ignored when src is array) - {{endif}} - {{if 'CUDA_MEMCPY3D_st.srcHeight' in found_struct}} + + srcHeight : size_t Source height (ignored when src is array; may be 0 if Depth==1) - {{endif}} - {{if 'CUDA_MEMCPY3D_st.dstXInBytes' in found_struct}} + + dstXInBytes : size_t Destination X in bytes - {{endif}} - {{if 'CUDA_MEMCPY3D_st.dstY' in found_struct}} + + dstY : size_t Destination Y - {{endif}} - {{if 'CUDA_MEMCPY3D_st.dstZ' in found_struct}} + + dstZ : size_t Destination Z - {{endif}} - {{if 'CUDA_MEMCPY3D_st.dstLOD' in found_struct}} + + dstLOD : size_t Destination LOD - {{endif}} - {{if 'CUDA_MEMCPY3D_st.dstMemoryType' in found_struct}} + + dstMemoryType : CUmemorytype Destination memory type (host, device, array) - {{endif}} - {{if 'CUDA_MEMCPY3D_st.dstHost' in found_struct}} + + dstHost : Any Destination host pointer - {{endif}} - {{if 'CUDA_MEMCPY3D_st.dstDevice' in found_struct}} + + dstDevice : CUdeviceptr Destination device pointer - {{endif}} - {{if 'CUDA_MEMCPY3D_st.dstArray' in found_struct}} + + dstArray : CUarray Destination array reference - {{endif}} - {{if 'CUDA_MEMCPY3D_st.reserved1' in found_struct}} + + reserved1 : Any Must be NULL - {{endif}} - {{if 'CUDA_MEMCPY3D_st.dstPitch' in found_struct}} + + dstPitch : size_t Destination pitch (ignored when dst is array) - {{endif}} - {{if 'CUDA_MEMCPY3D_st.dstHeight' in found_struct}} + + dstHeight : size_t Destination height (ignored when dst is array; may be 0 if Depth==1) - {{endif}} - {{if 'CUDA_MEMCPY3D_st.WidthInBytes' in found_struct}} + + WidthInBytes : size_t Width of 3D memory copy in bytes - {{endif}} - {{if 'CUDA_MEMCPY3D_st.Height' in found_struct}} + + Height : size_t Height of 3D memory copy - {{endif}} - {{if 'CUDA_MEMCPY3D_st.Depth' in found_struct}} + + Depth : size_t Depth of 3D memory copy - {{endif}} + Methods ------- @@ -2599,32 +2399,30 @@ cdef class CUDA_MEMCPY3D_st: """ cdef cydriver.CUDA_MEMCPY3D_st _pvt_val cdef cydriver.CUDA_MEMCPY3D_st* _pvt_ptr - {{if 'CUDA_MEMCPY3D_st.srcHost' in found_struct}} + cdef _HelperInputVoidPtr _cysrcHost - {{endif}} - {{if 'CUDA_MEMCPY3D_st.srcDevice' in found_struct}} + + cdef CUdeviceptr _srcDevice - {{endif}} - {{if 'CUDA_MEMCPY3D_st.srcArray' in found_struct}} + + cdef CUarray _srcArray - {{endif}} - {{if 'CUDA_MEMCPY3D_st.reserved0' in found_struct}} + + cdef _HelperInputVoidPtr _cyreserved0 - {{endif}} - {{if 'CUDA_MEMCPY3D_st.dstHost' in found_struct}} + + cdef _HelperInputVoidPtr _cydstHost - {{endif}} - {{if 'CUDA_MEMCPY3D_st.dstDevice' in found_struct}} + + cdef CUdeviceptr _dstDevice - {{endif}} - {{if 'CUDA_MEMCPY3D_st.dstArray' in found_struct}} + + cdef CUarray _dstArray - {{endif}} - {{if 'CUDA_MEMCPY3D_st.reserved1' in found_struct}} + + cdef _HelperInputVoidPtr _cyreserved1 - {{endif}} -{{endif}} -{{if 'CUDA_MEMCPY3D_PEER_st' in found_struct}} + cdef class CUDA_MEMCPY3D_PEER_st: """ @@ -2632,108 +2430,108 @@ cdef class CUDA_MEMCPY3D_PEER_st: Attributes ---------- - {{if 'CUDA_MEMCPY3D_PEER_st.srcXInBytes' in found_struct}} + srcXInBytes : size_t Source X in bytes - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.srcY' in found_struct}} + + srcY : size_t Source Y - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.srcZ' in found_struct}} + + srcZ : size_t Source Z - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.srcLOD' in found_struct}} + + srcLOD : size_t Source LOD - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.srcMemoryType' in found_struct}} + + srcMemoryType : CUmemorytype Source memory type (host, device, array) - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.srcHost' in found_struct}} + + srcHost : Any Source host pointer - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.srcDevice' in found_struct}} + + srcDevice : CUdeviceptr Source device pointer - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.srcArray' in found_struct}} + + srcArray : CUarray Source array reference - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.srcContext' in found_struct}} + + srcContext : CUcontext Source context (ignored with srcMemoryType is CU_MEMORYTYPE_ARRAY) - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.srcPitch' in found_struct}} + + srcPitch : size_t Source pitch (ignored when src is array) - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.srcHeight' in found_struct}} + + srcHeight : size_t Source height (ignored when src is array; may be 0 if Depth==1) - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.dstXInBytes' in found_struct}} + + dstXInBytes : size_t Destination X in bytes - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.dstY' in found_struct}} + + dstY : size_t Destination Y - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.dstZ' in found_struct}} + + dstZ : size_t Destination Z - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.dstLOD' in found_struct}} + + dstLOD : size_t Destination LOD - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.dstMemoryType' in found_struct}} + + dstMemoryType : CUmemorytype Destination memory type (host, device, array) - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.dstHost' in found_struct}} + + dstHost : Any Destination host pointer - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.dstDevice' in found_struct}} + + dstDevice : CUdeviceptr Destination device pointer - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.dstArray' in found_struct}} + + dstArray : CUarray Destination array reference - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.dstContext' in found_struct}} + + dstContext : CUcontext Destination context (ignored with dstMemoryType is CU_MEMORYTYPE_ARRAY) - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.dstPitch' in found_struct}} + + dstPitch : size_t Destination pitch (ignored when dst is array) - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.dstHeight' in found_struct}} + + dstHeight : size_t Destination height (ignored when dst is array; may be 0 if Depth==1) - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.WidthInBytes' in found_struct}} + + WidthInBytes : size_t Width of 3D memory copy in bytes - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.Height' in found_struct}} + + Height : size_t Height of 3D memory copy - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.Depth' in found_struct}} + + Depth : size_t Depth of 3D memory copy - {{endif}} + Methods ------- @@ -2742,32 +2540,30 @@ cdef class CUDA_MEMCPY3D_PEER_st: """ cdef cydriver.CUDA_MEMCPY3D_PEER_st _pvt_val cdef cydriver.CUDA_MEMCPY3D_PEER_st* _pvt_ptr - {{if 'CUDA_MEMCPY3D_PEER_st.srcHost' in found_struct}} + cdef _HelperInputVoidPtr _cysrcHost - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.srcDevice' in found_struct}} + + cdef CUdeviceptr _srcDevice - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.srcArray' in found_struct}} + + cdef CUarray _srcArray - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.srcContext' in found_struct}} + + cdef CUcontext _srcContext - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.dstHost' in found_struct}} + + cdef _HelperInputVoidPtr _cydstHost - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.dstDevice' in found_struct}} + + cdef CUdeviceptr _dstDevice - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.dstArray' in found_struct}} + + cdef CUarray _dstArray - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.dstContext' in found_struct}} + + cdef CUcontext _dstContext - {{endif}} -{{endif}} -{{if 'CUDA_MEMCPY_NODE_PARAMS_st' in found_struct}} + cdef class CUDA_MEMCPY_NODE_PARAMS_st: """ @@ -2775,22 +2571,22 @@ cdef class CUDA_MEMCPY_NODE_PARAMS_st: Attributes ---------- - {{if 'CUDA_MEMCPY_NODE_PARAMS_st.flags' in found_struct}} + flags : int Must be zero - {{endif}} - {{if 'CUDA_MEMCPY_NODE_PARAMS_st.reserved' in found_struct}} + + reserved : int Must be zero - {{endif}} - {{if 'CUDA_MEMCPY_NODE_PARAMS_st.copyCtx' in found_struct}} + + copyCtx : CUcontext Context on which to run the node - {{endif}} - {{if 'CUDA_MEMCPY_NODE_PARAMS_st.copyParams' in found_struct}} + + copyParams : CUDA_MEMCPY3D Parameters for the memory copy - {{endif}} + Methods ------- @@ -2799,14 +2595,12 @@ cdef class CUDA_MEMCPY_NODE_PARAMS_st: """ cdef cydriver.CUDA_MEMCPY_NODE_PARAMS_st _pvt_val cdef cydriver.CUDA_MEMCPY_NODE_PARAMS_st* _pvt_ptr - {{if 'CUDA_MEMCPY_NODE_PARAMS_st.copyCtx' in found_struct}} + cdef CUcontext _copyCtx - {{endif}} - {{if 'CUDA_MEMCPY_NODE_PARAMS_st.copyParams' in found_struct}} + + cdef CUDA_MEMCPY3D _copyParams - {{endif}} -{{endif}} -{{if 'CUDA_ARRAY_DESCRIPTOR_st' in found_struct}} + cdef class CUDA_ARRAY_DESCRIPTOR_st: """ @@ -2814,22 +2608,22 @@ cdef class CUDA_ARRAY_DESCRIPTOR_st: Attributes ---------- - {{if 'CUDA_ARRAY_DESCRIPTOR_st.Width' in found_struct}} + Width : size_t Width of array - {{endif}} - {{if 'CUDA_ARRAY_DESCRIPTOR_st.Height' in found_struct}} + + Height : size_t Height of array - {{endif}} - {{if 'CUDA_ARRAY_DESCRIPTOR_st.Format' in found_struct}} + + Format : CUarray_format Array format - {{endif}} - {{if 'CUDA_ARRAY_DESCRIPTOR_st.NumChannels' in found_struct}} + + NumChannels : unsigned int Channels per array element - {{endif}} + Methods ------- @@ -2838,8 +2632,6 @@ cdef class CUDA_ARRAY_DESCRIPTOR_st: """ cdef cydriver.CUDA_ARRAY_DESCRIPTOR_st _pvt_val cdef cydriver.CUDA_ARRAY_DESCRIPTOR_st* _pvt_ptr -{{endif}} -{{if 'CUDA_ARRAY3D_DESCRIPTOR_st' in found_struct}} cdef class CUDA_ARRAY3D_DESCRIPTOR_st: """ @@ -2847,30 +2639,30 @@ cdef class CUDA_ARRAY3D_DESCRIPTOR_st: Attributes ---------- - {{if 'CUDA_ARRAY3D_DESCRIPTOR_st.Width' in found_struct}} + Width : size_t Width of 3D array - {{endif}} - {{if 'CUDA_ARRAY3D_DESCRIPTOR_st.Height' in found_struct}} + + Height : size_t Height of 3D array - {{endif}} - {{if 'CUDA_ARRAY3D_DESCRIPTOR_st.Depth' in found_struct}} + + Depth : size_t Depth of 3D array - {{endif}} - {{if 'CUDA_ARRAY3D_DESCRIPTOR_st.Format' in found_struct}} + + Format : CUarray_format Array format - {{endif}} - {{if 'CUDA_ARRAY3D_DESCRIPTOR_st.NumChannels' in found_struct}} + + NumChannels : unsigned int Channels per array element - {{endif}} - {{if 'CUDA_ARRAY3D_DESCRIPTOR_st.Flags' in found_struct}} + + Flags : unsigned int Flags - {{endif}} + Methods ------- @@ -2879,25 +2671,23 @@ cdef class CUDA_ARRAY3D_DESCRIPTOR_st: """ cdef cydriver.CUDA_ARRAY3D_DESCRIPTOR_st _pvt_val cdef cydriver.CUDA_ARRAY3D_DESCRIPTOR_st* _pvt_ptr -{{endif}} -{{if 'CUDA_ARRAY_SPARSE_PROPERTIES_st.tileExtent' in found_struct}} cdef class anon_struct6: """ Attributes ---------- - {{if 'CUDA_ARRAY_SPARSE_PROPERTIES_st.tileExtent.width' in found_struct}} + width : unsigned int - {{endif}} - {{if 'CUDA_ARRAY_SPARSE_PROPERTIES_st.tileExtent.height' in found_struct}} + + height : unsigned int - {{endif}} - {{if 'CUDA_ARRAY_SPARSE_PROPERTIES_st.tileExtent.depth' in found_struct}} + + depth : unsigned int - {{endif}} + Methods ------- @@ -2905,8 +2695,6 @@ cdef class anon_struct6: Get memory address of class instance """ cdef cydriver.CUDA_ARRAY_SPARSE_PROPERTIES_st* _pvt_ptr -{{endif}} -{{if 'CUDA_ARRAY_SPARSE_PROPERTIES_st' in found_struct}} cdef class CUDA_ARRAY_SPARSE_PROPERTIES_st: """ @@ -2914,27 +2702,27 @@ cdef class CUDA_ARRAY_SPARSE_PROPERTIES_st: Attributes ---------- - {{if 'CUDA_ARRAY_SPARSE_PROPERTIES_st.tileExtent' in found_struct}} + tileExtent : anon_struct6 - {{endif}} - {{if 'CUDA_ARRAY_SPARSE_PROPERTIES_st.miptailFirstLevel' in found_struct}} + + miptailFirstLevel : unsigned int First mip level at which the mip tail begins. - {{endif}} - {{if 'CUDA_ARRAY_SPARSE_PROPERTIES_st.miptailSize' in found_struct}} + + miptailSize : unsigned long long Total size of the mip tail. - {{endif}} - {{if 'CUDA_ARRAY_SPARSE_PROPERTIES_st.flags' in found_struct}} + + flags : unsigned int Flags will either be zero or CU_ARRAY_SPARSE_PROPERTIES_SINGLE_MIPTAIL - {{endif}} - {{if 'CUDA_ARRAY_SPARSE_PROPERTIES_st.reserved' in found_struct}} + + reserved : list[unsigned int] - {{endif}} + Methods ------- @@ -2943,11 +2731,9 @@ cdef class CUDA_ARRAY_SPARSE_PROPERTIES_st: """ cdef cydriver.CUDA_ARRAY_SPARSE_PROPERTIES_st _pvt_val cdef cydriver.CUDA_ARRAY_SPARSE_PROPERTIES_st* _pvt_ptr - {{if 'CUDA_ARRAY_SPARSE_PROPERTIES_st.tileExtent' in found_struct}} + cdef anon_struct6 _tileExtent - {{endif}} -{{endif}} -{{if 'CUDA_ARRAY_MEMORY_REQUIREMENTS_st' in found_struct}} + cdef class CUDA_ARRAY_MEMORY_REQUIREMENTS_st: """ @@ -2955,18 +2741,18 @@ cdef class CUDA_ARRAY_MEMORY_REQUIREMENTS_st: Attributes ---------- - {{if 'CUDA_ARRAY_MEMORY_REQUIREMENTS_st.size' in found_struct}} + size : size_t Total required memory size - {{endif}} - {{if 'CUDA_ARRAY_MEMORY_REQUIREMENTS_st.alignment' in found_struct}} + + alignment : size_t alignment requirement - {{endif}} - {{if 'CUDA_ARRAY_MEMORY_REQUIREMENTS_st.reserved' in found_struct}} + + reserved : list[unsigned int] - {{endif}} + Methods ------- @@ -2975,17 +2761,15 @@ cdef class CUDA_ARRAY_MEMORY_REQUIREMENTS_st: """ cdef cydriver.CUDA_ARRAY_MEMORY_REQUIREMENTS_st _pvt_val cdef cydriver.CUDA_ARRAY_MEMORY_REQUIREMENTS_st* _pvt_ptr -{{endif}} -{{if 'CUDA_RESOURCE_DESC_st.res.array' in found_struct}} cdef class anon_struct7: """ Attributes ---------- - {{if 'CUDA_RESOURCE_DESC_st.res.array.hArray' in found_struct}} + hArray : CUarray - {{endif}} + Methods ------- @@ -2993,20 +2777,18 @@ cdef class anon_struct7: Get memory address of class instance """ cdef cydriver.CUDA_RESOURCE_DESC_st* _pvt_ptr - {{if 'CUDA_RESOURCE_DESC_st.res.array.hArray' in found_struct}} + cdef CUarray _hArray - {{endif}} -{{endif}} -{{if 'CUDA_RESOURCE_DESC_st.res.mipmap' in found_struct}} + cdef class anon_struct8: """ Attributes ---------- - {{if 'CUDA_RESOURCE_DESC_st.res.mipmap.hMipmappedArray' in found_struct}} + hMipmappedArray : CUmipmappedArray - {{endif}} + Methods ------- @@ -3014,32 +2796,30 @@ cdef class anon_struct8: Get memory address of class instance """ cdef cydriver.CUDA_RESOURCE_DESC_st* _pvt_ptr - {{if 'CUDA_RESOURCE_DESC_st.res.mipmap.hMipmappedArray' in found_struct}} + cdef CUmipmappedArray _hMipmappedArray - {{endif}} -{{endif}} -{{if 'CUDA_RESOURCE_DESC_st.res.linear' in found_struct}} + cdef class anon_struct9: """ Attributes ---------- - {{if 'CUDA_RESOURCE_DESC_st.res.linear.devPtr' in found_struct}} + devPtr : CUdeviceptr - {{endif}} - {{if 'CUDA_RESOURCE_DESC_st.res.linear.format' in found_struct}} + + format : CUarray_format - {{endif}} - {{if 'CUDA_RESOURCE_DESC_st.res.linear.numChannels' in found_struct}} + + numChannels : unsigned int - {{endif}} - {{if 'CUDA_RESOURCE_DESC_st.res.linear.sizeInBytes' in found_struct}} + + sizeInBytes : size_t - {{endif}} + Methods ------- @@ -3047,40 +2827,38 @@ cdef class anon_struct9: Get memory address of class instance """ cdef cydriver.CUDA_RESOURCE_DESC_st* _pvt_ptr - {{if 'CUDA_RESOURCE_DESC_st.res.linear.devPtr' in found_struct}} + cdef CUdeviceptr _devPtr - {{endif}} -{{endif}} -{{if 'CUDA_RESOURCE_DESC_st.res.pitch2D' in found_struct}} + cdef class anon_struct10: """ Attributes ---------- - {{if 'CUDA_RESOURCE_DESC_st.res.pitch2D.devPtr' in found_struct}} + devPtr : CUdeviceptr - {{endif}} - {{if 'CUDA_RESOURCE_DESC_st.res.pitch2D.format' in found_struct}} + + format : CUarray_format - {{endif}} - {{if 'CUDA_RESOURCE_DESC_st.res.pitch2D.numChannels' in found_struct}} + + numChannels : unsigned int - {{endif}} - {{if 'CUDA_RESOURCE_DESC_st.res.pitch2D.width' in found_struct}} + + width : size_t - {{endif}} - {{if 'CUDA_RESOURCE_DESC_st.res.pitch2D.height' in found_struct}} + + height : size_t - {{endif}} - {{if 'CUDA_RESOURCE_DESC_st.res.pitch2D.pitchInBytes' in found_struct}} + + pitchInBytes : size_t - {{endif}} + Methods ------- @@ -3088,20 +2866,18 @@ cdef class anon_struct10: Get memory address of class instance """ cdef cydriver.CUDA_RESOURCE_DESC_st* _pvt_ptr - {{if 'CUDA_RESOURCE_DESC_st.res.pitch2D.devPtr' in found_struct}} + cdef CUdeviceptr _devPtr - {{endif}} -{{endif}} -{{if 'CUDA_RESOURCE_DESC_st.res.reserved' in found_struct}} + cdef class anon_struct11: """ Attributes ---------- - {{if 'CUDA_RESOURCE_DESC_st.res.reserved.reserved' in found_struct}} + reserved : list[int] - {{endif}} + Methods ------- @@ -3109,33 +2885,31 @@ cdef class anon_struct11: Get memory address of class instance """ cdef cydriver.CUDA_RESOURCE_DESC_st* _pvt_ptr -{{endif}} -{{if 'CUDA_RESOURCE_DESC_st.res' in found_struct}} cdef class anon_union4: """ Attributes ---------- - {{if 'CUDA_RESOURCE_DESC_st.res.array' in found_struct}} + array : anon_struct7 - {{endif}} - {{if 'CUDA_RESOURCE_DESC_st.res.mipmap' in found_struct}} + + mipmap : anon_struct8 - {{endif}} - {{if 'CUDA_RESOURCE_DESC_st.res.linear' in found_struct}} + + linear : anon_struct9 - {{endif}} - {{if 'CUDA_RESOURCE_DESC_st.res.pitch2D' in found_struct}} + + pitch2D : anon_struct10 - {{endif}} - {{if 'CUDA_RESOURCE_DESC_st.res.reserved' in found_struct}} + + reserved : anon_struct11 - {{endif}} + Methods ------- @@ -3143,23 +2917,21 @@ cdef class anon_union4: Get memory address of class instance """ cdef cydriver.CUDA_RESOURCE_DESC_st* _pvt_ptr - {{if 'CUDA_RESOURCE_DESC_st.res.array' in found_struct}} + cdef anon_struct7 _array - {{endif}} - {{if 'CUDA_RESOURCE_DESC_st.res.mipmap' in found_struct}} + + cdef anon_struct8 _mipmap - {{endif}} - {{if 'CUDA_RESOURCE_DESC_st.res.linear' in found_struct}} + + cdef anon_struct9 _linear - {{endif}} - {{if 'CUDA_RESOURCE_DESC_st.res.pitch2D' in found_struct}} + + cdef anon_struct10 _pitch2D - {{endif}} - {{if 'CUDA_RESOURCE_DESC_st.res.reserved' in found_struct}} + + cdef anon_struct11 _reserved - {{endif}} -{{endif}} -{{if 'CUDA_RESOURCE_DESC_st' in found_struct}} + cdef class CUDA_RESOURCE_DESC_st: """ @@ -3167,18 +2939,18 @@ cdef class CUDA_RESOURCE_DESC_st: Attributes ---------- - {{if 'CUDA_RESOURCE_DESC_st.resType' in found_struct}} + resType : CUresourcetype Resource type - {{endif}} - {{if 'CUDA_RESOURCE_DESC_st.res' in found_struct}} + + res : anon_union4 - {{endif}} - {{if 'CUDA_RESOURCE_DESC_st.flags' in found_struct}} + + flags : unsigned int Flags (must be zero) - {{endif}} + Methods ------- @@ -3187,11 +2959,9 @@ cdef class CUDA_RESOURCE_DESC_st: """ cdef cydriver.CUDA_RESOURCE_DESC_st* _val_ptr cdef cydriver.CUDA_RESOURCE_DESC_st* _pvt_ptr - {{if 'CUDA_RESOURCE_DESC_st.res' in found_struct}} + cdef anon_union4 _res - {{endif}} -{{endif}} -{{if 'CUDA_TEXTURE_DESC_st' in found_struct}} + cdef class CUDA_TEXTURE_DESC_st: """ @@ -3199,46 +2969,46 @@ cdef class CUDA_TEXTURE_DESC_st: Attributes ---------- - {{if 'CUDA_TEXTURE_DESC_st.addressMode' in found_struct}} + addressMode : list[CUaddress_mode] Address modes - {{endif}} - {{if 'CUDA_TEXTURE_DESC_st.filterMode' in found_struct}} + + filterMode : CUfilter_mode Filter mode - {{endif}} - {{if 'CUDA_TEXTURE_DESC_st.flags' in found_struct}} + + flags : unsigned int Flags - {{endif}} - {{if 'CUDA_TEXTURE_DESC_st.maxAnisotropy' in found_struct}} + + maxAnisotropy : unsigned int Maximum anisotropy ratio - {{endif}} - {{if 'CUDA_TEXTURE_DESC_st.mipmapFilterMode' in found_struct}} + + mipmapFilterMode : CUfilter_mode Mipmap filter mode - {{endif}} - {{if 'CUDA_TEXTURE_DESC_st.mipmapLevelBias' in found_struct}} + + mipmapLevelBias : float Mipmap level bias - {{endif}} - {{if 'CUDA_TEXTURE_DESC_st.minMipmapLevelClamp' in found_struct}} + + minMipmapLevelClamp : float Mipmap minimum level clamp - {{endif}} - {{if 'CUDA_TEXTURE_DESC_st.maxMipmapLevelClamp' in found_struct}} + + maxMipmapLevelClamp : float Mipmap maximum level clamp - {{endif}} - {{if 'CUDA_TEXTURE_DESC_st.borderColor' in found_struct}} + + borderColor : list[float] Border Color - {{endif}} - {{if 'CUDA_TEXTURE_DESC_st.reserved' in found_struct}} + + reserved : list[int] - {{endif}} + Methods ------- @@ -3247,8 +3017,6 @@ cdef class CUDA_TEXTURE_DESC_st: """ cdef cydriver.CUDA_TEXTURE_DESC_st _pvt_val cdef cydriver.CUDA_TEXTURE_DESC_st* _pvt_ptr -{{endif}} -{{if 'CUDA_RESOURCE_VIEW_DESC_st' in found_struct}} cdef class CUDA_RESOURCE_VIEW_DESC_st: """ @@ -3256,42 +3024,42 @@ cdef class CUDA_RESOURCE_VIEW_DESC_st: Attributes ---------- - {{if 'CUDA_RESOURCE_VIEW_DESC_st.format' in found_struct}} + format : CUresourceViewFormat Resource view format - {{endif}} - {{if 'CUDA_RESOURCE_VIEW_DESC_st.width' in found_struct}} + + width : size_t Width of the resource view - {{endif}} - {{if 'CUDA_RESOURCE_VIEW_DESC_st.height' in found_struct}} + + height : size_t Height of the resource view - {{endif}} - {{if 'CUDA_RESOURCE_VIEW_DESC_st.depth' in found_struct}} + + depth : size_t Depth of the resource view - {{endif}} - {{if 'CUDA_RESOURCE_VIEW_DESC_st.firstMipmapLevel' in found_struct}} + + firstMipmapLevel : unsigned int First defined mipmap level - {{endif}} - {{if 'CUDA_RESOURCE_VIEW_DESC_st.lastMipmapLevel' in found_struct}} + + lastMipmapLevel : unsigned int Last defined mipmap level - {{endif}} - {{if 'CUDA_RESOURCE_VIEW_DESC_st.firstLayer' in found_struct}} + + firstLayer : unsigned int First layer index - {{endif}} - {{if 'CUDA_RESOURCE_VIEW_DESC_st.lastLayer' in found_struct}} + + lastLayer : unsigned int Last layer index - {{endif}} - {{if 'CUDA_RESOURCE_VIEW_DESC_st.reserved' in found_struct}} + + reserved : list[unsigned int] - {{endif}} + Methods ------- @@ -3300,8 +3068,6 @@ cdef class CUDA_RESOURCE_VIEW_DESC_st: """ cdef cydriver.CUDA_RESOURCE_VIEW_DESC_st _pvt_val cdef cydriver.CUDA_RESOURCE_VIEW_DESC_st* _pvt_ptr -{{endif}} -{{if 'CUtensorMap_st' in found_struct}} cdef class CUtensorMap_st: """ @@ -3310,10 +3076,10 @@ cdef class CUtensorMap_st: Attributes ---------- - {{if 'CUtensorMap_st.opaque' in found_struct}} + opaque : list[cuuint64_t] - {{endif}} + Methods ------- @@ -3322,8 +3088,6 @@ cdef class CUtensorMap_st: """ cdef cydriver.CUtensorMap_st _pvt_val cdef cydriver.CUtensorMap_st* _pvt_ptr -{{endif}} -{{if 'CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_st' in found_struct}} cdef class CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_st: """ @@ -3331,14 +3095,14 @@ cdef class CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_st: Attributes ---------- - {{if 'CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_st.p2pToken' in found_struct}} + p2pToken : unsigned long long - {{endif}} - {{if 'CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_st.vaSpaceToken' in found_struct}} + + vaSpaceToken : unsigned int - {{endif}} + Methods ------- @@ -3347,8 +3111,6 @@ cdef class CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_st: """ cdef cydriver.CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_st _pvt_val cdef cydriver.CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_st* _pvt_ptr -{{endif}} -{{if 'CUDA_LAUNCH_PARAMS_st' in found_struct}} cdef class CUDA_LAUNCH_PARAMS_st: """ @@ -3356,46 +3118,46 @@ cdef class CUDA_LAUNCH_PARAMS_st: Attributes ---------- - {{if 'CUDA_LAUNCH_PARAMS_st.function' in found_struct}} + function : CUfunction Kernel to launch - {{endif}} - {{if 'CUDA_LAUNCH_PARAMS_st.gridDimX' in found_struct}} + + gridDimX : unsigned int Width of grid in blocks - {{endif}} - {{if 'CUDA_LAUNCH_PARAMS_st.gridDimY' in found_struct}} + + gridDimY : unsigned int Height of grid in blocks - {{endif}} - {{if 'CUDA_LAUNCH_PARAMS_st.gridDimZ' in found_struct}} + + gridDimZ : unsigned int Depth of grid in blocks - {{endif}} - {{if 'CUDA_LAUNCH_PARAMS_st.blockDimX' in found_struct}} + + blockDimX : unsigned int X dimension of each thread block - {{endif}} - {{if 'CUDA_LAUNCH_PARAMS_st.blockDimY' in found_struct}} + + blockDimY : unsigned int Y dimension of each thread block - {{endif}} - {{if 'CUDA_LAUNCH_PARAMS_st.blockDimZ' in found_struct}} + + blockDimZ : unsigned int Z dimension of each thread block - {{endif}} - {{if 'CUDA_LAUNCH_PARAMS_st.sharedMemBytes' in found_struct}} + + sharedMemBytes : unsigned int Dynamic shared-memory size per thread block in bytes - {{endif}} - {{if 'CUDA_LAUNCH_PARAMS_st.hStream' in found_struct}} + + hStream : CUstream Stream identifier - {{endif}} - {{if 'CUDA_LAUNCH_PARAMS_st.kernelParams' in found_struct}} + + kernelParams : Any Array of pointers to kernel parameters - {{endif}} + Methods ------- @@ -3404,30 +3166,28 @@ cdef class CUDA_LAUNCH_PARAMS_st: """ cdef cydriver.CUDA_LAUNCH_PARAMS_st _pvt_val cdef cydriver.CUDA_LAUNCH_PARAMS_st* _pvt_ptr - {{if 'CUDA_LAUNCH_PARAMS_st.function' in found_struct}} + cdef CUfunction _function - {{endif}} - {{if 'CUDA_LAUNCH_PARAMS_st.hStream' in found_struct}} + + cdef CUstream _hStream - {{endif}} - {{if 'CUDA_LAUNCH_PARAMS_st.kernelParams' in found_struct}} + + cdef _HelperKernelParams _cykernelParams - {{endif}} -{{endif}} -{{if 'CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st.handle.win32' in found_struct}} + cdef class anon_struct12: """ Attributes ---------- - {{if 'CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st.handle.win32.handle' in found_struct}} + handle : Any - {{endif}} - {{if 'CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st.handle.win32.name' in found_struct}} + + name : Any - {{endif}} + Methods ------- @@ -3435,31 +3195,29 @@ cdef class anon_struct12: Get memory address of class instance """ cdef cydriver.CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st* _pvt_ptr - {{if 'CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st.handle.win32.handle' in found_struct}} + cdef _HelperInputVoidPtr _cyhandle - {{endif}} - {{if 'CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st.handle.win32.name' in found_struct}} + + cdef _HelperInputVoidPtr _cyname - {{endif}} -{{endif}} -{{if 'CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st.handle' in found_struct}} + cdef class anon_union5: """ Attributes ---------- - {{if 'CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st.handle.fd' in found_struct}} + fd : int - {{endif}} - {{if 'CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st.handle.win32' in found_struct}} + + win32 : anon_struct12 - {{endif}} - {{if 'CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st.handle.nvSciBufObject' in found_struct}} + + nvSciBufObject : Any - {{endif}} + Methods ------- @@ -3467,14 +3225,12 @@ cdef class anon_union5: Get memory address of class instance """ cdef cydriver.CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st* _pvt_ptr - {{if 'CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st.handle.win32' in found_struct}} + cdef anon_struct12 _win32 - {{endif}} - {{if 'CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st.handle.nvSciBufObject' in found_struct}} + + cdef _HelperInputVoidPtr _cynvSciBufObject - {{endif}} -{{endif}} -{{if 'CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st' in found_struct}} + cdef class CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st: """ @@ -3482,26 +3238,26 @@ cdef class CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st: Attributes ---------- - {{if 'CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st.type' in found_struct}} + type : CUexternalMemoryHandleType Type of the handle - {{endif}} - {{if 'CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st.handle' in found_struct}} + + handle : anon_union5 - {{endif}} - {{if 'CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st.size' in found_struct}} + + size : unsigned long long Size of the memory allocation - {{endif}} - {{if 'CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st.flags' in found_struct}} + + flags : unsigned int Flags must either be zero or CUDA_EXTERNAL_MEMORY_DEDICATED - {{endif}} - {{if 'CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st.reserved' in found_struct}} + + reserved : list[unsigned int] - {{endif}} + Methods ------- @@ -3510,11 +3266,9 @@ cdef class CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st: """ cdef cydriver.CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st* _val_ptr cdef cydriver.CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st* _pvt_ptr - {{if 'CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st.handle' in found_struct}} + cdef anon_union5 _handle - {{endif}} -{{endif}} -{{if 'CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st' in found_struct}} + cdef class CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st: """ @@ -3522,22 +3276,22 @@ cdef class CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st: Attributes ---------- - {{if 'CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st.offset' in found_struct}} + offset : unsigned long long Offset into the memory object where the buffer's base is - {{endif}} - {{if 'CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st.size' in found_struct}} + + size : unsigned long long Size of the buffer - {{endif}} - {{if 'CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st.flags' in found_struct}} + + flags : unsigned int Flags reserved for future use. Must be zero. - {{endif}} - {{if 'CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st.reserved' in found_struct}} + + reserved : list[unsigned int] - {{endif}} + Methods ------- @@ -3546,8 +3300,6 @@ cdef class CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st: """ cdef cydriver.CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st _pvt_val cdef cydriver.CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st* _pvt_ptr -{{endif}} -{{if 'CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_st' in found_struct}} cdef class CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_st: """ @@ -3555,23 +3307,23 @@ cdef class CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_st: Attributes ---------- - {{if 'CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_st.offset' in found_struct}} + offset : unsigned long long Offset into the memory object where the base level of the mipmap chain is. - {{endif}} - {{if 'CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_st.arrayDesc' in found_struct}} + + arrayDesc : CUDA_ARRAY3D_DESCRIPTOR Format, dimension and type of base level of the mipmap chain - {{endif}} - {{if 'CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_st.numLevels' in found_struct}} + + numLevels : unsigned int Total number of levels in the mipmap chain - {{endif}} - {{if 'CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_st.reserved' in found_struct}} + + reserved : list[unsigned int] - {{endif}} + Methods ------- @@ -3580,24 +3332,22 @@ cdef class CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_st: """ cdef cydriver.CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_st _pvt_val cdef cydriver.CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_st* _pvt_ptr - {{if 'CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_st.arrayDesc' in found_struct}} + cdef CUDA_ARRAY3D_DESCRIPTOR _arrayDesc - {{endif}} -{{endif}} -{{if 'CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st.handle.win32' in found_struct}} + cdef class anon_struct13: """ Attributes ---------- - {{if 'CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st.handle.win32.handle' in found_struct}} + handle : Any - {{endif}} - {{if 'CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st.handle.win32.name' in found_struct}} + + name : Any - {{endif}} + Methods ------- @@ -3605,31 +3355,29 @@ cdef class anon_struct13: Get memory address of class instance """ cdef cydriver.CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st* _pvt_ptr - {{if 'CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st.handle.win32.handle' in found_struct}} + cdef _HelperInputVoidPtr _cyhandle - {{endif}} - {{if 'CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st.handle.win32.name' in found_struct}} + + cdef _HelperInputVoidPtr _cyname - {{endif}} -{{endif}} -{{if 'CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st.handle' in found_struct}} + cdef class anon_union6: """ Attributes ---------- - {{if 'CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st.handle.fd' in found_struct}} + fd : int - {{endif}} - {{if 'CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st.handle.win32' in found_struct}} + + win32 : anon_struct13 - {{endif}} - {{if 'CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st.handle.nvSciSyncObj' in found_struct}} + + nvSciSyncObj : Any - {{endif}} + Methods ------- @@ -3637,14 +3385,12 @@ cdef class anon_union6: Get memory address of class instance """ cdef cydriver.CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st* _pvt_ptr - {{if 'CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st.handle.win32' in found_struct}} + cdef anon_struct13 _win32 - {{endif}} - {{if 'CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st.handle.nvSciSyncObj' in found_struct}} + + cdef _HelperInputVoidPtr _cynvSciSyncObj - {{endif}} -{{endif}} -{{if 'CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st' in found_struct}} + cdef class CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st: """ @@ -3652,22 +3398,22 @@ cdef class CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st: Attributes ---------- - {{if 'CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st.type' in found_struct}} + type : CUexternalSemaphoreHandleType Type of the handle - {{endif}} - {{if 'CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st.handle' in found_struct}} + + handle : anon_union6 - {{endif}} - {{if 'CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st.flags' in found_struct}} + + flags : unsigned int Flags reserved for the future. Must be zero. - {{endif}} - {{if 'CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st.reserved' in found_struct}} + + reserved : list[unsigned int] - {{endif}} + Methods ------- @@ -3676,20 +3422,18 @@ cdef class CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st: """ cdef cydriver.CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st* _val_ptr cdef cydriver.CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st* _pvt_ptr - {{if 'CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st.handle' in found_struct}} + cdef anon_union6 _handle - {{endif}} -{{endif}} -{{if 'CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st.params.fence' in found_struct}} + cdef class anon_struct14: """ Attributes ---------- - {{if 'CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st.params.fence.value' in found_struct}} + value : unsigned long long - {{endif}} + Methods ------- @@ -3697,21 +3441,19 @@ cdef class anon_struct14: Get memory address of class instance """ cdef cydriver.CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st* _pvt_ptr -{{endif}} -{{if 'CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st.params.nvSciSync' in found_struct}} cdef class anon_union7: """ Attributes ---------- - {{if 'CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st.params.nvSciSync.fence' in found_struct}} + fence : Any - {{endif}} - {{if 'CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st.params.nvSciSync.reserved' in found_struct}} + + reserved : unsigned long long - {{endif}} + Methods ------- @@ -3719,20 +3461,18 @@ cdef class anon_union7: Get memory address of class instance """ cdef cydriver.CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st* _pvt_ptr - {{if 'CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st.params.nvSciSync.fence' in found_struct}} + cdef _HelperInputVoidPtr _cyfence - {{endif}} -{{endif}} -{{if 'CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st.params.keyedMutex' in found_struct}} + cdef class anon_struct15: """ Attributes ---------- - {{if 'CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st.params.keyedMutex.key' in found_struct}} + key : unsigned long long - {{endif}} + Methods ------- @@ -3740,29 +3480,27 @@ cdef class anon_struct15: Get memory address of class instance """ cdef cydriver.CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st* _pvt_ptr -{{endif}} -{{if 'CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st.params' in found_struct}} cdef class anon_struct16: """ Attributes ---------- - {{if 'CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st.params.fence' in found_struct}} + fence : anon_struct14 - {{endif}} - {{if 'CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st.params.nvSciSync' in found_struct}} + + nvSciSync : anon_union7 - {{endif}} - {{if 'CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st.params.keyedMutex' in found_struct}} + + keyedMutex : anon_struct15 - {{endif}} - {{if 'CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st.params.reserved' in found_struct}} + + reserved : list[unsigned int] - {{endif}} + Methods ------- @@ -3770,17 +3508,15 @@ cdef class anon_struct16: Get memory address of class instance """ cdef cydriver.CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st* _pvt_ptr - {{if 'CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st.params.fence' in found_struct}} + cdef anon_struct14 _fence - {{endif}} - {{if 'CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st.params.nvSciSync' in found_struct}} + + cdef anon_union7 _nvSciSync - {{endif}} - {{if 'CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st.params.keyedMutex' in found_struct}} + + cdef anon_struct15 _keyedMutex - {{endif}} -{{endif}} -{{if 'CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st' in found_struct}} + cdef class CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st: """ @@ -3788,11 +3524,11 @@ cdef class CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st: Attributes ---------- - {{if 'CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st.params' in found_struct}} + params : anon_struct16 - {{endif}} - {{if 'CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st.flags' in found_struct}} + + flags : unsigned int Only when CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS is used to signal a CUexternalSemaphore of type @@ -3802,11 +3538,11 @@ cdef class CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st: synchronization operations should be performed for any external memory object imported as CU_EXTERNAL_MEMORY_HANDLE_TYPE_NVSCIBUF. For all other types of CUexternalSemaphore, flags must be zero. - {{endif}} - {{if 'CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st.reserved' in found_struct}} + + reserved : list[unsigned int] - {{endif}} + Methods ------- @@ -3815,20 +3551,18 @@ cdef class CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st: """ cdef cydriver.CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st _pvt_val cdef cydriver.CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st* _pvt_ptr - {{if 'CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st.params' in found_struct}} + cdef anon_struct16 _params - {{endif}} -{{endif}} -{{if 'CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st.params.fence' in found_struct}} + cdef class anon_struct17: """ Attributes ---------- - {{if 'CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st.params.fence.value' in found_struct}} + value : unsigned long long - {{endif}} + Methods ------- @@ -3836,21 +3570,19 @@ cdef class anon_struct17: Get memory address of class instance """ cdef cydriver.CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st* _pvt_ptr -{{endif}} -{{if 'CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st.params.nvSciSync' in found_struct}} cdef class anon_union8: """ Attributes ---------- - {{if 'CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st.params.nvSciSync.fence' in found_struct}} + fence : Any - {{endif}} - {{if 'CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st.params.nvSciSync.reserved' in found_struct}} + + reserved : unsigned long long - {{endif}} + Methods ------- @@ -3858,24 +3590,22 @@ cdef class anon_union8: Get memory address of class instance """ cdef cydriver.CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st* _pvt_ptr - {{if 'CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st.params.nvSciSync.fence' in found_struct}} + cdef _HelperInputVoidPtr _cyfence - {{endif}} -{{endif}} -{{if 'CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st.params.keyedMutex' in found_struct}} + cdef class anon_struct18: """ Attributes ---------- - {{if 'CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st.params.keyedMutex.key' in found_struct}} + key : unsigned long long - {{endif}} - {{if 'CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st.params.keyedMutex.timeoutMs' in found_struct}} + + timeoutMs : unsigned int - {{endif}} + Methods ------- @@ -3883,29 +3613,27 @@ cdef class anon_struct18: Get memory address of class instance """ cdef cydriver.CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st* _pvt_ptr -{{endif}} -{{if 'CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st.params' in found_struct}} cdef class anon_struct19: """ Attributes ---------- - {{if 'CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st.params.fence' in found_struct}} + fence : anon_struct17 - {{endif}} - {{if 'CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st.params.nvSciSync' in found_struct}} + + nvSciSync : anon_union8 - {{endif}} - {{if 'CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st.params.keyedMutex' in found_struct}} + + keyedMutex : anon_struct18 - {{endif}} - {{if 'CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st.params.reserved' in found_struct}} + + reserved : list[unsigned int] - {{endif}} + Methods ------- @@ -3913,17 +3641,15 @@ cdef class anon_struct19: Get memory address of class instance """ cdef cydriver.CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st* _pvt_ptr - {{if 'CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st.params.fence' in found_struct}} + cdef anon_struct17 _fence - {{endif}} - {{if 'CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st.params.nvSciSync' in found_struct}} + + cdef anon_union8 _nvSciSync - {{endif}} - {{if 'CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st.params.keyedMutex' in found_struct}} + + cdef anon_struct18 _keyedMutex - {{endif}} -{{endif}} -{{if 'CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st' in found_struct}} + cdef class CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st: """ @@ -3931,11 +3657,11 @@ cdef class CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st: Attributes ---------- - {{if 'CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st.params' in found_struct}} + params : anon_struct19 - {{endif}} - {{if 'CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st.flags' in found_struct}} + + flags : unsigned int Only when CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS is used to wait on a CUexternalSemaphore of type @@ -3945,11 +3671,11 @@ cdef class CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st: synchronization operations should be performed for any external memory object imported as CU_EXTERNAL_MEMORY_HANDLE_TYPE_NVSCIBUF. For all other types of CUexternalSemaphore, flags must be zero. - {{endif}} - {{if 'CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st.reserved' in found_struct}} + + reserved : list[unsigned int] - {{endif}} + Methods ------- @@ -3958,11 +3684,9 @@ cdef class CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st: """ cdef cydriver.CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st _pvt_val cdef cydriver.CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st* _pvt_ptr - {{if 'CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st.params' in found_struct}} + cdef anon_struct19 _params - {{endif}} -{{endif}} -{{if 'CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_st' in found_struct}} + cdef class CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_st: """ @@ -3970,19 +3694,19 @@ cdef class CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_st: Attributes ---------- - {{if 'CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_st.extSemArray' in found_struct}} + extSemArray : CUexternalSemaphore Array of external semaphore handles. - {{endif}} - {{if 'CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_st.paramsArray' in found_struct}} + + paramsArray : CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS Array of external semaphore signal parameters. - {{endif}} - {{if 'CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_st.numExtSems' in found_struct}} + + numExtSems : unsigned int Number of handles and parameters supplied in extSemArray and paramsArray. - {{endif}} + Methods ------- @@ -3991,16 +3715,14 @@ cdef class CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_st: """ cdef cydriver.CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_st _pvt_val cdef cydriver.CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_st* _pvt_ptr - {{if 'CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_st.extSemArray' in found_struct}} + cdef size_t _extSemArray_length cdef cydriver.CUexternalSemaphore* _extSemArray - {{endif}} - {{if 'CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_st.paramsArray' in found_struct}} + + cdef size_t _paramsArray_length cdef cydriver.CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS* _paramsArray - {{endif}} -{{endif}} -{{if 'CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2_st' in found_struct}} + cdef class CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2_st: """ @@ -4008,19 +3730,19 @@ cdef class CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2_st: Attributes ---------- - {{if 'CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2_st.extSemArray' in found_struct}} + extSemArray : CUexternalSemaphore Array of external semaphore handles. - {{endif}} - {{if 'CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2_st.paramsArray' in found_struct}} + + paramsArray : CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS Array of external semaphore signal parameters. - {{endif}} - {{if 'CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2_st.numExtSems' in found_struct}} + + numExtSems : unsigned int Number of handles and parameters supplied in extSemArray and paramsArray. - {{endif}} + Methods ------- @@ -4029,16 +3751,14 @@ cdef class CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2_st: """ cdef cydriver.CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2_st _pvt_val cdef cydriver.CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2_st* _pvt_ptr - {{if 'CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2_st.extSemArray' in found_struct}} + cdef size_t _extSemArray_length cdef cydriver.CUexternalSemaphore* _extSemArray - {{endif}} - {{if 'CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2_st.paramsArray' in found_struct}} + + cdef size_t _paramsArray_length cdef cydriver.CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS* _paramsArray - {{endif}} -{{endif}} -{{if 'CUDA_EXT_SEM_WAIT_NODE_PARAMS_st' in found_struct}} + cdef class CUDA_EXT_SEM_WAIT_NODE_PARAMS_st: """ @@ -4046,19 +3766,19 @@ cdef class CUDA_EXT_SEM_WAIT_NODE_PARAMS_st: Attributes ---------- - {{if 'CUDA_EXT_SEM_WAIT_NODE_PARAMS_st.extSemArray' in found_struct}} + extSemArray : CUexternalSemaphore Array of external semaphore handles. - {{endif}} - {{if 'CUDA_EXT_SEM_WAIT_NODE_PARAMS_st.paramsArray' in found_struct}} + + paramsArray : CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS Array of external semaphore wait parameters. - {{endif}} - {{if 'CUDA_EXT_SEM_WAIT_NODE_PARAMS_st.numExtSems' in found_struct}} + + numExtSems : unsigned int Number of handles and parameters supplied in extSemArray and paramsArray. - {{endif}} + Methods ------- @@ -4067,16 +3787,14 @@ cdef class CUDA_EXT_SEM_WAIT_NODE_PARAMS_st: """ cdef cydriver.CUDA_EXT_SEM_WAIT_NODE_PARAMS_st _pvt_val cdef cydriver.CUDA_EXT_SEM_WAIT_NODE_PARAMS_st* _pvt_ptr - {{if 'CUDA_EXT_SEM_WAIT_NODE_PARAMS_st.extSemArray' in found_struct}} + cdef size_t _extSemArray_length cdef cydriver.CUexternalSemaphore* _extSemArray - {{endif}} - {{if 'CUDA_EXT_SEM_WAIT_NODE_PARAMS_st.paramsArray' in found_struct}} + + cdef size_t _paramsArray_length cdef cydriver.CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS* _paramsArray - {{endif}} -{{endif}} -{{if 'CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2_st' in found_struct}} + cdef class CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2_st: """ @@ -4084,19 +3802,19 @@ cdef class CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2_st: Attributes ---------- - {{if 'CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2_st.extSemArray' in found_struct}} + extSemArray : CUexternalSemaphore Array of external semaphore handles. - {{endif}} - {{if 'CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2_st.paramsArray' in found_struct}} + + paramsArray : CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS Array of external semaphore wait parameters. - {{endif}} - {{if 'CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2_st.numExtSems' in found_struct}} + + numExtSems : unsigned int Number of handles and parameters supplied in extSemArray and paramsArray. - {{endif}} + Methods ------- @@ -4105,29 +3823,27 @@ cdef class CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2_st: """ cdef cydriver.CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2_st _pvt_val cdef cydriver.CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2_st* _pvt_ptr - {{if 'CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2_st.extSemArray' in found_struct}} + cdef size_t _extSemArray_length cdef cydriver.CUexternalSemaphore* _extSemArray - {{endif}} - {{if 'CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2_st.paramsArray' in found_struct}} + + cdef size_t _paramsArray_length cdef cydriver.CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS* _paramsArray - {{endif}} -{{endif}} -{{if 'CUarrayMapInfo_st.resource' in found_struct}} + cdef class anon_union9: """ Attributes ---------- - {{if 'CUarrayMapInfo_st.resource.mipmap' in found_struct}} + mipmap : CUmipmappedArray - {{endif}} - {{if 'CUarrayMapInfo_st.resource.array' in found_struct}} + + array : CUarray - {{endif}} + Methods ------- @@ -4135,51 +3851,49 @@ cdef class anon_union9: Get memory address of class instance """ cdef cydriver.CUarrayMapInfo_st* _pvt_ptr - {{if 'CUarrayMapInfo_st.resource.mipmap' in found_struct}} + cdef CUmipmappedArray _mipmap - {{endif}} - {{if 'CUarrayMapInfo_st.resource.array' in found_struct}} + + cdef CUarray _array - {{endif}} -{{endif}} -{{if 'CUarrayMapInfo_st.subresource.sparseLevel' in found_struct}} + cdef class anon_struct20: """ Attributes ---------- - {{if 'CUarrayMapInfo_st.subresource.sparseLevel.level' in found_struct}} + level : unsigned int - {{endif}} - {{if 'CUarrayMapInfo_st.subresource.sparseLevel.layer' in found_struct}} + + layer : unsigned int - {{endif}} - {{if 'CUarrayMapInfo_st.subresource.sparseLevel.offsetX' in found_struct}} + + offsetX : unsigned int - {{endif}} - {{if 'CUarrayMapInfo_st.subresource.sparseLevel.offsetY' in found_struct}} + + offsetY : unsigned int - {{endif}} - {{if 'CUarrayMapInfo_st.subresource.sparseLevel.offsetZ' in found_struct}} + + offsetZ : unsigned int - {{endif}} - {{if 'CUarrayMapInfo_st.subresource.sparseLevel.extentWidth' in found_struct}} + + extentWidth : unsigned int - {{endif}} - {{if 'CUarrayMapInfo_st.subresource.sparseLevel.extentHeight' in found_struct}} + + extentHeight : unsigned int - {{endif}} - {{if 'CUarrayMapInfo_st.subresource.sparseLevel.extentDepth' in found_struct}} + + extentDepth : unsigned int - {{endif}} + Methods ------- @@ -4187,25 +3901,23 @@ cdef class anon_struct20: Get memory address of class instance """ cdef cydriver.CUarrayMapInfo_st* _pvt_ptr -{{endif}} -{{if 'CUarrayMapInfo_st.subresource.miptail' in found_struct}} cdef class anon_struct21: """ Attributes ---------- - {{if 'CUarrayMapInfo_st.subresource.miptail.layer' in found_struct}} + layer : unsigned int - {{endif}} - {{if 'CUarrayMapInfo_st.subresource.miptail.offset' in found_struct}} + + offset : unsigned long long - {{endif}} - {{if 'CUarrayMapInfo_st.subresource.miptail.size' in found_struct}} + + size : unsigned long long - {{endif}} + Methods ------- @@ -4213,21 +3925,19 @@ cdef class anon_struct21: Get memory address of class instance """ cdef cydriver.CUarrayMapInfo_st* _pvt_ptr -{{endif}} -{{if 'CUarrayMapInfo_st.subresource' in found_struct}} cdef class anon_union10: """ Attributes ---------- - {{if 'CUarrayMapInfo_st.subresource.sparseLevel' in found_struct}} + sparseLevel : anon_struct20 - {{endif}} - {{if 'CUarrayMapInfo_st.subresource.miptail' in found_struct}} + + miptail : anon_struct21 - {{endif}} + Methods ------- @@ -4235,23 +3945,21 @@ cdef class anon_union10: Get memory address of class instance """ cdef cydriver.CUarrayMapInfo_st* _pvt_ptr - {{if 'CUarrayMapInfo_st.subresource.sparseLevel' in found_struct}} + cdef anon_struct20 _sparseLevel - {{endif}} - {{if 'CUarrayMapInfo_st.subresource.miptail' in found_struct}} + + cdef anon_struct21 _miptail - {{endif}} -{{endif}} -{{if 'CUarrayMapInfo_st.memHandle' in found_struct}} + cdef class anon_union11: """ Attributes ---------- - {{if 'CUarrayMapInfo_st.memHandle.memHandle' in found_struct}} + memHandle : CUmemGenericAllocationHandle - {{endif}} + Methods ------- @@ -4259,11 +3967,9 @@ cdef class anon_union11: Get memory address of class instance """ cdef cydriver.CUarrayMapInfo_st* _pvt_ptr - {{if 'CUarrayMapInfo_st.memHandle.memHandle' in found_struct}} + cdef CUmemGenericAllocationHandle _memHandle - {{endif}} -{{endif}} -{{if 'CUarrayMapInfo_st' in found_struct}} + cdef class CUarrayMapInfo_st: """ @@ -4272,50 +3978,50 @@ cdef class CUarrayMapInfo_st: Attributes ---------- - {{if 'CUarrayMapInfo_st.resourceType' in found_struct}} + resourceType : CUresourcetype Resource type - {{endif}} - {{if 'CUarrayMapInfo_st.resource' in found_struct}} + + resource : anon_union9 - {{endif}} - {{if 'CUarrayMapInfo_st.subresourceType' in found_struct}} + + subresourceType : CUarraySparseSubresourceType Sparse subresource type - {{endif}} - {{if 'CUarrayMapInfo_st.subresource' in found_struct}} + + subresource : anon_union10 - {{endif}} - {{if 'CUarrayMapInfo_st.memOperationType' in found_struct}} + + memOperationType : CUmemOperationType Memory operation type - {{endif}} - {{if 'CUarrayMapInfo_st.memHandleType' in found_struct}} + + memHandleType : CUmemHandleType Memory handle type - {{endif}} - {{if 'CUarrayMapInfo_st.memHandle' in found_struct}} + + memHandle : anon_union11 - {{endif}} - {{if 'CUarrayMapInfo_st.offset' in found_struct}} + + offset : unsigned long long Offset within mip tail Offset within the memory - {{endif}} - {{if 'CUarrayMapInfo_st.deviceBitMask' in found_struct}} + + deviceBitMask : unsigned int Device ordinal bit mask - {{endif}} - {{if 'CUarrayMapInfo_st.flags' in found_struct}} + + flags : unsigned int flags for future use, must be zero now. - {{endif}} - {{if 'CUarrayMapInfo_st.reserved' in found_struct}} + + reserved : list[unsigned int] Reserved for future use, must be zero now. - {{endif}} + Methods ------- @@ -4324,17 +4030,15 @@ cdef class CUarrayMapInfo_st: """ cdef cydriver.CUarrayMapInfo_st* _val_ptr cdef cydriver.CUarrayMapInfo_st* _pvt_ptr - {{if 'CUarrayMapInfo_st.resource' in found_struct}} + cdef anon_union9 _resource - {{endif}} - {{if 'CUarrayMapInfo_st.subresource' in found_struct}} + + cdef anon_union10 _subresource - {{endif}} - {{if 'CUarrayMapInfo_st.memHandle' in found_struct}} + + cdef anon_union11 _memHandle - {{endif}} -{{endif}} -{{if 'CUmemLocation_st' in found_struct}} + cdef class CUmemLocation_st: """ @@ -4342,14 +4046,14 @@ cdef class CUmemLocation_st: Attributes ---------- - {{if 'CUmemLocation_st.type' in found_struct}} + type : CUmemLocationType Specifies the location type, which modifies the meaning of id. - {{endif}} - {{if 'CUmemLocation_st.id' in found_struct}} + + id : int - {{endif}} + Methods ------- @@ -4358,29 +4062,27 @@ cdef class CUmemLocation_st: """ cdef cydriver.CUmemLocation_st* _val_ptr cdef cydriver.CUmemLocation_st* _pvt_ptr -{{endif}} -{{if 'CUmemAllocationProp_st.allocFlags' in found_struct}} cdef class anon_struct22: """ Attributes ---------- - {{if 'CUmemAllocationProp_st.allocFlags.compressionType' in found_struct}} + compressionType : bytes - {{endif}} - {{if 'CUmemAllocationProp_st.allocFlags.gpuDirectRDMACapable' in found_struct}} + + gpuDirectRDMACapable : bytes - {{endif}} - {{if 'CUmemAllocationProp_st.allocFlags.usage' in found_struct}} + + usage : unsigned short - {{endif}} - {{if 'CUmemAllocationProp_st.allocFlags.reserved' in found_struct}} + + reserved : bytes - {{endif}} + Methods ------- @@ -4388,8 +4090,6 @@ cdef class anon_struct22: Get memory address of class instance """ cdef cydriver.CUmemAllocationProp_st* _pvt_ptr -{{endif}} -{{if 'CUmemAllocationProp_st' in found_struct}} cdef class CUmemAllocationProp_st: """ @@ -4397,30 +4097,30 @@ cdef class CUmemAllocationProp_st: Attributes ---------- - {{if 'CUmemAllocationProp_st.type' in found_struct}} + type : CUmemAllocationType Allocation type - {{endif}} - {{if 'CUmemAllocationProp_st.requestedHandleTypes' in found_struct}} + + requestedHandleTypes : CUmemAllocationHandleType requested CUmemAllocationHandleType - {{endif}} - {{if 'CUmemAllocationProp_st.location' in found_struct}} + + location : CUmemLocation Location of allocation - {{endif}} - {{if 'CUmemAllocationProp_st.win32HandleMetaData' in found_struct}} + + win32HandleMetaData : Any Windows-specific POBJECT_ATTRIBUTES required when CU_MEM_HANDLE_TYPE_WIN32 is specified. This object attributes structure includes security attributes that define the scope of which exported allocations may be transferred to other processes. In all other cases, this field is required to be zero. - {{endif}} - {{if 'CUmemAllocationProp_st.allocFlags' in found_struct}} + + allocFlags : anon_struct22 - {{endif}} + Methods ------- @@ -4429,17 +4129,15 @@ cdef class CUmemAllocationProp_st: """ cdef cydriver.CUmemAllocationProp_st _pvt_val cdef cydriver.CUmemAllocationProp_st* _pvt_ptr - {{if 'CUmemAllocationProp_st.location' in found_struct}} + cdef CUmemLocation _location - {{endif}} - {{if 'CUmemAllocationProp_st.win32HandleMetaData' in found_struct}} + + cdef _HelperInputVoidPtr _cywin32HandleMetaData - {{endif}} - {{if 'CUmemAllocationProp_st.allocFlags' in found_struct}} + + cdef anon_struct22 _allocFlags - {{endif}} -{{endif}} -{{if 'CUmulticastObjectProp_st' in found_struct}} + cdef class CUmulticastObjectProp_st: """ @@ -4447,25 +4145,25 @@ cdef class CUmulticastObjectProp_st: Attributes ---------- - {{if 'CUmulticastObjectProp_st.numDevices' in found_struct}} + numDevices : unsigned int The number of devices in the multicast team that will bind memory to this object - {{endif}} - {{if 'CUmulticastObjectProp_st.size' in found_struct}} + + size : size_t The maximum amount of memory that can be bound to this multicast object per device - {{endif}} - {{if 'CUmulticastObjectProp_st.handleTypes' in found_struct}} + + handleTypes : unsigned long long Bitmask of exportable handle types (see CUmemAllocationHandleType) for this object - {{endif}} - {{if 'CUmulticastObjectProp_st.flags' in found_struct}} + + flags : unsigned long long Flags for future use, must be zero now - {{endif}} + Methods ------- @@ -4474,8 +4172,6 @@ cdef class CUmulticastObjectProp_st: """ cdef cydriver.CUmulticastObjectProp_st _pvt_val cdef cydriver.CUmulticastObjectProp_st* _pvt_ptr -{{endif}} -{{if 'CUmemAccessDesc_st' in found_struct}} cdef class CUmemAccessDesc_st: """ @@ -4483,14 +4179,14 @@ cdef class CUmemAccessDesc_st: Attributes ---------- - {{if 'CUmemAccessDesc_st.location' in found_struct}} + location : CUmemLocation Location on which the request is to change it's accessibility - {{endif}} - {{if 'CUmemAccessDesc_st.flags' in found_struct}} + + flags : CUmemAccess_flags ::CUmemProt accessibility flags to set on the request - {{endif}} + Methods ------- @@ -4499,11 +4195,9 @@ cdef class CUmemAccessDesc_st: """ cdef cydriver.CUmemAccessDesc_st _pvt_val cdef cydriver.CUmemAccessDesc_st* _pvt_ptr - {{if 'CUmemAccessDesc_st.location' in found_struct}} + cdef CUmemLocation _location - {{endif}} -{{endif}} -{{if 'CUgraphExecUpdateResultInfo_st' in found_struct}} + cdef class CUgraphExecUpdateResultInfo_st: """ @@ -4511,21 +4205,21 @@ cdef class CUgraphExecUpdateResultInfo_st: Attributes ---------- - {{if 'CUgraphExecUpdateResultInfo_st.result' in found_struct}} + result : CUgraphExecUpdateResult Gives more specific detail when a cuda graph update fails. - {{endif}} - {{if 'CUgraphExecUpdateResultInfo_st.errorNode' in found_struct}} + + errorNode : CUgraphNode 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 'CUgraphExecUpdateResultInfo_st.errorFromNode' in found_struct}} + + errorFromNode : CUgraphNode The from node of error edge when the topologies do not match. Otherwise NULL. - {{endif}} + Methods ------- @@ -4534,14 +4228,12 @@ cdef class CUgraphExecUpdateResultInfo_st: """ cdef cydriver.CUgraphExecUpdateResultInfo_st _pvt_val cdef cydriver.CUgraphExecUpdateResultInfo_st* _pvt_ptr - {{if 'CUgraphExecUpdateResultInfo_st.errorNode' in found_struct}} + cdef CUgraphNode _errorNode - {{endif}} - {{if 'CUgraphExecUpdateResultInfo_st.errorFromNode' in found_struct}} + + cdef CUgraphNode _errorFromNode - {{endif}} -{{endif}} -{{if 'CUmemPoolProps_st' in found_struct}} + cdef class CUmemPoolProps_st: """ @@ -4549,40 +4241,40 @@ cdef class CUmemPoolProps_st: Attributes ---------- - {{if 'CUmemPoolProps_st.allocType' in found_struct}} + allocType : CUmemAllocationType Allocation type. Currently must be specified as CU_MEM_ALLOCATION_TYPE_PINNED - {{endif}} - {{if 'CUmemPoolProps_st.handleTypes' in found_struct}} + + handleTypes : CUmemAllocationHandleType Handle types that will be supported by allocations from the pool. - {{endif}} - {{if 'CUmemPoolProps_st.location' in found_struct}} + + location : CUmemLocation Location where allocations should reside. - {{endif}} - {{if 'CUmemPoolProps_st.win32SecurityAttributes' in found_struct}} + + win32SecurityAttributes : Any Windows-specific LPSECURITYATTRIBUTES required when CU_MEM_HANDLE_TYPE_WIN32 is specified. This security attribute defines the scope of which exported allocations may be transferred to other processes. In all other cases, this field is required to be zero. - {{endif}} - {{if 'CUmemPoolProps_st.maxSize' in found_struct}} + + maxSize : size_t Maximum pool size. When set to 0, defaults to a system dependent value. - {{endif}} - {{if 'CUmemPoolProps_st.usage' in found_struct}} + + usage : unsigned short Bitmask indicating intended usage for the pool. - {{endif}} - {{if 'CUmemPoolProps_st.reserved' in found_struct}} + + reserved : bytes reserved for future use, must be 0 - {{endif}} + Methods ------- @@ -4591,14 +4283,12 @@ cdef class CUmemPoolProps_st: """ cdef cydriver.CUmemPoolProps_st _pvt_val cdef cydriver.CUmemPoolProps_st* _pvt_ptr - {{if 'CUmemPoolProps_st.location' in found_struct}} + cdef CUmemLocation _location - {{endif}} - {{if 'CUmemPoolProps_st.win32SecurityAttributes' in found_struct}} + + cdef _HelperInputVoidPtr _cywin32SecurityAttributes - {{endif}} -{{endif}} -{{if 'CUmemPoolPtrExportData_st' in found_struct}} + cdef class CUmemPoolPtrExportData_st: """ @@ -4606,10 +4296,10 @@ cdef class CUmemPoolPtrExportData_st: Attributes ---------- - {{if 'CUmemPoolPtrExportData_st.reserved' in found_struct}} + reserved : bytes - {{endif}} + Methods ------- @@ -4618,8 +4308,6 @@ cdef class CUmemPoolPtrExportData_st: """ cdef cydriver.CUmemPoolPtrExportData_st _pvt_val cdef cydriver.CUmemPoolPtrExportData_st* _pvt_ptr -{{endif}} -{{if 'CUmemcpyAttributes_st' in found_struct}} cdef class CUmemcpyAttributes_st: """ @@ -4628,25 +4316,25 @@ cdef class CUmemcpyAttributes_st: Attributes ---------- - {{if 'CUmemcpyAttributes_st.srcAccessOrder' in found_struct}} + srcAccessOrder : CUmemcpySrcAccessOrder Source access ordering to be observed for copies with this attribute. - {{endif}} - {{if 'CUmemcpyAttributes_st.srcLocHint' in found_struct}} + + srcLocHint : CUmemLocation Hint location for the source operand. Ignored when the pointers are not managed memory or memory allocated outside CUDA. - {{endif}} - {{if 'CUmemcpyAttributes_st.dstLocHint' in found_struct}} + + dstLocHint : CUmemLocation Hint location for the destination operand. Ignored when the pointers are not managed memory or memory allocated outside CUDA. - {{endif}} - {{if 'CUmemcpyAttributes_st.flags' in found_struct}} + + flags : unsigned int Additional flags for copies with this attribute. See CUmemcpyFlags - {{endif}} + Methods ------- @@ -4655,14 +4343,12 @@ cdef class CUmemcpyAttributes_st: """ cdef cydriver.CUmemcpyAttributes_st _pvt_val cdef cydriver.CUmemcpyAttributes_st* _pvt_ptr - {{if 'CUmemcpyAttributes_st.srcLocHint' in found_struct}} + cdef CUmemLocation _srcLocHint - {{endif}} - {{if 'CUmemcpyAttributes_st.dstLocHint' in found_struct}} + + cdef CUmemLocation _dstLocHint - {{endif}} -{{endif}} -{{if 'CUoffset3D_st' in found_struct}} + cdef class CUoffset3D_st: """ @@ -4670,18 +4356,18 @@ cdef class CUoffset3D_st: Attributes ---------- - {{if 'CUoffset3D_st.x' in found_struct}} + x : size_t - {{endif}} - {{if 'CUoffset3D_st.y' in found_struct}} + + y : size_t - {{endif}} - {{if 'CUoffset3D_st.z' in found_struct}} + + z : size_t - {{endif}} + Methods ------- @@ -4690,8 +4376,6 @@ cdef class CUoffset3D_st: """ cdef cydriver.CUoffset3D_st _pvt_val cdef cydriver.CUoffset3D_st* _pvt_ptr -{{endif}} -{{if 'CUextent3D_st' in found_struct}} cdef class CUextent3D_st: """ @@ -4699,18 +4383,18 @@ cdef class CUextent3D_st: Attributes ---------- - {{if 'CUextent3D_st.width' in found_struct}} + width : size_t - {{endif}} - {{if 'CUextent3D_st.height' in found_struct}} + + height : size_t - {{endif}} - {{if 'CUextent3D_st.depth' in found_struct}} + + depth : size_t - {{endif}} + Methods ------- @@ -4719,29 +4403,27 @@ cdef class CUextent3D_st: """ cdef cydriver.CUextent3D_st _pvt_val cdef cydriver.CUextent3D_st* _pvt_ptr -{{endif}} -{{if 'CUmemcpy3DOperand_st.op.ptr' in found_struct}} cdef class anon_struct23: """ Attributes ---------- - {{if 'CUmemcpy3DOperand_st.op.ptr.ptr' in found_struct}} + ptr : CUdeviceptr - {{endif}} - {{if 'CUmemcpy3DOperand_st.op.ptr.rowLength' in found_struct}} + + rowLength : size_t - {{endif}} - {{if 'CUmemcpy3DOperand_st.op.ptr.layerHeight' in found_struct}} + + layerHeight : size_t - {{endif}} - {{if 'CUmemcpy3DOperand_st.op.ptr.locHint' in found_struct}} + + locHint : CUmemLocation - {{endif}} + Methods ------- @@ -4749,27 +4431,25 @@ cdef class anon_struct23: Get memory address of class instance """ cdef cydriver.CUmemcpy3DOperand_st* _pvt_ptr - {{if 'CUmemcpy3DOperand_st.op.ptr.ptr' in found_struct}} + cdef CUdeviceptr _ptr - {{endif}} - {{if 'CUmemcpy3DOperand_st.op.ptr.locHint' in found_struct}} + + cdef CUmemLocation _locHint - {{endif}} -{{endif}} -{{if 'CUmemcpy3DOperand_st.op.array' in found_struct}} + cdef class anon_struct24: """ Attributes ---------- - {{if 'CUmemcpy3DOperand_st.op.array.array' in found_struct}} + array : CUarray - {{endif}} - {{if 'CUmemcpy3DOperand_st.op.array.offset' in found_struct}} + + offset : CUoffset3D - {{endif}} + Methods ------- @@ -4777,27 +4457,25 @@ cdef class anon_struct24: Get memory address of class instance """ cdef cydriver.CUmemcpy3DOperand_st* _pvt_ptr - {{if 'CUmemcpy3DOperand_st.op.array.array' in found_struct}} + cdef CUarray _array - {{endif}} - {{if 'CUmemcpy3DOperand_st.op.array.offset' in found_struct}} + + cdef CUoffset3D _offset - {{endif}} -{{endif}} -{{if 'CUmemcpy3DOperand_st.op' in found_struct}} + cdef class anon_union13: """ Attributes ---------- - {{if 'CUmemcpy3DOperand_st.op.ptr' in found_struct}} + ptr : anon_struct23 - {{endif}} - {{if 'CUmemcpy3DOperand_st.op.array' in found_struct}} + + array : anon_struct24 - {{endif}} + Methods ------- @@ -4805,14 +4483,12 @@ cdef class anon_union13: Get memory address of class instance """ cdef cydriver.CUmemcpy3DOperand_st* _pvt_ptr - {{if 'CUmemcpy3DOperand_st.op.ptr' in found_struct}} + cdef anon_struct23 _ptr - {{endif}} - {{if 'CUmemcpy3DOperand_st.op.array' in found_struct}} + + cdef anon_struct24 _array - {{endif}} -{{endif}} -{{if 'CUmemcpy3DOperand_st' in found_struct}} + cdef class CUmemcpy3DOperand_st: """ @@ -4820,14 +4496,14 @@ cdef class CUmemcpy3DOperand_st: Attributes ---------- - {{if 'CUmemcpy3DOperand_st.type' in found_struct}} + type : CUmemcpy3DOperandType - {{endif}} - {{if 'CUmemcpy3DOperand_st.op' in found_struct}} + + op : anon_union13 - {{endif}} + Methods ------- @@ -4836,37 +4512,35 @@ cdef class CUmemcpy3DOperand_st: """ cdef cydriver.CUmemcpy3DOperand_st* _val_ptr cdef cydriver.CUmemcpy3DOperand_st* _pvt_ptr - {{if 'CUmemcpy3DOperand_st.op' in found_struct}} + cdef anon_union13 _op - {{endif}} -{{endif}} -{{if 'CUDA_MEMCPY3D_BATCH_OP_st' in found_struct}} + cdef class CUDA_MEMCPY3D_BATCH_OP_st: """ Attributes ---------- - {{if 'CUDA_MEMCPY3D_BATCH_OP_st.src' in found_struct}} + src : CUmemcpy3DOperand Source memcpy operand. - {{endif}} - {{if 'CUDA_MEMCPY3D_BATCH_OP_st.dst' in found_struct}} + + dst : CUmemcpy3DOperand Destination memcpy operand. - {{endif}} - {{if 'CUDA_MEMCPY3D_BATCH_OP_st.extent' in found_struct}} + + extent : CUextent3D Extents of the memcpy between src and dst. The width, height and depth components must not be 0. - {{endif}} - {{if 'CUDA_MEMCPY3D_BATCH_OP_st.srcAccessOrder' in found_struct}} + + srcAccessOrder : CUmemcpySrcAccessOrder Source access ordering to be observed for copy from src to dst. - {{endif}} - {{if 'CUDA_MEMCPY3D_BATCH_OP_st.flags' in found_struct}} + + flags : unsigned int Additional flags for copies with this attribute. See CUmemcpyFlags - {{endif}} + Methods ------- @@ -4875,17 +4549,15 @@ cdef class CUDA_MEMCPY3D_BATCH_OP_st: """ cdef cydriver.CUDA_MEMCPY3D_BATCH_OP_st _pvt_val cdef cydriver.CUDA_MEMCPY3D_BATCH_OP_st* _pvt_ptr - {{if 'CUDA_MEMCPY3D_BATCH_OP_st.src' in found_struct}} + cdef CUmemcpy3DOperand _src - {{endif}} - {{if 'CUDA_MEMCPY3D_BATCH_OP_st.dst' in found_struct}} + + cdef CUmemcpy3DOperand _dst - {{endif}} - {{if 'CUDA_MEMCPY3D_BATCH_OP_st.extent' in found_struct}} + + cdef CUextent3D _extent - {{endif}} -{{endif}} -{{if 'CUDA_MEM_ALLOC_NODE_PARAMS_v1_st' in found_struct}} + cdef class CUDA_MEM_ALLOC_NODE_PARAMS_v1_st: """ @@ -4893,30 +4565,30 @@ cdef class CUDA_MEM_ALLOC_NODE_PARAMS_v1_st: Attributes ---------- - {{if 'CUDA_MEM_ALLOC_NODE_PARAMS_v1_st.poolProps' in found_struct}} + poolProps : CUmemPoolProps in: location where the allocation should reside (specified in ::location). ::handleTypes must be CU_MEM_HANDLE_TYPE_NONE. IPC is not supported. - {{endif}} - {{if 'CUDA_MEM_ALLOC_NODE_PARAMS_v1_st.accessDescs' in found_struct}} + + accessDescs : CUmemAccessDesc in: array of memory access descriptors. Used to describe peer GPU access - {{endif}} - {{if 'CUDA_MEM_ALLOC_NODE_PARAMS_v1_st.accessDescCount' in found_struct}} + + accessDescCount : size_t in: number of memory access descriptors. Must not exceed the number of GPUs. - {{endif}} - {{if 'CUDA_MEM_ALLOC_NODE_PARAMS_v1_st.bytesize' in found_struct}} + + bytesize : size_t in: size in bytes of the requested allocation - {{endif}} - {{if 'CUDA_MEM_ALLOC_NODE_PARAMS_v1_st.dptr' in found_struct}} + + dptr : CUdeviceptr out: address of the allocation returned by CUDA - {{endif}} + Methods ------- @@ -4925,18 +4597,16 @@ cdef class CUDA_MEM_ALLOC_NODE_PARAMS_v1_st: """ cdef cydriver.CUDA_MEM_ALLOC_NODE_PARAMS_v1_st _pvt_val cdef cydriver.CUDA_MEM_ALLOC_NODE_PARAMS_v1_st* _pvt_ptr - {{if 'CUDA_MEM_ALLOC_NODE_PARAMS_v1_st.poolProps' in found_struct}} + cdef CUmemPoolProps _poolProps - {{endif}} - {{if 'CUDA_MEM_ALLOC_NODE_PARAMS_v1_st.accessDescs' in found_struct}} + + cdef size_t _accessDescs_length cdef cydriver.CUmemAccessDesc* _accessDescs - {{endif}} - {{if 'CUDA_MEM_ALLOC_NODE_PARAMS_v1_st.dptr' in found_struct}} + + cdef CUdeviceptr _dptr - {{endif}} -{{endif}} -{{if 'CUDA_MEM_ALLOC_NODE_PARAMS_v2_st' in found_struct}} + cdef class CUDA_MEM_ALLOC_NODE_PARAMS_v2_st: """ @@ -4944,30 +4614,30 @@ cdef class CUDA_MEM_ALLOC_NODE_PARAMS_v2_st: Attributes ---------- - {{if 'CUDA_MEM_ALLOC_NODE_PARAMS_v2_st.poolProps' in found_struct}} + poolProps : CUmemPoolProps in: location where the allocation should reside (specified in ::location). ::handleTypes must be CU_MEM_HANDLE_TYPE_NONE. IPC is not supported. - {{endif}} - {{if 'CUDA_MEM_ALLOC_NODE_PARAMS_v2_st.accessDescs' in found_struct}} + + accessDescs : CUmemAccessDesc in: array of memory access descriptors. Used to describe peer GPU access - {{endif}} - {{if 'CUDA_MEM_ALLOC_NODE_PARAMS_v2_st.accessDescCount' in found_struct}} + + accessDescCount : size_t in: number of memory access descriptors. Must not exceed the number of GPUs. - {{endif}} - {{if 'CUDA_MEM_ALLOC_NODE_PARAMS_v2_st.bytesize' in found_struct}} + + bytesize : size_t in: size in bytes of the requested allocation - {{endif}} - {{if 'CUDA_MEM_ALLOC_NODE_PARAMS_v2_st.dptr' in found_struct}} + + dptr : CUdeviceptr out: address of the allocation returned by CUDA - {{endif}} + Methods ------- @@ -4976,18 +4646,16 @@ cdef class CUDA_MEM_ALLOC_NODE_PARAMS_v2_st: """ cdef cydriver.CUDA_MEM_ALLOC_NODE_PARAMS_v2_st _pvt_val cdef cydriver.CUDA_MEM_ALLOC_NODE_PARAMS_v2_st* _pvt_ptr - {{if 'CUDA_MEM_ALLOC_NODE_PARAMS_v2_st.poolProps' in found_struct}} + cdef CUmemPoolProps _poolProps - {{endif}} - {{if 'CUDA_MEM_ALLOC_NODE_PARAMS_v2_st.accessDescs' in found_struct}} + + cdef size_t _accessDescs_length cdef cydriver.CUmemAccessDesc* _accessDescs - {{endif}} - {{if 'CUDA_MEM_ALLOC_NODE_PARAMS_v2_st.dptr' in found_struct}} + + cdef CUdeviceptr _dptr - {{endif}} -{{endif}} -{{if 'CUDA_MEM_FREE_NODE_PARAMS_st' in found_struct}} + cdef class CUDA_MEM_FREE_NODE_PARAMS_st: """ @@ -4995,10 +4663,10 @@ cdef class CUDA_MEM_FREE_NODE_PARAMS_st: Attributes ---------- - {{if 'CUDA_MEM_FREE_NODE_PARAMS_st.dptr' in found_struct}} + dptr : CUdeviceptr in: the pointer to free - {{endif}} + Methods ------- @@ -5007,11 +4675,9 @@ cdef class CUDA_MEM_FREE_NODE_PARAMS_st: """ cdef cydriver.CUDA_MEM_FREE_NODE_PARAMS_st _pvt_val cdef cydriver.CUDA_MEM_FREE_NODE_PARAMS_st* _pvt_ptr - {{if 'CUDA_MEM_FREE_NODE_PARAMS_st.dptr' in found_struct}} + cdef CUdeviceptr _dptr - {{endif}} -{{endif}} -{{if 'CUDA_CHILD_GRAPH_NODE_PARAMS_st' in found_struct}} + cdef class CUDA_CHILD_GRAPH_NODE_PARAMS_st: """ @@ -5019,18 +4685,18 @@ cdef class CUDA_CHILD_GRAPH_NODE_PARAMS_st: Attributes ---------- - {{if 'CUDA_CHILD_GRAPH_NODE_PARAMS_st.graph' in found_struct}} + graph : CUgraph 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 'CUDA_CHILD_GRAPH_NODE_PARAMS_st.ownership' in found_struct}} + + ownership : CUgraphChildGraphNodeOwnership The ownership relationship of the child graph node. - {{endif}} + Methods ------- @@ -5039,11 +4705,9 @@ cdef class CUDA_CHILD_GRAPH_NODE_PARAMS_st: """ cdef cydriver.CUDA_CHILD_GRAPH_NODE_PARAMS_st _pvt_val cdef cydriver.CUDA_CHILD_GRAPH_NODE_PARAMS_st* _pvt_ptr - {{if 'CUDA_CHILD_GRAPH_NODE_PARAMS_st.graph' in found_struct}} + cdef CUgraph _graph - {{endif}} -{{endif}} -{{if 'CUDA_EVENT_RECORD_NODE_PARAMS_st' in found_struct}} + cdef class CUDA_EVENT_RECORD_NODE_PARAMS_st: """ @@ -5051,10 +4715,10 @@ cdef class CUDA_EVENT_RECORD_NODE_PARAMS_st: Attributes ---------- - {{if 'CUDA_EVENT_RECORD_NODE_PARAMS_st.event' in found_struct}} + event : CUevent The event to record when the node executes - {{endif}} + Methods ------- @@ -5063,11 +4727,9 @@ cdef class CUDA_EVENT_RECORD_NODE_PARAMS_st: """ cdef cydriver.CUDA_EVENT_RECORD_NODE_PARAMS_st _pvt_val cdef cydriver.CUDA_EVENT_RECORD_NODE_PARAMS_st* _pvt_ptr - {{if 'CUDA_EVENT_RECORD_NODE_PARAMS_st.event' in found_struct}} + cdef CUevent _event - {{endif}} -{{endif}} -{{if 'CUDA_EVENT_WAIT_NODE_PARAMS_st' in found_struct}} + cdef class CUDA_EVENT_WAIT_NODE_PARAMS_st: """ @@ -5075,10 +4737,10 @@ cdef class CUDA_EVENT_WAIT_NODE_PARAMS_st: Attributes ---------- - {{if 'CUDA_EVENT_WAIT_NODE_PARAMS_st.event' in found_struct}} + event : CUevent The event to wait on from the node - {{endif}} + Methods ------- @@ -5087,11 +4749,9 @@ cdef class CUDA_EVENT_WAIT_NODE_PARAMS_st: """ cdef cydriver.CUDA_EVENT_WAIT_NODE_PARAMS_st _pvt_val cdef cydriver.CUDA_EVENT_WAIT_NODE_PARAMS_st* _pvt_ptr - {{if 'CUDA_EVENT_WAIT_NODE_PARAMS_st.event' in found_struct}} + cdef CUevent _event - {{endif}} -{{endif}} -{{if 'CUgraphNodeParams_st' in found_struct}} + cdef class CUgraphNodeParams_st: """ @@ -5099,74 +4759,74 @@ cdef class CUgraphNodeParams_st: Attributes ---------- - {{if 'CUgraphNodeParams_st.type' in found_struct}} + type : CUgraphNodeType Type of the node - {{endif}} - {{if 'CUgraphNodeParams_st.reserved0' in found_struct}} + + reserved0 : list[int] Reserved. Must be zero. - {{endif}} - {{if 'CUgraphNodeParams_st.reserved1' in found_struct}} + + reserved1 : list[long long] Padding. Unused bytes must be zero. - {{endif}} - {{if 'CUgraphNodeParams_st.kernel' in found_struct}} + + kernel : CUDA_KERNEL_NODE_PARAMS_v3 Kernel node parameters. - {{endif}} - {{if 'CUgraphNodeParams_st.memcpy' in found_struct}} + + memcpy : CUDA_MEMCPY_NODE_PARAMS Memcpy node parameters. - {{endif}} - {{if 'CUgraphNodeParams_st.memset' in found_struct}} + + memset : CUDA_MEMSET_NODE_PARAMS_v2 Memset node parameters. - {{endif}} - {{if 'CUgraphNodeParams_st.host' in found_struct}} + + host : CUDA_HOST_NODE_PARAMS_v2 Host node parameters. - {{endif}} - {{if 'CUgraphNodeParams_st.graph' in found_struct}} + + graph : CUDA_CHILD_GRAPH_NODE_PARAMS Child graph node parameters. - {{endif}} - {{if 'CUgraphNodeParams_st.eventWait' in found_struct}} + + eventWait : CUDA_EVENT_WAIT_NODE_PARAMS Event wait node parameters. - {{endif}} - {{if 'CUgraphNodeParams_st.eventRecord' in found_struct}} + + eventRecord : CUDA_EVENT_RECORD_NODE_PARAMS Event record node parameters. - {{endif}} - {{if 'CUgraphNodeParams_st.extSemSignal' in found_struct}} + + extSemSignal : CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2 External semaphore signal node parameters. - {{endif}} - {{if 'CUgraphNodeParams_st.extSemWait' in found_struct}} + + extSemWait : CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2 External semaphore wait node parameters. - {{endif}} - {{if 'CUgraphNodeParams_st.alloc' in found_struct}} + + alloc : CUDA_MEM_ALLOC_NODE_PARAMS_v2 Memory allocation node parameters. - {{endif}} - {{if 'CUgraphNodeParams_st.free' in found_struct}} + + free : CUDA_MEM_FREE_NODE_PARAMS Memory free node parameters. - {{endif}} - {{if 'CUgraphNodeParams_st.memOp' in found_struct}} + + memOp : CUDA_BATCH_MEM_OP_NODE_PARAMS_v2 MemOp node parameters. - {{endif}} - {{if 'CUgraphNodeParams_st.conditional' in found_struct}} + + conditional : CUDA_CONDITIONAL_NODE_PARAMS Conditional node parameters. - {{endif}} - {{if 'CUgraphNodeParams_st.reserved2' in found_struct}} + + reserved2 : long long Reserved bytes. Must be zero. - {{endif}} + Methods ------- @@ -5175,47 +4835,45 @@ cdef class CUgraphNodeParams_st: """ cdef cydriver.CUgraphNodeParams_st* _val_ptr cdef cydriver.CUgraphNodeParams_st* _pvt_ptr - {{if 'CUgraphNodeParams_st.kernel' in found_struct}} + cdef CUDA_KERNEL_NODE_PARAMS_v3 _kernel - {{endif}} - {{if 'CUgraphNodeParams_st.memcpy' in found_struct}} + + cdef CUDA_MEMCPY_NODE_PARAMS _memcpy - {{endif}} - {{if 'CUgraphNodeParams_st.memset' in found_struct}} + + cdef CUDA_MEMSET_NODE_PARAMS_v2 _memset - {{endif}} - {{if 'CUgraphNodeParams_st.host' in found_struct}} + + cdef CUDA_HOST_NODE_PARAMS_v2 _host - {{endif}} - {{if 'CUgraphNodeParams_st.graph' in found_struct}} + + cdef CUDA_CHILD_GRAPH_NODE_PARAMS _graph - {{endif}} - {{if 'CUgraphNodeParams_st.eventWait' in found_struct}} + + cdef CUDA_EVENT_WAIT_NODE_PARAMS _eventWait - {{endif}} - {{if 'CUgraphNodeParams_st.eventRecord' in found_struct}} + + cdef CUDA_EVENT_RECORD_NODE_PARAMS _eventRecord - {{endif}} - {{if 'CUgraphNodeParams_st.extSemSignal' in found_struct}} + + cdef CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2 _extSemSignal - {{endif}} - {{if 'CUgraphNodeParams_st.extSemWait' in found_struct}} + + cdef CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2 _extSemWait - {{endif}} - {{if 'CUgraphNodeParams_st.alloc' in found_struct}} + + cdef CUDA_MEM_ALLOC_NODE_PARAMS_v2 _alloc - {{endif}} - {{if 'CUgraphNodeParams_st.free' in found_struct}} + + cdef CUDA_MEM_FREE_NODE_PARAMS _free - {{endif}} - {{if 'CUgraphNodeParams_st.memOp' in found_struct}} + + cdef CUDA_BATCH_MEM_OP_NODE_PARAMS_v2 _memOp - {{endif}} - {{if 'CUgraphNodeParams_st.conditional' in found_struct}} + + cdef CUDA_CONDITIONAL_NODE_PARAMS _conditional - {{endif}} -{{endif}} -{{if 'CUcheckpointLockArgs_st' in found_struct}} + cdef class CUcheckpointLockArgs_st: """ @@ -5223,19 +4881,19 @@ cdef class CUcheckpointLockArgs_st: Attributes ---------- - {{if 'CUcheckpointLockArgs_st.timeoutMs' in found_struct}} + timeoutMs : unsigned int Timeout in milliseconds to attempt to lock the process, 0 indicates no timeout - {{endif}} - {{if 'CUcheckpointLockArgs_st.reserved0' in found_struct}} + + reserved0 : unsigned int Reserved for future use, must be zero - {{endif}} - {{if 'CUcheckpointLockArgs_st.reserved1' in found_struct}} + + reserved1 : list[cuuint64_t] Reserved for future use, must be zeroed - {{endif}} + Methods ------- @@ -5244,8 +4902,6 @@ cdef class CUcheckpointLockArgs_st: """ cdef cydriver.CUcheckpointLockArgs_st _pvt_val cdef cydriver.CUcheckpointLockArgs_st* _pvt_ptr -{{endif}} -{{if 'CUcheckpointCheckpointArgs_st' in found_struct}} cdef class CUcheckpointCheckpointArgs_st: """ @@ -5253,10 +4909,10 @@ cdef class CUcheckpointCheckpointArgs_st: Attributes ---------- - {{if 'CUcheckpointCheckpointArgs_st.reserved' in found_struct}} + reserved : list[cuuint64_t] Reserved for future use, must be zeroed - {{endif}} + Methods ------- @@ -5265,8 +4921,6 @@ cdef class CUcheckpointCheckpointArgs_st: """ cdef cydriver.CUcheckpointCheckpointArgs_st _pvt_val cdef cydriver.CUcheckpointCheckpointArgs_st* _pvt_ptr -{{endif}} -{{if 'CUcheckpointGpuPair_st' in found_struct}} cdef class CUcheckpointGpuPair_st: """ @@ -5274,14 +4928,14 @@ cdef class CUcheckpointGpuPair_st: Attributes ---------- - {{if 'CUcheckpointGpuPair_st.oldUuid' in found_struct}} + oldUuid : CUuuid UUID of the GPU that was checkpointed - {{endif}} - {{if 'CUcheckpointGpuPair_st.newUuid' in found_struct}} + + newUuid : CUuuid UUID of the GPU to restore onto - {{endif}} + Methods ------- @@ -5290,14 +4944,12 @@ cdef class CUcheckpointGpuPair_st: """ cdef cydriver.CUcheckpointGpuPair_st _pvt_val cdef cydriver.CUcheckpointGpuPair_st* _pvt_ptr - {{if 'CUcheckpointGpuPair_st.oldUuid' in found_struct}} + cdef CUuuid _oldUuid - {{endif}} - {{if 'CUcheckpointGpuPair_st.newUuid' in found_struct}} + + cdef CUuuid _newUuid - {{endif}} -{{endif}} -{{if 'CUcheckpointRestoreArgs_st' in found_struct}} + cdef class CUcheckpointRestoreArgs_st: """ @@ -5305,23 +4957,23 @@ cdef class CUcheckpointRestoreArgs_st: Attributes ---------- - {{if 'CUcheckpointRestoreArgs_st.gpuPairs' in found_struct}} + gpuPairs : CUcheckpointGpuPair Pointer to array of gpu pairs that indicate how to remap GPUs during restore - {{endif}} - {{if 'CUcheckpointRestoreArgs_st.gpuPairsCount' in found_struct}} + + gpuPairsCount : unsigned int Number of gpu pairs to remap - {{endif}} - {{if 'CUcheckpointRestoreArgs_st.reserved' in found_struct}} + + reserved : bytes Reserved for future use, must be zeroed - {{endif}} - {{if 'CUcheckpointRestoreArgs_st.reserved1' in found_struct}} + + reserved1 : cuuint64_t Reserved for future use, must be zeroed - {{endif}} + Methods ------- @@ -5330,15 +4982,13 @@ cdef class CUcheckpointRestoreArgs_st: """ cdef cydriver.CUcheckpointRestoreArgs_st _pvt_val cdef cydriver.CUcheckpointRestoreArgs_st* _pvt_ptr - {{if 'CUcheckpointRestoreArgs_st.gpuPairs' in found_struct}} + cdef size_t _gpuPairs_length cdef cydriver.CUcheckpointGpuPair* _gpuPairs - {{endif}} - {{if 'CUcheckpointRestoreArgs_st.reserved1' in found_struct}} + + cdef cuuint64_t _reserved1 - {{endif}} -{{endif}} -{{if 'CUcheckpointUnlockArgs_st' in found_struct}} + cdef class CUcheckpointUnlockArgs_st: """ @@ -5346,10 +4996,10 @@ cdef class CUcheckpointUnlockArgs_st: Attributes ---------- - {{if 'CUcheckpointUnlockArgs_st.reserved' in found_struct}} + reserved : list[cuuint64_t] Reserved for future use, must be zeroed - {{endif}} + Methods ------- @@ -5358,8 +5008,6 @@ cdef class CUcheckpointUnlockArgs_st: """ cdef cydriver.CUcheckpointUnlockArgs_st _pvt_val cdef cydriver.CUcheckpointUnlockArgs_st* _pvt_ptr -{{endif}} -{{if 'CUmemDecompressParams_st' in found_struct}} cdef class CUmemDecompressParams_st: """ @@ -5368,43 +5016,43 @@ cdef class CUmemDecompressParams_st: Attributes ---------- - {{if 'CUmemDecompressParams_st.srcNumBytes' in found_struct}} + srcNumBytes : size_t The number of bytes to be read and decompressed from CUmemDecompressParams_st.src. - {{endif}} - {{if 'CUmemDecompressParams_st.dstNumBytes' in found_struct}} + + dstNumBytes : size_t The number of bytes that the decompression operation will be expected to write to CUmemDecompressParams_st.dst. This value is optional; if present, it may be used by the CUDA driver as a heuristic for scheduling the individual decompression operations. - {{endif}} - {{if 'CUmemDecompressParams_st.dstActBytes' in found_struct}} + + dstActBytes : cuuint32_t After the decompression operation has completed, the actual number of bytes written to CUmemDecompressParams.dst will be recorded as a 32-bit unsigned integer in the memory at this address. - {{endif}} - {{if 'CUmemDecompressParams_st.src' in found_struct}} + + src : Any Pointer to a buffer of at least CUmemDecompressParams_st.srcNumBytes compressed bytes. - {{endif}} - {{if 'CUmemDecompressParams_st.dst' in found_struct}} + + dst : Any Pointer to a buffer where the decompressed data will be written. The number of bytes written to this location will be recorded in the memory pointed to by CUmemDecompressParams_st.dstActBytes - {{endif}} - {{if 'CUmemDecompressParams_st.algo' in found_struct}} + + algo : CUmemDecompressAlgorithm The decompression algorithm to use. - {{endif}} - {{if 'CUmemDecompressParams_st.padding' in found_struct}} + + padding : bytes - {{endif}} + Methods ------- @@ -5413,40 +5061,38 @@ cdef class CUmemDecompressParams_st: """ cdef cydriver.CUmemDecompressParams_st _pvt_val cdef cydriver.CUmemDecompressParams_st* _pvt_ptr - {{if 'CUmemDecompressParams_st.src' in found_struct}} + cdef _HelperInputVoidPtr _cysrc - {{endif}} - {{if 'CUmemDecompressParams_st.dst' in found_struct}} + + cdef _HelperInputVoidPtr _cydst - {{endif}} -{{endif}} -{{if 'CUdevSmResource_st' in found_struct}} + cdef class CUdevSmResource_st: """ Attributes ---------- - {{if 'CUdevSmResource_st.smCount' in found_struct}} + smCount : unsigned int The amount of streaming multiprocessors available in this resource. - {{endif}} - {{if 'CUdevSmResource_st.minSmPartitionSize' in found_struct}} + + minSmPartitionSize : unsigned int The minimum number of streaming multiprocessors required to partition this resource. - {{endif}} - {{if 'CUdevSmResource_st.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 'CUdevSmResource_st.flags' in found_struct}} + + flags : unsigned int The flags set on this SM resource. For possible values see CUdevSmResourceGroup_flags. - {{endif}} + Methods ------- @@ -5455,25 +5101,23 @@ cdef class CUdevSmResource_st: """ cdef cydriver.CUdevSmResource_st _pvt_val cdef cydriver.CUdevSmResource_st* _pvt_ptr -{{endif}} -{{if 'CUdevWorkqueueConfigResource_st' in found_struct}} cdef class CUdevWorkqueueConfigResource_st: """ Attributes ---------- - {{if 'CUdevWorkqueueConfigResource_st.device' in found_struct}} + device : CUdevice The device on which the workqueue resources are available - {{endif}} - {{if 'CUdevWorkqueueConfigResource_st.wqConcurrencyLimit' in found_struct}} + + wqConcurrencyLimit : unsigned int The expected maximum number of concurrent stream-ordered workloads - {{endif}} - {{if 'CUdevWorkqueueConfigResource_st.sharingScope' in found_struct}} + + sharingScope : CUdevWorkqueueConfigScope The sharing scope for the workqueue resources - {{endif}} + Methods ------- @@ -5482,20 +5126,18 @@ cdef class CUdevWorkqueueConfigResource_st: """ cdef cydriver.CUdevWorkqueueConfigResource_st _pvt_val cdef cydriver.CUdevWorkqueueConfigResource_st* _pvt_ptr - {{if 'CUdevWorkqueueConfigResource_st.device' in found_struct}} + cdef CUdevice _device - {{endif}} -{{endif}} -{{if 'CUdevWorkqueueResource_st' in found_struct}} + cdef class CUdevWorkqueueResource_st: """ Attributes ---------- - {{if 'CUdevWorkqueueResource_st.reserved' in found_struct}} + reserved : bytes Reserved for future use - {{endif}} + Methods ------- @@ -5504,36 +5146,34 @@ cdef class CUdevWorkqueueResource_st: """ cdef cydriver.CUdevWorkqueueResource_st _pvt_val cdef cydriver.CUdevWorkqueueResource_st* _pvt_ptr -{{endif}} -{{if 'CU_DEV_SM_RESOURCE_GROUP_PARAMS_st' in found_struct}} cdef class CU_DEV_SM_RESOURCE_GROUP_PARAMS_st: """ Attributes ---------- - {{if 'CU_DEV_SM_RESOURCE_GROUP_PARAMS_st.smCount' in found_struct}} + smCount : unsigned int The amount of SMs available in this resource. - {{endif}} - {{if 'CU_DEV_SM_RESOURCE_GROUP_PARAMS_st.coscheduledSmCount' in found_struct}} + + coscheduledSmCount : unsigned int The amount of co-scheduled SMs grouped together for locality purposes. - {{endif}} - {{if 'CU_DEV_SM_RESOURCE_GROUP_PARAMS_st.preferredCoscheduledSmCount' in found_struct}} + + preferredCoscheduledSmCount : unsigned int When possible, combine co-scheduled groups together into larger groups of this size. - {{endif}} - {{if 'CU_DEV_SM_RESOURCE_GROUP_PARAMS_st.flags' in found_struct}} + + flags : unsigned int The flags set on this SM resource group. For possible values see CUdevSmResourceGroup_flags. - {{endif}} - {{if 'CU_DEV_SM_RESOURCE_GROUP_PARAMS_st.reserved' in found_struct}} + + reserved : list[unsigned int] - {{endif}} + Methods ------- @@ -5542,43 +5182,41 @@ cdef class CU_DEV_SM_RESOURCE_GROUP_PARAMS_st: """ cdef cydriver.CU_DEV_SM_RESOURCE_GROUP_PARAMS_st _pvt_val cdef cydriver.CU_DEV_SM_RESOURCE_GROUP_PARAMS_st* _pvt_ptr -{{endif}} -{{if 'CUdevResource_st' in found_struct}} cdef class CUdevResource_st: """ Attributes ---------- - {{if 'CUdevResource_st.type' in found_struct}} + type : CUdevResourceType Type of resource, dictates which union field was last set - {{endif}} - {{if 'CUdevResource_st._internal_padding' in found_struct}} + + _internal_padding : bytes - {{endif}} - {{if 'CUdevResource_st.sm' in found_struct}} + + sm : CUdevSmResource Resource corresponding to CU_DEV_RESOURCE_TYPE_SM `typename`. - {{endif}} - {{if 'CUdevResource_st.wqConfig' in found_struct}} + + wqConfig : CUdevWorkqueueConfigResource Resource corresponding to CU_DEV_RESOURCE_TYPE_WORKQUEUE_CONFIG `typename`. - {{endif}} - {{if 'CUdevResource_st.wq' in found_struct}} + + wq : CUdevWorkqueueResource Resource corresponding to CU_DEV_RESOURCE_TYPE_WORKQUEUE `typename`. - {{endif}} - {{if 'CUdevResource_st._oversize' in found_struct}} + + _oversize : bytes - {{endif}} - {{if 'CUdevResource_st.nextResource' in found_struct}} + + nextResource : CUdevResource_st - {{endif}} + Methods ------- @@ -5587,34 +5225,32 @@ cdef class CUdevResource_st: """ cdef cydriver.CUdevResource_st* _val_ptr cdef cydriver.CUdevResource_st* _pvt_ptr - {{if 'CUdevResource_st.sm' in found_struct}} + cdef CUdevSmResource _sm - {{endif}} - {{if 'CUdevResource_st.wqConfig' in found_struct}} + + cdef CUdevWorkqueueConfigResource _wqConfig - {{endif}} - {{if 'CUdevResource_st.wq' in found_struct}} + + cdef CUdevWorkqueueResource _wq - {{endif}} - {{if 'CUdevResource_st.nextResource' in found_struct}} + + cdef size_t _nextResource_length cdef cydriver.CUdevResource_st* _nextResource - {{endif}} -{{endif}} -{{if True}} + cdef class anon_union16: """ Attributes ---------- - {{if True}} + pArray : list[CUarray] - {{endif}} - {{if True}} + + pPitch : list[Any] - {{endif}} + Methods ------- @@ -5622,8 +5258,6 @@ cdef class anon_union16: Get memory address of class instance """ cdef cydriver.CUeglFrame_st* _pvt_ptr -{{endif}} -{{if True}} cdef class CUeglFrame_st: """ @@ -5633,46 +5267,46 @@ cdef class CUeglFrame_st: Attributes ---------- - {{if True}} + frame : anon_union16 - {{endif}} - {{if True}} + + width : unsigned int Width of first plane - {{endif}} - {{if True}} + + height : unsigned int Height of first plane - {{endif}} - {{if True}} + + depth : unsigned int Depth of first plane - {{endif}} - {{if True}} + + pitch : unsigned int Pitch of first plane - {{endif}} - {{if True}} + + planeCount : unsigned int Number of planes - {{endif}} - {{if True}} + + numChannels : unsigned int Number of channels for the plane - {{endif}} - {{if True}} + + frameType : CUeglFrameType Array or Pitch - {{endif}} - {{if True}} + + eglColorFormat : CUeglColorFormat CUDA EGL Color Format - {{endif}} - {{if True}} + + cuFormat : CUarray_format CUDA Array Format - {{endif}} + Methods ------- @@ -5681,11 +5315,9 @@ cdef class CUeglFrame_st: """ cdef cydriver.CUeglFrame_st* _val_ptr cdef cydriver.CUeglFrame_st* _pvt_ptr - {{if True}} + cdef anon_union16 _frame - {{endif}} -{{endif}} -{{if 'CUdeviceptr' in found_types}} + cdef class CUdeviceptr: """ @@ -5700,8 +5332,6 @@ cdef class CUdeviceptr: """ cdef cydriver.CUdeviceptr _pvt_val cdef cydriver.CUdeviceptr* _pvt_ptr -{{endif}} -{{if 'CUdevice' in found_types}} cdef class CUdevice: """ @@ -5716,8 +5346,6 @@ cdef class CUdevice: """ cdef cydriver.CUdevice _pvt_val cdef cydriver.CUdevice* _pvt_ptr -{{endif}} -{{if 'CUtexObject' in found_types}} cdef class CUtexObject: """ @@ -5732,8 +5360,6 @@ cdef class CUtexObject: """ cdef cydriver.CUtexObject _pvt_val cdef cydriver.CUtexObject* _pvt_ptr -{{endif}} -{{if 'CUsurfObject' in found_types}} cdef class CUsurfObject: """ @@ -5748,8 +5374,6 @@ cdef class CUsurfObject: """ cdef cydriver.CUsurfObject _pvt_val cdef cydriver.CUsurfObject* _pvt_ptr -{{endif}} -{{if 'CUgraphConditionalHandle' in found_types}} cdef class CUgraphConditionalHandle: """ @@ -5762,17 +5386,15 @@ cdef class CUgraphConditionalHandle: """ cdef cydriver.CUgraphConditionalHandle _pvt_val cdef cydriver.CUgraphConditionalHandle* _pvt_ptr -{{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 ------- @@ -5780,8 +5402,6 @@ cdef class CUuuid(CUuuid_st): Get memory address of class instance """ pass -{{endif}} -{{if 'CUmemFabricHandle_v1' in found_types}} cdef class CUmemFabricHandle_v1(CUmemFabricHandle_st): """ @@ -5792,10 +5412,10 @@ cdef class CUmemFabricHandle_v1(CUmemFabricHandle_st): Attributes ---------- - {{if 'CUmemFabricHandle_st.data' in found_struct}} + data : bytes - {{endif}} + Methods ------- @@ -5803,8 +5423,6 @@ cdef class CUmemFabricHandle_v1(CUmemFabricHandle_st): Get memory address of class instance """ pass -{{endif}} -{{if 'CUmemFabricHandle' in found_types}} cdef class CUmemFabricHandle(CUmemFabricHandle_v1): """ @@ -5815,10 +5433,10 @@ cdef class CUmemFabricHandle(CUmemFabricHandle_v1): Attributes ---------- - {{if 'CUmemFabricHandle_st.data' in found_struct}} + data : bytes - {{endif}} + Methods ------- @@ -5826,8 +5444,6 @@ cdef class CUmemFabricHandle(CUmemFabricHandle_v1): Get memory address of class instance """ pass -{{endif}} -{{if 'CUipcEventHandle_v1' in found_types}} cdef class CUipcEventHandle_v1(CUipcEventHandle_st): """ @@ -5835,10 +5451,10 @@ cdef class CUipcEventHandle_v1(CUipcEventHandle_st): Attributes ---------- - {{if 'CUipcEventHandle_st.reserved' in found_struct}} + reserved : bytes - {{endif}} + Methods ------- @@ -5846,8 +5462,6 @@ cdef class CUipcEventHandle_v1(CUipcEventHandle_st): Get memory address of class instance """ pass -{{endif}} -{{if 'CUipcEventHandle' in found_types}} cdef class CUipcEventHandle(CUipcEventHandle_v1): """ @@ -5855,10 +5469,10 @@ cdef class CUipcEventHandle(CUipcEventHandle_v1): Attributes ---------- - {{if 'CUipcEventHandle_st.reserved' in found_struct}} + reserved : bytes - {{endif}} + Methods ------- @@ -5866,8 +5480,6 @@ cdef class CUipcEventHandle(CUipcEventHandle_v1): Get memory address of class instance """ pass -{{endif}} -{{if 'CUipcMemHandle_v1' in found_types}} cdef class CUipcMemHandle_v1(CUipcMemHandle_st): """ @@ -5875,10 +5487,10 @@ cdef class CUipcMemHandle_v1(CUipcMemHandle_st): Attributes ---------- - {{if 'CUipcMemHandle_st.reserved' in found_struct}} + reserved : bytes - {{endif}} + Methods ------- @@ -5886,8 +5498,6 @@ cdef class CUipcMemHandle_v1(CUipcMemHandle_st): Get memory address of class instance """ pass -{{endif}} -{{if 'CUipcMemHandle' in found_types}} cdef class CUipcMemHandle(CUipcMemHandle_v1): """ @@ -5895,10 +5505,10 @@ cdef class CUipcMemHandle(CUipcMemHandle_v1): Attributes ---------- - {{if 'CUipcMemHandle_st.reserved' in found_struct}} + reserved : bytes - {{endif}} + Methods ------- @@ -5906,8 +5516,6 @@ cdef class CUipcMemHandle(CUipcMemHandle_v1): Get memory address of class instance """ pass -{{endif}} -{{if 'CUstreamBatchMemOpParams_v1' in found_types}} cdef class CUstreamBatchMemOpParams_v1(CUstreamBatchMemOpParams_union): """ @@ -5915,37 +5523,37 @@ cdef class CUstreamBatchMemOpParams_v1(CUstreamBatchMemOpParams_union): Attributes ---------- - {{if 'CUstreamBatchMemOpParams_union.operation' in found_struct}} + operation : CUstreamBatchMemOpType Operation. This is the first field of all the union elemets and acts as a TAG to determine which union member is valid. - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.waitValue' in found_struct}} + + waitValue : CUstreamMemOpWaitValueParams_st Params for CU_STREAM_MEM_OP_WAIT_VALUE_32 and CU_STREAM_MEM_OP_WAIT_VALUE_64 operations. - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.writeValue' in found_struct}} + + writeValue : CUstreamMemOpWriteValueParams_st Params for CU_STREAM_MEM_OP_WRITE_VALUE_32 and CU_STREAM_MEM_OP_WRITE_VALUE_64 operations. - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.flushRemoteWrites' in found_struct}} + + flushRemoteWrites : CUstreamMemOpFlushRemoteWritesParams_st Params for CU_STREAM_MEM_OP_FLUSH_REMOTE_WRITES operations. - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.memoryBarrier' in found_struct}} + + memoryBarrier : CUstreamMemOpMemoryBarrierParams_st Params for CU_STREAM_MEM_OP_BARRIER operations. - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.atomicReduction' in found_struct}} + + atomicReduction : CUstreamMemOpAtomicReductionParams_st - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.pad' in found_struct}} + + pad : list[cuuint64_t] - {{endif}} + Methods ------- @@ -5953,8 +5561,6 @@ cdef class CUstreamBatchMemOpParams_v1(CUstreamBatchMemOpParams_union): Get memory address of class instance """ pass -{{endif}} -{{if 'CUstreamBatchMemOpParams' in found_types}} cdef class CUstreamBatchMemOpParams(CUstreamBatchMemOpParams_v1): """ @@ -5962,37 +5568,37 @@ cdef class CUstreamBatchMemOpParams(CUstreamBatchMemOpParams_v1): Attributes ---------- - {{if 'CUstreamBatchMemOpParams_union.operation' in found_struct}} + operation : CUstreamBatchMemOpType Operation. This is the first field of all the union elemets and acts as a TAG to determine which union member is valid. - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.waitValue' in found_struct}} + + waitValue : CUstreamMemOpWaitValueParams_st Params for CU_STREAM_MEM_OP_WAIT_VALUE_32 and CU_STREAM_MEM_OP_WAIT_VALUE_64 operations. - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.writeValue' in found_struct}} + + writeValue : CUstreamMemOpWriteValueParams_st Params for CU_STREAM_MEM_OP_WRITE_VALUE_32 and CU_STREAM_MEM_OP_WRITE_VALUE_64 operations. - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.flushRemoteWrites' in found_struct}} + + flushRemoteWrites : CUstreamMemOpFlushRemoteWritesParams_st Params for CU_STREAM_MEM_OP_FLUSH_REMOTE_WRITES operations. - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.memoryBarrier' in found_struct}} + + memoryBarrier : CUstreamMemOpMemoryBarrierParams_st Params for CU_STREAM_MEM_OP_BARRIER operations. - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.atomicReduction' in found_struct}} + + atomicReduction : CUstreamMemOpAtomicReductionParams_st - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.pad' in found_struct}} + + pad : list[cuuint64_t] - {{endif}} + Methods ------- @@ -6000,8 +5606,6 @@ cdef class CUstreamBatchMemOpParams(CUstreamBatchMemOpParams_v1): Get memory address of class instance """ pass -{{endif}} -{{if 'CUDA_BATCH_MEM_OP_NODE_PARAMS_v1' in found_types}} cdef class CUDA_BATCH_MEM_OP_NODE_PARAMS_v1(CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st): """ @@ -6010,22 +5614,22 @@ cdef class CUDA_BATCH_MEM_OP_NODE_PARAMS_v1(CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st) Attributes ---------- - {{if 'CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st.ctx' in found_struct}} + ctx : CUcontext - {{endif}} - {{if 'CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st.count' in found_struct}} + + count : unsigned int - {{endif}} - {{if 'CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st.paramArray' in found_struct}} + + paramArray : CUstreamBatchMemOpParams - {{endif}} - {{if 'CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st.flags' in found_struct}} + + flags : unsigned int - {{endif}} + Methods ------- @@ -6033,8 +5637,6 @@ cdef class CUDA_BATCH_MEM_OP_NODE_PARAMS_v1(CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st) Get memory address of class instance """ pass -{{endif}} -{{if 'CUDA_BATCH_MEM_OP_NODE_PARAMS' in found_types}} cdef class CUDA_BATCH_MEM_OP_NODE_PARAMS(CUDA_BATCH_MEM_OP_NODE_PARAMS_v1): """ @@ -6043,22 +5645,22 @@ cdef class CUDA_BATCH_MEM_OP_NODE_PARAMS(CUDA_BATCH_MEM_OP_NODE_PARAMS_v1): Attributes ---------- - {{if 'CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st.ctx' in found_struct}} + ctx : CUcontext - {{endif}} - {{if 'CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st.count' in found_struct}} + + count : unsigned int - {{endif}} - {{if 'CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st.paramArray' in found_struct}} + + paramArray : CUstreamBatchMemOpParams - {{endif}} - {{if 'CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st.flags' in found_struct}} + + flags : unsigned int - {{endif}} + Methods ------- @@ -6066,8 +5668,6 @@ cdef class CUDA_BATCH_MEM_OP_NODE_PARAMS(CUDA_BATCH_MEM_OP_NODE_PARAMS_v1): Get memory address of class instance """ pass -{{endif}} -{{if 'CUDA_BATCH_MEM_OP_NODE_PARAMS_v2' in found_types}} cdef class CUDA_BATCH_MEM_OP_NODE_PARAMS_v2(CUDA_BATCH_MEM_OP_NODE_PARAMS_v2_st): """ @@ -6075,22 +5675,22 @@ cdef class CUDA_BATCH_MEM_OP_NODE_PARAMS_v2(CUDA_BATCH_MEM_OP_NODE_PARAMS_v2_st) Attributes ---------- - {{if 'CUDA_BATCH_MEM_OP_NODE_PARAMS_v2_st.ctx' in found_struct}} + ctx : CUcontext Context to use for the operations. - {{endif}} - {{if 'CUDA_BATCH_MEM_OP_NODE_PARAMS_v2_st.count' in found_struct}} + + count : unsigned int Number of operations in paramArray. - {{endif}} - {{if 'CUDA_BATCH_MEM_OP_NODE_PARAMS_v2_st.paramArray' in found_struct}} + + paramArray : CUstreamBatchMemOpParams Array of batch memory operations. - {{endif}} - {{if 'CUDA_BATCH_MEM_OP_NODE_PARAMS_v2_st.flags' in found_struct}} + + flags : unsigned int Flags to control the node. - {{endif}} + Methods ------- @@ -6098,8 +5698,6 @@ cdef class CUDA_BATCH_MEM_OP_NODE_PARAMS_v2(CUDA_BATCH_MEM_OP_NODE_PARAMS_v2_st) Get memory address of class instance """ pass -{{endif}} -{{if 'CUasyncNotificationInfo' in found_types}} cdef class CUasyncNotificationInfo(CUasyncNotificationInfo_st): """ @@ -6107,15 +5705,15 @@ cdef class CUasyncNotificationInfo(CUasyncNotificationInfo_st): Attributes ---------- - {{if 'CUasyncNotificationInfo_st.type' in found_struct}} + type : CUasyncNotificationType The type of notification being sent - {{endif}} - {{if 'CUasyncNotificationInfo_st.info' in found_struct}} + + info : anon_union2 Information about the notification. `typename` must be checked in order to interpret this field. - {{endif}} + Methods ------- @@ -6123,8 +5721,6 @@ cdef class CUasyncNotificationInfo(CUasyncNotificationInfo_st): Get memory address of class instance """ pass -{{endif}} -{{if 'CUdevprop_v1' in found_types}} cdef class CUdevprop_v1(CUdevprop_st): """ @@ -6132,46 +5728,46 @@ cdef class CUdevprop_v1(CUdevprop_st): Attributes ---------- - {{if 'CUdevprop_st.maxThreadsPerBlock' in found_struct}} + maxThreadsPerBlock : int Maximum number of threads per block - {{endif}} - {{if 'CUdevprop_st.maxThreadsDim' in found_struct}} + + maxThreadsDim : list[int] Maximum size of each dimension of a block - {{endif}} - {{if 'CUdevprop_st.maxGridSize' in found_struct}} + + maxGridSize : list[int] Maximum size of each dimension of a grid - {{endif}} - {{if 'CUdevprop_st.sharedMemPerBlock' in found_struct}} + + sharedMemPerBlock : int Shared memory available per block in bytes - {{endif}} - {{if 'CUdevprop_st.totalConstantMemory' in found_struct}} + + totalConstantMemory : int Constant memory available on device in bytes - {{endif}} - {{if 'CUdevprop_st.SIMDWidth' in found_struct}} + + SIMDWidth : int Warp size in threads - {{endif}} - {{if 'CUdevprop_st.memPitch' in found_struct}} + + memPitch : int Maximum pitch in bytes allowed by memory copies - {{endif}} - {{if 'CUdevprop_st.regsPerBlock' in found_struct}} + + regsPerBlock : int 32-bit registers available per block - {{endif}} - {{if 'CUdevprop_st.clockRate' in found_struct}} + + clockRate : int Clock frequency in kilohertz - {{endif}} - {{if 'CUdevprop_st.textureAlign' in found_struct}} + + textureAlign : int Alignment requirement for textures - {{endif}} + Methods ------- @@ -6179,8 +5775,6 @@ cdef class CUdevprop_v1(CUdevprop_st): Get memory address of class instance """ pass -{{endif}} -{{if 'CUdevprop' in found_types}} cdef class CUdevprop(CUdevprop_v1): """ @@ -6188,46 +5782,46 @@ cdef class CUdevprop(CUdevprop_v1): Attributes ---------- - {{if 'CUdevprop_st.maxThreadsPerBlock' in found_struct}} + maxThreadsPerBlock : int Maximum number of threads per block - {{endif}} - {{if 'CUdevprop_st.maxThreadsDim' in found_struct}} + + maxThreadsDim : list[int] Maximum size of each dimension of a block - {{endif}} - {{if 'CUdevprop_st.maxGridSize' in found_struct}} + + maxGridSize : list[int] Maximum size of each dimension of a grid - {{endif}} - {{if 'CUdevprop_st.sharedMemPerBlock' in found_struct}} + + sharedMemPerBlock : int Shared memory available per block in bytes - {{endif}} - {{if 'CUdevprop_st.totalConstantMemory' in found_struct}} + + totalConstantMemory : int Constant memory available on device in bytes - {{endif}} - {{if 'CUdevprop_st.SIMDWidth' in found_struct}} + + SIMDWidth : int Warp size in threads - {{endif}} - {{if 'CUdevprop_st.memPitch' in found_struct}} + + memPitch : int Maximum pitch in bytes allowed by memory copies - {{endif}} - {{if 'CUdevprop_st.regsPerBlock' in found_struct}} + + regsPerBlock : int 32-bit registers available per block - {{endif}} - {{if 'CUdevprop_st.clockRate' in found_struct}} + + clockRate : int Clock frequency in kilohertz - {{endif}} - {{if 'CUdevprop_st.textureAlign' in found_struct}} + + textureAlign : int Alignment requirement for textures - {{endif}} + Methods ------- @@ -6235,8 +5829,6 @@ cdef class CUdevprop(CUdevprop_v1): Get memory address of class instance """ pass -{{endif}} -{{if 'CUaccessPolicyWindow_v1' in found_types}} cdef class CUaccessPolicyWindow_v1(CUaccessPolicyWindow_st): """ @@ -6253,29 +5845,29 @@ cdef class CUaccessPolicyWindow_v1(CUaccessPolicyWindow_st): Attributes ---------- - {{if 'CUaccessPolicyWindow_st.base_ptr' in found_struct}} + base_ptr : Any Starting address of the access policy window. CUDA driver may align it. - {{endif}} - {{if 'CUaccessPolicyWindow_st.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 'CUaccessPolicyWindow_st.hitRatio' in found_struct}} + + hitRatio : float hitRatio specifies percentage of lines assigned hitProp, rest are assigned missProp. - {{endif}} - {{if 'CUaccessPolicyWindow_st.hitProp' in found_struct}} + + hitProp : CUaccessProperty CUaccessProperty set for hit. - {{endif}} - {{if 'CUaccessPolicyWindow_st.missProp' in found_struct}} + + missProp : CUaccessProperty CUaccessProperty set for miss. Must be either NORMAL or STREAMING - {{endif}} + Methods ------- @@ -6283,8 +5875,6 @@ cdef class CUaccessPolicyWindow_v1(CUaccessPolicyWindow_st): Get memory address of class instance """ pass -{{endif}} -{{if 'CUaccessPolicyWindow' in found_types}} cdef class CUaccessPolicyWindow(CUaccessPolicyWindow_v1): """ @@ -6301,29 +5891,29 @@ cdef class CUaccessPolicyWindow(CUaccessPolicyWindow_v1): Attributes ---------- - {{if 'CUaccessPolicyWindow_st.base_ptr' in found_struct}} + base_ptr : Any Starting address of the access policy window. CUDA driver may align it. - {{endif}} - {{if 'CUaccessPolicyWindow_st.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 'CUaccessPolicyWindow_st.hitRatio' in found_struct}} + + hitRatio : float hitRatio specifies percentage of lines assigned hitProp, rest are assigned missProp. - {{endif}} - {{if 'CUaccessPolicyWindow_st.hitProp' in found_struct}} + + hitProp : CUaccessProperty CUaccessProperty set for hit. - {{endif}} - {{if 'CUaccessPolicyWindow_st.missProp' in found_struct}} + + missProp : CUaccessProperty CUaccessProperty set for miss. Must be either NORMAL or STREAMING - {{endif}} + Methods ------- @@ -6331,8 +5921,6 @@ cdef class CUaccessPolicyWindow(CUaccessPolicyWindow_v1): Get memory address of class instance """ pass -{{endif}} -{{if 'CUDA_KERNEL_NODE_PARAMS_v1' in found_types}} cdef class CUDA_KERNEL_NODE_PARAMS_v1(CUDA_KERNEL_NODE_PARAMS_st): """ @@ -6340,46 +5928,46 @@ cdef class CUDA_KERNEL_NODE_PARAMS_v1(CUDA_KERNEL_NODE_PARAMS_st): Attributes ---------- - {{if 'CUDA_KERNEL_NODE_PARAMS_st.func' in found_struct}} + func : CUfunction Kernel to launch - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_st.gridDimX' in found_struct}} + + gridDimX : unsigned int Width of grid in blocks - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_st.gridDimY' in found_struct}} + + gridDimY : unsigned int Height of grid in blocks - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_st.gridDimZ' in found_struct}} + + gridDimZ : unsigned int Depth of grid in blocks - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_st.blockDimX' in found_struct}} + + blockDimX : unsigned int X dimension of each thread block - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_st.blockDimY' in found_struct}} + + blockDimY : unsigned int Y dimension of each thread block - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_st.blockDimZ' in found_struct}} + + blockDimZ : unsigned int Z dimension of each thread block - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_st.sharedMemBytes' in found_struct}} + + sharedMemBytes : unsigned int Dynamic shared-memory size per thread block in bytes - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_st.kernelParams' in found_struct}} + + kernelParams : Any Array of pointers to kernel parameters - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_st.extra' in found_struct}} + + extra : Any Extra options - {{endif}} + Methods ------- @@ -6387,8 +5975,6 @@ cdef class CUDA_KERNEL_NODE_PARAMS_v1(CUDA_KERNEL_NODE_PARAMS_st): Get memory address of class instance """ pass -{{endif}} -{{if 'CUDA_KERNEL_NODE_PARAMS_v2' in found_types}} cdef class CUDA_KERNEL_NODE_PARAMS_v2(CUDA_KERNEL_NODE_PARAMS_v2_st): """ @@ -6396,56 +5982,56 @@ cdef class CUDA_KERNEL_NODE_PARAMS_v2(CUDA_KERNEL_NODE_PARAMS_v2_st): Attributes ---------- - {{if 'CUDA_KERNEL_NODE_PARAMS_v2_st.func' in found_struct}} + func : CUfunction Kernel to launch - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v2_st.gridDimX' in found_struct}} + + gridDimX : unsigned int Width of grid in blocks - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v2_st.gridDimY' in found_struct}} + + gridDimY : unsigned int Height of grid in blocks - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v2_st.gridDimZ' in found_struct}} + + gridDimZ : unsigned int Depth of grid in blocks - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v2_st.blockDimX' in found_struct}} + + blockDimX : unsigned int X dimension of each thread block - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v2_st.blockDimY' in found_struct}} + + blockDimY : unsigned int Y dimension of each thread block - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v2_st.blockDimZ' in found_struct}} + + blockDimZ : unsigned int Z dimension of each thread block - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v2_st.sharedMemBytes' in found_struct}} + + sharedMemBytes : unsigned int Dynamic shared-memory size per thread block in bytes - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v2_st.kernelParams' in found_struct}} + + kernelParams : Any Array of pointers to kernel parameters - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v2_st.extra' in found_struct}} + + extra : Any Extra options - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v2_st.kern' in found_struct}} + + kern : CUkernel Kernel to launch, will only be referenced if func is NULL - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v2_st.ctx' in found_struct}} + + ctx : CUcontext Context for the kernel task to run in. The value NULL will indicate the current context should be used by the api. This field is ignored if func is set. - {{endif}} + Methods ------- @@ -6453,8 +6039,6 @@ cdef class CUDA_KERNEL_NODE_PARAMS_v2(CUDA_KERNEL_NODE_PARAMS_v2_st): Get memory address of class instance """ pass -{{endif}} -{{if 'CUDA_KERNEL_NODE_PARAMS' in found_types}} cdef class CUDA_KERNEL_NODE_PARAMS(CUDA_KERNEL_NODE_PARAMS_v2): """ @@ -6462,56 +6046,56 @@ cdef class CUDA_KERNEL_NODE_PARAMS(CUDA_KERNEL_NODE_PARAMS_v2): Attributes ---------- - {{if 'CUDA_KERNEL_NODE_PARAMS_v2_st.func' in found_struct}} + func : CUfunction Kernel to launch - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v2_st.gridDimX' in found_struct}} + + gridDimX : unsigned int Width of grid in blocks - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v2_st.gridDimY' in found_struct}} + + gridDimY : unsigned int Height of grid in blocks - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v2_st.gridDimZ' in found_struct}} + + gridDimZ : unsigned int Depth of grid in blocks - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v2_st.blockDimX' in found_struct}} + + blockDimX : unsigned int X dimension of each thread block - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v2_st.blockDimY' in found_struct}} + + blockDimY : unsigned int Y dimension of each thread block - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v2_st.blockDimZ' in found_struct}} + + blockDimZ : unsigned int Z dimension of each thread block - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v2_st.sharedMemBytes' in found_struct}} + + sharedMemBytes : unsigned int Dynamic shared-memory size per thread block in bytes - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v2_st.kernelParams' in found_struct}} + + kernelParams : Any Array of pointers to kernel parameters - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v2_st.extra' in found_struct}} + + extra : Any Extra options - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v2_st.kern' in found_struct}} + + kern : CUkernel Kernel to launch, will only be referenced if func is NULL - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v2_st.ctx' in found_struct}} + + ctx : CUcontext Context for the kernel task to run in. The value NULL will indicate the current context should be used by the api. This field is ignored if func is set. - {{endif}} + Methods ------- @@ -6519,8 +6103,6 @@ cdef class CUDA_KERNEL_NODE_PARAMS(CUDA_KERNEL_NODE_PARAMS_v2): Get memory address of class instance """ pass -{{endif}} -{{if 'CUDA_KERNEL_NODE_PARAMS_v3' in found_types}} cdef class CUDA_KERNEL_NODE_PARAMS_v3(CUDA_KERNEL_NODE_PARAMS_v3_st): """ @@ -6528,56 +6110,56 @@ cdef class CUDA_KERNEL_NODE_PARAMS_v3(CUDA_KERNEL_NODE_PARAMS_v3_st): Attributes ---------- - {{if 'CUDA_KERNEL_NODE_PARAMS_v3_st.func' in found_struct}} + func : CUfunction Kernel to launch - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v3_st.gridDimX' in found_struct}} + + gridDimX : unsigned int Width of grid in blocks - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v3_st.gridDimY' in found_struct}} + + gridDimY : unsigned int Height of grid in blocks - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v3_st.gridDimZ' in found_struct}} + + gridDimZ : unsigned int Depth of grid in blocks - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v3_st.blockDimX' in found_struct}} + + blockDimX : unsigned int X dimension of each thread block - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v3_st.blockDimY' in found_struct}} + + blockDimY : unsigned int Y dimension of each thread block - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v3_st.blockDimZ' in found_struct}} + + blockDimZ : unsigned int Z dimension of each thread block - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v3_st.sharedMemBytes' in found_struct}} + + sharedMemBytes : unsigned int Dynamic shared-memory size per thread block in bytes - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v3_st.kernelParams' in found_struct}} + + kernelParams : Any Array of pointers to kernel parameters - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v3_st.extra' in found_struct}} + + extra : Any Extra options - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v3_st.kern' in found_struct}} + + kern : CUkernel Kernel to launch, will only be referenced if func is NULL - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v3_st.ctx' in found_struct}} + + ctx : CUcontext Context for the kernel task to run in. The value NULL will indicate the current context should be used by the api. This field is ignored if func is set. - {{endif}} + Methods ------- @@ -6585,8 +6167,6 @@ cdef class CUDA_KERNEL_NODE_PARAMS_v3(CUDA_KERNEL_NODE_PARAMS_v3_st): Get memory address of class instance """ pass -{{endif}} -{{if 'CUDA_MEMSET_NODE_PARAMS_v1' in found_types}} cdef class CUDA_MEMSET_NODE_PARAMS_v1(CUDA_MEMSET_NODE_PARAMS_st): """ @@ -6594,30 +6174,30 @@ cdef class CUDA_MEMSET_NODE_PARAMS_v1(CUDA_MEMSET_NODE_PARAMS_st): Attributes ---------- - {{if 'CUDA_MEMSET_NODE_PARAMS_st.dst' in found_struct}} + dst : CUdeviceptr Destination device pointer - {{endif}} - {{if 'CUDA_MEMSET_NODE_PARAMS_st.pitch' in found_struct}} + + pitch : size_t Pitch of destination device pointer. Unused if height is 1 - {{endif}} - {{if 'CUDA_MEMSET_NODE_PARAMS_st.value' in found_struct}} + + value : unsigned int Value to be set - {{endif}} - {{if 'CUDA_MEMSET_NODE_PARAMS_st.elementSize' in found_struct}} + + elementSize : unsigned int Size of each element in bytes. Must be 1, 2, or 4. - {{endif}} - {{if 'CUDA_MEMSET_NODE_PARAMS_st.width' in found_struct}} + + width : size_t Width of the row in elements - {{endif}} - {{if 'CUDA_MEMSET_NODE_PARAMS_st.height' in found_struct}} + + height : size_t Number of rows - {{endif}} + Methods ------- @@ -6625,8 +6205,6 @@ cdef class CUDA_MEMSET_NODE_PARAMS_v1(CUDA_MEMSET_NODE_PARAMS_st): Get memory address of class instance """ pass -{{endif}} -{{if 'CUDA_MEMSET_NODE_PARAMS' in found_types}} cdef class CUDA_MEMSET_NODE_PARAMS(CUDA_MEMSET_NODE_PARAMS_v1): """ @@ -6634,30 +6212,30 @@ cdef class CUDA_MEMSET_NODE_PARAMS(CUDA_MEMSET_NODE_PARAMS_v1): Attributes ---------- - {{if 'CUDA_MEMSET_NODE_PARAMS_st.dst' in found_struct}} + dst : CUdeviceptr Destination device pointer - {{endif}} - {{if 'CUDA_MEMSET_NODE_PARAMS_st.pitch' in found_struct}} + + pitch : size_t Pitch of destination device pointer. Unused if height is 1 - {{endif}} - {{if 'CUDA_MEMSET_NODE_PARAMS_st.value' in found_struct}} + + value : unsigned int Value to be set - {{endif}} - {{if 'CUDA_MEMSET_NODE_PARAMS_st.elementSize' in found_struct}} + + elementSize : unsigned int Size of each element in bytes. Must be 1, 2, or 4. - {{endif}} - {{if 'CUDA_MEMSET_NODE_PARAMS_st.width' in found_struct}} + + width : size_t Width of the row in elements - {{endif}} - {{if 'CUDA_MEMSET_NODE_PARAMS_st.height' in found_struct}} + + height : size_t Number of rows - {{endif}} + Methods ------- @@ -6665,8 +6243,6 @@ cdef class CUDA_MEMSET_NODE_PARAMS(CUDA_MEMSET_NODE_PARAMS_v1): Get memory address of class instance """ pass -{{endif}} -{{if 'CUDA_MEMSET_NODE_PARAMS_v2' in found_types}} cdef class CUDA_MEMSET_NODE_PARAMS_v2(CUDA_MEMSET_NODE_PARAMS_v2_st): """ @@ -6674,34 +6250,34 @@ cdef class CUDA_MEMSET_NODE_PARAMS_v2(CUDA_MEMSET_NODE_PARAMS_v2_st): Attributes ---------- - {{if 'CUDA_MEMSET_NODE_PARAMS_v2_st.dst' in found_struct}} + dst : CUdeviceptr Destination device pointer - {{endif}} - {{if 'CUDA_MEMSET_NODE_PARAMS_v2_st.pitch' in found_struct}} + + pitch : size_t Pitch of destination device pointer. Unused if height is 1 - {{endif}} - {{if 'CUDA_MEMSET_NODE_PARAMS_v2_st.value' in found_struct}} + + value : unsigned int Value to be set - {{endif}} - {{if 'CUDA_MEMSET_NODE_PARAMS_v2_st.elementSize' in found_struct}} + + elementSize : unsigned int Size of each element in bytes. Must be 1, 2, or 4. - {{endif}} - {{if 'CUDA_MEMSET_NODE_PARAMS_v2_st.width' in found_struct}} + + width : size_t Width of the row in elements - {{endif}} - {{if 'CUDA_MEMSET_NODE_PARAMS_v2_st.height' in found_struct}} + + height : size_t Number of rows - {{endif}} - {{if 'CUDA_MEMSET_NODE_PARAMS_v2_st.ctx' in found_struct}} + + ctx : CUcontext Context on which to run the node - {{endif}} + Methods ------- @@ -6709,8 +6285,6 @@ cdef class CUDA_MEMSET_NODE_PARAMS_v2(CUDA_MEMSET_NODE_PARAMS_v2_st): Get memory address of class instance """ pass -{{endif}} -{{if 'CUDA_HOST_NODE_PARAMS_v1' in found_types}} cdef class CUDA_HOST_NODE_PARAMS_v1(CUDA_HOST_NODE_PARAMS_st): """ @@ -6718,14 +6292,14 @@ cdef class CUDA_HOST_NODE_PARAMS_v1(CUDA_HOST_NODE_PARAMS_st): Attributes ---------- - {{if 'CUDA_HOST_NODE_PARAMS_st.fn' in found_struct}} + fn : CUhostFn The function to call when the node executes - {{endif}} - {{if 'CUDA_HOST_NODE_PARAMS_st.userData' in found_struct}} + + userData : Any Argument to pass to the function - {{endif}} + Methods ------- @@ -6733,8 +6307,6 @@ cdef class CUDA_HOST_NODE_PARAMS_v1(CUDA_HOST_NODE_PARAMS_st): Get memory address of class instance """ pass -{{endif}} -{{if 'CUDA_HOST_NODE_PARAMS' in found_types}} cdef class CUDA_HOST_NODE_PARAMS(CUDA_HOST_NODE_PARAMS_v1): """ @@ -6742,14 +6314,14 @@ cdef class CUDA_HOST_NODE_PARAMS(CUDA_HOST_NODE_PARAMS_v1): Attributes ---------- - {{if 'CUDA_HOST_NODE_PARAMS_st.fn' in found_struct}} + fn : CUhostFn The function to call when the node executes - {{endif}} - {{if 'CUDA_HOST_NODE_PARAMS_st.userData' in found_struct}} + + userData : Any Argument to pass to the function - {{endif}} + Methods ------- @@ -6757,8 +6329,6 @@ cdef class CUDA_HOST_NODE_PARAMS(CUDA_HOST_NODE_PARAMS_v1): Get memory address of class instance """ pass -{{endif}} -{{if 'CUDA_HOST_NODE_PARAMS_v2' in found_types}} cdef class CUDA_HOST_NODE_PARAMS_v2(CUDA_HOST_NODE_PARAMS_v2_st): """ @@ -6766,18 +6336,18 @@ cdef class CUDA_HOST_NODE_PARAMS_v2(CUDA_HOST_NODE_PARAMS_v2_st): Attributes ---------- - {{if 'CUDA_HOST_NODE_PARAMS_v2_st.fn' in found_struct}} + fn : CUhostFn The function to call when the node executes - {{endif}} - {{if 'CUDA_HOST_NODE_PARAMS_v2_st.userData' in found_struct}} + + userData : Any Argument to pass to the function - {{endif}} - {{if 'CUDA_HOST_NODE_PARAMS_v2_st.syncMode' in found_struct}} + + syncMode : unsigned int The sync mode to use for the host task - {{endif}} + Methods ------- @@ -6785,8 +6355,6 @@ cdef class CUDA_HOST_NODE_PARAMS_v2(CUDA_HOST_NODE_PARAMS_v2_st): Get memory address of class instance """ pass -{{endif}} -{{if 'CUgraphEdgeData' in found_types}} cdef class CUgraphEdgeData(CUgraphEdgeData_st): """ @@ -6797,7 +6365,7 @@ cdef class CUgraphEdgeData(CUgraphEdgeData_st): Attributes ---------- - {{if 'CUgraphEdgeData_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 @@ -6808,8 +6376,8 @@ cdef class CUgraphEdgeData(CUgraphEdgeData_st): CU_GRAPH_KERNEL_NODE_PORT_DEFAULT, CU_GRAPH_KERNEL_NODE_PORT_PROGRAMMATIC, or CU_GRAPH_KERNEL_NODE_PORT_LAUNCH_ORDER. - {{endif}} - {{if 'CUgraphEdgeData_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`). @@ -6817,18 +6385,18 @@ cdef class CUgraphEdgeData(CUgraphEdgeData_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 'CUgraphEdgeData_st.type' in found_struct}} + + type : bytes This should be populated with a value from CUgraphDependencyType. (It is typed as char due to compiler-specific layout of bitfields.) See CUgraphDependencyType. - {{endif}} - {{if 'CUgraphEdgeData_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 ------- @@ -6836,8 +6404,6 @@ cdef class CUgraphEdgeData(CUgraphEdgeData_st): Get memory address of class instance """ pass -{{endif}} -{{if 'CUDA_GRAPH_INSTANTIATE_PARAMS' in found_types}} cdef class CUDA_GRAPH_INSTANTIATE_PARAMS(CUDA_GRAPH_INSTANTIATE_PARAMS_st): """ @@ -6845,22 +6411,22 @@ cdef class CUDA_GRAPH_INSTANTIATE_PARAMS(CUDA_GRAPH_INSTANTIATE_PARAMS_st): Attributes ---------- - {{if 'CUDA_GRAPH_INSTANTIATE_PARAMS_st.flags' in found_struct}} + flags : cuuint64_t Instantiation flags - {{endif}} - {{if 'CUDA_GRAPH_INSTANTIATE_PARAMS_st.hUploadStream' in found_struct}} + + hUploadStream : CUstream Upload stream - {{endif}} - {{if 'CUDA_GRAPH_INSTANTIATE_PARAMS_st.hErrNode_out' in found_struct}} + + hErrNode_out : CUgraphNode The node which caused instantiation to fail, if any - {{endif}} - {{if 'CUDA_GRAPH_INSTANTIATE_PARAMS_st.result_out' in found_struct}} + + result_out : CUgraphInstantiateResult Whether instantiation was successful. If it failed, the reason why - {{endif}} + Methods ------- @@ -6868,8 +6434,6 @@ cdef class CUDA_GRAPH_INSTANTIATE_PARAMS(CUDA_GRAPH_INSTANTIATE_PARAMS_st): Get memory address of class instance """ pass -{{endif}} -{{if 'CUlaunchMemSyncDomainMap' in found_types}} cdef class CUlaunchMemSyncDomainMap(CUlaunchMemSyncDomainMap_st): """ @@ -6883,14 +6447,14 @@ cdef class CUlaunchMemSyncDomainMap(CUlaunchMemSyncDomainMap_st): Attributes ---------- - {{if 'CUlaunchMemSyncDomainMap_st.default_' in found_struct}} + default_ : bytes The default domain ID to use for designated kernels - {{endif}} - {{if 'CUlaunchMemSyncDomainMap_st.remote' in found_struct}} + + remote : bytes The remote domain ID to use for designated kernels - {{endif}} + Methods ------- @@ -6898,8 +6462,6 @@ cdef class CUlaunchMemSyncDomainMap(CUlaunchMemSyncDomainMap_st): Get memory address of class instance """ pass -{{endif}} -{{if 'CUlaunchAttributeValue' in found_types}} cdef class CUlaunchAttributeValue(CUlaunchAttributeValue_union): """ @@ -6907,26 +6469,26 @@ cdef class CUlaunchAttributeValue(CUlaunchAttributeValue_union): Attributes ---------- - {{if 'CUlaunchAttributeValue_union.pad' in found_struct}} + pad : bytes - {{endif}} - {{if 'CUlaunchAttributeValue_union.accessPolicyWindow' in found_struct}} + + accessPolicyWindow : CUaccessPolicyWindow Value of launch attribute CU_LAUNCH_ATTRIBUTE_ACCESS_POLICY_WINDOW. - {{endif}} - {{if 'CUlaunchAttributeValue_union.cooperative' in found_struct}} + + cooperative : int Value of launch attribute CU_LAUNCH_ATTRIBUTE_COOPERATIVE. Nonzero indicates a cooperative kernel (see cuLaunchCooperativeKernel). - {{endif}} - {{if 'CUlaunchAttributeValue_union.syncPolicy' in found_struct}} + + syncPolicy : CUsynchronizationPolicy Value of launch attribute CU_LAUNCH_ATTRIBUTE_SYNCHRONIZATION_POLICY. CUsynchronizationPolicy for work queued up in this stream - {{endif}} - {{if 'CUlaunchAttributeValue_union.clusterDim' in found_struct}} + + clusterDim : anon_struct1 Value of launch attribute CU_LAUNCH_ATTRIBUTE_CLUSTER_DIMENSION that represents the desired cluster dimensions for the kernel. @@ -6935,19 +6497,19 @@ cdef class CUlaunchAttributeValue(CUlaunchAttributeValue_union): - `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 'CUlaunchAttributeValue_union.clusterSchedulingPolicyPreference' in found_struct}} + + clusterSchedulingPolicyPreference : CUclusterSchedulingPolicy Value of launch attribute CU_LAUNCH_ATTRIBUTE_CLUSTER_SCHEDULING_POLICY_PREFERENCE. Cluster scheduling policy preference for the kernel. - {{endif}} - {{if 'CUlaunchAttributeValue_union.programmaticStreamSerializationAllowed' in found_struct}} + + programmaticStreamSerializationAllowed : int Value of launch attribute CU_LAUNCH_ATTRIBUTE_PROGRAMMATIC_STREAM_SERIALIZATION. - {{endif}} - {{if 'CUlaunchAttributeValue_union.programmaticEvent' in found_struct}} + + programmaticEvent : anon_struct2 Value of launch attribute CU_LAUNCH_ATTRIBUTE_PROGRAMMATIC_EVENT with the following fields: - `CUevent` event - Event to fire when @@ -6955,31 +6517,31 @@ cdef class CUlaunchAttributeValue(CUlaunchAttributeValue_union): cuEventRecordWithFlags. Does not accept :CU_EVENT_RECORD_EXTERNAL. - `triggerAtBlockStart` - If this is set to non-0, each block launch will automatically trigger the event. - {{endif}} - {{if 'CUlaunchAttributeValue_union.launchCompletionEvent' in found_struct}} + + launchCompletionEvent : anon_struct3 Value of launch attribute CU_LAUNCH_ATTRIBUTE_LAUNCH_COMPLETION_EVENT with the following fields: - `CUevent` event - Event to fire when the last block launches - `int` flags; - Event record flags, see cuEventRecordWithFlags. Does not accept CU_EVENT_RECORD_EXTERNAL. - {{endif}} - {{if 'CUlaunchAttributeValue_union.priority' in found_struct}} + + priority : int Value of launch attribute CU_LAUNCH_ATTRIBUTE_PRIORITY. Execution priority of the kernel. - {{endif}} - {{if 'CUlaunchAttributeValue_union.memSyncDomainMap' in found_struct}} + + memSyncDomainMap : CUlaunchMemSyncDomainMap Value of launch attribute CU_LAUNCH_ATTRIBUTE_MEM_SYNC_DOMAIN_MAP. See CUlaunchMemSyncDomainMap. - {{endif}} - {{if 'CUlaunchAttributeValue_union.memSyncDomain' in found_struct}} + + memSyncDomain : CUlaunchMemSyncDomain Value of launch attribute CU_LAUNCH_ATTRIBUTE_MEM_SYNC_DOMAIN. See::CUlaunchMemSyncDomain - {{endif}} - {{if 'CUlaunchAttributeValue_union.preferredClusterDim' in found_struct}} + + preferredClusterDim : anon_struct4 Value of launch attribute CU_LAUNCH_ATTRIBUTE_PREFERRED_CLUSTER_DIMENSION that represents the @@ -6993,8 +6555,8 @@ cdef class CUlaunchAttributeValue(CUlaunchAttributeValue_union): CUlaunchAttributeValue::clusterDim. - `z` - The Z dimension of the preferred cluster, in blocks. Must be equal to the `z` field of CUlaunchAttributeValue::clusterDim. - {{endif}} - {{if 'CUlaunchAttributeValue_union.deviceUpdatableKernelNode' in found_struct}} + + deviceUpdatableKernelNode : anon_struct5 Value of launch attribute CU_LAUNCH_ATTRIBUTE_DEVICE_UPDATABLE_KERNEL_NODE. with the @@ -7002,26 +6564,26 @@ cdef class CUlaunchAttributeValue(CUlaunchAttributeValue_union): resulting kernel node should be device-updatable. - `CUgraphDeviceNode` devNode - Returns a handle to pass to the various device-side update functions. - {{endif}} - {{if 'CUlaunchAttributeValue_union.sharedMemCarveout' in found_struct}} + + sharedMemCarveout : unsigned int Value of launch attribute CU_LAUNCH_ATTRIBUTE_PREFERRED_SHARED_MEMORY_CARVEOUT. - {{endif}} - {{if 'CUlaunchAttributeValue_union.nvlinkUtilCentricScheduling' in found_struct}} + + nvlinkUtilCentricScheduling : unsigned int - {{endif}} - {{if 'CUlaunchAttributeValue_union.portableClusterSizeMode' in found_struct}} + + portableClusterSizeMode : CUlaunchAttributePortableClusterMode Value of launch attribute CU_LAUNCH_ATTRIBUTE_PORTABLE_CLUSTER_SIZE_MODE. - {{endif}} - {{if 'CUlaunchAttributeValue_union.sharedMemoryMode' in found_struct}} + + sharedMemoryMode : CUsharedMemoryMode Value of launch attribute CU_LAUNCH_ATTRIBUTE_SHARED_MEMORY_MODE. See CUsharedMemoryMode for acceptable values. - {{endif}} + Methods ------- @@ -7029,8 +6591,6 @@ cdef class CUlaunchAttributeValue(CUlaunchAttributeValue_union): Get memory address of class instance """ pass -{{endif}} -{{if 'CUlaunchAttribute' in found_types}} cdef class CUlaunchAttribute(CUlaunchAttribute_st): """ @@ -7038,14 +6598,14 @@ cdef class CUlaunchAttribute(CUlaunchAttribute_st): Attributes ---------- - {{if 'CUlaunchAttribute_st.id' in found_struct}} + id : CUlaunchAttributeID Attribute to set - {{endif}} - {{if 'CUlaunchAttribute_st.value' in found_struct}} + + value : CUlaunchAttributeValue Value of the attribute - {{endif}} + Methods ------- @@ -7053,8 +6613,6 @@ cdef class CUlaunchAttribute(CUlaunchAttribute_st): Get memory address of class instance """ pass -{{endif}} -{{if 'CUlaunchConfig' in found_types}} cdef class CUlaunchConfig(CUlaunchConfig_st): """ @@ -7062,46 +6620,46 @@ cdef class CUlaunchConfig(CUlaunchConfig_st): Attributes ---------- - {{if 'CUlaunchConfig_st.gridDimX' in found_struct}} + gridDimX : unsigned int Width of grid in blocks - {{endif}} - {{if 'CUlaunchConfig_st.gridDimY' in found_struct}} + + gridDimY : unsigned int Height of grid in blocks - {{endif}} - {{if 'CUlaunchConfig_st.gridDimZ' in found_struct}} + + gridDimZ : unsigned int Depth of grid in blocks - {{endif}} - {{if 'CUlaunchConfig_st.blockDimX' in found_struct}} + + blockDimX : unsigned int X dimension of each thread block - {{endif}} - {{if 'CUlaunchConfig_st.blockDimY' in found_struct}} + + blockDimY : unsigned int Y dimension of each thread block - {{endif}} - {{if 'CUlaunchConfig_st.blockDimZ' in found_struct}} + + blockDimZ : unsigned int Z dimension of each thread block - {{endif}} - {{if 'CUlaunchConfig_st.sharedMemBytes' in found_struct}} + + sharedMemBytes : unsigned int Dynamic shared-memory size per thread block in bytes - {{endif}} - {{if 'CUlaunchConfig_st.hStream' in found_struct}} + + hStream : CUstream Stream identifier - {{endif}} - {{if 'CUlaunchConfig_st.attrs' in found_struct}} + + attrs : CUlaunchAttribute List of attributes; nullable if CUlaunchConfig::numAttrs == 0 - {{endif}} - {{if 'CUlaunchConfig_st.numAttrs' in found_struct}} + + numAttrs : unsigned int Number of attributes populated in CUlaunchConfig::attrs - {{endif}} + Methods ------- @@ -7109,8 +6667,6 @@ cdef class CUlaunchConfig(CUlaunchConfig_st): Get memory address of class instance """ pass -{{endif}} -{{if 'CUkernelNodeAttrValue_v1' in found_types}} cdef class CUkernelNodeAttrValue_v1(CUlaunchAttributeValue): """ @@ -7118,26 +6674,26 @@ cdef class CUkernelNodeAttrValue_v1(CUlaunchAttributeValue): Attributes ---------- - {{if 'CUlaunchAttributeValue_union.pad' in found_struct}} + pad : bytes - {{endif}} - {{if 'CUlaunchAttributeValue_union.accessPolicyWindow' in found_struct}} + + accessPolicyWindow : CUaccessPolicyWindow Value of launch attribute CU_LAUNCH_ATTRIBUTE_ACCESS_POLICY_WINDOW. - {{endif}} - {{if 'CUlaunchAttributeValue_union.cooperative' in found_struct}} + + cooperative : int Value of launch attribute CU_LAUNCH_ATTRIBUTE_COOPERATIVE. Nonzero indicates a cooperative kernel (see cuLaunchCooperativeKernel). - {{endif}} - {{if 'CUlaunchAttributeValue_union.syncPolicy' in found_struct}} + + syncPolicy : CUsynchronizationPolicy Value of launch attribute CU_LAUNCH_ATTRIBUTE_SYNCHRONIZATION_POLICY. CUsynchronizationPolicy for work queued up in this stream - {{endif}} - {{if 'CUlaunchAttributeValue_union.clusterDim' in found_struct}} + + clusterDim : anon_struct1 Value of launch attribute CU_LAUNCH_ATTRIBUTE_CLUSTER_DIMENSION that represents the desired cluster dimensions for the kernel. @@ -7146,19 +6702,19 @@ cdef class CUkernelNodeAttrValue_v1(CUlaunchAttributeValue): - `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 'CUlaunchAttributeValue_union.clusterSchedulingPolicyPreference' in found_struct}} + + clusterSchedulingPolicyPreference : CUclusterSchedulingPolicy Value of launch attribute CU_LAUNCH_ATTRIBUTE_CLUSTER_SCHEDULING_POLICY_PREFERENCE. Cluster scheduling policy preference for the kernel. - {{endif}} - {{if 'CUlaunchAttributeValue_union.programmaticStreamSerializationAllowed' in found_struct}} + + programmaticStreamSerializationAllowed : int Value of launch attribute CU_LAUNCH_ATTRIBUTE_PROGRAMMATIC_STREAM_SERIALIZATION. - {{endif}} - {{if 'CUlaunchAttributeValue_union.programmaticEvent' in found_struct}} + + programmaticEvent : anon_struct2 Value of launch attribute CU_LAUNCH_ATTRIBUTE_PROGRAMMATIC_EVENT with the following fields: - `CUevent` event - Event to fire when @@ -7166,31 +6722,31 @@ cdef class CUkernelNodeAttrValue_v1(CUlaunchAttributeValue): cuEventRecordWithFlags. Does not accept :CU_EVENT_RECORD_EXTERNAL. - `triggerAtBlockStart` - If this is set to non-0, each block launch will automatically trigger the event. - {{endif}} - {{if 'CUlaunchAttributeValue_union.launchCompletionEvent' in found_struct}} + + launchCompletionEvent : anon_struct3 Value of launch attribute CU_LAUNCH_ATTRIBUTE_LAUNCH_COMPLETION_EVENT with the following fields: - `CUevent` event - Event to fire when the last block launches - `int` flags; - Event record flags, see cuEventRecordWithFlags. Does not accept CU_EVENT_RECORD_EXTERNAL. - {{endif}} - {{if 'CUlaunchAttributeValue_union.priority' in found_struct}} + + priority : int Value of launch attribute CU_LAUNCH_ATTRIBUTE_PRIORITY. Execution priority of the kernel. - {{endif}} - {{if 'CUlaunchAttributeValue_union.memSyncDomainMap' in found_struct}} + + memSyncDomainMap : CUlaunchMemSyncDomainMap Value of launch attribute CU_LAUNCH_ATTRIBUTE_MEM_SYNC_DOMAIN_MAP. See CUlaunchMemSyncDomainMap. - {{endif}} - {{if 'CUlaunchAttributeValue_union.memSyncDomain' in found_struct}} + + memSyncDomain : CUlaunchMemSyncDomain Value of launch attribute CU_LAUNCH_ATTRIBUTE_MEM_SYNC_DOMAIN. See::CUlaunchMemSyncDomain - {{endif}} - {{if 'CUlaunchAttributeValue_union.preferredClusterDim' in found_struct}} + + preferredClusterDim : anon_struct4 Value of launch attribute CU_LAUNCH_ATTRIBUTE_PREFERRED_CLUSTER_DIMENSION that represents the @@ -7204,8 +6760,8 @@ cdef class CUkernelNodeAttrValue_v1(CUlaunchAttributeValue): CUlaunchAttributeValue::clusterDim. - `z` - The Z dimension of the preferred cluster, in blocks. Must be equal to the `z` field of CUlaunchAttributeValue::clusterDim. - {{endif}} - {{if 'CUlaunchAttributeValue_union.deviceUpdatableKernelNode' in found_struct}} + + deviceUpdatableKernelNode : anon_struct5 Value of launch attribute CU_LAUNCH_ATTRIBUTE_DEVICE_UPDATABLE_KERNEL_NODE. with the @@ -7213,26 +6769,26 @@ cdef class CUkernelNodeAttrValue_v1(CUlaunchAttributeValue): resulting kernel node should be device-updatable. - `CUgraphDeviceNode` devNode - Returns a handle to pass to the various device-side update functions. - {{endif}} - {{if 'CUlaunchAttributeValue_union.sharedMemCarveout' in found_struct}} + + sharedMemCarveout : unsigned int Value of launch attribute CU_LAUNCH_ATTRIBUTE_PREFERRED_SHARED_MEMORY_CARVEOUT. - {{endif}} - {{if 'CUlaunchAttributeValue_union.nvlinkUtilCentricScheduling' in found_struct}} + + nvlinkUtilCentricScheduling : unsigned int - {{endif}} - {{if 'CUlaunchAttributeValue_union.portableClusterSizeMode' in found_struct}} + + portableClusterSizeMode : CUlaunchAttributePortableClusterMode Value of launch attribute CU_LAUNCH_ATTRIBUTE_PORTABLE_CLUSTER_SIZE_MODE. - {{endif}} - {{if 'CUlaunchAttributeValue_union.sharedMemoryMode' in found_struct}} + + sharedMemoryMode : CUsharedMemoryMode Value of launch attribute CU_LAUNCH_ATTRIBUTE_SHARED_MEMORY_MODE. See CUsharedMemoryMode for acceptable values. - {{endif}} + Methods ------- @@ -7240,8 +6796,6 @@ cdef class CUkernelNodeAttrValue_v1(CUlaunchAttributeValue): Get memory address of class instance """ pass -{{endif}} -{{if 'CUkernelNodeAttrValue' in found_types}} cdef class CUkernelNodeAttrValue(CUkernelNodeAttrValue_v1): """ @@ -7249,26 +6803,26 @@ cdef class CUkernelNodeAttrValue(CUkernelNodeAttrValue_v1): Attributes ---------- - {{if 'CUlaunchAttributeValue_union.pad' in found_struct}} + pad : bytes - {{endif}} - {{if 'CUlaunchAttributeValue_union.accessPolicyWindow' in found_struct}} + + accessPolicyWindow : CUaccessPolicyWindow Value of launch attribute CU_LAUNCH_ATTRIBUTE_ACCESS_POLICY_WINDOW. - {{endif}} - {{if 'CUlaunchAttributeValue_union.cooperative' in found_struct}} + + cooperative : int Value of launch attribute CU_LAUNCH_ATTRIBUTE_COOPERATIVE. Nonzero indicates a cooperative kernel (see cuLaunchCooperativeKernel). - {{endif}} - {{if 'CUlaunchAttributeValue_union.syncPolicy' in found_struct}} + + syncPolicy : CUsynchronizationPolicy Value of launch attribute CU_LAUNCH_ATTRIBUTE_SYNCHRONIZATION_POLICY. CUsynchronizationPolicy for work queued up in this stream - {{endif}} - {{if 'CUlaunchAttributeValue_union.clusterDim' in found_struct}} + + clusterDim : anon_struct1 Value of launch attribute CU_LAUNCH_ATTRIBUTE_CLUSTER_DIMENSION that represents the desired cluster dimensions for the kernel. @@ -7277,19 +6831,19 @@ cdef class CUkernelNodeAttrValue(CUkernelNodeAttrValue_v1): - `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 'CUlaunchAttributeValue_union.clusterSchedulingPolicyPreference' in found_struct}} + + clusterSchedulingPolicyPreference : CUclusterSchedulingPolicy Value of launch attribute CU_LAUNCH_ATTRIBUTE_CLUSTER_SCHEDULING_POLICY_PREFERENCE. Cluster scheduling policy preference for the kernel. - {{endif}} - {{if 'CUlaunchAttributeValue_union.programmaticStreamSerializationAllowed' in found_struct}} + + programmaticStreamSerializationAllowed : int Value of launch attribute CU_LAUNCH_ATTRIBUTE_PROGRAMMATIC_STREAM_SERIALIZATION. - {{endif}} - {{if 'CUlaunchAttributeValue_union.programmaticEvent' in found_struct}} + + programmaticEvent : anon_struct2 Value of launch attribute CU_LAUNCH_ATTRIBUTE_PROGRAMMATIC_EVENT with the following fields: - `CUevent` event - Event to fire when @@ -7297,31 +6851,31 @@ cdef class CUkernelNodeAttrValue(CUkernelNodeAttrValue_v1): cuEventRecordWithFlags. Does not accept :CU_EVENT_RECORD_EXTERNAL. - `triggerAtBlockStart` - If this is set to non-0, each block launch will automatically trigger the event. - {{endif}} - {{if 'CUlaunchAttributeValue_union.launchCompletionEvent' in found_struct}} + + launchCompletionEvent : anon_struct3 Value of launch attribute CU_LAUNCH_ATTRIBUTE_LAUNCH_COMPLETION_EVENT with the following fields: - `CUevent` event - Event to fire when the last block launches - `int` flags; - Event record flags, see cuEventRecordWithFlags. Does not accept CU_EVENT_RECORD_EXTERNAL. - {{endif}} - {{if 'CUlaunchAttributeValue_union.priority' in found_struct}} + + priority : int Value of launch attribute CU_LAUNCH_ATTRIBUTE_PRIORITY. Execution priority of the kernel. - {{endif}} - {{if 'CUlaunchAttributeValue_union.memSyncDomainMap' in found_struct}} + + memSyncDomainMap : CUlaunchMemSyncDomainMap Value of launch attribute CU_LAUNCH_ATTRIBUTE_MEM_SYNC_DOMAIN_MAP. See CUlaunchMemSyncDomainMap. - {{endif}} - {{if 'CUlaunchAttributeValue_union.memSyncDomain' in found_struct}} + + memSyncDomain : CUlaunchMemSyncDomain Value of launch attribute CU_LAUNCH_ATTRIBUTE_MEM_SYNC_DOMAIN. See::CUlaunchMemSyncDomain - {{endif}} - {{if 'CUlaunchAttributeValue_union.preferredClusterDim' in found_struct}} + + preferredClusterDim : anon_struct4 Value of launch attribute CU_LAUNCH_ATTRIBUTE_PREFERRED_CLUSTER_DIMENSION that represents the @@ -7335,8 +6889,8 @@ cdef class CUkernelNodeAttrValue(CUkernelNodeAttrValue_v1): CUlaunchAttributeValue::clusterDim. - `z` - The Z dimension of the preferred cluster, in blocks. Must be equal to the `z` field of CUlaunchAttributeValue::clusterDim. - {{endif}} - {{if 'CUlaunchAttributeValue_union.deviceUpdatableKernelNode' in found_struct}} + + deviceUpdatableKernelNode : anon_struct5 Value of launch attribute CU_LAUNCH_ATTRIBUTE_DEVICE_UPDATABLE_KERNEL_NODE. with the @@ -7344,26 +6898,26 @@ cdef class CUkernelNodeAttrValue(CUkernelNodeAttrValue_v1): resulting kernel node should be device-updatable. - `CUgraphDeviceNode` devNode - Returns a handle to pass to the various device-side update functions. - {{endif}} - {{if 'CUlaunchAttributeValue_union.sharedMemCarveout' in found_struct}} + + sharedMemCarveout : unsigned int Value of launch attribute CU_LAUNCH_ATTRIBUTE_PREFERRED_SHARED_MEMORY_CARVEOUT. - {{endif}} - {{if 'CUlaunchAttributeValue_union.nvlinkUtilCentricScheduling' in found_struct}} + + nvlinkUtilCentricScheduling : unsigned int - {{endif}} - {{if 'CUlaunchAttributeValue_union.portableClusterSizeMode' in found_struct}} + + portableClusterSizeMode : CUlaunchAttributePortableClusterMode Value of launch attribute CU_LAUNCH_ATTRIBUTE_PORTABLE_CLUSTER_SIZE_MODE. - {{endif}} - {{if 'CUlaunchAttributeValue_union.sharedMemoryMode' in found_struct}} + + sharedMemoryMode : CUsharedMemoryMode Value of launch attribute CU_LAUNCH_ATTRIBUTE_SHARED_MEMORY_MODE. See CUsharedMemoryMode for acceptable values. - {{endif}} + Methods ------- @@ -7371,8 +6925,6 @@ cdef class CUkernelNodeAttrValue(CUkernelNodeAttrValue_v1): Get memory address of class instance """ pass -{{endif}} -{{if 'CUstreamAttrValue_v1' in found_types}} cdef class CUstreamAttrValue_v1(CUlaunchAttributeValue): """ @@ -7380,26 +6932,26 @@ cdef class CUstreamAttrValue_v1(CUlaunchAttributeValue): Attributes ---------- - {{if 'CUlaunchAttributeValue_union.pad' in found_struct}} + pad : bytes - {{endif}} - {{if 'CUlaunchAttributeValue_union.accessPolicyWindow' in found_struct}} + + accessPolicyWindow : CUaccessPolicyWindow Value of launch attribute CU_LAUNCH_ATTRIBUTE_ACCESS_POLICY_WINDOW. - {{endif}} - {{if 'CUlaunchAttributeValue_union.cooperative' in found_struct}} + + cooperative : int Value of launch attribute CU_LAUNCH_ATTRIBUTE_COOPERATIVE. Nonzero indicates a cooperative kernel (see cuLaunchCooperativeKernel). - {{endif}} - {{if 'CUlaunchAttributeValue_union.syncPolicy' in found_struct}} + + syncPolicy : CUsynchronizationPolicy Value of launch attribute CU_LAUNCH_ATTRIBUTE_SYNCHRONIZATION_POLICY. CUsynchronizationPolicy for work queued up in this stream - {{endif}} - {{if 'CUlaunchAttributeValue_union.clusterDim' in found_struct}} + + clusterDim : anon_struct1 Value of launch attribute CU_LAUNCH_ATTRIBUTE_CLUSTER_DIMENSION that represents the desired cluster dimensions for the kernel. @@ -7408,19 +6960,19 @@ cdef class CUstreamAttrValue_v1(CUlaunchAttributeValue): - `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 'CUlaunchAttributeValue_union.clusterSchedulingPolicyPreference' in found_struct}} + + clusterSchedulingPolicyPreference : CUclusterSchedulingPolicy Value of launch attribute CU_LAUNCH_ATTRIBUTE_CLUSTER_SCHEDULING_POLICY_PREFERENCE. Cluster scheduling policy preference for the kernel. - {{endif}} - {{if 'CUlaunchAttributeValue_union.programmaticStreamSerializationAllowed' in found_struct}} + + programmaticStreamSerializationAllowed : int Value of launch attribute CU_LAUNCH_ATTRIBUTE_PROGRAMMATIC_STREAM_SERIALIZATION. - {{endif}} - {{if 'CUlaunchAttributeValue_union.programmaticEvent' in found_struct}} + + programmaticEvent : anon_struct2 Value of launch attribute CU_LAUNCH_ATTRIBUTE_PROGRAMMATIC_EVENT with the following fields: - `CUevent` event - Event to fire when @@ -7428,31 +6980,31 @@ cdef class CUstreamAttrValue_v1(CUlaunchAttributeValue): cuEventRecordWithFlags. Does not accept :CU_EVENT_RECORD_EXTERNAL. - `triggerAtBlockStart` - If this is set to non-0, each block launch will automatically trigger the event. - {{endif}} - {{if 'CUlaunchAttributeValue_union.launchCompletionEvent' in found_struct}} + + launchCompletionEvent : anon_struct3 Value of launch attribute CU_LAUNCH_ATTRIBUTE_LAUNCH_COMPLETION_EVENT with the following fields: - `CUevent` event - Event to fire when the last block launches - `int` flags; - Event record flags, see cuEventRecordWithFlags. Does not accept CU_EVENT_RECORD_EXTERNAL. - {{endif}} - {{if 'CUlaunchAttributeValue_union.priority' in found_struct}} + + priority : int Value of launch attribute CU_LAUNCH_ATTRIBUTE_PRIORITY. Execution priority of the kernel. - {{endif}} - {{if 'CUlaunchAttributeValue_union.memSyncDomainMap' in found_struct}} + + memSyncDomainMap : CUlaunchMemSyncDomainMap Value of launch attribute CU_LAUNCH_ATTRIBUTE_MEM_SYNC_DOMAIN_MAP. See CUlaunchMemSyncDomainMap. - {{endif}} - {{if 'CUlaunchAttributeValue_union.memSyncDomain' in found_struct}} + + memSyncDomain : CUlaunchMemSyncDomain Value of launch attribute CU_LAUNCH_ATTRIBUTE_MEM_SYNC_DOMAIN. See::CUlaunchMemSyncDomain - {{endif}} - {{if 'CUlaunchAttributeValue_union.preferredClusterDim' in found_struct}} + + preferredClusterDim : anon_struct4 Value of launch attribute CU_LAUNCH_ATTRIBUTE_PREFERRED_CLUSTER_DIMENSION that represents the @@ -7466,8 +7018,8 @@ cdef class CUstreamAttrValue_v1(CUlaunchAttributeValue): CUlaunchAttributeValue::clusterDim. - `z` - The Z dimension of the preferred cluster, in blocks. Must be equal to the `z` field of CUlaunchAttributeValue::clusterDim. - {{endif}} - {{if 'CUlaunchAttributeValue_union.deviceUpdatableKernelNode' in found_struct}} + + deviceUpdatableKernelNode : anon_struct5 Value of launch attribute CU_LAUNCH_ATTRIBUTE_DEVICE_UPDATABLE_KERNEL_NODE. with the @@ -7475,26 +7027,26 @@ cdef class CUstreamAttrValue_v1(CUlaunchAttributeValue): resulting kernel node should be device-updatable. - `CUgraphDeviceNode` devNode - Returns a handle to pass to the various device-side update functions. - {{endif}} - {{if 'CUlaunchAttributeValue_union.sharedMemCarveout' in found_struct}} + + sharedMemCarveout : unsigned int Value of launch attribute CU_LAUNCH_ATTRIBUTE_PREFERRED_SHARED_MEMORY_CARVEOUT. - {{endif}} - {{if 'CUlaunchAttributeValue_union.nvlinkUtilCentricScheduling' in found_struct}} + + nvlinkUtilCentricScheduling : unsigned int - {{endif}} - {{if 'CUlaunchAttributeValue_union.portableClusterSizeMode' in found_struct}} + + portableClusterSizeMode : CUlaunchAttributePortableClusterMode Value of launch attribute CU_LAUNCH_ATTRIBUTE_PORTABLE_CLUSTER_SIZE_MODE. - {{endif}} - {{if 'CUlaunchAttributeValue_union.sharedMemoryMode' in found_struct}} + + sharedMemoryMode : CUsharedMemoryMode Value of launch attribute CU_LAUNCH_ATTRIBUTE_SHARED_MEMORY_MODE. See CUsharedMemoryMode for acceptable values. - {{endif}} + Methods ------- @@ -7502,8 +7054,6 @@ cdef class CUstreamAttrValue_v1(CUlaunchAttributeValue): Get memory address of class instance """ pass -{{endif}} -{{if 'CUstreamAttrValue' in found_types}} cdef class CUstreamAttrValue(CUstreamAttrValue_v1): """ @@ -7511,26 +7061,26 @@ cdef class CUstreamAttrValue(CUstreamAttrValue_v1): Attributes ---------- - {{if 'CUlaunchAttributeValue_union.pad' in found_struct}} + pad : bytes - {{endif}} - {{if 'CUlaunchAttributeValue_union.accessPolicyWindow' in found_struct}} + + accessPolicyWindow : CUaccessPolicyWindow Value of launch attribute CU_LAUNCH_ATTRIBUTE_ACCESS_POLICY_WINDOW. - {{endif}} - {{if 'CUlaunchAttributeValue_union.cooperative' in found_struct}} + + cooperative : int Value of launch attribute CU_LAUNCH_ATTRIBUTE_COOPERATIVE. Nonzero indicates a cooperative kernel (see cuLaunchCooperativeKernel). - {{endif}} - {{if 'CUlaunchAttributeValue_union.syncPolicy' in found_struct}} + + syncPolicy : CUsynchronizationPolicy Value of launch attribute CU_LAUNCH_ATTRIBUTE_SYNCHRONIZATION_POLICY. CUsynchronizationPolicy for work queued up in this stream - {{endif}} - {{if 'CUlaunchAttributeValue_union.clusterDim' in found_struct}} + + clusterDim : anon_struct1 Value of launch attribute CU_LAUNCH_ATTRIBUTE_CLUSTER_DIMENSION that represents the desired cluster dimensions for the kernel. @@ -7539,19 +7089,19 @@ cdef class CUstreamAttrValue(CUstreamAttrValue_v1): - `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 'CUlaunchAttributeValue_union.clusterSchedulingPolicyPreference' in found_struct}} + + clusterSchedulingPolicyPreference : CUclusterSchedulingPolicy Value of launch attribute CU_LAUNCH_ATTRIBUTE_CLUSTER_SCHEDULING_POLICY_PREFERENCE. Cluster scheduling policy preference for the kernel. - {{endif}} - {{if 'CUlaunchAttributeValue_union.programmaticStreamSerializationAllowed' in found_struct}} + + programmaticStreamSerializationAllowed : int Value of launch attribute CU_LAUNCH_ATTRIBUTE_PROGRAMMATIC_STREAM_SERIALIZATION. - {{endif}} - {{if 'CUlaunchAttributeValue_union.programmaticEvent' in found_struct}} + + programmaticEvent : anon_struct2 Value of launch attribute CU_LAUNCH_ATTRIBUTE_PROGRAMMATIC_EVENT with the following fields: - `CUevent` event - Event to fire when @@ -7559,31 +7109,31 @@ cdef class CUstreamAttrValue(CUstreamAttrValue_v1): cuEventRecordWithFlags. Does not accept :CU_EVENT_RECORD_EXTERNAL. - `triggerAtBlockStart` - If this is set to non-0, each block launch will automatically trigger the event. - {{endif}} - {{if 'CUlaunchAttributeValue_union.launchCompletionEvent' in found_struct}} + + launchCompletionEvent : anon_struct3 Value of launch attribute CU_LAUNCH_ATTRIBUTE_LAUNCH_COMPLETION_EVENT with the following fields: - `CUevent` event - Event to fire when the last block launches - `int` flags; - Event record flags, see cuEventRecordWithFlags. Does not accept CU_EVENT_RECORD_EXTERNAL. - {{endif}} - {{if 'CUlaunchAttributeValue_union.priority' in found_struct}} + + priority : int Value of launch attribute CU_LAUNCH_ATTRIBUTE_PRIORITY. Execution priority of the kernel. - {{endif}} - {{if 'CUlaunchAttributeValue_union.memSyncDomainMap' in found_struct}} + + memSyncDomainMap : CUlaunchMemSyncDomainMap Value of launch attribute CU_LAUNCH_ATTRIBUTE_MEM_SYNC_DOMAIN_MAP. See CUlaunchMemSyncDomainMap. - {{endif}} - {{if 'CUlaunchAttributeValue_union.memSyncDomain' in found_struct}} + + memSyncDomain : CUlaunchMemSyncDomain Value of launch attribute CU_LAUNCH_ATTRIBUTE_MEM_SYNC_DOMAIN. See::CUlaunchMemSyncDomain - {{endif}} - {{if 'CUlaunchAttributeValue_union.preferredClusterDim' in found_struct}} + + preferredClusterDim : anon_struct4 Value of launch attribute CU_LAUNCH_ATTRIBUTE_PREFERRED_CLUSTER_DIMENSION that represents the @@ -7597,8 +7147,8 @@ cdef class CUstreamAttrValue(CUstreamAttrValue_v1): CUlaunchAttributeValue::clusterDim. - `z` - The Z dimension of the preferred cluster, in blocks. Must be equal to the `z` field of CUlaunchAttributeValue::clusterDim. - {{endif}} - {{if 'CUlaunchAttributeValue_union.deviceUpdatableKernelNode' in found_struct}} + + deviceUpdatableKernelNode : anon_struct5 Value of launch attribute CU_LAUNCH_ATTRIBUTE_DEVICE_UPDATABLE_KERNEL_NODE. with the @@ -7606,26 +7156,26 @@ cdef class CUstreamAttrValue(CUstreamAttrValue_v1): resulting kernel node should be device-updatable. - `CUgraphDeviceNode` devNode - Returns a handle to pass to the various device-side update functions. - {{endif}} - {{if 'CUlaunchAttributeValue_union.sharedMemCarveout' in found_struct}} + + sharedMemCarveout : unsigned int Value of launch attribute CU_LAUNCH_ATTRIBUTE_PREFERRED_SHARED_MEMORY_CARVEOUT. - {{endif}} - {{if 'CUlaunchAttributeValue_union.nvlinkUtilCentricScheduling' in found_struct}} + + nvlinkUtilCentricScheduling : unsigned int - {{endif}} - {{if 'CUlaunchAttributeValue_union.portableClusterSizeMode' in found_struct}} + + portableClusterSizeMode : CUlaunchAttributePortableClusterMode Value of launch attribute CU_LAUNCH_ATTRIBUTE_PORTABLE_CLUSTER_SIZE_MODE. - {{endif}} - {{if 'CUlaunchAttributeValue_union.sharedMemoryMode' in found_struct}} + + sharedMemoryMode : CUsharedMemoryMode Value of launch attribute CU_LAUNCH_ATTRIBUTE_SHARED_MEMORY_MODE. See CUsharedMemoryMode for acceptable values. - {{endif}} + Methods ------- @@ -7633,8 +7183,6 @@ cdef class CUstreamAttrValue(CUstreamAttrValue_v1): Get memory address of class instance """ pass -{{endif}} -{{if 'CUexecAffinitySmCount_v1' in found_types}} cdef class CUexecAffinitySmCount_v1(CUexecAffinitySmCount_st): """ @@ -7642,10 +7190,10 @@ cdef class CUexecAffinitySmCount_v1(CUexecAffinitySmCount_st): Attributes ---------- - {{if 'CUexecAffinitySmCount_st.val' in found_struct}} + val : unsigned int The number of SMs the context is limited to use. - {{endif}} + Methods ------- @@ -7653,8 +7201,6 @@ cdef class CUexecAffinitySmCount_v1(CUexecAffinitySmCount_st): Get memory address of class instance """ pass -{{endif}} -{{if 'CUexecAffinitySmCount' in found_types}} cdef class CUexecAffinitySmCount(CUexecAffinitySmCount_v1): """ @@ -7662,10 +7208,10 @@ cdef class CUexecAffinitySmCount(CUexecAffinitySmCount_v1): Attributes ---------- - {{if 'CUexecAffinitySmCount_st.val' in found_struct}} + val : unsigned int The number of SMs the context is limited to use. - {{endif}} + Methods ------- @@ -7673,8 +7219,6 @@ cdef class CUexecAffinitySmCount(CUexecAffinitySmCount_v1): Get memory address of class instance """ pass -{{endif}} -{{if 'CUexecAffinityParam_v1' in found_types}} cdef class CUexecAffinityParam_v1(CUexecAffinityParam_st): """ @@ -7682,14 +7226,14 @@ cdef class CUexecAffinityParam_v1(CUexecAffinityParam_st): Attributes ---------- - {{if 'CUexecAffinityParam_st.type' in found_struct}} + type : CUexecAffinityType Type of execution affinity. - {{endif}} - {{if 'CUexecAffinityParam_st.param' in found_struct}} + + param : anon_union3 - {{endif}} + Methods ------- @@ -7697,8 +7241,6 @@ cdef class CUexecAffinityParam_v1(CUexecAffinityParam_st): Get memory address of class instance """ pass -{{endif}} -{{if 'CUexecAffinityParam' in found_types}} cdef class CUexecAffinityParam(CUexecAffinityParam_v1): """ @@ -7706,14 +7248,14 @@ cdef class CUexecAffinityParam(CUexecAffinityParam_v1): Attributes ---------- - {{if 'CUexecAffinityParam_st.type' in found_struct}} + type : CUexecAffinityType Type of execution affinity. - {{endif}} - {{if 'CUexecAffinityParam_st.param' in found_struct}} + + param : anon_union3 - {{endif}} + Methods ------- @@ -7721,8 +7263,6 @@ cdef class CUexecAffinityParam(CUexecAffinityParam_v1): Get memory address of class instance """ pass -{{endif}} -{{if 'CUctxCigParam' in found_types}} cdef class CUctxCigParam(CUctxCigParam_st): """ @@ -7730,15 +7270,15 @@ cdef class CUctxCigParam(CUctxCigParam_st): Attributes ---------- - {{if 'CUctxCigParam_st.sharedDataType' in found_struct}} + sharedDataType : CUcigDataType Type of shared data from graphics client (D3D12 or Vulkan). - {{endif}} - {{if 'CUctxCigParam_st.sharedData' in found_struct}} + + sharedData : Any Graphics client data handle (ID3D12CommandQueue or Nvidia specific data blob). - {{endif}} + Methods ------- @@ -7746,8 +7286,6 @@ cdef class CUctxCigParam(CUctxCigParam_st): Get memory address of class instance """ pass -{{endif}} -{{if 'CUctxCreateParams' in found_types}} cdef class CUctxCreateParams(CUctxCreateParams_st): """ @@ -7757,23 +7295,23 @@ cdef class CUctxCreateParams(CUctxCreateParams_st): Attributes ---------- - {{if 'CUctxCreateParams_st.execAffinityParams' in found_struct}} + execAffinityParams : CUexecAffinityParam Array of execution affinity parameters to limit context resources (e.g., SM count). Only supported Volta+ MPS. Mutually exclusive with cigParams. - {{endif}} - {{if 'CUctxCreateParams_st.numExecAffinityParams' in found_struct}} + + numExecAffinityParams : int Number of elements in execAffinityParams array. Must be 0 if execAffinityParams is NULL. - {{endif}} - {{if 'CUctxCreateParams_st.cigParams' in found_struct}} + + cigParams : CUctxCigParam CIG (CUDA in Graphics) parameters for sharing data from D3D12/Vulkan graphics clients. Mutually exclusive with execAffinityParams. - {{endif}} + Methods ------- @@ -7781,8 +7319,6 @@ cdef class CUctxCreateParams(CUctxCreateParams_st): Get memory address of class instance """ pass -{{endif}} -{{if 'CUstreamCigParam' in found_types}} cdef class CUstreamCigParam(CUstreamCigParam_st): """ @@ -7790,15 +7326,15 @@ cdef class CUstreamCigParam(CUstreamCigParam_st): Attributes ---------- - {{if 'CUstreamCigParam_st.streamSharedDataType' in found_struct}} + streamSharedDataType : CUstreamCigDataType Type of shared data from graphics client (D3D12). - {{endif}} - {{if 'CUstreamCigParam_st.streamSharedData' in found_struct}} + + streamSharedData : Any Graphics client data handle (ID3D12CommandList/ID3D12GraphicsCommandList). - {{endif}} + Methods ------- @@ -7806,8 +7342,6 @@ cdef class CUstreamCigParam(CUstreamCigParam_st): Get memory address of class instance """ pass -{{endif}} -{{if 'CUstreamCigCaptureParams' in found_types}} cdef class CUstreamCigCaptureParams(CUstreamCigCaptureParams_st): """ @@ -7816,11 +7350,11 @@ cdef class CUstreamCigCaptureParams(CUstreamCigCaptureParams_st): Attributes ---------- - {{if 'CUstreamCigCaptureParams_st.streamCigParams' in found_struct}} + streamCigParams : CUstreamCigParam CIG (CUDA in Graphics) parameters for sharing command list data from D3D12 graphics clients. - {{endif}} + Methods ------- @@ -7828,29 +7362,27 @@ cdef class CUstreamCigCaptureParams(CUstreamCigCaptureParams_st): Get memory address of class instance """ pass -{{endif}} -{{if 'CUlibraryHostUniversalFunctionAndDataTable' in found_types}} cdef class CUlibraryHostUniversalFunctionAndDataTable(CUlibraryHostUniversalFunctionAndDataTable_st): """ Attributes ---------- - {{if 'CUlibraryHostUniversalFunctionAndDataTable_st.functionTable' in found_struct}} + functionTable : Any - {{endif}} - {{if 'CUlibraryHostUniversalFunctionAndDataTable_st.functionWindowSize' in found_struct}} + + functionWindowSize : size_t - {{endif}} - {{if 'CUlibraryHostUniversalFunctionAndDataTable_st.dataTable' in found_struct}} + + dataTable : Any - {{endif}} - {{if 'CUlibraryHostUniversalFunctionAndDataTable_st.dataWindowSize' in found_struct}} + + dataWindowSize : size_t - {{endif}} + Methods ------- @@ -7858,8 +7390,6 @@ cdef class CUlibraryHostUniversalFunctionAndDataTable(CUlibraryHostUniversalFunc Get memory address of class instance """ pass -{{endif}} -{{if 'CUDA_MEMCPY2D_v2' in found_types}} cdef class CUDA_MEMCPY2D_v2(CUDA_MEMCPY2D_st): """ @@ -7867,70 +7397,70 @@ cdef class CUDA_MEMCPY2D_v2(CUDA_MEMCPY2D_st): Attributes ---------- - {{if 'CUDA_MEMCPY2D_st.srcXInBytes' in found_struct}} + srcXInBytes : size_t Source X in bytes - {{endif}} - {{if 'CUDA_MEMCPY2D_st.srcY' in found_struct}} + + srcY : size_t Source Y - {{endif}} - {{if 'CUDA_MEMCPY2D_st.srcMemoryType' in found_struct}} + + srcMemoryType : CUmemorytype Source memory type (host, device, array) - {{endif}} - {{if 'CUDA_MEMCPY2D_st.srcHost' in found_struct}} + + srcHost : Any Source host pointer - {{endif}} - {{if 'CUDA_MEMCPY2D_st.srcDevice' in found_struct}} + + srcDevice : CUdeviceptr Source device pointer - {{endif}} - {{if 'CUDA_MEMCPY2D_st.srcArray' in found_struct}} + + srcArray : CUarray Source array reference - {{endif}} - {{if 'CUDA_MEMCPY2D_st.srcPitch' in found_struct}} + + srcPitch : size_t Source pitch (ignored when src is array) - {{endif}} - {{if 'CUDA_MEMCPY2D_st.dstXInBytes' in found_struct}} + + dstXInBytes : size_t Destination X in bytes - {{endif}} - {{if 'CUDA_MEMCPY2D_st.dstY' in found_struct}} + + dstY : size_t Destination Y - {{endif}} - {{if 'CUDA_MEMCPY2D_st.dstMemoryType' in found_struct}} + + dstMemoryType : CUmemorytype Destination memory type (host, device, array) - {{endif}} - {{if 'CUDA_MEMCPY2D_st.dstHost' in found_struct}} + + dstHost : Any Destination host pointer - {{endif}} - {{if 'CUDA_MEMCPY2D_st.dstDevice' in found_struct}} + + dstDevice : CUdeviceptr Destination device pointer - {{endif}} - {{if 'CUDA_MEMCPY2D_st.dstArray' in found_struct}} + + dstArray : CUarray Destination array reference - {{endif}} - {{if 'CUDA_MEMCPY2D_st.dstPitch' in found_struct}} + + dstPitch : size_t Destination pitch (ignored when dst is array) - {{endif}} - {{if 'CUDA_MEMCPY2D_st.WidthInBytes' in found_struct}} + + WidthInBytes : size_t Width of 2D memory copy in bytes - {{endif}} - {{if 'CUDA_MEMCPY2D_st.Height' in found_struct}} + + Height : size_t Height of 2D memory copy - {{endif}} + Methods ------- @@ -7938,8 +7468,6 @@ cdef class CUDA_MEMCPY2D_v2(CUDA_MEMCPY2D_st): Get memory address of class instance """ pass -{{endif}} -{{if 'CUDA_MEMCPY2D' in found_types}} cdef class CUDA_MEMCPY2D(CUDA_MEMCPY2D_v2): """ @@ -7947,70 +7475,70 @@ cdef class CUDA_MEMCPY2D(CUDA_MEMCPY2D_v2): Attributes ---------- - {{if 'CUDA_MEMCPY2D_st.srcXInBytes' in found_struct}} + srcXInBytes : size_t Source X in bytes - {{endif}} - {{if 'CUDA_MEMCPY2D_st.srcY' in found_struct}} + + srcY : size_t Source Y - {{endif}} - {{if 'CUDA_MEMCPY2D_st.srcMemoryType' in found_struct}} + + srcMemoryType : CUmemorytype Source memory type (host, device, array) - {{endif}} - {{if 'CUDA_MEMCPY2D_st.srcHost' in found_struct}} + + srcHost : Any Source host pointer - {{endif}} - {{if 'CUDA_MEMCPY2D_st.srcDevice' in found_struct}} + + srcDevice : CUdeviceptr Source device pointer - {{endif}} - {{if 'CUDA_MEMCPY2D_st.srcArray' in found_struct}} + + srcArray : CUarray Source array reference - {{endif}} - {{if 'CUDA_MEMCPY2D_st.srcPitch' in found_struct}} + + srcPitch : size_t Source pitch (ignored when src is array) - {{endif}} - {{if 'CUDA_MEMCPY2D_st.dstXInBytes' in found_struct}} + + dstXInBytes : size_t Destination X in bytes - {{endif}} - {{if 'CUDA_MEMCPY2D_st.dstY' in found_struct}} + + dstY : size_t Destination Y - {{endif}} - {{if 'CUDA_MEMCPY2D_st.dstMemoryType' in found_struct}} + + dstMemoryType : CUmemorytype Destination memory type (host, device, array) - {{endif}} - {{if 'CUDA_MEMCPY2D_st.dstHost' in found_struct}} + + dstHost : Any Destination host pointer - {{endif}} - {{if 'CUDA_MEMCPY2D_st.dstDevice' in found_struct}} + + dstDevice : CUdeviceptr Destination device pointer - {{endif}} - {{if 'CUDA_MEMCPY2D_st.dstArray' in found_struct}} + + dstArray : CUarray Destination array reference - {{endif}} - {{if 'CUDA_MEMCPY2D_st.dstPitch' in found_struct}} + + dstPitch : size_t Destination pitch (ignored when dst is array) - {{endif}} - {{if 'CUDA_MEMCPY2D_st.WidthInBytes' in found_struct}} + + WidthInBytes : size_t Width of 2D memory copy in bytes - {{endif}} - {{if 'CUDA_MEMCPY2D_st.Height' in found_struct}} + + Height : size_t Height of 2D memory copy - {{endif}} + Methods ------- @@ -8018,8 +7546,6 @@ cdef class CUDA_MEMCPY2D(CUDA_MEMCPY2D_v2): Get memory address of class instance """ pass -{{endif}} -{{if 'CUDA_MEMCPY3D_v2' in found_types}} cdef class CUDA_MEMCPY3D_v2(CUDA_MEMCPY3D_st): """ @@ -8027,107 +7553,107 @@ cdef class CUDA_MEMCPY3D_v2(CUDA_MEMCPY3D_st): Attributes ---------- - {{if 'CUDA_MEMCPY3D_st.srcXInBytes' in found_struct}} + srcXInBytes : size_t Source X in bytes - {{endif}} - {{if 'CUDA_MEMCPY3D_st.srcY' in found_struct}} + + srcY : size_t Source Y - {{endif}} - {{if 'CUDA_MEMCPY3D_st.srcZ' in found_struct}} + + srcZ : size_t Source Z - {{endif}} - {{if 'CUDA_MEMCPY3D_st.srcLOD' in found_struct}} + + srcLOD : size_t Source LOD - {{endif}} - {{if 'CUDA_MEMCPY3D_st.srcMemoryType' in found_struct}} + + srcMemoryType : CUmemorytype Source memory type (host, device, array) - {{endif}} - {{if 'CUDA_MEMCPY3D_st.srcHost' in found_struct}} + + srcHost : Any Source host pointer - {{endif}} - {{if 'CUDA_MEMCPY3D_st.srcDevice' in found_struct}} + + srcDevice : CUdeviceptr Source device pointer - {{endif}} - {{if 'CUDA_MEMCPY3D_st.srcArray' in found_struct}} + + srcArray : CUarray Source array reference - {{endif}} - {{if 'CUDA_MEMCPY3D_st.reserved0' in found_struct}} + + reserved0 : Any Must be NULL - {{endif}} - {{if 'CUDA_MEMCPY3D_st.srcPitch' in found_struct}} + + srcPitch : size_t Source pitch (ignored when src is array) - {{endif}} - {{if 'CUDA_MEMCPY3D_st.srcHeight' in found_struct}} + + srcHeight : size_t Source height (ignored when src is array; may be 0 if Depth==1) - {{endif}} - {{if 'CUDA_MEMCPY3D_st.dstXInBytes' in found_struct}} + + dstXInBytes : size_t Destination X in bytes - {{endif}} - {{if 'CUDA_MEMCPY3D_st.dstY' in found_struct}} + + dstY : size_t Destination Y - {{endif}} - {{if 'CUDA_MEMCPY3D_st.dstZ' in found_struct}} + + dstZ : size_t Destination Z - {{endif}} - {{if 'CUDA_MEMCPY3D_st.dstLOD' in found_struct}} + + dstLOD : size_t Destination LOD - {{endif}} - {{if 'CUDA_MEMCPY3D_st.dstMemoryType' in found_struct}} + + dstMemoryType : CUmemorytype Destination memory type (host, device, array) - {{endif}} - {{if 'CUDA_MEMCPY3D_st.dstHost' in found_struct}} + + dstHost : Any Destination host pointer - {{endif}} - {{if 'CUDA_MEMCPY3D_st.dstDevice' in found_struct}} + + dstDevice : CUdeviceptr Destination device pointer - {{endif}} - {{if 'CUDA_MEMCPY3D_st.dstArray' in found_struct}} + + dstArray : CUarray Destination array reference - {{endif}} - {{if 'CUDA_MEMCPY3D_st.reserved1' in found_struct}} + + reserved1 : Any Must be NULL - {{endif}} - {{if 'CUDA_MEMCPY3D_st.dstPitch' in found_struct}} + + dstPitch : size_t Destination pitch (ignored when dst is array) - {{endif}} - {{if 'CUDA_MEMCPY3D_st.dstHeight' in found_struct}} + + dstHeight : size_t Destination height (ignored when dst is array; may be 0 if Depth==1) - {{endif}} - {{if 'CUDA_MEMCPY3D_st.WidthInBytes' in found_struct}} + + WidthInBytes : size_t Width of 3D memory copy in bytes - {{endif}} - {{if 'CUDA_MEMCPY3D_st.Height' in found_struct}} + + Height : size_t Height of 3D memory copy - {{endif}} - {{if 'CUDA_MEMCPY3D_st.Depth' in found_struct}} + + Depth : size_t Depth of 3D memory copy - {{endif}} + Methods ------- @@ -8135,8 +7661,6 @@ cdef class CUDA_MEMCPY3D_v2(CUDA_MEMCPY3D_st): Get memory address of class instance """ pass -{{endif}} -{{if 'CUDA_MEMCPY3D' in found_types}} cdef class CUDA_MEMCPY3D(CUDA_MEMCPY3D_v2): """ @@ -8144,107 +7668,107 @@ cdef class CUDA_MEMCPY3D(CUDA_MEMCPY3D_v2): Attributes ---------- - {{if 'CUDA_MEMCPY3D_st.srcXInBytes' in found_struct}} + srcXInBytes : size_t Source X in bytes - {{endif}} - {{if 'CUDA_MEMCPY3D_st.srcY' in found_struct}} + + srcY : size_t Source Y - {{endif}} - {{if 'CUDA_MEMCPY3D_st.srcZ' in found_struct}} + + srcZ : size_t Source Z - {{endif}} - {{if 'CUDA_MEMCPY3D_st.srcLOD' in found_struct}} + + srcLOD : size_t Source LOD - {{endif}} - {{if 'CUDA_MEMCPY3D_st.srcMemoryType' in found_struct}} + + srcMemoryType : CUmemorytype Source memory type (host, device, array) - {{endif}} - {{if 'CUDA_MEMCPY3D_st.srcHost' in found_struct}} + + srcHost : Any Source host pointer - {{endif}} - {{if 'CUDA_MEMCPY3D_st.srcDevice' in found_struct}} + + srcDevice : CUdeviceptr Source device pointer - {{endif}} - {{if 'CUDA_MEMCPY3D_st.srcArray' in found_struct}} + + srcArray : CUarray Source array reference - {{endif}} - {{if 'CUDA_MEMCPY3D_st.reserved0' in found_struct}} + + reserved0 : Any Must be NULL - {{endif}} - {{if 'CUDA_MEMCPY3D_st.srcPitch' in found_struct}} + + srcPitch : size_t Source pitch (ignored when src is array) - {{endif}} - {{if 'CUDA_MEMCPY3D_st.srcHeight' in found_struct}} + + srcHeight : size_t Source height (ignored when src is array; may be 0 if Depth==1) - {{endif}} - {{if 'CUDA_MEMCPY3D_st.dstXInBytes' in found_struct}} + + dstXInBytes : size_t Destination X in bytes - {{endif}} - {{if 'CUDA_MEMCPY3D_st.dstY' in found_struct}} + + dstY : size_t Destination Y - {{endif}} - {{if 'CUDA_MEMCPY3D_st.dstZ' in found_struct}} + + dstZ : size_t Destination Z - {{endif}} - {{if 'CUDA_MEMCPY3D_st.dstLOD' in found_struct}} + + dstLOD : size_t Destination LOD - {{endif}} - {{if 'CUDA_MEMCPY3D_st.dstMemoryType' in found_struct}} + + dstMemoryType : CUmemorytype Destination memory type (host, device, array) - {{endif}} - {{if 'CUDA_MEMCPY3D_st.dstHost' in found_struct}} + + dstHost : Any Destination host pointer - {{endif}} - {{if 'CUDA_MEMCPY3D_st.dstDevice' in found_struct}} + + dstDevice : CUdeviceptr Destination device pointer - {{endif}} - {{if 'CUDA_MEMCPY3D_st.dstArray' in found_struct}} + + dstArray : CUarray Destination array reference - {{endif}} - {{if 'CUDA_MEMCPY3D_st.reserved1' in found_struct}} + + reserved1 : Any Must be NULL - {{endif}} - {{if 'CUDA_MEMCPY3D_st.dstPitch' in found_struct}} + + dstPitch : size_t Destination pitch (ignored when dst is array) - {{endif}} - {{if 'CUDA_MEMCPY3D_st.dstHeight' in found_struct}} + + dstHeight : size_t Destination height (ignored when dst is array; may be 0 if Depth==1) - {{endif}} - {{if 'CUDA_MEMCPY3D_st.WidthInBytes' in found_struct}} + + WidthInBytes : size_t Width of 3D memory copy in bytes - {{endif}} - {{if 'CUDA_MEMCPY3D_st.Height' in found_struct}} + + Height : size_t Height of 3D memory copy - {{endif}} - {{if 'CUDA_MEMCPY3D_st.Depth' in found_struct}} + + Depth : size_t Depth of 3D memory copy - {{endif}} + Methods ------- @@ -8252,8 +7776,6 @@ cdef class CUDA_MEMCPY3D(CUDA_MEMCPY3D_v2): Get memory address of class instance """ pass -{{endif}} -{{if 'CUDA_MEMCPY3D_PEER_v1' in found_types}} cdef class CUDA_MEMCPY3D_PEER_v1(CUDA_MEMCPY3D_PEER_st): """ @@ -8261,108 +7783,108 @@ cdef class CUDA_MEMCPY3D_PEER_v1(CUDA_MEMCPY3D_PEER_st): Attributes ---------- - {{if 'CUDA_MEMCPY3D_PEER_st.srcXInBytes' in found_struct}} + srcXInBytes : size_t Source X in bytes - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.srcY' in found_struct}} + + srcY : size_t Source Y - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.srcZ' in found_struct}} + + srcZ : size_t Source Z - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.srcLOD' in found_struct}} + + srcLOD : size_t Source LOD - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.srcMemoryType' in found_struct}} + + srcMemoryType : CUmemorytype Source memory type (host, device, array) - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.srcHost' in found_struct}} + + srcHost : Any Source host pointer - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.srcDevice' in found_struct}} + + srcDevice : CUdeviceptr Source device pointer - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.srcArray' in found_struct}} + + srcArray : CUarray Source array reference - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.srcContext' in found_struct}} + + srcContext : CUcontext Source context (ignored with srcMemoryType is CU_MEMORYTYPE_ARRAY) - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.srcPitch' in found_struct}} + + srcPitch : size_t Source pitch (ignored when src is array) - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.srcHeight' in found_struct}} + + srcHeight : size_t Source height (ignored when src is array; may be 0 if Depth==1) - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.dstXInBytes' in found_struct}} + + dstXInBytes : size_t Destination X in bytes - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.dstY' in found_struct}} + + dstY : size_t Destination Y - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.dstZ' in found_struct}} + + dstZ : size_t Destination Z - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.dstLOD' in found_struct}} + + dstLOD : size_t Destination LOD - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.dstMemoryType' in found_struct}} + + dstMemoryType : CUmemorytype Destination memory type (host, device, array) - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.dstHost' in found_struct}} + + dstHost : Any Destination host pointer - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.dstDevice' in found_struct}} + + dstDevice : CUdeviceptr Destination device pointer - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.dstArray' in found_struct}} + + dstArray : CUarray Destination array reference - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.dstContext' in found_struct}} + + dstContext : CUcontext Destination context (ignored with dstMemoryType is CU_MEMORYTYPE_ARRAY) - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.dstPitch' in found_struct}} + + dstPitch : size_t Destination pitch (ignored when dst is array) - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.dstHeight' in found_struct}} + + dstHeight : size_t Destination height (ignored when dst is array; may be 0 if Depth==1) - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.WidthInBytes' in found_struct}} + + WidthInBytes : size_t Width of 3D memory copy in bytes - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.Height' in found_struct}} + + Height : size_t Height of 3D memory copy - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.Depth' in found_struct}} + + Depth : size_t Depth of 3D memory copy - {{endif}} + Methods ------- @@ -8370,8 +7892,6 @@ cdef class CUDA_MEMCPY3D_PEER_v1(CUDA_MEMCPY3D_PEER_st): Get memory address of class instance """ pass -{{endif}} -{{if 'CUDA_MEMCPY3D_PEER' in found_types}} cdef class CUDA_MEMCPY3D_PEER(CUDA_MEMCPY3D_PEER_v1): """ @@ -8379,108 +7899,108 @@ cdef class CUDA_MEMCPY3D_PEER(CUDA_MEMCPY3D_PEER_v1): Attributes ---------- - {{if 'CUDA_MEMCPY3D_PEER_st.srcXInBytes' in found_struct}} + srcXInBytes : size_t Source X in bytes - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.srcY' in found_struct}} + + srcY : size_t Source Y - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.srcZ' in found_struct}} + + srcZ : size_t Source Z - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.srcLOD' in found_struct}} + + srcLOD : size_t Source LOD - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.srcMemoryType' in found_struct}} + + srcMemoryType : CUmemorytype Source memory type (host, device, array) - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.srcHost' in found_struct}} + + srcHost : Any Source host pointer - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.srcDevice' in found_struct}} + + srcDevice : CUdeviceptr Source device pointer - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.srcArray' in found_struct}} + + srcArray : CUarray Source array reference - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.srcContext' in found_struct}} + + srcContext : CUcontext Source context (ignored with srcMemoryType is CU_MEMORYTYPE_ARRAY) - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.srcPitch' in found_struct}} + + srcPitch : size_t Source pitch (ignored when src is array) - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.srcHeight' in found_struct}} + + srcHeight : size_t Source height (ignored when src is array; may be 0 if Depth==1) - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.dstXInBytes' in found_struct}} + + dstXInBytes : size_t Destination X in bytes - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.dstY' in found_struct}} + + dstY : size_t Destination Y - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.dstZ' in found_struct}} + + dstZ : size_t Destination Z - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.dstLOD' in found_struct}} + + dstLOD : size_t Destination LOD - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.dstMemoryType' in found_struct}} + + dstMemoryType : CUmemorytype Destination memory type (host, device, array) - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.dstHost' in found_struct}} + + dstHost : Any Destination host pointer - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.dstDevice' in found_struct}} + + dstDevice : CUdeviceptr Destination device pointer - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.dstArray' in found_struct}} + + dstArray : CUarray Destination array reference - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.dstContext' in found_struct}} + + dstContext : CUcontext Destination context (ignored with dstMemoryType is CU_MEMORYTYPE_ARRAY) - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.dstPitch' in found_struct}} + + dstPitch : size_t Destination pitch (ignored when dst is array) - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.dstHeight' in found_struct}} + + dstHeight : size_t Destination height (ignored when dst is array; may be 0 if Depth==1) - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.WidthInBytes' in found_struct}} + + WidthInBytes : size_t Width of 3D memory copy in bytes - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.Height' in found_struct}} + + Height : size_t Height of 3D memory copy - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.Depth' in found_struct}} + + Depth : size_t Depth of 3D memory copy - {{endif}} + Methods ------- @@ -8488,8 +8008,6 @@ cdef class CUDA_MEMCPY3D_PEER(CUDA_MEMCPY3D_PEER_v1): Get memory address of class instance """ pass -{{endif}} -{{if 'CUDA_MEMCPY_NODE_PARAMS' in found_types}} cdef class CUDA_MEMCPY_NODE_PARAMS(CUDA_MEMCPY_NODE_PARAMS_st): """ @@ -8497,22 +8015,22 @@ cdef class CUDA_MEMCPY_NODE_PARAMS(CUDA_MEMCPY_NODE_PARAMS_st): Attributes ---------- - {{if 'CUDA_MEMCPY_NODE_PARAMS_st.flags' in found_struct}} + flags : int Must be zero - {{endif}} - {{if 'CUDA_MEMCPY_NODE_PARAMS_st.reserved' in found_struct}} + + reserved : int Must be zero - {{endif}} - {{if 'CUDA_MEMCPY_NODE_PARAMS_st.copyCtx' in found_struct}} + + copyCtx : CUcontext Context on which to run the node - {{endif}} - {{if 'CUDA_MEMCPY_NODE_PARAMS_st.copyParams' in found_struct}} + + copyParams : CUDA_MEMCPY3D Parameters for the memory copy - {{endif}} + Methods ------- @@ -8520,8 +8038,6 @@ cdef class CUDA_MEMCPY_NODE_PARAMS(CUDA_MEMCPY_NODE_PARAMS_st): Get memory address of class instance """ pass -{{endif}} -{{if 'CUDA_ARRAY_DESCRIPTOR_v2' in found_types}} cdef class CUDA_ARRAY_DESCRIPTOR_v2(CUDA_ARRAY_DESCRIPTOR_st): """ @@ -8529,22 +8045,22 @@ cdef class CUDA_ARRAY_DESCRIPTOR_v2(CUDA_ARRAY_DESCRIPTOR_st): Attributes ---------- - {{if 'CUDA_ARRAY_DESCRIPTOR_st.Width' in found_struct}} + Width : size_t Width of array - {{endif}} - {{if 'CUDA_ARRAY_DESCRIPTOR_st.Height' in found_struct}} + + Height : size_t Height of array - {{endif}} - {{if 'CUDA_ARRAY_DESCRIPTOR_st.Format' in found_struct}} + + Format : CUarray_format Array format - {{endif}} - {{if 'CUDA_ARRAY_DESCRIPTOR_st.NumChannels' in found_struct}} + + NumChannels : unsigned int Channels per array element - {{endif}} + Methods ------- @@ -8552,8 +8068,6 @@ cdef class CUDA_ARRAY_DESCRIPTOR_v2(CUDA_ARRAY_DESCRIPTOR_st): Get memory address of class instance """ pass -{{endif}} -{{if 'CUDA_ARRAY_DESCRIPTOR' in found_types}} cdef class CUDA_ARRAY_DESCRIPTOR(CUDA_ARRAY_DESCRIPTOR_v2): """ @@ -8561,22 +8075,22 @@ cdef class CUDA_ARRAY_DESCRIPTOR(CUDA_ARRAY_DESCRIPTOR_v2): Attributes ---------- - {{if 'CUDA_ARRAY_DESCRIPTOR_st.Width' in found_struct}} + Width : size_t Width of array - {{endif}} - {{if 'CUDA_ARRAY_DESCRIPTOR_st.Height' in found_struct}} + + Height : size_t Height of array - {{endif}} - {{if 'CUDA_ARRAY_DESCRIPTOR_st.Format' in found_struct}} + + Format : CUarray_format Array format - {{endif}} - {{if 'CUDA_ARRAY_DESCRIPTOR_st.NumChannels' in found_struct}} + + NumChannels : unsigned int Channels per array element - {{endif}} + Methods ------- @@ -8584,8 +8098,6 @@ cdef class CUDA_ARRAY_DESCRIPTOR(CUDA_ARRAY_DESCRIPTOR_v2): Get memory address of class instance """ pass -{{endif}} -{{if 'CUDA_ARRAY3D_DESCRIPTOR_v2' in found_types}} cdef class CUDA_ARRAY3D_DESCRIPTOR_v2(CUDA_ARRAY3D_DESCRIPTOR_st): """ @@ -8593,30 +8105,30 @@ cdef class CUDA_ARRAY3D_DESCRIPTOR_v2(CUDA_ARRAY3D_DESCRIPTOR_st): Attributes ---------- - {{if 'CUDA_ARRAY3D_DESCRIPTOR_st.Width' in found_struct}} + Width : size_t Width of 3D array - {{endif}} - {{if 'CUDA_ARRAY3D_DESCRIPTOR_st.Height' in found_struct}} + + Height : size_t Height of 3D array - {{endif}} - {{if 'CUDA_ARRAY3D_DESCRIPTOR_st.Depth' in found_struct}} + + Depth : size_t Depth of 3D array - {{endif}} - {{if 'CUDA_ARRAY3D_DESCRIPTOR_st.Format' in found_struct}} + + Format : CUarray_format Array format - {{endif}} - {{if 'CUDA_ARRAY3D_DESCRIPTOR_st.NumChannels' in found_struct}} + + NumChannels : unsigned int Channels per array element - {{endif}} - {{if 'CUDA_ARRAY3D_DESCRIPTOR_st.Flags' in found_struct}} + + Flags : unsigned int Flags - {{endif}} + Methods ------- @@ -8624,8 +8136,6 @@ cdef class CUDA_ARRAY3D_DESCRIPTOR_v2(CUDA_ARRAY3D_DESCRIPTOR_st): Get memory address of class instance """ pass -{{endif}} -{{if 'CUDA_ARRAY3D_DESCRIPTOR' in found_types}} cdef class CUDA_ARRAY3D_DESCRIPTOR(CUDA_ARRAY3D_DESCRIPTOR_v2): """ @@ -8633,30 +8143,30 @@ cdef class CUDA_ARRAY3D_DESCRIPTOR(CUDA_ARRAY3D_DESCRIPTOR_v2): Attributes ---------- - {{if 'CUDA_ARRAY3D_DESCRIPTOR_st.Width' in found_struct}} + Width : size_t Width of 3D array - {{endif}} - {{if 'CUDA_ARRAY3D_DESCRIPTOR_st.Height' in found_struct}} + + Height : size_t Height of 3D array - {{endif}} - {{if 'CUDA_ARRAY3D_DESCRIPTOR_st.Depth' in found_struct}} + + Depth : size_t Depth of 3D array - {{endif}} - {{if 'CUDA_ARRAY3D_DESCRIPTOR_st.Format' in found_struct}} + + Format : CUarray_format Array format - {{endif}} - {{if 'CUDA_ARRAY3D_DESCRIPTOR_st.NumChannels' in found_struct}} + + NumChannels : unsigned int Channels per array element - {{endif}} - {{if 'CUDA_ARRAY3D_DESCRIPTOR_st.Flags' in found_struct}} + + Flags : unsigned int Flags - {{endif}} + Methods ------- @@ -8664,8 +8174,6 @@ cdef class CUDA_ARRAY3D_DESCRIPTOR(CUDA_ARRAY3D_DESCRIPTOR_v2): Get memory address of class instance """ pass -{{endif}} -{{if 'CUDA_ARRAY_SPARSE_PROPERTIES_v1' in found_types}} cdef class CUDA_ARRAY_SPARSE_PROPERTIES_v1(CUDA_ARRAY_SPARSE_PROPERTIES_st): """ @@ -8673,27 +8181,27 @@ cdef class CUDA_ARRAY_SPARSE_PROPERTIES_v1(CUDA_ARRAY_SPARSE_PROPERTIES_st): Attributes ---------- - {{if 'CUDA_ARRAY_SPARSE_PROPERTIES_st.tileExtent' in found_struct}} + tileExtent : anon_struct6 - {{endif}} - {{if 'CUDA_ARRAY_SPARSE_PROPERTIES_st.miptailFirstLevel' in found_struct}} + + miptailFirstLevel : unsigned int First mip level at which the mip tail begins. - {{endif}} - {{if 'CUDA_ARRAY_SPARSE_PROPERTIES_st.miptailSize' in found_struct}} + + miptailSize : unsigned long long Total size of the mip tail. - {{endif}} - {{if 'CUDA_ARRAY_SPARSE_PROPERTIES_st.flags' in found_struct}} + + flags : unsigned int Flags will either be zero or CU_ARRAY_SPARSE_PROPERTIES_SINGLE_MIPTAIL - {{endif}} - {{if 'CUDA_ARRAY_SPARSE_PROPERTIES_st.reserved' in found_struct}} + + reserved : list[unsigned int] - {{endif}} + Methods ------- @@ -8701,8 +8209,6 @@ cdef class CUDA_ARRAY_SPARSE_PROPERTIES_v1(CUDA_ARRAY_SPARSE_PROPERTIES_st): Get memory address of class instance """ pass -{{endif}} -{{if 'CUDA_ARRAY_SPARSE_PROPERTIES' in found_types}} cdef class CUDA_ARRAY_SPARSE_PROPERTIES(CUDA_ARRAY_SPARSE_PROPERTIES_v1): """ @@ -8710,27 +8216,27 @@ cdef class CUDA_ARRAY_SPARSE_PROPERTIES(CUDA_ARRAY_SPARSE_PROPERTIES_v1): Attributes ---------- - {{if 'CUDA_ARRAY_SPARSE_PROPERTIES_st.tileExtent' in found_struct}} + tileExtent : anon_struct6 - {{endif}} - {{if 'CUDA_ARRAY_SPARSE_PROPERTIES_st.miptailFirstLevel' in found_struct}} + + miptailFirstLevel : unsigned int First mip level at which the mip tail begins. - {{endif}} - {{if 'CUDA_ARRAY_SPARSE_PROPERTIES_st.miptailSize' in found_struct}} + + miptailSize : unsigned long long Total size of the mip tail. - {{endif}} - {{if 'CUDA_ARRAY_SPARSE_PROPERTIES_st.flags' in found_struct}} + + flags : unsigned int Flags will either be zero or CU_ARRAY_SPARSE_PROPERTIES_SINGLE_MIPTAIL - {{endif}} - {{if 'CUDA_ARRAY_SPARSE_PROPERTIES_st.reserved' in found_struct}} + + reserved : list[unsigned int] - {{endif}} + Methods ------- @@ -8738,8 +8244,6 @@ cdef class CUDA_ARRAY_SPARSE_PROPERTIES(CUDA_ARRAY_SPARSE_PROPERTIES_v1): Get memory address of class instance """ pass -{{endif}} -{{if 'CUDA_ARRAY_MEMORY_REQUIREMENTS_v1' in found_types}} cdef class CUDA_ARRAY_MEMORY_REQUIREMENTS_v1(CUDA_ARRAY_MEMORY_REQUIREMENTS_st): """ @@ -8747,18 +8251,18 @@ cdef class CUDA_ARRAY_MEMORY_REQUIREMENTS_v1(CUDA_ARRAY_MEMORY_REQUIREMENTS_st): Attributes ---------- - {{if 'CUDA_ARRAY_MEMORY_REQUIREMENTS_st.size' in found_struct}} + size : size_t Total required memory size - {{endif}} - {{if 'CUDA_ARRAY_MEMORY_REQUIREMENTS_st.alignment' in found_struct}} + + alignment : size_t alignment requirement - {{endif}} - {{if 'CUDA_ARRAY_MEMORY_REQUIREMENTS_st.reserved' in found_struct}} + + reserved : list[unsigned int] - {{endif}} + Methods ------- @@ -8766,8 +8270,6 @@ cdef class CUDA_ARRAY_MEMORY_REQUIREMENTS_v1(CUDA_ARRAY_MEMORY_REQUIREMENTS_st): Get memory address of class instance """ pass -{{endif}} -{{if 'CUDA_ARRAY_MEMORY_REQUIREMENTS' in found_types}} cdef class CUDA_ARRAY_MEMORY_REQUIREMENTS(CUDA_ARRAY_MEMORY_REQUIREMENTS_v1): """ @@ -8775,18 +8277,18 @@ cdef class CUDA_ARRAY_MEMORY_REQUIREMENTS(CUDA_ARRAY_MEMORY_REQUIREMENTS_v1): Attributes ---------- - {{if 'CUDA_ARRAY_MEMORY_REQUIREMENTS_st.size' in found_struct}} + size : size_t Total required memory size - {{endif}} - {{if 'CUDA_ARRAY_MEMORY_REQUIREMENTS_st.alignment' in found_struct}} + + alignment : size_t alignment requirement - {{endif}} - {{if 'CUDA_ARRAY_MEMORY_REQUIREMENTS_st.reserved' in found_struct}} + + reserved : list[unsigned int] - {{endif}} + Methods ------- @@ -8794,8 +8296,6 @@ cdef class CUDA_ARRAY_MEMORY_REQUIREMENTS(CUDA_ARRAY_MEMORY_REQUIREMENTS_v1): Get memory address of class instance """ pass -{{endif}} -{{if 'CUDA_RESOURCE_DESC_v1' in found_types}} cdef class CUDA_RESOURCE_DESC_v1(CUDA_RESOURCE_DESC_st): """ @@ -8803,18 +8303,18 @@ cdef class CUDA_RESOURCE_DESC_v1(CUDA_RESOURCE_DESC_st): Attributes ---------- - {{if 'CUDA_RESOURCE_DESC_st.resType' in found_struct}} + resType : CUresourcetype Resource type - {{endif}} - {{if 'CUDA_RESOURCE_DESC_st.res' in found_struct}} + + res : anon_union4 - {{endif}} - {{if 'CUDA_RESOURCE_DESC_st.flags' in found_struct}} + + flags : unsigned int Flags (must be zero) - {{endif}} + Methods ------- @@ -8822,8 +8322,6 @@ cdef class CUDA_RESOURCE_DESC_v1(CUDA_RESOURCE_DESC_st): Get memory address of class instance """ pass -{{endif}} -{{if 'CUDA_RESOURCE_DESC' in found_types}} cdef class CUDA_RESOURCE_DESC(CUDA_RESOURCE_DESC_v1): """ @@ -8831,18 +8329,18 @@ cdef class CUDA_RESOURCE_DESC(CUDA_RESOURCE_DESC_v1): Attributes ---------- - {{if 'CUDA_RESOURCE_DESC_st.resType' in found_struct}} + resType : CUresourcetype Resource type - {{endif}} - {{if 'CUDA_RESOURCE_DESC_st.res' in found_struct}} + + res : anon_union4 - {{endif}} - {{if 'CUDA_RESOURCE_DESC_st.flags' in found_struct}} + + flags : unsigned int Flags (must be zero) - {{endif}} + Methods ------- @@ -8850,8 +8348,6 @@ cdef class CUDA_RESOURCE_DESC(CUDA_RESOURCE_DESC_v1): Get memory address of class instance """ pass -{{endif}} -{{if 'CUDA_TEXTURE_DESC_v1' in found_types}} cdef class CUDA_TEXTURE_DESC_v1(CUDA_TEXTURE_DESC_st): """ @@ -8859,46 +8355,46 @@ cdef class CUDA_TEXTURE_DESC_v1(CUDA_TEXTURE_DESC_st): Attributes ---------- - {{if 'CUDA_TEXTURE_DESC_st.addressMode' in found_struct}} + addressMode : list[CUaddress_mode] Address modes - {{endif}} - {{if 'CUDA_TEXTURE_DESC_st.filterMode' in found_struct}} + + filterMode : CUfilter_mode Filter mode - {{endif}} - {{if 'CUDA_TEXTURE_DESC_st.flags' in found_struct}} + + flags : unsigned int Flags - {{endif}} - {{if 'CUDA_TEXTURE_DESC_st.maxAnisotropy' in found_struct}} + + maxAnisotropy : unsigned int Maximum anisotropy ratio - {{endif}} - {{if 'CUDA_TEXTURE_DESC_st.mipmapFilterMode' in found_struct}} + + mipmapFilterMode : CUfilter_mode Mipmap filter mode - {{endif}} - {{if 'CUDA_TEXTURE_DESC_st.mipmapLevelBias' in found_struct}} + + mipmapLevelBias : float Mipmap level bias - {{endif}} - {{if 'CUDA_TEXTURE_DESC_st.minMipmapLevelClamp' in found_struct}} + + minMipmapLevelClamp : float Mipmap minimum level clamp - {{endif}} - {{if 'CUDA_TEXTURE_DESC_st.maxMipmapLevelClamp' in found_struct}} + + maxMipmapLevelClamp : float Mipmap maximum level clamp - {{endif}} - {{if 'CUDA_TEXTURE_DESC_st.borderColor' in found_struct}} + + borderColor : list[float] Border Color - {{endif}} - {{if 'CUDA_TEXTURE_DESC_st.reserved' in found_struct}} + + reserved : list[int] - {{endif}} + Methods ------- @@ -8906,8 +8402,6 @@ cdef class CUDA_TEXTURE_DESC_v1(CUDA_TEXTURE_DESC_st): Get memory address of class instance """ pass -{{endif}} -{{if 'CUDA_TEXTURE_DESC' in found_types}} cdef class CUDA_TEXTURE_DESC(CUDA_TEXTURE_DESC_v1): """ @@ -8915,46 +8409,46 @@ cdef class CUDA_TEXTURE_DESC(CUDA_TEXTURE_DESC_v1): Attributes ---------- - {{if 'CUDA_TEXTURE_DESC_st.addressMode' in found_struct}} + addressMode : list[CUaddress_mode] Address modes - {{endif}} - {{if 'CUDA_TEXTURE_DESC_st.filterMode' in found_struct}} + + filterMode : CUfilter_mode Filter mode - {{endif}} - {{if 'CUDA_TEXTURE_DESC_st.flags' in found_struct}} + + flags : unsigned int Flags - {{endif}} - {{if 'CUDA_TEXTURE_DESC_st.maxAnisotropy' in found_struct}} + + maxAnisotropy : unsigned int Maximum anisotropy ratio - {{endif}} - {{if 'CUDA_TEXTURE_DESC_st.mipmapFilterMode' in found_struct}} + + mipmapFilterMode : CUfilter_mode Mipmap filter mode - {{endif}} - {{if 'CUDA_TEXTURE_DESC_st.mipmapLevelBias' in found_struct}} + + mipmapLevelBias : float Mipmap level bias - {{endif}} - {{if 'CUDA_TEXTURE_DESC_st.minMipmapLevelClamp' in found_struct}} + + minMipmapLevelClamp : float Mipmap minimum level clamp - {{endif}} - {{if 'CUDA_TEXTURE_DESC_st.maxMipmapLevelClamp' in found_struct}} + + maxMipmapLevelClamp : float Mipmap maximum level clamp - {{endif}} - {{if 'CUDA_TEXTURE_DESC_st.borderColor' in found_struct}} + + borderColor : list[float] Border Color - {{endif}} - {{if 'CUDA_TEXTURE_DESC_st.reserved' in found_struct}} + + reserved : list[int] - {{endif}} + Methods ------- @@ -8962,8 +8456,6 @@ cdef class CUDA_TEXTURE_DESC(CUDA_TEXTURE_DESC_v1): Get memory address of class instance """ pass -{{endif}} -{{if 'CUDA_RESOURCE_VIEW_DESC_v1' in found_types}} cdef class CUDA_RESOURCE_VIEW_DESC_v1(CUDA_RESOURCE_VIEW_DESC_st): """ @@ -8971,42 +8463,42 @@ cdef class CUDA_RESOURCE_VIEW_DESC_v1(CUDA_RESOURCE_VIEW_DESC_st): Attributes ---------- - {{if 'CUDA_RESOURCE_VIEW_DESC_st.format' in found_struct}} + format : CUresourceViewFormat Resource view format - {{endif}} - {{if 'CUDA_RESOURCE_VIEW_DESC_st.width' in found_struct}} + + width : size_t Width of the resource view - {{endif}} - {{if 'CUDA_RESOURCE_VIEW_DESC_st.height' in found_struct}} + + height : size_t Height of the resource view - {{endif}} - {{if 'CUDA_RESOURCE_VIEW_DESC_st.depth' in found_struct}} + + depth : size_t Depth of the resource view - {{endif}} - {{if 'CUDA_RESOURCE_VIEW_DESC_st.firstMipmapLevel' in found_struct}} + + firstMipmapLevel : unsigned int First defined mipmap level - {{endif}} - {{if 'CUDA_RESOURCE_VIEW_DESC_st.lastMipmapLevel' in found_struct}} + + lastMipmapLevel : unsigned int Last defined mipmap level - {{endif}} - {{if 'CUDA_RESOURCE_VIEW_DESC_st.firstLayer' in found_struct}} + + firstLayer : unsigned int First layer index - {{endif}} - {{if 'CUDA_RESOURCE_VIEW_DESC_st.lastLayer' in found_struct}} + + lastLayer : unsigned int Last layer index - {{endif}} - {{if 'CUDA_RESOURCE_VIEW_DESC_st.reserved' in found_struct}} + + reserved : list[unsigned int] - {{endif}} + Methods ------- @@ -9014,8 +8506,6 @@ cdef class CUDA_RESOURCE_VIEW_DESC_v1(CUDA_RESOURCE_VIEW_DESC_st): Get memory address of class instance """ pass -{{endif}} -{{if 'CUDA_RESOURCE_VIEW_DESC' in found_types}} cdef class CUDA_RESOURCE_VIEW_DESC(CUDA_RESOURCE_VIEW_DESC_v1): """ @@ -9023,42 +8513,42 @@ cdef class CUDA_RESOURCE_VIEW_DESC(CUDA_RESOURCE_VIEW_DESC_v1): Attributes ---------- - {{if 'CUDA_RESOURCE_VIEW_DESC_st.format' in found_struct}} + format : CUresourceViewFormat Resource view format - {{endif}} - {{if 'CUDA_RESOURCE_VIEW_DESC_st.width' in found_struct}} + + width : size_t Width of the resource view - {{endif}} - {{if 'CUDA_RESOURCE_VIEW_DESC_st.height' in found_struct}} + + height : size_t Height of the resource view - {{endif}} - {{if 'CUDA_RESOURCE_VIEW_DESC_st.depth' in found_struct}} + + depth : size_t Depth of the resource view - {{endif}} - {{if 'CUDA_RESOURCE_VIEW_DESC_st.firstMipmapLevel' in found_struct}} + + firstMipmapLevel : unsigned int First defined mipmap level - {{endif}} - {{if 'CUDA_RESOURCE_VIEW_DESC_st.lastMipmapLevel' in found_struct}} + + lastMipmapLevel : unsigned int Last defined mipmap level - {{endif}} - {{if 'CUDA_RESOURCE_VIEW_DESC_st.firstLayer' in found_struct}} + + firstLayer : unsigned int First layer index - {{endif}} - {{if 'CUDA_RESOURCE_VIEW_DESC_st.lastLayer' in found_struct}} + + lastLayer : unsigned int Last layer index - {{endif}} - {{if 'CUDA_RESOURCE_VIEW_DESC_st.reserved' in found_struct}} + + reserved : list[unsigned int] - {{endif}} + Methods ------- @@ -9066,8 +8556,6 @@ cdef class CUDA_RESOURCE_VIEW_DESC(CUDA_RESOURCE_VIEW_DESC_v1): Get memory address of class instance """ pass -{{endif}} -{{if 'CUtensorMap' in found_types}} cdef class CUtensorMap(CUtensorMap_st): """ @@ -9076,10 +8564,10 @@ cdef class CUtensorMap(CUtensorMap_st): Attributes ---------- - {{if 'CUtensorMap_st.opaque' in found_struct}} + opaque : list[cuuint64_t] - {{endif}} + Methods ------- @@ -9087,8 +8575,6 @@ cdef class CUtensorMap(CUtensorMap_st): Get memory address of class instance """ pass -{{endif}} -{{if 'CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_v1' in found_types}} cdef class CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_v1(CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_st): """ @@ -9096,14 +8582,14 @@ cdef class CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_v1(CUDA_POINTER_ATTRIBUTE_P2P_TOKEN Attributes ---------- - {{if 'CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_st.p2pToken' in found_struct}} + p2pToken : unsigned long long - {{endif}} - {{if 'CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_st.vaSpaceToken' in found_struct}} + + vaSpaceToken : unsigned int - {{endif}} + Methods ------- @@ -9111,8 +8597,6 @@ cdef class CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_v1(CUDA_POINTER_ATTRIBUTE_P2P_TOKEN Get memory address of class instance """ pass -{{endif}} -{{if 'CUDA_POINTER_ATTRIBUTE_P2P_TOKENS' in found_types}} cdef class CUDA_POINTER_ATTRIBUTE_P2P_TOKENS(CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_v1): """ @@ -9120,14 +8604,14 @@ cdef class CUDA_POINTER_ATTRIBUTE_P2P_TOKENS(CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_v Attributes ---------- - {{if 'CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_st.p2pToken' in found_struct}} + p2pToken : unsigned long long - {{endif}} - {{if 'CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_st.vaSpaceToken' in found_struct}} + + vaSpaceToken : unsigned int - {{endif}} + Methods ------- @@ -9135,8 +8619,6 @@ cdef class CUDA_POINTER_ATTRIBUTE_P2P_TOKENS(CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_v Get memory address of class instance """ pass -{{endif}} -{{if 'CUDA_LAUNCH_PARAMS_v1' in found_types}} cdef class CUDA_LAUNCH_PARAMS_v1(CUDA_LAUNCH_PARAMS_st): """ @@ -9144,46 +8626,46 @@ cdef class CUDA_LAUNCH_PARAMS_v1(CUDA_LAUNCH_PARAMS_st): Attributes ---------- - {{if 'CUDA_LAUNCH_PARAMS_st.function' in found_struct}} + function : CUfunction Kernel to launch - {{endif}} - {{if 'CUDA_LAUNCH_PARAMS_st.gridDimX' in found_struct}} + + gridDimX : unsigned int Width of grid in blocks - {{endif}} - {{if 'CUDA_LAUNCH_PARAMS_st.gridDimY' in found_struct}} + + gridDimY : unsigned int Height of grid in blocks - {{endif}} - {{if 'CUDA_LAUNCH_PARAMS_st.gridDimZ' in found_struct}} + + gridDimZ : unsigned int Depth of grid in blocks - {{endif}} - {{if 'CUDA_LAUNCH_PARAMS_st.blockDimX' in found_struct}} + + blockDimX : unsigned int X dimension of each thread block - {{endif}} - {{if 'CUDA_LAUNCH_PARAMS_st.blockDimY' in found_struct}} + + blockDimY : unsigned int Y dimension of each thread block - {{endif}} - {{if 'CUDA_LAUNCH_PARAMS_st.blockDimZ' in found_struct}} + + blockDimZ : unsigned int Z dimension of each thread block - {{endif}} - {{if 'CUDA_LAUNCH_PARAMS_st.sharedMemBytes' in found_struct}} + + sharedMemBytes : unsigned int Dynamic shared-memory size per thread block in bytes - {{endif}} - {{if 'CUDA_LAUNCH_PARAMS_st.hStream' in found_struct}} + + hStream : CUstream Stream identifier - {{endif}} - {{if 'CUDA_LAUNCH_PARAMS_st.kernelParams' in found_struct}} + + kernelParams : Any Array of pointers to kernel parameters - {{endif}} + Methods ------- @@ -9191,8 +8673,6 @@ cdef class CUDA_LAUNCH_PARAMS_v1(CUDA_LAUNCH_PARAMS_st): Get memory address of class instance """ pass -{{endif}} -{{if 'CUDA_LAUNCH_PARAMS' in found_types}} cdef class CUDA_LAUNCH_PARAMS(CUDA_LAUNCH_PARAMS_v1): """ @@ -9200,46 +8680,46 @@ cdef class CUDA_LAUNCH_PARAMS(CUDA_LAUNCH_PARAMS_v1): Attributes ---------- - {{if 'CUDA_LAUNCH_PARAMS_st.function' in found_struct}} + function : CUfunction Kernel to launch - {{endif}} - {{if 'CUDA_LAUNCH_PARAMS_st.gridDimX' in found_struct}} + + gridDimX : unsigned int Width of grid in blocks - {{endif}} - {{if 'CUDA_LAUNCH_PARAMS_st.gridDimY' in found_struct}} + + gridDimY : unsigned int Height of grid in blocks - {{endif}} - {{if 'CUDA_LAUNCH_PARAMS_st.gridDimZ' in found_struct}} + + gridDimZ : unsigned int Depth of grid in blocks - {{endif}} - {{if 'CUDA_LAUNCH_PARAMS_st.blockDimX' in found_struct}} + + blockDimX : unsigned int X dimension of each thread block - {{endif}} - {{if 'CUDA_LAUNCH_PARAMS_st.blockDimY' in found_struct}} + + blockDimY : unsigned int Y dimension of each thread block - {{endif}} - {{if 'CUDA_LAUNCH_PARAMS_st.blockDimZ' in found_struct}} + + blockDimZ : unsigned int Z dimension of each thread block - {{endif}} - {{if 'CUDA_LAUNCH_PARAMS_st.sharedMemBytes' in found_struct}} + + sharedMemBytes : unsigned int Dynamic shared-memory size per thread block in bytes - {{endif}} - {{if 'CUDA_LAUNCH_PARAMS_st.hStream' in found_struct}} + + hStream : CUstream Stream identifier - {{endif}} - {{if 'CUDA_LAUNCH_PARAMS_st.kernelParams' in found_struct}} + + kernelParams : Any Array of pointers to kernel parameters - {{endif}} + Methods ------- @@ -9247,8 +8727,6 @@ cdef class CUDA_LAUNCH_PARAMS(CUDA_LAUNCH_PARAMS_v1): Get memory address of class instance """ pass -{{endif}} -{{if 'CUDA_EXTERNAL_MEMORY_HANDLE_DESC_v1' in found_types}} cdef class CUDA_EXTERNAL_MEMORY_HANDLE_DESC_v1(CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st): """ @@ -9256,26 +8734,26 @@ cdef class CUDA_EXTERNAL_MEMORY_HANDLE_DESC_v1(CUDA_EXTERNAL_MEMORY_HANDLE_DESC_ Attributes ---------- - {{if 'CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st.type' in found_struct}} + type : CUexternalMemoryHandleType Type of the handle - {{endif}} - {{if 'CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st.handle' in found_struct}} + + handle : anon_union5 - {{endif}} - {{if 'CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st.size' in found_struct}} + + size : unsigned long long Size of the memory allocation - {{endif}} - {{if 'CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st.flags' in found_struct}} + + flags : unsigned int Flags must either be zero or CUDA_EXTERNAL_MEMORY_DEDICATED - {{endif}} - {{if 'CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st.reserved' in found_struct}} + + reserved : list[unsigned int] - {{endif}} + Methods ------- @@ -9283,8 +8761,6 @@ cdef class CUDA_EXTERNAL_MEMORY_HANDLE_DESC_v1(CUDA_EXTERNAL_MEMORY_HANDLE_DESC_ Get memory address of class instance """ pass -{{endif}} -{{if 'CUDA_EXTERNAL_MEMORY_HANDLE_DESC' in found_types}} cdef class CUDA_EXTERNAL_MEMORY_HANDLE_DESC(CUDA_EXTERNAL_MEMORY_HANDLE_DESC_v1): """ @@ -9292,26 +8768,26 @@ cdef class CUDA_EXTERNAL_MEMORY_HANDLE_DESC(CUDA_EXTERNAL_MEMORY_HANDLE_DESC_v1) Attributes ---------- - {{if 'CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st.type' in found_struct}} + type : CUexternalMemoryHandleType Type of the handle - {{endif}} - {{if 'CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st.handle' in found_struct}} + + handle : anon_union5 - {{endif}} - {{if 'CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st.size' in found_struct}} + + size : unsigned long long Size of the memory allocation - {{endif}} - {{if 'CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st.flags' in found_struct}} + + flags : unsigned int Flags must either be zero or CUDA_EXTERNAL_MEMORY_DEDICATED - {{endif}} - {{if 'CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st.reserved' in found_struct}} + + reserved : list[unsigned int] - {{endif}} + Methods ------- @@ -9319,8 +8795,6 @@ cdef class CUDA_EXTERNAL_MEMORY_HANDLE_DESC(CUDA_EXTERNAL_MEMORY_HANDLE_DESC_v1) Get memory address of class instance """ pass -{{endif}} -{{if 'CUDA_EXTERNAL_MEMORY_BUFFER_DESC_v1' in found_types}} cdef class CUDA_EXTERNAL_MEMORY_BUFFER_DESC_v1(CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st): """ @@ -9328,22 +8802,22 @@ cdef class CUDA_EXTERNAL_MEMORY_BUFFER_DESC_v1(CUDA_EXTERNAL_MEMORY_BUFFER_DESC_ Attributes ---------- - {{if 'CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st.offset' in found_struct}} + offset : unsigned long long Offset into the memory object where the buffer's base is - {{endif}} - {{if 'CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st.size' in found_struct}} + + size : unsigned long long Size of the buffer - {{endif}} - {{if 'CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st.flags' in found_struct}} + + flags : unsigned int Flags reserved for future use. Must be zero. - {{endif}} - {{if 'CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st.reserved' in found_struct}} + + reserved : list[unsigned int] - {{endif}} + Methods ------- @@ -9351,8 +8825,6 @@ cdef class CUDA_EXTERNAL_MEMORY_BUFFER_DESC_v1(CUDA_EXTERNAL_MEMORY_BUFFER_DESC_ Get memory address of class instance """ pass -{{endif}} -{{if 'CUDA_EXTERNAL_MEMORY_BUFFER_DESC' in found_types}} cdef class CUDA_EXTERNAL_MEMORY_BUFFER_DESC(CUDA_EXTERNAL_MEMORY_BUFFER_DESC_v1): """ @@ -9360,22 +8832,22 @@ cdef class CUDA_EXTERNAL_MEMORY_BUFFER_DESC(CUDA_EXTERNAL_MEMORY_BUFFER_DESC_v1) Attributes ---------- - {{if 'CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st.offset' in found_struct}} + offset : unsigned long long Offset into the memory object where the buffer's base is - {{endif}} - {{if 'CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st.size' in found_struct}} + + size : unsigned long long Size of the buffer - {{endif}} - {{if 'CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st.flags' in found_struct}} + + flags : unsigned int Flags reserved for future use. Must be zero. - {{endif}} - {{if 'CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st.reserved' in found_struct}} + + reserved : list[unsigned int] - {{endif}} + Methods ------- @@ -9383,8 +8855,6 @@ cdef class CUDA_EXTERNAL_MEMORY_BUFFER_DESC(CUDA_EXTERNAL_MEMORY_BUFFER_DESC_v1) Get memory address of class instance """ pass -{{endif}} -{{if 'CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_v1' in found_types}} cdef class CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_v1(CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_st): """ @@ -9392,23 +8862,23 @@ cdef class CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_v1(CUDA_EXTERNAL_MEMORY_MIP Attributes ---------- - {{if 'CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_st.offset' in found_struct}} + offset : unsigned long long Offset into the memory object where the base level of the mipmap chain is. - {{endif}} - {{if 'CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_st.arrayDesc' in found_struct}} + + arrayDesc : CUDA_ARRAY3D_DESCRIPTOR Format, dimension and type of base level of the mipmap chain - {{endif}} - {{if 'CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_st.numLevels' in found_struct}} + + numLevels : unsigned int Total number of levels in the mipmap chain - {{endif}} - {{if 'CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_st.reserved' in found_struct}} + + reserved : list[unsigned int] - {{endif}} + Methods ------- @@ -9416,8 +8886,6 @@ cdef class CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_v1(CUDA_EXTERNAL_MEMORY_MIP Get memory address of class instance """ pass -{{endif}} -{{if 'CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC' in found_types}} cdef class CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC(CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_v1): """ @@ -9425,23 +8893,23 @@ cdef class CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC(CUDA_EXTERNAL_MEMORY_MIPMAP Attributes ---------- - {{if 'CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_st.offset' in found_struct}} + offset : unsigned long long Offset into the memory object where the base level of the mipmap chain is. - {{endif}} - {{if 'CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_st.arrayDesc' in found_struct}} + + arrayDesc : CUDA_ARRAY3D_DESCRIPTOR Format, dimension and type of base level of the mipmap chain - {{endif}} - {{if 'CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_st.numLevels' in found_struct}} + + numLevels : unsigned int Total number of levels in the mipmap chain - {{endif}} - {{if 'CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_st.reserved' in found_struct}} + + reserved : list[unsigned int] - {{endif}} + Methods ------- @@ -9449,8 +8917,6 @@ cdef class CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC(CUDA_EXTERNAL_MEMORY_MIPMAP Get memory address of class instance """ pass -{{endif}} -{{if 'CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_v1' in found_types}} cdef class CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_v1(CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st): """ @@ -9458,22 +8924,22 @@ cdef class CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_v1(CUDA_EXTERNAL_SEMAPHORE_HANDLE Attributes ---------- - {{if 'CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st.type' in found_struct}} + type : CUexternalSemaphoreHandleType Type of the handle - {{endif}} - {{if 'CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st.handle' in found_struct}} + + handle : anon_union6 - {{endif}} - {{if 'CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st.flags' in found_struct}} + + flags : unsigned int Flags reserved for the future. Must be zero. - {{endif}} - {{if 'CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st.reserved' in found_struct}} + + reserved : list[unsigned int] - {{endif}} + Methods ------- @@ -9481,8 +8947,6 @@ cdef class CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_v1(CUDA_EXTERNAL_SEMAPHORE_HANDLE Get memory address of class instance """ pass -{{endif}} -{{if 'CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC' in found_types}} cdef class CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC(CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_v1): """ @@ -9490,22 +8954,22 @@ cdef class CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC(CUDA_EXTERNAL_SEMAPHORE_HANDLE_DE Attributes ---------- - {{if 'CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st.type' in found_struct}} + type : CUexternalSemaphoreHandleType Type of the handle - {{endif}} - {{if 'CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st.handle' in found_struct}} + + handle : anon_union6 - {{endif}} - {{if 'CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st.flags' in found_struct}} + + flags : unsigned int Flags reserved for the future. Must be zero. - {{endif}} - {{if 'CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st.reserved' in found_struct}} + + reserved : list[unsigned int] - {{endif}} + Methods ------- @@ -9513,8 +8977,6 @@ cdef class CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC(CUDA_EXTERNAL_SEMAPHORE_HANDLE_DE Get memory address of class instance """ pass -{{endif}} -{{if 'CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_v1' in found_types}} cdef class CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_v1(CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st): """ @@ -9522,11 +8984,11 @@ cdef class CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_v1(CUDA_EXTERNAL_SEMAPHORE_SIGN Attributes ---------- - {{if 'CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st.params' in found_struct}} + params : anon_struct16 - {{endif}} - {{if 'CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st.flags' in found_struct}} + + flags : unsigned int Only when CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS is used to signal a CUexternalSemaphore of type @@ -9536,11 +8998,11 @@ cdef class CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_v1(CUDA_EXTERNAL_SEMAPHORE_SIGN synchronization operations should be performed for any external memory object imported as CU_EXTERNAL_MEMORY_HANDLE_TYPE_NVSCIBUF. For all other types of CUexternalSemaphore, flags must be zero. - {{endif}} - {{if 'CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st.reserved' in found_struct}} + + reserved : list[unsigned int] - {{endif}} + Methods ------- @@ -9548,8 +9010,6 @@ cdef class CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_v1(CUDA_EXTERNAL_SEMAPHORE_SIGN Get memory address of class instance """ pass -{{endif}} -{{if 'CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS' in found_types}} cdef class CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS(CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_v1): """ @@ -9557,11 +9017,11 @@ cdef class CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS(CUDA_EXTERNAL_SEMAPHORE_SIGNAL_ Attributes ---------- - {{if 'CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st.params' in found_struct}} + params : anon_struct16 - {{endif}} - {{if 'CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st.flags' in found_struct}} + + flags : unsigned int Only when CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS is used to signal a CUexternalSemaphore of type @@ -9571,11 +9031,11 @@ cdef class CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS(CUDA_EXTERNAL_SEMAPHORE_SIGNAL_ synchronization operations should be performed for any external memory object imported as CU_EXTERNAL_MEMORY_HANDLE_TYPE_NVSCIBUF. For all other types of CUexternalSemaphore, flags must be zero. - {{endif}} - {{if 'CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st.reserved' in found_struct}} + + reserved : list[unsigned int] - {{endif}} + Methods ------- @@ -9583,8 +9043,6 @@ cdef class CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS(CUDA_EXTERNAL_SEMAPHORE_SIGNAL_ Get memory address of class instance """ pass -{{endif}} -{{if 'CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_v1' in found_types}} cdef class CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_v1(CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st): """ @@ -9592,11 +9050,11 @@ cdef class CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_v1(CUDA_EXTERNAL_SEMAPHORE_WAIT_P Attributes ---------- - {{if 'CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st.params' in found_struct}} + params : anon_struct19 - {{endif}} - {{if 'CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st.flags' in found_struct}} + + flags : unsigned int Only when CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS is used to wait on a CUexternalSemaphore of type @@ -9606,11 +9064,11 @@ cdef class CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_v1(CUDA_EXTERNAL_SEMAPHORE_WAIT_P synchronization operations should be performed for any external memory object imported as CU_EXTERNAL_MEMORY_HANDLE_TYPE_NVSCIBUF. For all other types of CUexternalSemaphore, flags must be zero. - {{endif}} - {{if 'CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st.reserved' in found_struct}} + + reserved : list[unsigned int] - {{endif}} + Methods ------- @@ -9618,8 +9076,6 @@ cdef class CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_v1(CUDA_EXTERNAL_SEMAPHORE_WAIT_P Get memory address of class instance """ pass -{{endif}} -{{if 'CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS' in found_types}} cdef class CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS(CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_v1): """ @@ -9627,11 +9083,11 @@ cdef class CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS(CUDA_EXTERNAL_SEMAPHORE_WAIT_PARA Attributes ---------- - {{if 'CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st.params' in found_struct}} + params : anon_struct19 - {{endif}} - {{if 'CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st.flags' in found_struct}} + + flags : unsigned int Only when CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS is used to wait on a CUexternalSemaphore of type @@ -9641,11 +9097,11 @@ cdef class CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS(CUDA_EXTERNAL_SEMAPHORE_WAIT_PARA synchronization operations should be performed for any external memory object imported as CU_EXTERNAL_MEMORY_HANDLE_TYPE_NVSCIBUF. For all other types of CUexternalSemaphore, flags must be zero. - {{endif}} - {{if 'CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st.reserved' in found_struct}} + + reserved : list[unsigned int] - {{endif}} + Methods ------- @@ -9653,8 +9109,6 @@ cdef class CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS(CUDA_EXTERNAL_SEMAPHORE_WAIT_PARA Get memory address of class instance """ pass -{{endif}} -{{if 'CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v1' in found_types}} cdef class CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v1(CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_st): """ @@ -9662,19 +9116,19 @@ cdef class CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v1(CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_st Attributes ---------- - {{if 'CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_st.extSemArray' in found_struct}} + extSemArray : CUexternalSemaphore Array of external semaphore handles. - {{endif}} - {{if 'CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_st.paramsArray' in found_struct}} + + paramsArray : CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS Array of external semaphore signal parameters. - {{endif}} - {{if 'CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_st.numExtSems' in found_struct}} + + numExtSems : unsigned int Number of handles and parameters supplied in extSemArray and paramsArray. - {{endif}} + Methods ------- @@ -9682,8 +9136,6 @@ cdef class CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v1(CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_st Get memory address of class instance """ pass -{{endif}} -{{if 'CUDA_EXT_SEM_SIGNAL_NODE_PARAMS' in found_types}} cdef class CUDA_EXT_SEM_SIGNAL_NODE_PARAMS(CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v1): """ @@ -9691,19 +9143,19 @@ cdef class CUDA_EXT_SEM_SIGNAL_NODE_PARAMS(CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v1): Attributes ---------- - {{if 'CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_st.extSemArray' in found_struct}} + extSemArray : CUexternalSemaphore Array of external semaphore handles. - {{endif}} - {{if 'CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_st.paramsArray' in found_struct}} + + paramsArray : CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS Array of external semaphore signal parameters. - {{endif}} - {{if 'CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_st.numExtSems' in found_struct}} + + numExtSems : unsigned int Number of handles and parameters supplied in extSemArray and paramsArray. - {{endif}} + Methods ------- @@ -9711,8 +9163,6 @@ cdef class CUDA_EXT_SEM_SIGNAL_NODE_PARAMS(CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v1): Get memory address of class instance """ pass -{{endif}} -{{if 'CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2' in found_types}} cdef class CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2(CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2_st): """ @@ -9720,19 +9170,19 @@ cdef class CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2(CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2 Attributes ---------- - {{if 'CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2_st.extSemArray' in found_struct}} + extSemArray : CUexternalSemaphore Array of external semaphore handles. - {{endif}} - {{if 'CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2_st.paramsArray' in found_struct}} + + paramsArray : CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS Array of external semaphore signal parameters. - {{endif}} - {{if 'CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2_st.numExtSems' in found_struct}} + + numExtSems : unsigned int Number of handles and parameters supplied in extSemArray and paramsArray. - {{endif}} + Methods ------- @@ -9740,8 +9190,6 @@ cdef class CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2(CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2 Get memory address of class instance """ pass -{{endif}} -{{if 'CUDA_EXT_SEM_WAIT_NODE_PARAMS_v1' in found_types}} cdef class CUDA_EXT_SEM_WAIT_NODE_PARAMS_v1(CUDA_EXT_SEM_WAIT_NODE_PARAMS_st): """ @@ -9749,19 +9197,19 @@ cdef class CUDA_EXT_SEM_WAIT_NODE_PARAMS_v1(CUDA_EXT_SEM_WAIT_NODE_PARAMS_st): Attributes ---------- - {{if 'CUDA_EXT_SEM_WAIT_NODE_PARAMS_st.extSemArray' in found_struct}} + extSemArray : CUexternalSemaphore Array of external semaphore handles. - {{endif}} - {{if 'CUDA_EXT_SEM_WAIT_NODE_PARAMS_st.paramsArray' in found_struct}} + + paramsArray : CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS Array of external semaphore wait parameters. - {{endif}} - {{if 'CUDA_EXT_SEM_WAIT_NODE_PARAMS_st.numExtSems' in found_struct}} + + numExtSems : unsigned int Number of handles and parameters supplied in extSemArray and paramsArray. - {{endif}} + Methods ------- @@ -9769,8 +9217,6 @@ cdef class CUDA_EXT_SEM_WAIT_NODE_PARAMS_v1(CUDA_EXT_SEM_WAIT_NODE_PARAMS_st): Get memory address of class instance """ pass -{{endif}} -{{if 'CUDA_EXT_SEM_WAIT_NODE_PARAMS' in found_types}} cdef class CUDA_EXT_SEM_WAIT_NODE_PARAMS(CUDA_EXT_SEM_WAIT_NODE_PARAMS_v1): """ @@ -9778,19 +9224,19 @@ cdef class CUDA_EXT_SEM_WAIT_NODE_PARAMS(CUDA_EXT_SEM_WAIT_NODE_PARAMS_v1): Attributes ---------- - {{if 'CUDA_EXT_SEM_WAIT_NODE_PARAMS_st.extSemArray' in found_struct}} + extSemArray : CUexternalSemaphore Array of external semaphore handles. - {{endif}} - {{if 'CUDA_EXT_SEM_WAIT_NODE_PARAMS_st.paramsArray' in found_struct}} + + paramsArray : CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS Array of external semaphore wait parameters. - {{endif}} - {{if 'CUDA_EXT_SEM_WAIT_NODE_PARAMS_st.numExtSems' in found_struct}} + + numExtSems : unsigned int Number of handles and parameters supplied in extSemArray and paramsArray. - {{endif}} + Methods ------- @@ -9798,8 +9244,6 @@ cdef class CUDA_EXT_SEM_WAIT_NODE_PARAMS(CUDA_EXT_SEM_WAIT_NODE_PARAMS_v1): Get memory address of class instance """ pass -{{endif}} -{{if 'CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2' in found_types}} cdef class CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2(CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2_st): """ @@ -9807,19 +9251,19 @@ cdef class CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2(CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2_st) Attributes ---------- - {{if 'CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2_st.extSemArray' in found_struct}} + extSemArray : CUexternalSemaphore Array of external semaphore handles. - {{endif}} - {{if 'CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2_st.paramsArray' in found_struct}} + + paramsArray : CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS Array of external semaphore wait parameters. - {{endif}} - {{if 'CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2_st.numExtSems' in found_struct}} + + numExtSems : unsigned int Number of handles and parameters supplied in extSemArray and paramsArray. - {{endif}} + Methods ------- @@ -9827,8 +9271,6 @@ cdef class CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2(CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2_st) Get memory address of class instance """ pass -{{endif}} -{{if 'CUmemGenericAllocationHandle' in found_types}} cdef class CUmemGenericAllocationHandle: """ @@ -9841,8 +9283,6 @@ cdef class CUmemGenericAllocationHandle: """ cdef cydriver.CUmemGenericAllocationHandle _pvt_val cdef cydriver.CUmemGenericAllocationHandle* _pvt_ptr -{{endif}} -{{if 'CUarrayMapInfo_v1' in found_types}} cdef class CUarrayMapInfo_v1(CUarrayMapInfo_st): """ @@ -9851,50 +9291,50 @@ cdef class CUarrayMapInfo_v1(CUarrayMapInfo_st): Attributes ---------- - {{if 'CUarrayMapInfo_st.resourceType' in found_struct}} + resourceType : CUresourcetype Resource type - {{endif}} - {{if 'CUarrayMapInfo_st.resource' in found_struct}} + + resource : anon_union9 - {{endif}} - {{if 'CUarrayMapInfo_st.subresourceType' in found_struct}} + + subresourceType : CUarraySparseSubresourceType Sparse subresource type - {{endif}} - {{if 'CUarrayMapInfo_st.subresource' in found_struct}} + + subresource : anon_union10 - {{endif}} - {{if 'CUarrayMapInfo_st.memOperationType' in found_struct}} + + memOperationType : CUmemOperationType Memory operation type - {{endif}} - {{if 'CUarrayMapInfo_st.memHandleType' in found_struct}} + + memHandleType : CUmemHandleType Memory handle type - {{endif}} - {{if 'CUarrayMapInfo_st.memHandle' in found_struct}} + + memHandle : anon_union11 - {{endif}} - {{if 'CUarrayMapInfo_st.offset' in found_struct}} + + offset : unsigned long long Offset within mip tail Offset within the memory - {{endif}} - {{if 'CUarrayMapInfo_st.deviceBitMask' in found_struct}} + + deviceBitMask : unsigned int Device ordinal bit mask - {{endif}} - {{if 'CUarrayMapInfo_st.flags' in found_struct}} + + flags : unsigned int flags for future use, must be zero now. - {{endif}} - {{if 'CUarrayMapInfo_st.reserved' in found_struct}} + + reserved : list[unsigned int] Reserved for future use, must be zero now. - {{endif}} + Methods ------- @@ -9902,8 +9342,6 @@ cdef class CUarrayMapInfo_v1(CUarrayMapInfo_st): Get memory address of class instance """ pass -{{endif}} -{{if 'CUarrayMapInfo' in found_types}} cdef class CUarrayMapInfo(CUarrayMapInfo_v1): """ @@ -9912,50 +9350,50 @@ cdef class CUarrayMapInfo(CUarrayMapInfo_v1): Attributes ---------- - {{if 'CUarrayMapInfo_st.resourceType' in found_struct}} + resourceType : CUresourcetype Resource type - {{endif}} - {{if 'CUarrayMapInfo_st.resource' in found_struct}} + + resource : anon_union9 - {{endif}} - {{if 'CUarrayMapInfo_st.subresourceType' in found_struct}} + + subresourceType : CUarraySparseSubresourceType Sparse subresource type - {{endif}} - {{if 'CUarrayMapInfo_st.subresource' in found_struct}} + + subresource : anon_union10 - {{endif}} - {{if 'CUarrayMapInfo_st.memOperationType' in found_struct}} + + memOperationType : CUmemOperationType Memory operation type - {{endif}} - {{if 'CUarrayMapInfo_st.memHandleType' in found_struct}} + + memHandleType : CUmemHandleType Memory handle type - {{endif}} - {{if 'CUarrayMapInfo_st.memHandle' in found_struct}} + + memHandle : anon_union11 - {{endif}} - {{if 'CUarrayMapInfo_st.offset' in found_struct}} + + offset : unsigned long long Offset within mip tail Offset within the memory - {{endif}} - {{if 'CUarrayMapInfo_st.deviceBitMask' in found_struct}} + + deviceBitMask : unsigned int Device ordinal bit mask - {{endif}} - {{if 'CUarrayMapInfo_st.flags' in found_struct}} + + flags : unsigned int flags for future use, must be zero now. - {{endif}} - {{if 'CUarrayMapInfo_st.reserved' in found_struct}} + + reserved : list[unsigned int] Reserved for future use, must be zero now. - {{endif}} + Methods ------- @@ -9963,8 +9401,6 @@ cdef class CUarrayMapInfo(CUarrayMapInfo_v1): Get memory address of class instance """ pass -{{endif}} -{{if 'CUmemLocation_v1' in found_types}} cdef class CUmemLocation_v1(CUmemLocation_st): """ @@ -9972,14 +9408,14 @@ cdef class CUmemLocation_v1(CUmemLocation_st): Attributes ---------- - {{if 'CUmemLocation_st.type' in found_struct}} + type : CUmemLocationType Specifies the location type, which modifies the meaning of id. - {{endif}} - {{if 'CUmemLocation_st.id' in found_struct}} + + id : int - {{endif}} + Methods ------- @@ -9987,8 +9423,6 @@ cdef class CUmemLocation_v1(CUmemLocation_st): Get memory address of class instance """ pass -{{endif}} -{{if 'CUmemLocation' in found_types}} cdef class CUmemLocation(CUmemLocation_v1): """ @@ -9996,14 +9430,14 @@ cdef class CUmemLocation(CUmemLocation_v1): Attributes ---------- - {{if 'CUmemLocation_st.type' in found_struct}} + type : CUmemLocationType Specifies the location type, which modifies the meaning of id. - {{endif}} - {{if 'CUmemLocation_st.id' in found_struct}} + + id : int - {{endif}} + Methods ------- @@ -10011,8 +9445,6 @@ cdef class CUmemLocation(CUmemLocation_v1): Get memory address of class instance """ pass -{{endif}} -{{if 'CUmemAllocationProp_v1' in found_types}} cdef class CUmemAllocationProp_v1(CUmemAllocationProp_st): """ @@ -10020,30 +9452,30 @@ cdef class CUmemAllocationProp_v1(CUmemAllocationProp_st): Attributes ---------- - {{if 'CUmemAllocationProp_st.type' in found_struct}} + type : CUmemAllocationType Allocation type - {{endif}} - {{if 'CUmemAllocationProp_st.requestedHandleTypes' in found_struct}} + + requestedHandleTypes : CUmemAllocationHandleType requested CUmemAllocationHandleType - {{endif}} - {{if 'CUmemAllocationProp_st.location' in found_struct}} + + location : CUmemLocation Location of allocation - {{endif}} - {{if 'CUmemAllocationProp_st.win32HandleMetaData' in found_struct}} + + win32HandleMetaData : Any Windows-specific POBJECT_ATTRIBUTES required when CU_MEM_HANDLE_TYPE_WIN32 is specified. This object attributes structure includes security attributes that define the scope of which exported allocations may be transferred to other processes. In all other cases, this field is required to be zero. - {{endif}} - {{if 'CUmemAllocationProp_st.allocFlags' in found_struct}} + + allocFlags : anon_struct22 - {{endif}} + Methods ------- @@ -10051,8 +9483,6 @@ cdef class CUmemAllocationProp_v1(CUmemAllocationProp_st): Get memory address of class instance """ pass -{{endif}} -{{if 'CUmemAllocationProp' in found_types}} cdef class CUmemAllocationProp(CUmemAllocationProp_v1): """ @@ -10060,30 +9490,30 @@ cdef class CUmemAllocationProp(CUmemAllocationProp_v1): Attributes ---------- - {{if 'CUmemAllocationProp_st.type' in found_struct}} + type : CUmemAllocationType Allocation type - {{endif}} - {{if 'CUmemAllocationProp_st.requestedHandleTypes' in found_struct}} + + requestedHandleTypes : CUmemAllocationHandleType requested CUmemAllocationHandleType - {{endif}} - {{if 'CUmemAllocationProp_st.location' in found_struct}} + + location : CUmemLocation Location of allocation - {{endif}} - {{if 'CUmemAllocationProp_st.win32HandleMetaData' in found_struct}} + + win32HandleMetaData : Any Windows-specific POBJECT_ATTRIBUTES required when CU_MEM_HANDLE_TYPE_WIN32 is specified. This object attributes structure includes security attributes that define the scope of which exported allocations may be transferred to other processes. In all other cases, this field is required to be zero. - {{endif}} - {{if 'CUmemAllocationProp_st.allocFlags' in found_struct}} + + allocFlags : anon_struct22 - {{endif}} + Methods ------- @@ -10091,8 +9521,6 @@ cdef class CUmemAllocationProp(CUmemAllocationProp_v1): Get memory address of class instance """ pass -{{endif}} -{{if 'CUmulticastObjectProp_v1' in found_types}} cdef class CUmulticastObjectProp_v1(CUmulticastObjectProp_st): """ @@ -10100,25 +9528,25 @@ cdef class CUmulticastObjectProp_v1(CUmulticastObjectProp_st): Attributes ---------- - {{if 'CUmulticastObjectProp_st.numDevices' in found_struct}} + numDevices : unsigned int The number of devices in the multicast team that will bind memory to this object - {{endif}} - {{if 'CUmulticastObjectProp_st.size' in found_struct}} + + size : size_t The maximum amount of memory that can be bound to this multicast object per device - {{endif}} - {{if 'CUmulticastObjectProp_st.handleTypes' in found_struct}} + + handleTypes : unsigned long long Bitmask of exportable handle types (see CUmemAllocationHandleType) for this object - {{endif}} - {{if 'CUmulticastObjectProp_st.flags' in found_struct}} + + flags : unsigned long long Flags for future use, must be zero now - {{endif}} + Methods ------- @@ -10126,8 +9554,6 @@ cdef class CUmulticastObjectProp_v1(CUmulticastObjectProp_st): Get memory address of class instance """ pass -{{endif}} -{{if 'CUmulticastObjectProp' in found_types}} cdef class CUmulticastObjectProp(CUmulticastObjectProp_v1): """ @@ -10135,25 +9561,25 @@ cdef class CUmulticastObjectProp(CUmulticastObjectProp_v1): Attributes ---------- - {{if 'CUmulticastObjectProp_st.numDevices' in found_struct}} + numDevices : unsigned int The number of devices in the multicast team that will bind memory to this object - {{endif}} - {{if 'CUmulticastObjectProp_st.size' in found_struct}} + + size : size_t The maximum amount of memory that can be bound to this multicast object per device - {{endif}} - {{if 'CUmulticastObjectProp_st.handleTypes' in found_struct}} + + handleTypes : unsigned long long Bitmask of exportable handle types (see CUmemAllocationHandleType) for this object - {{endif}} - {{if 'CUmulticastObjectProp_st.flags' in found_struct}} + + flags : unsigned long long Flags for future use, must be zero now - {{endif}} + Methods ------- @@ -10161,8 +9587,6 @@ cdef class CUmulticastObjectProp(CUmulticastObjectProp_v1): Get memory address of class instance """ pass -{{endif}} -{{if 'CUmemAccessDesc_v1' in found_types}} cdef class CUmemAccessDesc_v1(CUmemAccessDesc_st): """ @@ -10170,14 +9594,14 @@ cdef class CUmemAccessDesc_v1(CUmemAccessDesc_st): Attributes ---------- - {{if 'CUmemAccessDesc_st.location' in found_struct}} + location : CUmemLocation Location on which the request is to change it's accessibility - {{endif}} - {{if 'CUmemAccessDesc_st.flags' in found_struct}} + + flags : CUmemAccess_flags ::CUmemProt accessibility flags to set on the request - {{endif}} + Methods ------- @@ -10185,8 +9609,6 @@ cdef class CUmemAccessDesc_v1(CUmemAccessDesc_st): Get memory address of class instance """ pass -{{endif}} -{{if 'CUmemAccessDesc' in found_types}} cdef class CUmemAccessDesc(CUmemAccessDesc_v1): """ @@ -10194,14 +9616,14 @@ cdef class CUmemAccessDesc(CUmemAccessDesc_v1): Attributes ---------- - {{if 'CUmemAccessDesc_st.location' in found_struct}} + location : CUmemLocation Location on which the request is to change it's accessibility - {{endif}} - {{if 'CUmemAccessDesc_st.flags' in found_struct}} + + flags : CUmemAccess_flags ::CUmemProt accessibility flags to set on the request - {{endif}} + Methods ------- @@ -10209,8 +9631,6 @@ cdef class CUmemAccessDesc(CUmemAccessDesc_v1): Get memory address of class instance """ pass -{{endif}} -{{if 'CUgraphExecUpdateResultInfo_v1' in found_types}} cdef class CUgraphExecUpdateResultInfo_v1(CUgraphExecUpdateResultInfo_st): """ @@ -10218,21 +9638,21 @@ cdef class CUgraphExecUpdateResultInfo_v1(CUgraphExecUpdateResultInfo_st): Attributes ---------- - {{if 'CUgraphExecUpdateResultInfo_st.result' in found_struct}} + result : CUgraphExecUpdateResult Gives more specific detail when a cuda graph update fails. - {{endif}} - {{if 'CUgraphExecUpdateResultInfo_st.errorNode' in found_struct}} + + errorNode : CUgraphNode 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 'CUgraphExecUpdateResultInfo_st.errorFromNode' in found_struct}} + + errorFromNode : CUgraphNode The from node of error edge when the topologies do not match. Otherwise NULL. - {{endif}} + Methods ------- @@ -10240,8 +9660,6 @@ cdef class CUgraphExecUpdateResultInfo_v1(CUgraphExecUpdateResultInfo_st): Get memory address of class instance """ pass -{{endif}} -{{if 'CUgraphExecUpdateResultInfo' in found_types}} cdef class CUgraphExecUpdateResultInfo(CUgraphExecUpdateResultInfo_v1): """ @@ -10249,21 +9667,21 @@ cdef class CUgraphExecUpdateResultInfo(CUgraphExecUpdateResultInfo_v1): Attributes ---------- - {{if 'CUgraphExecUpdateResultInfo_st.result' in found_struct}} + result : CUgraphExecUpdateResult Gives more specific detail when a cuda graph update fails. - {{endif}} - {{if 'CUgraphExecUpdateResultInfo_st.errorNode' in found_struct}} + + errorNode : CUgraphNode 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 'CUgraphExecUpdateResultInfo_st.errorFromNode' in found_struct}} + + errorFromNode : CUgraphNode The from node of error edge when the topologies do not match. Otherwise NULL. - {{endif}} + Methods ------- @@ -10271,8 +9689,6 @@ cdef class CUgraphExecUpdateResultInfo(CUgraphExecUpdateResultInfo_v1): Get memory address of class instance """ pass -{{endif}} -{{if 'CUmemPoolProps_v1' in found_types}} cdef class CUmemPoolProps_v1(CUmemPoolProps_st): """ @@ -10280,40 +9696,40 @@ cdef class CUmemPoolProps_v1(CUmemPoolProps_st): Attributes ---------- - {{if 'CUmemPoolProps_st.allocType' in found_struct}} + allocType : CUmemAllocationType Allocation type. Currently must be specified as CU_MEM_ALLOCATION_TYPE_PINNED - {{endif}} - {{if 'CUmemPoolProps_st.handleTypes' in found_struct}} + + handleTypes : CUmemAllocationHandleType Handle types that will be supported by allocations from the pool. - {{endif}} - {{if 'CUmemPoolProps_st.location' in found_struct}} + + location : CUmemLocation Location where allocations should reside. - {{endif}} - {{if 'CUmemPoolProps_st.win32SecurityAttributes' in found_struct}} + + win32SecurityAttributes : Any Windows-specific LPSECURITYATTRIBUTES required when CU_MEM_HANDLE_TYPE_WIN32 is specified. This security attribute defines the scope of which exported allocations may be transferred to other processes. In all other cases, this field is required to be zero. - {{endif}} - {{if 'CUmemPoolProps_st.maxSize' in found_struct}} + + maxSize : size_t Maximum pool size. When set to 0, defaults to a system dependent value. - {{endif}} - {{if 'CUmemPoolProps_st.usage' in found_struct}} + + usage : unsigned short Bitmask indicating intended usage for the pool. - {{endif}} - {{if 'CUmemPoolProps_st.reserved' in found_struct}} + + reserved : bytes reserved for future use, must be 0 - {{endif}} + Methods ------- @@ -10321,8 +9737,6 @@ cdef class CUmemPoolProps_v1(CUmemPoolProps_st): Get memory address of class instance """ pass -{{endif}} -{{if 'CUmemPoolProps' in found_types}} cdef class CUmemPoolProps(CUmemPoolProps_v1): """ @@ -10330,40 +9744,40 @@ cdef class CUmemPoolProps(CUmemPoolProps_v1): Attributes ---------- - {{if 'CUmemPoolProps_st.allocType' in found_struct}} + allocType : CUmemAllocationType Allocation type. Currently must be specified as CU_MEM_ALLOCATION_TYPE_PINNED - {{endif}} - {{if 'CUmemPoolProps_st.handleTypes' in found_struct}} + + handleTypes : CUmemAllocationHandleType Handle types that will be supported by allocations from the pool. - {{endif}} - {{if 'CUmemPoolProps_st.location' in found_struct}} + + location : CUmemLocation Location where allocations should reside. - {{endif}} - {{if 'CUmemPoolProps_st.win32SecurityAttributes' in found_struct}} + + win32SecurityAttributes : Any Windows-specific LPSECURITYATTRIBUTES required when CU_MEM_HANDLE_TYPE_WIN32 is specified. This security attribute defines the scope of which exported allocations may be transferred to other processes. In all other cases, this field is required to be zero. - {{endif}} - {{if 'CUmemPoolProps_st.maxSize' in found_struct}} + + maxSize : size_t Maximum pool size. When set to 0, defaults to a system dependent value. - {{endif}} - {{if 'CUmemPoolProps_st.usage' in found_struct}} + + usage : unsigned short Bitmask indicating intended usage for the pool. - {{endif}} - {{if 'CUmemPoolProps_st.reserved' in found_struct}} + + reserved : bytes reserved for future use, must be 0 - {{endif}} + Methods ------- @@ -10371,8 +9785,6 @@ cdef class CUmemPoolProps(CUmemPoolProps_v1): Get memory address of class instance """ pass -{{endif}} -{{if 'CUmemPoolPtrExportData_v1' in found_types}} cdef class CUmemPoolPtrExportData_v1(CUmemPoolPtrExportData_st): """ @@ -10380,10 +9792,10 @@ cdef class CUmemPoolPtrExportData_v1(CUmemPoolPtrExportData_st): Attributes ---------- - {{if 'CUmemPoolPtrExportData_st.reserved' in found_struct}} + reserved : bytes - {{endif}} + Methods ------- @@ -10391,8 +9803,6 @@ cdef class CUmemPoolPtrExportData_v1(CUmemPoolPtrExportData_st): Get memory address of class instance """ pass -{{endif}} -{{if 'CUmemPoolPtrExportData' in found_types}} cdef class CUmemPoolPtrExportData(CUmemPoolPtrExportData_v1): """ @@ -10400,10 +9810,10 @@ cdef class CUmemPoolPtrExportData(CUmemPoolPtrExportData_v1): Attributes ---------- - {{if 'CUmemPoolPtrExportData_st.reserved' in found_struct}} + reserved : bytes - {{endif}} + Methods ------- @@ -10411,8 +9821,6 @@ cdef class CUmemPoolPtrExportData(CUmemPoolPtrExportData_v1): Get memory address of class instance """ pass -{{endif}} -{{if 'CUmemcpyAttributes_v1' in found_types}} cdef class CUmemcpyAttributes_v1(CUmemcpyAttributes_st): """ @@ -10421,25 +9829,25 @@ cdef class CUmemcpyAttributes_v1(CUmemcpyAttributes_st): Attributes ---------- - {{if 'CUmemcpyAttributes_st.srcAccessOrder' in found_struct}} + srcAccessOrder : CUmemcpySrcAccessOrder Source access ordering to be observed for copies with this attribute. - {{endif}} - {{if 'CUmemcpyAttributes_st.srcLocHint' in found_struct}} + + srcLocHint : CUmemLocation Hint location for the source operand. Ignored when the pointers are not managed memory or memory allocated outside CUDA. - {{endif}} - {{if 'CUmemcpyAttributes_st.dstLocHint' in found_struct}} + + dstLocHint : CUmemLocation Hint location for the destination operand. Ignored when the pointers are not managed memory or memory allocated outside CUDA. - {{endif}} - {{if 'CUmemcpyAttributes_st.flags' in found_struct}} + + flags : unsigned int Additional flags for copies with this attribute. See CUmemcpyFlags - {{endif}} + Methods ------- @@ -10447,8 +9855,6 @@ cdef class CUmemcpyAttributes_v1(CUmemcpyAttributes_st): Get memory address of class instance """ pass -{{endif}} -{{if 'CUmemcpyAttributes' in found_types}} cdef class CUmemcpyAttributes(CUmemcpyAttributes_v1): """ @@ -10457,25 +9863,25 @@ cdef class CUmemcpyAttributes(CUmemcpyAttributes_v1): Attributes ---------- - {{if 'CUmemcpyAttributes_st.srcAccessOrder' in found_struct}} + srcAccessOrder : CUmemcpySrcAccessOrder Source access ordering to be observed for copies with this attribute. - {{endif}} - {{if 'CUmemcpyAttributes_st.srcLocHint' in found_struct}} + + srcLocHint : CUmemLocation Hint location for the source operand. Ignored when the pointers are not managed memory or memory allocated outside CUDA. - {{endif}} - {{if 'CUmemcpyAttributes_st.dstLocHint' in found_struct}} + + dstLocHint : CUmemLocation Hint location for the destination operand. Ignored when the pointers are not managed memory or memory allocated outside CUDA. - {{endif}} - {{if 'CUmemcpyAttributes_st.flags' in found_struct}} + + flags : unsigned int Additional flags for copies with this attribute. See CUmemcpyFlags - {{endif}} + Methods ------- @@ -10483,8 +9889,6 @@ cdef class CUmemcpyAttributes(CUmemcpyAttributes_v1): Get memory address of class instance """ pass -{{endif}} -{{if 'CUoffset3D_v1' in found_types}} cdef class CUoffset3D_v1(CUoffset3D_st): """ @@ -10492,18 +9896,18 @@ cdef class CUoffset3D_v1(CUoffset3D_st): Attributes ---------- - {{if 'CUoffset3D_st.x' in found_struct}} + x : size_t - {{endif}} - {{if 'CUoffset3D_st.y' in found_struct}} + + y : size_t - {{endif}} - {{if 'CUoffset3D_st.z' in found_struct}} + + z : size_t - {{endif}} + Methods ------- @@ -10511,8 +9915,6 @@ cdef class CUoffset3D_v1(CUoffset3D_st): Get memory address of class instance """ pass -{{endif}} -{{if 'CUoffset3D' in found_types}} cdef class CUoffset3D(CUoffset3D_v1): """ @@ -10520,18 +9922,18 @@ cdef class CUoffset3D(CUoffset3D_v1): Attributes ---------- - {{if 'CUoffset3D_st.x' in found_struct}} + x : size_t - {{endif}} - {{if 'CUoffset3D_st.y' in found_struct}} + + y : size_t - {{endif}} - {{if 'CUoffset3D_st.z' in found_struct}} + + z : size_t - {{endif}} + Methods ------- @@ -10539,8 +9941,6 @@ cdef class CUoffset3D(CUoffset3D_v1): Get memory address of class instance """ pass -{{endif}} -{{if 'CUextent3D_v1' in found_types}} cdef class CUextent3D_v1(CUextent3D_st): """ @@ -10548,18 +9948,18 @@ cdef class CUextent3D_v1(CUextent3D_st): Attributes ---------- - {{if 'CUextent3D_st.width' in found_struct}} + width : size_t - {{endif}} - {{if 'CUextent3D_st.height' in found_struct}} + + height : size_t - {{endif}} - {{if 'CUextent3D_st.depth' in found_struct}} + + depth : size_t - {{endif}} + Methods ------- @@ -10567,8 +9967,6 @@ cdef class CUextent3D_v1(CUextent3D_st): Get memory address of class instance """ pass -{{endif}} -{{if 'CUextent3D' in found_types}} cdef class CUextent3D(CUextent3D_v1): """ @@ -10576,18 +9974,18 @@ cdef class CUextent3D(CUextent3D_v1): Attributes ---------- - {{if 'CUextent3D_st.width' in found_struct}} + width : size_t - {{endif}} - {{if 'CUextent3D_st.height' in found_struct}} + + height : size_t - {{endif}} - {{if 'CUextent3D_st.depth' in found_struct}} + + depth : size_t - {{endif}} + Methods ------- @@ -10595,8 +9993,6 @@ cdef class CUextent3D(CUextent3D_v1): Get memory address of class instance """ pass -{{endif}} -{{if 'CUmemcpy3DOperand_v1' in found_types}} cdef class CUmemcpy3DOperand_v1(CUmemcpy3DOperand_st): """ @@ -10604,14 +10000,14 @@ cdef class CUmemcpy3DOperand_v1(CUmemcpy3DOperand_st): Attributes ---------- - {{if 'CUmemcpy3DOperand_st.type' in found_struct}} + type : CUmemcpy3DOperandType - {{endif}} - {{if 'CUmemcpy3DOperand_st.op' in found_struct}} + + op : anon_union13 - {{endif}} + Methods ------- @@ -10619,8 +10015,6 @@ cdef class CUmemcpy3DOperand_v1(CUmemcpy3DOperand_st): Get memory address of class instance """ pass -{{endif}} -{{if 'CUmemcpy3DOperand' in found_types}} cdef class CUmemcpy3DOperand(CUmemcpy3DOperand_v1): """ @@ -10628,14 +10022,14 @@ cdef class CUmemcpy3DOperand(CUmemcpy3DOperand_v1): Attributes ---------- - {{if 'CUmemcpy3DOperand_st.type' in found_struct}} + type : CUmemcpy3DOperandType - {{endif}} - {{if 'CUmemcpy3DOperand_st.op' in found_struct}} + + op : anon_union13 - {{endif}} + Methods ------- @@ -10643,34 +10037,32 @@ cdef class CUmemcpy3DOperand(CUmemcpy3DOperand_v1): Get memory address of class instance """ pass -{{endif}} -{{if 'CUDA_MEMCPY3D_BATCH_OP_v1' in found_types}} cdef class CUDA_MEMCPY3D_BATCH_OP_v1(CUDA_MEMCPY3D_BATCH_OP_st): """ Attributes ---------- - {{if 'CUDA_MEMCPY3D_BATCH_OP_st.src' in found_struct}} + src : CUmemcpy3DOperand Source memcpy operand. - {{endif}} - {{if 'CUDA_MEMCPY3D_BATCH_OP_st.dst' in found_struct}} + + dst : CUmemcpy3DOperand Destination memcpy operand. - {{endif}} - {{if 'CUDA_MEMCPY3D_BATCH_OP_st.extent' in found_struct}} + + extent : CUextent3D Extents of the memcpy between src and dst. The width, height and depth components must not be 0. - {{endif}} - {{if 'CUDA_MEMCPY3D_BATCH_OP_st.srcAccessOrder' in found_struct}} + + srcAccessOrder : CUmemcpySrcAccessOrder Source access ordering to be observed for copy from src to dst. - {{endif}} - {{if 'CUDA_MEMCPY3D_BATCH_OP_st.flags' in found_struct}} + + flags : unsigned int Additional flags for copies with this attribute. See CUmemcpyFlags - {{endif}} + Methods ------- @@ -10678,34 +10070,32 @@ cdef class CUDA_MEMCPY3D_BATCH_OP_v1(CUDA_MEMCPY3D_BATCH_OP_st): Get memory address of class instance """ pass -{{endif}} -{{if 'CUDA_MEMCPY3D_BATCH_OP' in found_types}} cdef class CUDA_MEMCPY3D_BATCH_OP(CUDA_MEMCPY3D_BATCH_OP_v1): """ Attributes ---------- - {{if 'CUDA_MEMCPY3D_BATCH_OP_st.src' in found_struct}} + src : CUmemcpy3DOperand Source memcpy operand. - {{endif}} - {{if 'CUDA_MEMCPY3D_BATCH_OP_st.dst' in found_struct}} + + dst : CUmemcpy3DOperand Destination memcpy operand. - {{endif}} - {{if 'CUDA_MEMCPY3D_BATCH_OP_st.extent' in found_struct}} + + extent : CUextent3D Extents of the memcpy between src and dst. The width, height and depth components must not be 0. - {{endif}} - {{if 'CUDA_MEMCPY3D_BATCH_OP_st.srcAccessOrder' in found_struct}} + + srcAccessOrder : CUmemcpySrcAccessOrder Source access ordering to be observed for copy from src to dst. - {{endif}} - {{if 'CUDA_MEMCPY3D_BATCH_OP_st.flags' in found_struct}} + + flags : unsigned int Additional flags for copies with this attribute. See CUmemcpyFlags - {{endif}} + Methods ------- @@ -10713,8 +10103,6 @@ cdef class CUDA_MEMCPY3D_BATCH_OP(CUDA_MEMCPY3D_BATCH_OP_v1): Get memory address of class instance """ pass -{{endif}} -{{if 'CUDA_MEM_ALLOC_NODE_PARAMS_v1' in found_types}} cdef class CUDA_MEM_ALLOC_NODE_PARAMS_v1(CUDA_MEM_ALLOC_NODE_PARAMS_v1_st): """ @@ -10722,30 +10110,30 @@ cdef class CUDA_MEM_ALLOC_NODE_PARAMS_v1(CUDA_MEM_ALLOC_NODE_PARAMS_v1_st): Attributes ---------- - {{if 'CUDA_MEM_ALLOC_NODE_PARAMS_v1_st.poolProps' in found_struct}} + poolProps : CUmemPoolProps in: location where the allocation should reside (specified in ::location). ::handleTypes must be CU_MEM_HANDLE_TYPE_NONE. IPC is not supported. - {{endif}} - {{if 'CUDA_MEM_ALLOC_NODE_PARAMS_v1_st.accessDescs' in found_struct}} + + accessDescs : CUmemAccessDesc in: array of memory access descriptors. Used to describe peer GPU access - {{endif}} - {{if 'CUDA_MEM_ALLOC_NODE_PARAMS_v1_st.accessDescCount' in found_struct}} + + accessDescCount : size_t in: number of memory access descriptors. Must not exceed the number of GPUs. - {{endif}} - {{if 'CUDA_MEM_ALLOC_NODE_PARAMS_v1_st.bytesize' in found_struct}} + + bytesize : size_t in: size in bytes of the requested allocation - {{endif}} - {{if 'CUDA_MEM_ALLOC_NODE_PARAMS_v1_st.dptr' in found_struct}} + + dptr : CUdeviceptr out: address of the allocation returned by CUDA - {{endif}} + Methods ------- @@ -10753,8 +10141,6 @@ cdef class CUDA_MEM_ALLOC_NODE_PARAMS_v1(CUDA_MEM_ALLOC_NODE_PARAMS_v1_st): Get memory address of class instance """ pass -{{endif}} -{{if 'CUDA_MEM_ALLOC_NODE_PARAMS' in found_types}} cdef class CUDA_MEM_ALLOC_NODE_PARAMS(CUDA_MEM_ALLOC_NODE_PARAMS_v1): """ @@ -10762,30 +10148,30 @@ cdef class CUDA_MEM_ALLOC_NODE_PARAMS(CUDA_MEM_ALLOC_NODE_PARAMS_v1): Attributes ---------- - {{if 'CUDA_MEM_ALLOC_NODE_PARAMS_v1_st.poolProps' in found_struct}} + poolProps : CUmemPoolProps in: location where the allocation should reside (specified in ::location). ::handleTypes must be CU_MEM_HANDLE_TYPE_NONE. IPC is not supported. - {{endif}} - {{if 'CUDA_MEM_ALLOC_NODE_PARAMS_v1_st.accessDescs' in found_struct}} + + accessDescs : CUmemAccessDesc in: array of memory access descriptors. Used to describe peer GPU access - {{endif}} - {{if 'CUDA_MEM_ALLOC_NODE_PARAMS_v1_st.accessDescCount' in found_struct}} + + accessDescCount : size_t in: number of memory access descriptors. Must not exceed the number of GPUs. - {{endif}} - {{if 'CUDA_MEM_ALLOC_NODE_PARAMS_v1_st.bytesize' in found_struct}} + + bytesize : size_t in: size in bytes of the requested allocation - {{endif}} - {{if 'CUDA_MEM_ALLOC_NODE_PARAMS_v1_st.dptr' in found_struct}} + + dptr : CUdeviceptr out: address of the allocation returned by CUDA - {{endif}} + Methods ------- @@ -10793,8 +10179,6 @@ cdef class CUDA_MEM_ALLOC_NODE_PARAMS(CUDA_MEM_ALLOC_NODE_PARAMS_v1): Get memory address of class instance """ pass -{{endif}} -{{if 'CUDA_MEM_ALLOC_NODE_PARAMS_v2' in found_types}} cdef class CUDA_MEM_ALLOC_NODE_PARAMS_v2(CUDA_MEM_ALLOC_NODE_PARAMS_v2_st): """ @@ -10802,30 +10186,30 @@ cdef class CUDA_MEM_ALLOC_NODE_PARAMS_v2(CUDA_MEM_ALLOC_NODE_PARAMS_v2_st): Attributes ---------- - {{if 'CUDA_MEM_ALLOC_NODE_PARAMS_v2_st.poolProps' in found_struct}} + poolProps : CUmemPoolProps in: location where the allocation should reside (specified in ::location). ::handleTypes must be CU_MEM_HANDLE_TYPE_NONE. IPC is not supported. - {{endif}} - {{if 'CUDA_MEM_ALLOC_NODE_PARAMS_v2_st.accessDescs' in found_struct}} + + accessDescs : CUmemAccessDesc in: array of memory access descriptors. Used to describe peer GPU access - {{endif}} - {{if 'CUDA_MEM_ALLOC_NODE_PARAMS_v2_st.accessDescCount' in found_struct}} + + accessDescCount : size_t in: number of memory access descriptors. Must not exceed the number of GPUs. - {{endif}} - {{if 'CUDA_MEM_ALLOC_NODE_PARAMS_v2_st.bytesize' in found_struct}} + + bytesize : size_t in: size in bytes of the requested allocation - {{endif}} - {{if 'CUDA_MEM_ALLOC_NODE_PARAMS_v2_st.dptr' in found_struct}} + + dptr : CUdeviceptr out: address of the allocation returned by CUDA - {{endif}} + Methods ------- @@ -10833,8 +10217,6 @@ cdef class CUDA_MEM_ALLOC_NODE_PARAMS_v2(CUDA_MEM_ALLOC_NODE_PARAMS_v2_st): Get memory address of class instance """ pass -{{endif}} -{{if 'CUDA_MEM_FREE_NODE_PARAMS' in found_types}} cdef class CUDA_MEM_FREE_NODE_PARAMS(CUDA_MEM_FREE_NODE_PARAMS_st): """ @@ -10842,10 +10224,10 @@ cdef class CUDA_MEM_FREE_NODE_PARAMS(CUDA_MEM_FREE_NODE_PARAMS_st): Attributes ---------- - {{if 'CUDA_MEM_FREE_NODE_PARAMS_st.dptr' in found_struct}} + dptr : CUdeviceptr in: the pointer to free - {{endif}} + Methods ------- @@ -10853,8 +10235,6 @@ cdef class CUDA_MEM_FREE_NODE_PARAMS(CUDA_MEM_FREE_NODE_PARAMS_st): Get memory address of class instance """ pass -{{endif}} -{{if 'CUDA_CHILD_GRAPH_NODE_PARAMS' in found_types}} cdef class CUDA_CHILD_GRAPH_NODE_PARAMS(CUDA_CHILD_GRAPH_NODE_PARAMS_st): """ @@ -10862,18 +10242,18 @@ cdef class CUDA_CHILD_GRAPH_NODE_PARAMS(CUDA_CHILD_GRAPH_NODE_PARAMS_st): Attributes ---------- - {{if 'CUDA_CHILD_GRAPH_NODE_PARAMS_st.graph' in found_struct}} + graph : CUgraph 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 'CUDA_CHILD_GRAPH_NODE_PARAMS_st.ownership' in found_struct}} + + ownership : CUgraphChildGraphNodeOwnership The ownership relationship of the child graph node. - {{endif}} + Methods ------- @@ -10881,8 +10261,6 @@ cdef class CUDA_CHILD_GRAPH_NODE_PARAMS(CUDA_CHILD_GRAPH_NODE_PARAMS_st): Get memory address of class instance """ pass -{{endif}} -{{if 'CUDA_EVENT_RECORD_NODE_PARAMS' in found_types}} cdef class CUDA_EVENT_RECORD_NODE_PARAMS(CUDA_EVENT_RECORD_NODE_PARAMS_st): """ @@ -10890,10 +10268,10 @@ cdef class CUDA_EVENT_RECORD_NODE_PARAMS(CUDA_EVENT_RECORD_NODE_PARAMS_st): Attributes ---------- - {{if 'CUDA_EVENT_RECORD_NODE_PARAMS_st.event' in found_struct}} + event : CUevent The event to record when the node executes - {{endif}} + Methods ------- @@ -10901,8 +10279,6 @@ cdef class CUDA_EVENT_RECORD_NODE_PARAMS(CUDA_EVENT_RECORD_NODE_PARAMS_st): Get memory address of class instance """ pass -{{endif}} -{{if 'CUDA_EVENT_WAIT_NODE_PARAMS' in found_types}} cdef class CUDA_EVENT_WAIT_NODE_PARAMS(CUDA_EVENT_WAIT_NODE_PARAMS_st): """ @@ -10910,10 +10286,10 @@ cdef class CUDA_EVENT_WAIT_NODE_PARAMS(CUDA_EVENT_WAIT_NODE_PARAMS_st): Attributes ---------- - {{if 'CUDA_EVENT_WAIT_NODE_PARAMS_st.event' in found_struct}} + event : CUevent The event to wait on from the node - {{endif}} + Methods ------- @@ -10921,8 +10297,6 @@ cdef class CUDA_EVENT_WAIT_NODE_PARAMS(CUDA_EVENT_WAIT_NODE_PARAMS_st): Get memory address of class instance """ pass -{{endif}} -{{if 'CUgraphNodeParams' in found_types}} cdef class CUgraphNodeParams(CUgraphNodeParams_st): """ @@ -10930,74 +10304,74 @@ cdef class CUgraphNodeParams(CUgraphNodeParams_st): Attributes ---------- - {{if 'CUgraphNodeParams_st.type' in found_struct}} + type : CUgraphNodeType Type of the node - {{endif}} - {{if 'CUgraphNodeParams_st.reserved0' in found_struct}} + + reserved0 : list[int] Reserved. Must be zero. - {{endif}} - {{if 'CUgraphNodeParams_st.reserved1' in found_struct}} + + reserved1 : list[long long] Padding. Unused bytes must be zero. - {{endif}} - {{if 'CUgraphNodeParams_st.kernel' in found_struct}} + + kernel : CUDA_KERNEL_NODE_PARAMS_v3 Kernel node parameters. - {{endif}} - {{if 'CUgraphNodeParams_st.memcpy' in found_struct}} + + memcpy : CUDA_MEMCPY_NODE_PARAMS Memcpy node parameters. - {{endif}} - {{if 'CUgraphNodeParams_st.memset' in found_struct}} + + memset : CUDA_MEMSET_NODE_PARAMS_v2 Memset node parameters. - {{endif}} - {{if 'CUgraphNodeParams_st.host' in found_struct}} + + host : CUDA_HOST_NODE_PARAMS_v2 Host node parameters. - {{endif}} - {{if 'CUgraphNodeParams_st.graph' in found_struct}} + + graph : CUDA_CHILD_GRAPH_NODE_PARAMS Child graph node parameters. - {{endif}} - {{if 'CUgraphNodeParams_st.eventWait' in found_struct}} + + eventWait : CUDA_EVENT_WAIT_NODE_PARAMS Event wait node parameters. - {{endif}} - {{if 'CUgraphNodeParams_st.eventRecord' in found_struct}} + + eventRecord : CUDA_EVENT_RECORD_NODE_PARAMS Event record node parameters. - {{endif}} - {{if 'CUgraphNodeParams_st.extSemSignal' in found_struct}} + + extSemSignal : CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2 External semaphore signal node parameters. - {{endif}} - {{if 'CUgraphNodeParams_st.extSemWait' in found_struct}} + + extSemWait : CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2 External semaphore wait node parameters. - {{endif}} - {{if 'CUgraphNodeParams_st.alloc' in found_struct}} + + alloc : CUDA_MEM_ALLOC_NODE_PARAMS_v2 Memory allocation node parameters. - {{endif}} - {{if 'CUgraphNodeParams_st.free' in found_struct}} + + free : CUDA_MEM_FREE_NODE_PARAMS Memory free node parameters. - {{endif}} - {{if 'CUgraphNodeParams_st.memOp' in found_struct}} + + memOp : CUDA_BATCH_MEM_OP_NODE_PARAMS_v2 MemOp node parameters. - {{endif}} - {{if 'CUgraphNodeParams_st.conditional' in found_struct}} + + conditional : CUDA_CONDITIONAL_NODE_PARAMS Conditional node parameters. - {{endif}} - {{if 'CUgraphNodeParams_st.reserved2' in found_struct}} + + reserved2 : long long Reserved bytes. Must be zero. - {{endif}} + Methods ------- @@ -11005,8 +10379,6 @@ cdef class CUgraphNodeParams(CUgraphNodeParams_st): Get memory address of class instance """ pass -{{endif}} -{{if 'CUcheckpointLockArgs' in found_types}} cdef class CUcheckpointLockArgs(CUcheckpointLockArgs_st): """ @@ -11014,19 +10386,19 @@ cdef class CUcheckpointLockArgs(CUcheckpointLockArgs_st): Attributes ---------- - {{if 'CUcheckpointLockArgs_st.timeoutMs' in found_struct}} + timeoutMs : unsigned int Timeout in milliseconds to attempt to lock the process, 0 indicates no timeout - {{endif}} - {{if 'CUcheckpointLockArgs_st.reserved0' in found_struct}} + + reserved0 : unsigned int Reserved for future use, must be zero - {{endif}} - {{if 'CUcheckpointLockArgs_st.reserved1' in found_struct}} + + reserved1 : list[cuuint64_t] Reserved for future use, must be zeroed - {{endif}} + Methods ------- @@ -11034,8 +10406,6 @@ cdef class CUcheckpointLockArgs(CUcheckpointLockArgs_st): Get memory address of class instance """ pass -{{endif}} -{{if 'CUcheckpointCheckpointArgs' in found_types}} cdef class CUcheckpointCheckpointArgs(CUcheckpointCheckpointArgs_st): """ @@ -11043,10 +10413,10 @@ cdef class CUcheckpointCheckpointArgs(CUcheckpointCheckpointArgs_st): Attributes ---------- - {{if 'CUcheckpointCheckpointArgs_st.reserved' in found_struct}} + reserved : list[cuuint64_t] Reserved for future use, must be zeroed - {{endif}} + Methods ------- @@ -11054,8 +10424,6 @@ cdef class CUcheckpointCheckpointArgs(CUcheckpointCheckpointArgs_st): Get memory address of class instance """ pass -{{endif}} -{{if 'CUcheckpointGpuPair' in found_types}} cdef class CUcheckpointGpuPair(CUcheckpointGpuPair_st): """ @@ -11063,14 +10431,14 @@ cdef class CUcheckpointGpuPair(CUcheckpointGpuPair_st): Attributes ---------- - {{if 'CUcheckpointGpuPair_st.oldUuid' in found_struct}} + oldUuid : CUuuid UUID of the GPU that was checkpointed - {{endif}} - {{if 'CUcheckpointGpuPair_st.newUuid' in found_struct}} + + newUuid : CUuuid UUID of the GPU to restore onto - {{endif}} + Methods ------- @@ -11078,8 +10446,6 @@ cdef class CUcheckpointGpuPair(CUcheckpointGpuPair_st): Get memory address of class instance """ pass -{{endif}} -{{if 'CUcheckpointRestoreArgs' in found_types}} cdef class CUcheckpointRestoreArgs(CUcheckpointRestoreArgs_st): """ @@ -11087,23 +10453,23 @@ cdef class CUcheckpointRestoreArgs(CUcheckpointRestoreArgs_st): Attributes ---------- - {{if 'CUcheckpointRestoreArgs_st.gpuPairs' in found_struct}} + gpuPairs : CUcheckpointGpuPair Pointer to array of gpu pairs that indicate how to remap GPUs during restore - {{endif}} - {{if 'CUcheckpointRestoreArgs_st.gpuPairsCount' in found_struct}} + + gpuPairsCount : unsigned int Number of gpu pairs to remap - {{endif}} - {{if 'CUcheckpointRestoreArgs_st.reserved' in found_struct}} + + reserved : bytes Reserved for future use, must be zeroed - {{endif}} - {{if 'CUcheckpointRestoreArgs_st.reserved1' in found_struct}} + + reserved1 : cuuint64_t Reserved for future use, must be zeroed - {{endif}} + Methods ------- @@ -11111,8 +10477,6 @@ cdef class CUcheckpointRestoreArgs(CUcheckpointRestoreArgs_st): Get memory address of class instance """ pass -{{endif}} -{{if 'CUcheckpointUnlockArgs' in found_types}} cdef class CUcheckpointUnlockArgs(CUcheckpointUnlockArgs_st): """ @@ -11120,10 +10484,10 @@ cdef class CUcheckpointUnlockArgs(CUcheckpointUnlockArgs_st): Attributes ---------- - {{if 'CUcheckpointUnlockArgs_st.reserved' in found_struct}} + reserved : list[cuuint64_t] Reserved for future use, must be zeroed - {{endif}} + Methods ------- @@ -11131,8 +10495,6 @@ cdef class CUcheckpointUnlockArgs(CUcheckpointUnlockArgs_st): Get memory address of class instance """ pass -{{endif}} -{{if 'CUmemDecompressParams' in found_types}} cdef class CUmemDecompressParams(CUmemDecompressParams_st): """ @@ -11141,43 +10503,43 @@ cdef class CUmemDecompressParams(CUmemDecompressParams_st): Attributes ---------- - {{if 'CUmemDecompressParams_st.srcNumBytes' in found_struct}} + srcNumBytes : size_t The number of bytes to be read and decompressed from CUmemDecompressParams_st.src. - {{endif}} - {{if 'CUmemDecompressParams_st.dstNumBytes' in found_struct}} + + dstNumBytes : size_t The number of bytes that the decompression operation will be expected to write to CUmemDecompressParams_st.dst. This value is optional; if present, it may be used by the CUDA driver as a heuristic for scheduling the individual decompression operations. - {{endif}} - {{if 'CUmemDecompressParams_st.dstActBytes' in found_struct}} + + dstActBytes : cuuint32_t After the decompression operation has completed, the actual number of bytes written to CUmemDecompressParams.dst will be recorded as a 32-bit unsigned integer in the memory at this address. - {{endif}} - {{if 'CUmemDecompressParams_st.src' in found_struct}} + + src : Any Pointer to a buffer of at least CUmemDecompressParams_st.srcNumBytes compressed bytes. - {{endif}} - {{if 'CUmemDecompressParams_st.dst' in found_struct}} + + dst : Any Pointer to a buffer where the decompressed data will be written. The number of bytes written to this location will be recorded in the memory pointed to by CUmemDecompressParams_st.dstActBytes - {{endif}} - {{if 'CUmemDecompressParams_st.algo' in found_struct}} + + algo : CUmemDecompressAlgorithm The decompression algorithm to use. - {{endif}} - {{if 'CUmemDecompressParams_st.padding' in found_struct}} + + padding : bytes - {{endif}} + Methods ------- @@ -11185,34 +10547,32 @@ cdef class CUmemDecompressParams(CUmemDecompressParams_st): Get memory address of class instance """ pass -{{endif}} -{{if 'CUdevSmResource' in found_types}} cdef class CUdevSmResource(CUdevSmResource_st): """ Attributes ---------- - {{if 'CUdevSmResource_st.smCount' in found_struct}} + smCount : unsigned int The amount of streaming multiprocessors available in this resource. - {{endif}} - {{if 'CUdevSmResource_st.minSmPartitionSize' in found_struct}} + + minSmPartitionSize : unsigned int The minimum number of streaming multiprocessors required to partition this resource. - {{endif}} - {{if 'CUdevSmResource_st.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 'CUdevSmResource_st.flags' in found_struct}} + + flags : unsigned int The flags set on this SM resource. For possible values see CUdevSmResourceGroup_flags. - {{endif}} + Methods ------- @@ -11220,25 +10580,23 @@ cdef class CUdevSmResource(CUdevSmResource_st): Get memory address of class instance """ pass -{{endif}} -{{if 'CUdevWorkqueueConfigResource' in found_types}} cdef class CUdevWorkqueueConfigResource(CUdevWorkqueueConfigResource_st): """ Attributes ---------- - {{if 'CUdevWorkqueueConfigResource_st.device' in found_struct}} + device : CUdevice The device on which the workqueue resources are available - {{endif}} - {{if 'CUdevWorkqueueConfigResource_st.wqConcurrencyLimit' in found_struct}} + + wqConcurrencyLimit : unsigned int The expected maximum number of concurrent stream-ordered workloads - {{endif}} - {{if 'CUdevWorkqueueConfigResource_st.sharingScope' in found_struct}} + + sharingScope : CUdevWorkqueueConfigScope The sharing scope for the workqueue resources - {{endif}} + Methods ------- @@ -11246,17 +10604,15 @@ cdef class CUdevWorkqueueConfigResource(CUdevWorkqueueConfigResource_st): Get memory address of class instance """ pass -{{endif}} -{{if 'CUdevWorkqueueResource' in found_types}} cdef class CUdevWorkqueueResource(CUdevWorkqueueResource_st): """ Attributes ---------- - {{if 'CUdevWorkqueueResource_st.reserved' in found_struct}} + reserved : bytes Reserved for future use - {{endif}} + Methods ------- @@ -11264,36 +10620,34 @@ cdef class CUdevWorkqueueResource(CUdevWorkqueueResource_st): Get memory address of class instance """ pass -{{endif}} -{{if 'CU_DEV_SM_RESOURCE_GROUP_PARAMS' in found_types}} cdef class CU_DEV_SM_RESOURCE_GROUP_PARAMS(CU_DEV_SM_RESOURCE_GROUP_PARAMS_st): """ Attributes ---------- - {{if 'CU_DEV_SM_RESOURCE_GROUP_PARAMS_st.smCount' in found_struct}} + smCount : unsigned int The amount of SMs available in this resource. - {{endif}} - {{if 'CU_DEV_SM_RESOURCE_GROUP_PARAMS_st.coscheduledSmCount' in found_struct}} + + coscheduledSmCount : unsigned int The amount of co-scheduled SMs grouped together for locality purposes. - {{endif}} - {{if 'CU_DEV_SM_RESOURCE_GROUP_PARAMS_st.preferredCoscheduledSmCount' in found_struct}} + + preferredCoscheduledSmCount : unsigned int When possible, combine co-scheduled groups together into larger groups of this size. - {{endif}} - {{if 'CU_DEV_SM_RESOURCE_GROUP_PARAMS_st.flags' in found_struct}} + + flags : unsigned int The flags set on this SM resource group. For possible values see CUdevSmResourceGroup_flags. - {{endif}} - {{if 'CU_DEV_SM_RESOURCE_GROUP_PARAMS_st.reserved' in found_struct}} + + reserved : list[unsigned int] - {{endif}} + Methods ------- @@ -11301,43 +10655,41 @@ cdef class CU_DEV_SM_RESOURCE_GROUP_PARAMS(CU_DEV_SM_RESOURCE_GROUP_PARAMS_st): Get memory address of class instance """ pass -{{endif}} -{{if 'struct CUdevResource_st' in found_types}} cdef class CUdevResource_v1(CUdevResource_st): """ Attributes ---------- - {{if 'CUdevResource_st.type' in found_struct}} + type : CUdevResourceType Type of resource, dictates which union field was last set - {{endif}} - {{if 'CUdevResource_st._internal_padding' in found_struct}} + + _internal_padding : bytes - {{endif}} - {{if 'CUdevResource_st.sm' in found_struct}} + + sm : CUdevSmResource Resource corresponding to CU_DEV_RESOURCE_TYPE_SM `typename`. - {{endif}} - {{if 'CUdevResource_st.wqConfig' in found_struct}} + + wqConfig : CUdevWorkqueueConfigResource Resource corresponding to CU_DEV_RESOURCE_TYPE_WORKQUEUE_CONFIG `typename`. - {{endif}} - {{if 'CUdevResource_st.wq' in found_struct}} + + wq : CUdevWorkqueueResource Resource corresponding to CU_DEV_RESOURCE_TYPE_WORKQUEUE `typename`. - {{endif}} - {{if 'CUdevResource_st._oversize' in found_struct}} + + _oversize : bytes - {{endif}} - {{if 'CUdevResource_st.nextResource' in found_struct}} + + nextResource : CUdevResource_st - {{endif}} + Methods ------- @@ -11345,43 +10697,41 @@ cdef class CUdevResource_v1(CUdevResource_st): Get memory address of class instance """ pass -{{endif}} -{{if 'struct CUdevResource_st' in found_types}} cdef class CUdevResource(CUdevResource_v1): """ Attributes ---------- - {{if 'CUdevResource_st.type' in found_struct}} + type : CUdevResourceType Type of resource, dictates which union field was last set - {{endif}} - {{if 'CUdevResource_st._internal_padding' in found_struct}} + + _internal_padding : bytes - {{endif}} - {{if 'CUdevResource_st.sm' in found_struct}} + + sm : CUdevSmResource Resource corresponding to CU_DEV_RESOURCE_TYPE_SM `typename`. - {{endif}} - {{if 'CUdevResource_st.wqConfig' in found_struct}} + + wqConfig : CUdevWorkqueueConfigResource Resource corresponding to CU_DEV_RESOURCE_TYPE_WORKQUEUE_CONFIG `typename`. - {{endif}} - {{if 'CUdevResource_st.wq' in found_struct}} + + wq : CUdevWorkqueueResource Resource corresponding to CU_DEV_RESOURCE_TYPE_WORKQUEUE `typename`. - {{endif}} - {{if 'CUdevResource_st._oversize' in found_struct}} + + _oversize : bytes - {{endif}} - {{if 'CUdevResource_st.nextResource' in found_struct}} + + nextResource : CUdevResource_st - {{endif}} + Methods ------- @@ -11389,8 +10739,6 @@ cdef class CUdevResource(CUdevResource_v1): Get memory address of class instance """ pass -{{endif}} -{{if True}} cdef class CUeglFrame_v1(CUeglFrame_st): """ @@ -11400,46 +10748,46 @@ cdef class CUeglFrame_v1(CUeglFrame_st): Attributes ---------- - {{if True}} + frame : anon_union16 - {{endif}} - {{if True}} + + width : unsigned int Width of first plane - {{endif}} - {{if True}} + + height : unsigned int Height of first plane - {{endif}} - {{if True}} + + depth : unsigned int Depth of first plane - {{endif}} - {{if True}} + + pitch : unsigned int Pitch of first plane - {{endif}} - {{if True}} + + planeCount : unsigned int Number of planes - {{endif}} - {{if True}} + + numChannels : unsigned int Number of channels for the plane - {{endif}} - {{if True}} + + frameType : CUeglFrameType Array or Pitch - {{endif}} - {{if True}} + + eglColorFormat : CUeglColorFormat CUDA EGL Color Format - {{endif}} - {{if True}} + + cuFormat : CUarray_format CUDA Array Format - {{endif}} + Methods ------- @@ -11447,8 +10795,6 @@ cdef class CUeglFrame_v1(CUeglFrame_st): Get memory address of class instance """ pass -{{endif}} -{{if True}} cdef class CUeglFrame(CUeglFrame_v1): """ @@ -11458,46 +10804,46 @@ cdef class CUeglFrame(CUeglFrame_v1): Attributes ---------- - {{if True}} + frame : anon_union16 - {{endif}} - {{if True}} + + width : unsigned int Width of first plane - {{endif}} - {{if True}} + + height : unsigned int Height of first plane - {{endif}} - {{if True}} + + depth : unsigned int Depth of first plane - {{endif}} - {{if True}} + + pitch : unsigned int Pitch of first plane - {{endif}} - {{if True}} + + planeCount : unsigned int Number of planes - {{endif}} - {{if True}} + + numChannels : unsigned int Number of channels for the plane - {{endif}} - {{if True}} + + frameType : CUeglFrameType Array or Pitch - {{endif}} - {{if True}} + + eglColorFormat : CUeglColorFormat CUDA EGL Color Format - {{endif}} - {{if True}} + + cuFormat : CUarray_format CUDA Array Format - {{endif}} + Methods ------- @@ -11505,8 +10851,6 @@ cdef class CUeglFrame(CUeglFrame_v1): Get memory address of class instance """ pass -{{endif}} -{{if 'cuuint32_t' in found_types}} cdef class cuuint32_t: """ @@ -11519,9 +10863,6 @@ cdef class cuuint32_t: """ cdef cydriver.cuuint32_t _pvt_val cdef cydriver.cuuint32_t* _pvt_ptr -{{endif}} - -{{if 'cuuint64_t' in found_types}} cdef class cuuint64_t: """ @@ -11534,9 +10875,6 @@ cdef class cuuint64_t: """ cdef cydriver.cuuint64_t _pvt_val cdef cydriver.cuuint64_t* _pvt_ptr -{{endif}} - -{{if 'CUdeviceptr_v2' in found_types}} cdef class CUdeviceptr_v2: """ @@ -11551,9 +10889,6 @@ cdef class CUdeviceptr_v2: """ cdef cydriver.CUdeviceptr_v2 _pvt_val cdef cydriver.CUdeviceptr_v2* _pvt_ptr -{{endif}} - -{{if 'CUdevice_v1' in found_types}} cdef class CUdevice_v1: """ @@ -11568,9 +10903,6 @@ cdef class CUdevice_v1: """ cdef cydriver.CUdevice_v1 _pvt_val cdef cydriver.CUdevice_v1* _pvt_ptr -{{endif}} - -{{if 'CUtexObject_v1' in found_types}} cdef class CUtexObject_v1: """ @@ -11585,9 +10917,6 @@ cdef class CUtexObject_v1: """ cdef cydriver.CUtexObject_v1 _pvt_val cdef cydriver.CUtexObject_v1* _pvt_ptr -{{endif}} - -{{if 'CUsurfObject_v1' in found_types}} cdef class CUsurfObject_v1: """ @@ -11602,9 +10931,6 @@ cdef class CUsurfObject_v1: """ cdef cydriver.CUsurfObject_v1 _pvt_val cdef cydriver.CUsurfObject_v1* _pvt_ptr -{{endif}} - -{{if 'CUmemGenericAllocationHandle_v1' in found_types}} cdef class CUmemGenericAllocationHandle_v1: """ @@ -11617,9 +10943,6 @@ cdef class CUmemGenericAllocationHandle_v1: """ cdef cydriver.CUmemGenericAllocationHandle_v1 _pvt_val cdef cydriver.CUmemGenericAllocationHandle_v1* _pvt_ptr -{{endif}} - -{{if 'CUlogIterator' in found_types}} cdef class CUlogIterator: """ @@ -11632,9 +10955,6 @@ cdef class CUlogIterator: """ cdef cydriver.CUlogIterator _pvt_val cdef cydriver.CUlogIterator* _pvt_ptr -{{endif}} - -{{if True}} cdef class GLenum: """ @@ -11647,9 +10967,6 @@ cdef class GLenum: """ cdef cydriver.GLenum _pvt_val cdef cydriver.GLenum* _pvt_ptr -{{endif}} - -{{if True}} cdef class GLuint: """ @@ -11662,9 +10979,6 @@ cdef class GLuint: """ cdef cydriver.GLuint _pvt_val cdef cydriver.GLuint* _pvt_ptr -{{endif}} - -{{if True}} cdef class EGLint: """ @@ -11677,9 +10991,6 @@ cdef class EGLint: """ cdef cydriver.EGLint _pvt_val cdef cydriver.EGLint* _pvt_ptr -{{endif}} - -{{if True}} cdef class VdpDevice: """ @@ -11692,9 +11003,6 @@ cdef class VdpDevice: """ cdef cydriver.VdpDevice _pvt_val cdef cydriver.VdpDevice* _pvt_ptr -{{endif}} - -{{if True}} cdef class VdpGetProcAddress: """ @@ -11707,9 +11015,6 @@ cdef class VdpGetProcAddress: """ cdef cydriver.VdpGetProcAddress _pvt_val cdef cydriver.VdpGetProcAddress* _pvt_ptr -{{endif}} - -{{if True}} cdef class VdpVideoSurface: """ @@ -11722,9 +11027,6 @@ cdef class VdpVideoSurface: """ cdef cydriver.VdpVideoSurface _pvt_val cdef cydriver.VdpVideoSurface* _pvt_ptr -{{endif}} - -{{if True}} cdef class VdpOutputSurface: """ @@ -11737,4 +11039,3 @@ cdef class VdpOutputSurface: """ cdef cydriver.VdpOutputSurface _pvt_val cdef cydriver.VdpOutputSurface* _pvt_ptr -{{endif}} diff --git a/cuda_bindings/cuda/bindings/driver.pyx.in b/cuda_bindings/cuda/bindings/driver.pyx similarity index 86% rename from cuda_bindings/cuda/bindings/driver.pyx.in rename to cuda_bindings/cuda/bindings/driver.pyx index d97fba967a6..ba2e58c8c94 100644 --- a/cuda_bindings/cuda/bindings/driver.pyx.in +++ 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.2.0, generator version 0.3.1.dev1568+g289771de9.d20260413. Do not modify it directly. +# This code was automatically generated with version 13.2.0, generator version 0.3.1.dev1630+gadce055ea.d20260422. Do not modify it directly. from typing import Any, Optional import cython import ctypes @@ -347,422 +347,381 @@ MAX_PLANES = cydriver.MAX_PLANES #: is infinite. CUDA_EGL_INFINITE_TIMEOUT = cydriver.CUDA_EGL_INFINITE_TIMEOUT -{{if 'CUipcMem_flags_enum' in found_types}} - class CUipcMem_flags(_FastEnum): """ CUDA Ipc Mem Flags """ - {{if 'CU_IPC_MEM_LAZY_ENABLE_PEER_ACCESS' in found_values}} + CU_IPC_MEM_LAZY_ENABLE_PEER_ACCESS = ( cydriver.CUipcMem_flags_enum.CU_IPC_MEM_LAZY_ENABLE_PEER_ACCESS, 'Automatically enable peer access between remote devices as needed\n' - ){{endif}} - -{{endif}} -{{if 'CUmemAttach_flags_enum' in found_types}} + ) class CUmemAttach_flags(_FastEnum): """ CUDA Mem Attach Flags """ - {{if 'CU_MEM_ATTACH_GLOBAL' in found_values}} + CU_MEM_ATTACH_GLOBAL = ( cydriver.CUmemAttach_flags_enum.CU_MEM_ATTACH_GLOBAL, 'Memory can be accessed by any stream on any device\n' - ){{endif}} - {{if 'CU_MEM_ATTACH_HOST' in found_values}} + ) + CU_MEM_ATTACH_HOST = ( cydriver.CUmemAttach_flags_enum.CU_MEM_ATTACH_HOST, 'Memory cannot be accessed by any stream on any device\n' - ){{endif}} - {{if 'CU_MEM_ATTACH_SINGLE' in found_values}} + ) + CU_MEM_ATTACH_SINGLE = ( cydriver.CUmemAttach_flags_enum.CU_MEM_ATTACH_SINGLE, 'Memory can only be accessed by a single stream on the associated device\n' - ){{endif}} - -{{endif}} -{{if 'CUctx_flags_enum' in found_types}} + ) class CUctx_flags(_FastEnum): """ Context creation flags """ - {{if 'CU_CTX_SCHED_AUTO' in found_values}} + CU_CTX_SCHED_AUTO = ( cydriver.CUctx_flags_enum.CU_CTX_SCHED_AUTO, 'Automatic scheduling\n' - ){{endif}} - {{if 'CU_CTX_SCHED_SPIN' in found_values}} + ) + CU_CTX_SCHED_SPIN = ( cydriver.CUctx_flags_enum.CU_CTX_SCHED_SPIN, 'Set spin as default scheduling\n' - ){{endif}} - {{if 'CU_CTX_SCHED_YIELD' in found_values}} + ) + CU_CTX_SCHED_YIELD = ( cydriver.CUctx_flags_enum.CU_CTX_SCHED_YIELD, 'Set yield as default scheduling\n' - ){{endif}} - {{if 'CU_CTX_SCHED_BLOCKING_SYNC' in found_values}} + ) + CU_CTX_SCHED_BLOCKING_SYNC = ( cydriver.CUctx_flags_enum.CU_CTX_SCHED_BLOCKING_SYNC, 'Set blocking synchronization as default scheduling\n' - ){{endif}} - {{if 'CU_CTX_BLOCKING_SYNC' in found_values}} + ) + CU_CTX_BLOCKING_SYNC = ( cydriver.CUctx_flags_enum.CU_CTX_BLOCKING_SYNC, 'Set blocking synchronization as default scheduling [Deprecated]\n' - ){{endif}} - {{if 'CU_CTX_SCHED_MASK' in found_values}} - CU_CTX_SCHED_MASK = cydriver.CUctx_flags_enum.CU_CTX_SCHED_MASK{{endif}} - {{if 'CU_CTX_MAP_HOST' in found_values}} + ) + + CU_CTX_SCHED_MASK = cydriver.CUctx_flags_enum.CU_CTX_SCHED_MASK + CU_CTX_MAP_HOST = ( cydriver.CUctx_flags_enum.CU_CTX_MAP_HOST, '[Deprecated]\n' - ){{endif}} - {{if 'CU_CTX_LMEM_RESIZE_TO_MAX' in found_values}} + ) + CU_CTX_LMEM_RESIZE_TO_MAX = ( cydriver.CUctx_flags_enum.CU_CTX_LMEM_RESIZE_TO_MAX, 'Keep local memory allocation after launch\n' - ){{endif}} - {{if 'CU_CTX_COREDUMP_ENABLE' in found_values}} + ) + CU_CTX_COREDUMP_ENABLE = ( cydriver.CUctx_flags_enum.CU_CTX_COREDUMP_ENABLE, 'Trigger coredumps from exceptions in this context\n' - ){{endif}} - {{if 'CU_CTX_USER_COREDUMP_ENABLE' in found_values}} + ) + CU_CTX_USER_COREDUMP_ENABLE = ( cydriver.CUctx_flags_enum.CU_CTX_USER_COREDUMP_ENABLE, 'Enable user pipe to trigger coredumps in this context\n' - ){{endif}} - {{if 'CU_CTX_SYNC_MEMOPS' in found_values}} + ) + CU_CTX_SYNC_MEMOPS = ( cydriver.CUctx_flags_enum.CU_CTX_SYNC_MEMOPS, 'Ensure synchronous memory operations on this context will synchronize\n' - ){{endif}} - {{if 'CU_CTX_FLAGS_MASK' in found_values}} - CU_CTX_FLAGS_MASK = cydriver.CUctx_flags_enum.CU_CTX_FLAGS_MASK{{endif}} + ) -{{endif}} -{{if 'CUevent_sched_flags_enum' in found_types}} + CU_CTX_FLAGS_MASK = cydriver.CUctx_flags_enum.CU_CTX_FLAGS_MASK class CUevent_sched_flags(_FastEnum): """ Event sched flags """ - {{if 'CU_EVENT_SCHED_AUTO' in found_values}} + CU_EVENT_SCHED_AUTO = ( cydriver.CUevent_sched_flags_enum.CU_EVENT_SCHED_AUTO, 'Automatic scheduling\n' - ){{endif}} - {{if 'CU_EVENT_SCHED_SPIN' in found_values}} + ) + CU_EVENT_SCHED_SPIN = ( cydriver.CUevent_sched_flags_enum.CU_EVENT_SCHED_SPIN, 'Set spin as default scheduling\n' - ){{endif}} - {{if 'CU_EVENT_SCHED_YIELD' in found_values}} + ) + CU_EVENT_SCHED_YIELD = ( cydriver.CUevent_sched_flags_enum.CU_EVENT_SCHED_YIELD, 'Set yield as default scheduling\n' - ){{endif}} - {{if 'CU_EVENT_SCHED_BLOCKING_SYNC' in found_values}} + ) + CU_EVENT_SCHED_BLOCKING_SYNC = ( cydriver.CUevent_sched_flags_enum.CU_EVENT_SCHED_BLOCKING_SYNC, 'Set blocking synchronization as default scheduling\n' - ){{endif}} - -{{endif}} -{{if 'cl_event_flags_enum' in found_types}} + ) class cl_event_flags(_FastEnum): """ NVCL event scheduling flags """ - {{if 'NVCL_EVENT_SCHED_AUTO' in found_values}} + NVCL_EVENT_SCHED_AUTO = ( cydriver.cl_event_flags_enum.NVCL_EVENT_SCHED_AUTO, 'Automatic scheduling\n' - ){{endif}} - {{if 'NVCL_EVENT_SCHED_SPIN' in found_values}} + ) + NVCL_EVENT_SCHED_SPIN = ( cydriver.cl_event_flags_enum.NVCL_EVENT_SCHED_SPIN, 'Set spin as default scheduling\n' - ){{endif}} - {{if 'NVCL_EVENT_SCHED_YIELD' in found_values}} + ) + NVCL_EVENT_SCHED_YIELD = ( cydriver.cl_event_flags_enum.NVCL_EVENT_SCHED_YIELD, 'Set yield as default scheduling\n' - ){{endif}} - {{if 'NVCL_EVENT_SCHED_BLOCKING_SYNC' in found_values}} + ) + NVCL_EVENT_SCHED_BLOCKING_SYNC = ( cydriver.cl_event_flags_enum.NVCL_EVENT_SCHED_BLOCKING_SYNC, 'Set blocking synchronization as default scheduling\n' - ){{endif}} - -{{endif}} -{{if 'cl_context_flags_enum' in found_types}} + ) class cl_context_flags(_FastEnum): """ NVCL context scheduling flags """ - {{if 'NVCL_CTX_SCHED_AUTO' in found_values}} + NVCL_CTX_SCHED_AUTO = ( cydriver.cl_context_flags_enum.NVCL_CTX_SCHED_AUTO, 'Automatic scheduling\n' - ){{endif}} - {{if 'NVCL_CTX_SCHED_SPIN' in found_values}} + ) + NVCL_CTX_SCHED_SPIN = ( cydriver.cl_context_flags_enum.NVCL_CTX_SCHED_SPIN, 'Set spin as default scheduling\n' - ){{endif}} - {{if 'NVCL_CTX_SCHED_YIELD' in found_values}} + ) + NVCL_CTX_SCHED_YIELD = ( cydriver.cl_context_flags_enum.NVCL_CTX_SCHED_YIELD, 'Set yield as default scheduling\n' - ){{endif}} - {{if 'NVCL_CTX_SCHED_BLOCKING_SYNC' in found_values}} + ) + NVCL_CTX_SCHED_BLOCKING_SYNC = ( cydriver.cl_context_flags_enum.NVCL_CTX_SCHED_BLOCKING_SYNC, 'Set blocking synchronization as default scheduling\n' - ){{endif}} - -{{endif}} -{{if 'CUhostTaskSyncMode_enum' in found_types}} + ) class CUhostTaskSyncMode(_FastEnum): """ """ - {{if 'CU_HOST_TASK_BLOCKING' in found_values}} + CU_HOST_TASK_BLOCKING = ( cydriver.CUhostTaskSyncMode_enum.CU_HOST_TASK_BLOCKING, 'The execution thread will block until new host tasks are ready to run\n' - ){{endif}} - {{if 'CU_HOST_TASK_SPINWAIT' in found_values}} + ) + CU_HOST_TASK_SPINWAIT = ( cydriver.CUhostTaskSyncMode_enum.CU_HOST_TASK_SPINWAIT, 'The execution thread will spin wait until new host tasks are ready to run\n' - ){{endif}} - -{{endif}} -{{if 'CUstream_flags_enum' in found_types}} + ) class CUstream_flags(_FastEnum): """ Stream creation flags """ - {{if 'CU_STREAM_DEFAULT' in found_values}} + CU_STREAM_DEFAULT = ( cydriver.CUstream_flags_enum.CU_STREAM_DEFAULT, 'Default stream flag\n' - ){{endif}} - {{if 'CU_STREAM_NON_BLOCKING' in found_values}} + ) + CU_STREAM_NON_BLOCKING = ( cydriver.CUstream_flags_enum.CU_STREAM_NON_BLOCKING, 'Stream does not synchronize with stream 0 (the NULL stream)\n' - ){{endif}} - -{{endif}} -{{if 'CUevent_flags_enum' in found_types}} + ) class CUevent_flags(_FastEnum): """ Event creation flags """ - {{if 'CU_EVENT_DEFAULT' in found_values}} + CU_EVENT_DEFAULT = ( cydriver.CUevent_flags_enum.CU_EVENT_DEFAULT, 'Default event flag\n' - ){{endif}} - {{if 'CU_EVENT_BLOCKING_SYNC' in found_values}} + ) + CU_EVENT_BLOCKING_SYNC = ( cydriver.CUevent_flags_enum.CU_EVENT_BLOCKING_SYNC, 'Event uses blocking synchronization\n' - ){{endif}} - {{if 'CU_EVENT_DISABLE_TIMING' in found_values}} + ) + CU_EVENT_DISABLE_TIMING = ( cydriver.CUevent_flags_enum.CU_EVENT_DISABLE_TIMING, 'Event will not record timing data\n' - ){{endif}} - {{if 'CU_EVENT_INTERPROCESS' in found_values}} + ) + CU_EVENT_INTERPROCESS = ( cydriver.CUevent_flags_enum.CU_EVENT_INTERPROCESS, 'Event is suitable for interprocess use. CU_EVENT_DISABLE_TIMING must be set\n' - ){{endif}} - -{{endif}} -{{if 'CUevent_record_flags_enum' in found_types}} + ) class CUevent_record_flags(_FastEnum): """ Event record flags """ - {{if 'CU_EVENT_RECORD_DEFAULT' in found_values}} + CU_EVENT_RECORD_DEFAULT = ( cydriver.CUevent_record_flags_enum.CU_EVENT_RECORD_DEFAULT, 'Default event record flag\n' - ){{endif}} - {{if 'CU_EVENT_RECORD_EXTERNAL' in found_values}} + ) + CU_EVENT_RECORD_EXTERNAL = ( cydriver.CUevent_record_flags_enum.CU_EVENT_RECORD_EXTERNAL, 'When using stream capture, create an event record node instead of the\n' 'default behavior. This flag is invalid when used outside of capture.\n' - ){{endif}} - -{{endif}} -{{if 'CUevent_wait_flags_enum' in found_types}} + ) class CUevent_wait_flags(_FastEnum): """ Event wait flags """ - {{if 'CU_EVENT_WAIT_DEFAULT' in found_values}} + CU_EVENT_WAIT_DEFAULT = ( cydriver.CUevent_wait_flags_enum.CU_EVENT_WAIT_DEFAULT, 'Default event wait flag\n' - ){{endif}} - {{if 'CU_EVENT_WAIT_EXTERNAL' in found_values}} + ) + CU_EVENT_WAIT_EXTERNAL = ( cydriver.CUevent_wait_flags_enum.CU_EVENT_WAIT_EXTERNAL, 'When using stream capture, create an event wait node instead of the default\n' 'behavior. This flag is invalid when used outside of capture.\n' - ){{endif}} - -{{endif}} -{{if 'CUatomicOperation_enum' in found_types}} + ) class CUatomicOperation(_FastEnum): """ CUDA-valid Atomic Operations """ - {{if 'CU_ATOMIC_OPERATION_INTEGER_ADD' in found_values}} - CU_ATOMIC_OPERATION_INTEGER_ADD = cydriver.CUatomicOperation_enum.CU_ATOMIC_OPERATION_INTEGER_ADD{{endif}} - {{if 'CU_ATOMIC_OPERATION_INTEGER_MIN' in found_values}} - CU_ATOMIC_OPERATION_INTEGER_MIN = cydriver.CUatomicOperation_enum.CU_ATOMIC_OPERATION_INTEGER_MIN{{endif}} - {{if 'CU_ATOMIC_OPERATION_INTEGER_MAX' in found_values}} - CU_ATOMIC_OPERATION_INTEGER_MAX = cydriver.CUatomicOperation_enum.CU_ATOMIC_OPERATION_INTEGER_MAX{{endif}} - {{if 'CU_ATOMIC_OPERATION_INTEGER_INCREMENT' in found_values}} - CU_ATOMIC_OPERATION_INTEGER_INCREMENT = cydriver.CUatomicOperation_enum.CU_ATOMIC_OPERATION_INTEGER_INCREMENT{{endif}} - {{if 'CU_ATOMIC_OPERATION_INTEGER_DECREMENT' in found_values}} - CU_ATOMIC_OPERATION_INTEGER_DECREMENT = cydriver.CUatomicOperation_enum.CU_ATOMIC_OPERATION_INTEGER_DECREMENT{{endif}} - {{if 'CU_ATOMIC_OPERATION_AND' in found_values}} - CU_ATOMIC_OPERATION_AND = cydriver.CUatomicOperation_enum.CU_ATOMIC_OPERATION_AND{{endif}} - {{if 'CU_ATOMIC_OPERATION_OR' in found_values}} - CU_ATOMIC_OPERATION_OR = cydriver.CUatomicOperation_enum.CU_ATOMIC_OPERATION_OR{{endif}} - {{if 'CU_ATOMIC_OPERATION_XOR' in found_values}} - CU_ATOMIC_OPERATION_XOR = cydriver.CUatomicOperation_enum.CU_ATOMIC_OPERATION_XOR{{endif}} - {{if 'CU_ATOMIC_OPERATION_EXCHANGE' in found_values}} - CU_ATOMIC_OPERATION_EXCHANGE = cydriver.CUatomicOperation_enum.CU_ATOMIC_OPERATION_EXCHANGE{{endif}} - {{if 'CU_ATOMIC_OPERATION_CAS' in found_values}} - CU_ATOMIC_OPERATION_CAS = cydriver.CUatomicOperation_enum.CU_ATOMIC_OPERATION_CAS{{endif}} - {{if 'CU_ATOMIC_OPERATION_FLOAT_ADD' in found_values}} - CU_ATOMIC_OPERATION_FLOAT_ADD = cydriver.CUatomicOperation_enum.CU_ATOMIC_OPERATION_FLOAT_ADD{{endif}} - {{if 'CU_ATOMIC_OPERATION_FLOAT_MIN' in found_values}} - CU_ATOMIC_OPERATION_FLOAT_MIN = cydriver.CUatomicOperation_enum.CU_ATOMIC_OPERATION_FLOAT_MIN{{endif}} - {{if 'CU_ATOMIC_OPERATION_FLOAT_MAX' in found_values}} - CU_ATOMIC_OPERATION_FLOAT_MAX = cydriver.CUatomicOperation_enum.CU_ATOMIC_OPERATION_FLOAT_MAX{{endif}} - {{if 'CU_ATOMIC_OPERATION_MAX' in found_values}} - CU_ATOMIC_OPERATION_MAX = cydriver.CUatomicOperation_enum.CU_ATOMIC_OPERATION_MAX{{endif}} - -{{endif}} -{{if 'CUatomicOperationCapability_enum' in found_types}} + + CU_ATOMIC_OPERATION_INTEGER_ADD = cydriver.CUatomicOperation_enum.CU_ATOMIC_OPERATION_INTEGER_ADD + + CU_ATOMIC_OPERATION_INTEGER_MIN = cydriver.CUatomicOperation_enum.CU_ATOMIC_OPERATION_INTEGER_MIN + + CU_ATOMIC_OPERATION_INTEGER_MAX = cydriver.CUatomicOperation_enum.CU_ATOMIC_OPERATION_INTEGER_MAX + + CU_ATOMIC_OPERATION_INTEGER_INCREMENT = cydriver.CUatomicOperation_enum.CU_ATOMIC_OPERATION_INTEGER_INCREMENT + + CU_ATOMIC_OPERATION_INTEGER_DECREMENT = cydriver.CUatomicOperation_enum.CU_ATOMIC_OPERATION_INTEGER_DECREMENT + + CU_ATOMIC_OPERATION_AND = cydriver.CUatomicOperation_enum.CU_ATOMIC_OPERATION_AND + + CU_ATOMIC_OPERATION_OR = cydriver.CUatomicOperation_enum.CU_ATOMIC_OPERATION_OR + + CU_ATOMIC_OPERATION_XOR = cydriver.CUatomicOperation_enum.CU_ATOMIC_OPERATION_XOR + + CU_ATOMIC_OPERATION_EXCHANGE = cydriver.CUatomicOperation_enum.CU_ATOMIC_OPERATION_EXCHANGE + + CU_ATOMIC_OPERATION_CAS = cydriver.CUatomicOperation_enum.CU_ATOMIC_OPERATION_CAS + + CU_ATOMIC_OPERATION_FLOAT_ADD = cydriver.CUatomicOperation_enum.CU_ATOMIC_OPERATION_FLOAT_ADD + + CU_ATOMIC_OPERATION_FLOAT_MIN = cydriver.CUatomicOperation_enum.CU_ATOMIC_OPERATION_FLOAT_MIN + + CU_ATOMIC_OPERATION_FLOAT_MAX = cydriver.CUatomicOperation_enum.CU_ATOMIC_OPERATION_FLOAT_MAX + + CU_ATOMIC_OPERATION_MAX = cydriver.CUatomicOperation_enum.CU_ATOMIC_OPERATION_MAX class CUatomicOperationCapability(_FastEnum): """ CUDA-valid Atomic Operation capabilities """ - {{if 'CU_ATOMIC_CAPABILITY_SIGNED' in found_values}} - CU_ATOMIC_CAPABILITY_SIGNED = cydriver.CUatomicOperationCapability_enum.CU_ATOMIC_CAPABILITY_SIGNED{{endif}} - {{if 'CU_ATOMIC_CAPABILITY_UNSIGNED' in found_values}} - CU_ATOMIC_CAPABILITY_UNSIGNED = cydriver.CUatomicOperationCapability_enum.CU_ATOMIC_CAPABILITY_UNSIGNED{{endif}} - {{if 'CU_ATOMIC_CAPABILITY_REDUCTION' in found_values}} - CU_ATOMIC_CAPABILITY_REDUCTION = cydriver.CUatomicOperationCapability_enum.CU_ATOMIC_CAPABILITY_REDUCTION{{endif}} - {{if 'CU_ATOMIC_CAPABILITY_SCALAR_32' in found_values}} - CU_ATOMIC_CAPABILITY_SCALAR_32 = cydriver.CUatomicOperationCapability_enum.CU_ATOMIC_CAPABILITY_SCALAR_32{{endif}} - {{if 'CU_ATOMIC_CAPABILITY_SCALAR_64' in found_values}} - CU_ATOMIC_CAPABILITY_SCALAR_64 = cydriver.CUatomicOperationCapability_enum.CU_ATOMIC_CAPABILITY_SCALAR_64{{endif}} - {{if 'CU_ATOMIC_CAPABILITY_SCALAR_128' in found_values}} - CU_ATOMIC_CAPABILITY_SCALAR_128 = cydriver.CUatomicOperationCapability_enum.CU_ATOMIC_CAPABILITY_SCALAR_128{{endif}} - {{if 'CU_ATOMIC_CAPABILITY_VECTOR_32x4' in found_values}} - CU_ATOMIC_CAPABILITY_VECTOR_32x4 = cydriver.CUatomicOperationCapability_enum.CU_ATOMIC_CAPABILITY_VECTOR_32x4{{endif}} - -{{endif}} -{{if 'CUstreamWaitValue_flags_enum' in found_types}} + + CU_ATOMIC_CAPABILITY_SIGNED = cydriver.CUatomicOperationCapability_enum.CU_ATOMIC_CAPABILITY_SIGNED + + CU_ATOMIC_CAPABILITY_UNSIGNED = cydriver.CUatomicOperationCapability_enum.CU_ATOMIC_CAPABILITY_UNSIGNED + + CU_ATOMIC_CAPABILITY_REDUCTION = cydriver.CUatomicOperationCapability_enum.CU_ATOMIC_CAPABILITY_REDUCTION + + CU_ATOMIC_CAPABILITY_SCALAR_32 = cydriver.CUatomicOperationCapability_enum.CU_ATOMIC_CAPABILITY_SCALAR_32 + + CU_ATOMIC_CAPABILITY_SCALAR_64 = cydriver.CUatomicOperationCapability_enum.CU_ATOMIC_CAPABILITY_SCALAR_64 + + CU_ATOMIC_CAPABILITY_SCALAR_128 = cydriver.CUatomicOperationCapability_enum.CU_ATOMIC_CAPABILITY_SCALAR_128 + + CU_ATOMIC_CAPABILITY_VECTOR_32x4 = cydriver.CUatomicOperationCapability_enum.CU_ATOMIC_CAPABILITY_VECTOR_32x4 class CUstreamWaitValue_flags(_FastEnum): """ Flags for :py:obj:`~.cuStreamWaitValue32` and :py:obj:`~.cuStreamWaitValue64` """ - {{if 'CU_STREAM_WAIT_VALUE_GEQ' in found_values}} + CU_STREAM_WAIT_VALUE_GEQ = ( cydriver.CUstreamWaitValue_flags_enum.CU_STREAM_WAIT_VALUE_GEQ, 'Wait until (int32_t)(*addr - value) >= 0 (or int64_t for 64 bit values).\n' 'Note this is a cyclic comparison which ignores wraparound. (Default\n' 'behavior.)\n' - ){{endif}} - {{if 'CU_STREAM_WAIT_VALUE_EQ' in found_values}} + ) + CU_STREAM_WAIT_VALUE_EQ = ( cydriver.CUstreamWaitValue_flags_enum.CU_STREAM_WAIT_VALUE_EQ, 'Wait until *addr == value.\n' - ){{endif}} - {{if 'CU_STREAM_WAIT_VALUE_AND' in found_values}} + ) + CU_STREAM_WAIT_VALUE_AND = ( cydriver.CUstreamWaitValue_flags_enum.CU_STREAM_WAIT_VALUE_AND, 'Wait until (*addr & value) != 0.\n' - ){{endif}} - {{if 'CU_STREAM_WAIT_VALUE_NOR' in found_values}} + ) + CU_STREAM_WAIT_VALUE_NOR = ( cydriver.CUstreamWaitValue_flags_enum.CU_STREAM_WAIT_VALUE_NOR, 'Wait until ~(*addr | value) != 0. Support for this operation can be queried\n' 'with :py:obj:`~.cuDeviceGetAttribute()` and\n' ':py:obj:`~.CU_DEVICE_ATTRIBUTE_CAN_USE_STREAM_WAIT_VALUE_NOR`.\n' - ){{endif}} - {{if 'CU_STREAM_WAIT_VALUE_FLUSH' in found_values}} + ) + CU_STREAM_WAIT_VALUE_FLUSH = ( cydriver.CUstreamWaitValue_flags_enum.CU_STREAM_WAIT_VALUE_FLUSH, @@ -775,22 +734,19 @@ class CUstreamWaitValue_flags(_FastEnum): 'second write, and downstream work needs to observe the first write. Support\n' 'for this operation is restricted to selected platforms and can be queried\n' 'with :py:obj:`~.CU_DEVICE_ATTRIBUTE_CAN_FLUSH_REMOTE_WRITES`.\n' - ){{endif}} - -{{endif}} -{{if 'CUstreamWriteValue_flags_enum' in found_types}} + ) class CUstreamWriteValue_flags(_FastEnum): """ Flags for :py:obj:`~.cuStreamWriteValue32` """ - {{if 'CU_STREAM_WRITE_VALUE_DEFAULT' in found_values}} + CU_STREAM_WRITE_VALUE_DEFAULT = ( cydriver.CUstreamWriteValue_flags_enum.CU_STREAM_WRITE_VALUE_DEFAULT, 'Default behavior\n' - ){{endif}} - {{if 'CU_STREAM_WRITE_VALUE_NO_MEMORY_BARRIER' in found_values}} + ) + CU_STREAM_WRITE_VALUE_NO_MEMORY_BARRIER = ( cydriver.CUstreamWriteValue_flags_enum.CU_STREAM_WRITE_VALUE_NO_MEMORY_BARRIER, @@ -799,1404 +755,1371 @@ class CUstreamWriteValue_flags(_FastEnum): 'will provide a memory fence before the write, which has similar semantics\n' 'to __threadfence_system() but is scoped to the stream rather than a CUDA\n' 'thread. This flag is not supported in the v2 API.\n' - ){{endif}} - -{{endif}} -{{if 'CUstreamBatchMemOpType_enum' in found_types}} + ) class CUstreamBatchMemOpType(_FastEnum): """ Operations for :py:obj:`~.cuStreamBatchMemOp` """ - {{if 'CU_STREAM_MEM_OP_WAIT_VALUE_32' in found_values}} + CU_STREAM_MEM_OP_WAIT_VALUE_32 = ( cydriver.CUstreamBatchMemOpType_enum.CU_STREAM_MEM_OP_WAIT_VALUE_32, 'Represents a :py:obj:`~.cuStreamWaitValue32` operation\n' - ){{endif}} - {{if 'CU_STREAM_MEM_OP_WRITE_VALUE_32' in found_values}} + ) + CU_STREAM_MEM_OP_WRITE_VALUE_32 = ( cydriver.CUstreamBatchMemOpType_enum.CU_STREAM_MEM_OP_WRITE_VALUE_32, 'Represents a :py:obj:`~.cuStreamWriteValue32` operation\n' - ){{endif}} - {{if 'CU_STREAM_MEM_OP_FLUSH_REMOTE_WRITES' in found_values}} + ) + CU_STREAM_MEM_OP_FLUSH_REMOTE_WRITES = ( cydriver.CUstreamBatchMemOpType_enum.CU_STREAM_MEM_OP_FLUSH_REMOTE_WRITES, 'This has the same effect as :py:obj:`~.CU_STREAM_WAIT_VALUE_FLUSH`, but as\n' 'a standalone operation.\n' - ){{endif}} - {{if 'CU_STREAM_MEM_OP_WAIT_VALUE_64' in found_values}} + ) + CU_STREAM_MEM_OP_WAIT_VALUE_64 = ( cydriver.CUstreamBatchMemOpType_enum.CU_STREAM_MEM_OP_WAIT_VALUE_64, 'Represents a :py:obj:`~.cuStreamWaitValue64` operation\n' - ){{endif}} - {{if 'CU_STREAM_MEM_OP_WRITE_VALUE_64' in found_values}} + ) + CU_STREAM_MEM_OP_WRITE_VALUE_64 = ( cydriver.CUstreamBatchMemOpType_enum.CU_STREAM_MEM_OP_WRITE_VALUE_64, 'Represents a :py:obj:`~.cuStreamWriteValue64` operation\n' - ){{endif}} - {{if 'CU_STREAM_MEM_OP_BARRIER' in found_values}} + ) + CU_STREAM_MEM_OP_BARRIER = ( cydriver.CUstreamBatchMemOpType_enum.CU_STREAM_MEM_OP_BARRIER, 'Insert a memory barrier of the specified type\n' - ){{endif}} - {{if 'CU_STREAM_MEM_OP_ATOMIC_REDUCTION' in found_values}} + ) + CU_STREAM_MEM_OP_ATOMIC_REDUCTION = ( cydriver.CUstreamBatchMemOpType_enum.CU_STREAM_MEM_OP_ATOMIC_REDUCTION, 'Perform a atomic reduction. See\n' ':py:obj:`~.CUstreamBatchMemOpParams.atomicReduction`\n' - ){{endif}} - -{{endif}} -{{if 'CUstreamMemoryBarrier_flags_enum' in found_types}} + ) class CUstreamMemoryBarrier_flags(_FastEnum): """ Flags for :py:obj:`~.CUstreamBatchMemOpParams.memoryBarrier` """ - {{if 'CU_STREAM_MEMORY_BARRIER_TYPE_SYS' in found_values}} + CU_STREAM_MEMORY_BARRIER_TYPE_SYS = ( cydriver.CUstreamMemoryBarrier_flags_enum.CU_STREAM_MEMORY_BARRIER_TYPE_SYS, 'System-wide memory barrier.\n' - ){{endif}} - {{if 'CU_STREAM_MEMORY_BARRIER_TYPE_GPU' in found_values}} + ) + CU_STREAM_MEMORY_BARRIER_TYPE_GPU = ( cydriver.CUstreamMemoryBarrier_flags_enum.CU_STREAM_MEMORY_BARRIER_TYPE_GPU, 'Limit memory barrier scope to the GPU.\n' - ){{endif}} - -{{endif}} -{{if 'CUstreamAtomicReductionOpType_enum' in found_types}} + ) class CUstreamAtomicReductionOpType(_FastEnum): """ Atomic reduction operation types for :py:obj:`~.CUstreamBatchMemOpParams`::atomicReduction::reductionOp """ - {{if 'CU_STREAM_ATOMIC_REDUCTION_OP_ADD' in found_values}} + CU_STREAM_ATOMIC_REDUCTION_OP_ADD = ( cydriver.CUstreamAtomicReductionOpType_enum.CU_STREAM_ATOMIC_REDUCTION_OP_ADD, 'Performs an atomic ADD: *(address) = *(address) + value\n' - ){{endif}} - {{if 'CU_STREAM_ATOMIC_REDUCTION_OP_AND' in found_values}} + ) + CU_STREAM_ATOMIC_REDUCTION_OP_AND = ( cydriver.CUstreamAtomicReductionOpType_enum.CU_STREAM_ATOMIC_REDUCTION_OP_AND, 'Performs an atomic AND: *(address) = *(address) & value\n' - ){{endif}} - {{if 'CU_STREAM_ATOMIC_REDUCTION_OP_OR' in found_values}} + ) + CU_STREAM_ATOMIC_REDUCTION_OP_OR = ( cydriver.CUstreamAtomicReductionOpType_enum.CU_STREAM_ATOMIC_REDUCTION_OP_OR, 'Performs an atomic OR: *(address) = *(address) | value\n' - ){{endif}} - -{{endif}} -{{if 'CUstreamAtomicReductionDataType_enum' in found_types}} + ) class CUstreamAtomicReductionDataType(_FastEnum): """ Atomic reduction data types for :py:obj:`~.CUstreamBatchMemOpParams`::atomicReduction::dataType """ - {{if 'CU_STREAM_ATOMIC_REDUCTION_UNSIGNED_32' in found_values}} - CU_STREAM_ATOMIC_REDUCTION_UNSIGNED_32 = cydriver.CUstreamAtomicReductionDataType_enum.CU_STREAM_ATOMIC_REDUCTION_UNSIGNED_32{{endif}} - {{if 'CU_STREAM_ATOMIC_REDUCTION_UNSIGNED_64' in found_values}} - CU_STREAM_ATOMIC_REDUCTION_UNSIGNED_64 = cydriver.CUstreamAtomicReductionDataType_enum.CU_STREAM_ATOMIC_REDUCTION_UNSIGNED_64{{endif}} -{{endif}} -{{if 'CUoccupancy_flags_enum' in found_types}} + CU_STREAM_ATOMIC_REDUCTION_UNSIGNED_32 = cydriver.CUstreamAtomicReductionDataType_enum.CU_STREAM_ATOMIC_REDUCTION_UNSIGNED_32 + + CU_STREAM_ATOMIC_REDUCTION_UNSIGNED_64 = cydriver.CUstreamAtomicReductionDataType_enum.CU_STREAM_ATOMIC_REDUCTION_UNSIGNED_64 class CUoccupancy_flags(_FastEnum): """ Occupancy calculator flag """ - {{if 'CU_OCCUPANCY_DEFAULT' in found_values}} + CU_OCCUPANCY_DEFAULT = ( cydriver.CUoccupancy_flags_enum.CU_OCCUPANCY_DEFAULT, 'Default behavior\n' - ){{endif}} - {{if 'CU_OCCUPANCY_DISABLE_CACHING_OVERRIDE' in found_values}} + ) + CU_OCCUPANCY_DISABLE_CACHING_OVERRIDE = ( cydriver.CUoccupancy_flags_enum.CU_OCCUPANCY_DISABLE_CACHING_OVERRIDE, 'Assume global caching is enabled and cannot be automatically turned off\n' - ){{endif}} - -{{endif}} -{{if 'CUstreamUpdateCaptureDependencies_flags_enum' in found_types}} + ) class CUstreamUpdateCaptureDependencies_flags(_FastEnum): """ Flags for :py:obj:`~.cuStreamUpdateCaptureDependencies` """ - {{if 'CU_STREAM_ADD_CAPTURE_DEPENDENCIES' in found_values}} + CU_STREAM_ADD_CAPTURE_DEPENDENCIES = ( cydriver.CUstreamUpdateCaptureDependencies_flags_enum.CU_STREAM_ADD_CAPTURE_DEPENDENCIES, 'Add new nodes to the dependency set\n' - ){{endif}} - {{if 'CU_STREAM_SET_CAPTURE_DEPENDENCIES' in found_values}} + ) + CU_STREAM_SET_CAPTURE_DEPENDENCIES = ( cydriver.CUstreamUpdateCaptureDependencies_flags_enum.CU_STREAM_SET_CAPTURE_DEPENDENCIES, 'Replace the dependency set with the new nodes\n' - ){{endif}} - -{{endif}} -{{if 'CUasyncNotificationType_enum' in found_types}} + ) class CUasyncNotificationType(_FastEnum): """ Types of async notification that can be sent """ - {{if 'CU_ASYNC_NOTIFICATION_TYPE_OVER_BUDGET' in found_values}} + CU_ASYNC_NOTIFICATION_TYPE_OVER_BUDGET = ( cydriver.CUasyncNotificationType_enum.CU_ASYNC_NOTIFICATION_TYPE_OVER_BUDGET, 'Sent when the process has exceeded its device memory budget\n' - ){{endif}} - -{{endif}} -{{if 'CUarray_format_enum' in found_types}} + ) class CUarray_format(_FastEnum): """ Array formats """ - {{if 'CU_AD_FORMAT_UNSIGNED_INT8' in found_values}} + CU_AD_FORMAT_UNSIGNED_INT8 = ( cydriver.CUarray_format_enum.CU_AD_FORMAT_UNSIGNED_INT8, 'Unsigned 8-bit integers\n' - ){{endif}} - {{if 'CU_AD_FORMAT_UNSIGNED_INT16' in found_values}} + ) + CU_AD_FORMAT_UNSIGNED_INT16 = ( cydriver.CUarray_format_enum.CU_AD_FORMAT_UNSIGNED_INT16, 'Unsigned 16-bit integers\n' - ){{endif}} - {{if 'CU_AD_FORMAT_UNSIGNED_INT32' in found_values}} + ) + CU_AD_FORMAT_UNSIGNED_INT32 = ( cydriver.CUarray_format_enum.CU_AD_FORMAT_UNSIGNED_INT32, 'Unsigned 32-bit integers\n' - ){{endif}} - {{if 'CU_AD_FORMAT_SIGNED_INT8' in found_values}} + ) + CU_AD_FORMAT_SIGNED_INT8 = ( cydriver.CUarray_format_enum.CU_AD_FORMAT_SIGNED_INT8, 'Signed 8-bit integers\n' - ){{endif}} - {{if 'CU_AD_FORMAT_SIGNED_INT16' in found_values}} + ) + CU_AD_FORMAT_SIGNED_INT16 = ( cydriver.CUarray_format_enum.CU_AD_FORMAT_SIGNED_INT16, 'Signed 16-bit integers\n' - ){{endif}} - {{if 'CU_AD_FORMAT_SIGNED_INT32' in found_values}} + ) + CU_AD_FORMAT_SIGNED_INT32 = ( cydriver.CUarray_format_enum.CU_AD_FORMAT_SIGNED_INT32, 'Signed 32-bit integers\n' - ){{endif}} - {{if 'CU_AD_FORMAT_HALF' in found_values}} + ) + CU_AD_FORMAT_HALF = ( cydriver.CUarray_format_enum.CU_AD_FORMAT_HALF, '16-bit floating point\n' - ){{endif}} - {{if 'CU_AD_FORMAT_FLOAT' in found_values}} + ) + CU_AD_FORMAT_FLOAT = ( cydriver.CUarray_format_enum.CU_AD_FORMAT_FLOAT, '32-bit floating point\n' - ){{endif}} - {{if 'CU_AD_FORMAT_UNORM_INT_101010_2' in found_values}} + ) + CU_AD_FORMAT_UNORM_INT_101010_2 = ( cydriver.CUarray_format_enum.CU_AD_FORMAT_UNORM_INT_101010_2, '4 channel unorm R10G10B10A2 RGB format\n' - ){{endif}} - {{if 'CU_AD_FORMAT_UINT8_PACKED_422' in found_values}} + ) + CU_AD_FORMAT_UINT8_PACKED_422 = ( cydriver.CUarray_format_enum.CU_AD_FORMAT_UINT8_PACKED_422, '4 channel unsigned 8-bit YUV packed format, with 4:2:2 sampling\n' - ){{endif}} - {{if 'CU_AD_FORMAT_UINT8_PACKED_444' in found_values}} + ) + CU_AD_FORMAT_UINT8_PACKED_444 = ( cydriver.CUarray_format_enum.CU_AD_FORMAT_UINT8_PACKED_444, '4 channel unsigned 8-bit YUV packed format, with 4:4:4 sampling\n' - ){{endif}} - {{if 'CU_AD_FORMAT_UINT8_SEMIPLANAR_420' in found_values}} + ) + CU_AD_FORMAT_UINT8_SEMIPLANAR_420 = ( cydriver.CUarray_format_enum.CU_AD_FORMAT_UINT8_SEMIPLANAR_420, '3 channel unsigned 8-bit YUV semi-planar format, with 4:2:0 sampling\n' - ){{endif}} - {{if 'CU_AD_FORMAT_UINT16_SEMIPLANAR_420' in found_values}} + ) + CU_AD_FORMAT_UINT16_SEMIPLANAR_420 = ( cydriver.CUarray_format_enum.CU_AD_FORMAT_UINT16_SEMIPLANAR_420, '3 channel unsigned 16-bit YUV semi-planar format, with 4:2:0 sampling\n' - ){{endif}} - {{if 'CU_AD_FORMAT_UINT8_SEMIPLANAR_422' in found_values}} + ) + CU_AD_FORMAT_UINT8_SEMIPLANAR_422 = ( cydriver.CUarray_format_enum.CU_AD_FORMAT_UINT8_SEMIPLANAR_422, '3 channel unsigned 8-bit YUV semi-planar format, with 4:2:2 sampling\n' - ){{endif}} - {{if 'CU_AD_FORMAT_UINT16_SEMIPLANAR_422' in found_values}} + ) + CU_AD_FORMAT_UINT16_SEMIPLANAR_422 = ( cydriver.CUarray_format_enum.CU_AD_FORMAT_UINT16_SEMIPLANAR_422, '3 channel unsigned 16-bit YUV semi-planar format, with 4:2:2 sampling\n' - ){{endif}} - {{if 'CU_AD_FORMAT_UINT8_SEMIPLANAR_444' in found_values}} + ) + CU_AD_FORMAT_UINT8_SEMIPLANAR_444 = ( cydriver.CUarray_format_enum.CU_AD_FORMAT_UINT8_SEMIPLANAR_444, '3 channel unsigned 8-bit YUV semi-planar format, with 4:4:4 sampling\n' - ){{endif}} - {{if 'CU_AD_FORMAT_UINT16_SEMIPLANAR_444' in found_values}} + ) + CU_AD_FORMAT_UINT16_SEMIPLANAR_444 = ( cydriver.CUarray_format_enum.CU_AD_FORMAT_UINT16_SEMIPLANAR_444, '3 channel unsigned 16-bit YUV semi-planar format, with 4:4:4 sampling\n' - ){{endif}} - {{if 'CU_AD_FORMAT_UINT8_PLANAR_420' in found_values}} + ) + CU_AD_FORMAT_UINT8_PLANAR_420 = ( cydriver.CUarray_format_enum.CU_AD_FORMAT_UINT8_PLANAR_420, '3 channel unsigned 8-bit YUV planar format, with 4:2:0 sampling\n' - ){{endif}} - {{if 'CU_AD_FORMAT_UINT16_PLANAR_420' in found_values}} + ) + CU_AD_FORMAT_UINT16_PLANAR_420 = ( cydriver.CUarray_format_enum.CU_AD_FORMAT_UINT16_PLANAR_420, '3 channel unsigned 16-bit YUV planar format, with 4:2:0 sampling\n' - ){{endif}} - {{if 'CU_AD_FORMAT_UINT8_PLANAR_422' in found_values}} + ) + CU_AD_FORMAT_UINT8_PLANAR_422 = ( cydriver.CUarray_format_enum.CU_AD_FORMAT_UINT8_PLANAR_422, '3 channel unsigned 8-bit YUV planar format, with 4:2:2 sampling\n' - ){{endif}} - {{if 'CU_AD_FORMAT_UINT16_PLANAR_422' in found_values}} + ) + CU_AD_FORMAT_UINT16_PLANAR_422 = ( cydriver.CUarray_format_enum.CU_AD_FORMAT_UINT16_PLANAR_422, '3 channel unsigned 16-bit YUV planar format, with 4:2:2 sampling\n' - ){{endif}} - {{if 'CU_AD_FORMAT_UINT8_PLANAR_444' in found_values}} + ) + CU_AD_FORMAT_UINT8_PLANAR_444 = ( cydriver.CUarray_format_enum.CU_AD_FORMAT_UINT8_PLANAR_444, '3 channel unsigned 8-bit YUV planar format, with 4:4:4 sampling\n' - ){{endif}} - {{if 'CU_AD_FORMAT_UINT16_PLANAR_444' in found_values}} + ) + CU_AD_FORMAT_UINT16_PLANAR_444 = ( cydriver.CUarray_format_enum.CU_AD_FORMAT_UINT16_PLANAR_444, '3 channel unsigned 16-bit YUV planar format, with 4:4:4 sampling\n' - ){{endif}} - {{if 'CU_AD_FORMAT_BC1_UNORM' in found_values}} + ) + CU_AD_FORMAT_BC1_UNORM = ( cydriver.CUarray_format_enum.CU_AD_FORMAT_BC1_UNORM, '4 channel unsigned normalized block-compressed (BC1 compression) format\n' - ){{endif}} - {{if 'CU_AD_FORMAT_BC1_UNORM_SRGB' in found_values}} + ) + CU_AD_FORMAT_BC1_UNORM_SRGB = ( cydriver.CUarray_format_enum.CU_AD_FORMAT_BC1_UNORM_SRGB, '4 channel unsigned normalized block-compressed (BC1 compression) format\n' 'with sRGB encoding\n' - ){{endif}} - {{if 'CU_AD_FORMAT_BC2_UNORM' in found_values}} + ) + CU_AD_FORMAT_BC2_UNORM = ( cydriver.CUarray_format_enum.CU_AD_FORMAT_BC2_UNORM, '4 channel unsigned normalized block-compressed (BC2 compression) format\n' - ){{endif}} - {{if 'CU_AD_FORMAT_BC2_UNORM_SRGB' in found_values}} + ) + CU_AD_FORMAT_BC2_UNORM_SRGB = ( cydriver.CUarray_format_enum.CU_AD_FORMAT_BC2_UNORM_SRGB, '4 channel unsigned normalized block-compressed (BC2 compression) format\n' 'with sRGB encoding\n' - ){{endif}} - {{if 'CU_AD_FORMAT_BC3_UNORM' in found_values}} + ) + CU_AD_FORMAT_BC3_UNORM = ( cydriver.CUarray_format_enum.CU_AD_FORMAT_BC3_UNORM, '4 channel unsigned normalized block-compressed (BC3 compression) format\n' - ){{endif}} - {{if 'CU_AD_FORMAT_BC3_UNORM_SRGB' in found_values}} + ) + CU_AD_FORMAT_BC3_UNORM_SRGB = ( cydriver.CUarray_format_enum.CU_AD_FORMAT_BC3_UNORM_SRGB, '4 channel unsigned normalized block-compressed (BC3 compression) format\n' 'with sRGB encoding\n' - ){{endif}} - {{if 'CU_AD_FORMAT_BC4_UNORM' in found_values}} + ) + CU_AD_FORMAT_BC4_UNORM = ( cydriver.CUarray_format_enum.CU_AD_FORMAT_BC4_UNORM, '1 channel unsigned normalized block-compressed (BC4 compression) format\n' - ){{endif}} - {{if 'CU_AD_FORMAT_BC4_SNORM' in found_values}} + ) + CU_AD_FORMAT_BC4_SNORM = ( cydriver.CUarray_format_enum.CU_AD_FORMAT_BC4_SNORM, '1 channel signed normalized block-compressed (BC4 compression) format\n' - ){{endif}} - {{if 'CU_AD_FORMAT_BC5_UNORM' in found_values}} + ) + CU_AD_FORMAT_BC5_UNORM = ( cydriver.CUarray_format_enum.CU_AD_FORMAT_BC5_UNORM, '2 channel unsigned normalized block-compressed (BC5 compression) format\n' - ){{endif}} - {{if 'CU_AD_FORMAT_BC5_SNORM' in found_values}} + ) + CU_AD_FORMAT_BC5_SNORM = ( cydriver.CUarray_format_enum.CU_AD_FORMAT_BC5_SNORM, '2 channel signed normalized block-compressed (BC5 compression) format\n' - ){{endif}} - {{if 'CU_AD_FORMAT_BC6H_UF16' in found_values}} + ) + CU_AD_FORMAT_BC6H_UF16 = ( cydriver.CUarray_format_enum.CU_AD_FORMAT_BC6H_UF16, '3 channel unsigned half-float block-compressed (BC6H compression) format\n' - ){{endif}} - {{if 'CU_AD_FORMAT_BC6H_SF16' in found_values}} + ) + CU_AD_FORMAT_BC6H_SF16 = ( cydriver.CUarray_format_enum.CU_AD_FORMAT_BC6H_SF16, '3 channel signed half-float block-compressed (BC6H compression) format\n' - ){{endif}} - {{if 'CU_AD_FORMAT_BC7_UNORM' in found_values}} + ) + CU_AD_FORMAT_BC7_UNORM = ( cydriver.CUarray_format_enum.CU_AD_FORMAT_BC7_UNORM, '4 channel unsigned normalized block-compressed (BC7 compression) format\n' - ){{endif}} - {{if 'CU_AD_FORMAT_BC7_UNORM_SRGB' in found_values}} + ) + CU_AD_FORMAT_BC7_UNORM_SRGB = ( cydriver.CUarray_format_enum.CU_AD_FORMAT_BC7_UNORM_SRGB, '4 channel unsigned normalized block-compressed (BC7 compression) format\n' 'with sRGB encoding\n' - ){{endif}} - {{if 'CU_AD_FORMAT_P010' in found_values}} + ) + CU_AD_FORMAT_P010 = ( cydriver.CUarray_format_enum.CU_AD_FORMAT_P010, '10-bit YUV planar format, with 4:2:0 sampling\n' - ){{endif}} - {{if 'CU_AD_FORMAT_P016' in found_values}} + ) + CU_AD_FORMAT_P016 = ( cydriver.CUarray_format_enum.CU_AD_FORMAT_P016, '16-bit YUV planar format, with 4:2:0 sampling\n' - ){{endif}} - {{if 'CU_AD_FORMAT_NV16' in found_values}} + ) + CU_AD_FORMAT_NV16 = ( cydriver.CUarray_format_enum.CU_AD_FORMAT_NV16, '8-bit YUV planar format, with 4:2:2 sampling\n' - ){{endif}} - {{if 'CU_AD_FORMAT_P210' in found_values}} + ) + CU_AD_FORMAT_P210 = ( cydriver.CUarray_format_enum.CU_AD_FORMAT_P210, '10-bit YUV planar format, with 4:2:2 sampling\n' - ){{endif}} - {{if 'CU_AD_FORMAT_P216' in found_values}} + ) + CU_AD_FORMAT_P216 = ( cydriver.CUarray_format_enum.CU_AD_FORMAT_P216, '16-bit YUV planar format, with 4:2:2 sampling\n' - ){{endif}} - {{if 'CU_AD_FORMAT_YUY2' in found_values}} + ) + CU_AD_FORMAT_YUY2 = ( cydriver.CUarray_format_enum.CU_AD_FORMAT_YUY2, '2 channel, 8-bit YUV packed planar format, with 4:2:2 sampling\n' - ){{endif}} - {{if 'CU_AD_FORMAT_Y210' in found_values}} + ) + CU_AD_FORMAT_Y210 = ( cydriver.CUarray_format_enum.CU_AD_FORMAT_Y210, '2 channel, 10-bit YUV packed planar format, with 4:2:2 sampling\n' - ){{endif}} - {{if 'CU_AD_FORMAT_Y216' in found_values}} + ) + CU_AD_FORMAT_Y216 = ( cydriver.CUarray_format_enum.CU_AD_FORMAT_Y216, '2 channel, 16-bit YUV packed planar format, with 4:2:2 sampling\n' - ){{endif}} - {{if 'CU_AD_FORMAT_AYUV' in found_values}} + ) + CU_AD_FORMAT_AYUV = ( cydriver.CUarray_format_enum.CU_AD_FORMAT_AYUV, '4 channel, 8-bit YUV packed planar format, with 4:4:4 sampling\n' - ){{endif}} - {{if 'CU_AD_FORMAT_Y410' in found_values}} + ) + CU_AD_FORMAT_Y410 = ( cydriver.CUarray_format_enum.CU_AD_FORMAT_Y410, '10-bit YUV packed planar format, with 4:4:4 sampling\n' - ){{endif}} - {{if 'CU_AD_FORMAT_NV12' in found_values}} + ) + CU_AD_FORMAT_NV12 = ( cydriver.CUarray_format_enum.CU_AD_FORMAT_NV12, '8-bit YUV planar format, with 4:2:0 sampling\n' - ){{endif}} - {{if 'CU_AD_FORMAT_Y416' in found_values}} + ) + CU_AD_FORMAT_Y416 = ( cydriver.CUarray_format_enum.CU_AD_FORMAT_Y416, '4 channel, 12-bit YUV packed planar format, with 4:4:4 sampling\n' - ){{endif}} - {{if 'CU_AD_FORMAT_Y444_PLANAR8' in found_values}} + ) + CU_AD_FORMAT_Y444_PLANAR8 = ( cydriver.CUarray_format_enum.CU_AD_FORMAT_Y444_PLANAR8, '3 channel 8-bit YUV planar format, with 4:4:4 sampling\n' - ){{endif}} - {{if 'CU_AD_FORMAT_Y444_PLANAR10' in found_values}} + ) + CU_AD_FORMAT_Y444_PLANAR10 = ( cydriver.CUarray_format_enum.CU_AD_FORMAT_Y444_PLANAR10, '3 channel 10-bit YUV planar format, with 4:4:4 sampling\n' - ){{endif}} - {{if 'CU_AD_FORMAT_YUV444_8bit_SemiPlanar' in found_values}} + ) + CU_AD_FORMAT_YUV444_8bit_SemiPlanar = ( cydriver.CUarray_format_enum.CU_AD_FORMAT_YUV444_8bit_SemiPlanar, '3 channel 8-bit YUV semi-planar format, with 4:4:4 sampling\n' - ){{endif}} - {{if 'CU_AD_FORMAT_YUV444_16bit_SemiPlanar' in found_values}} + ) + CU_AD_FORMAT_YUV444_16bit_SemiPlanar = ( cydriver.CUarray_format_enum.CU_AD_FORMAT_YUV444_16bit_SemiPlanar, '3 channel 16-bit YUV semi-planar format, with 4:4:4 sampling\n' - ){{endif}} - {{if 'CU_AD_FORMAT_UNORM_INT8X1' in found_values}} + ) + CU_AD_FORMAT_UNORM_INT8X1 = ( cydriver.CUarray_format_enum.CU_AD_FORMAT_UNORM_INT8X1, '1 channel unsigned 8-bit normalized integer\n' - ){{endif}} - {{if 'CU_AD_FORMAT_UNORM_INT8X2' in found_values}} + ) + CU_AD_FORMAT_UNORM_INT8X2 = ( cydriver.CUarray_format_enum.CU_AD_FORMAT_UNORM_INT8X2, '2 channel unsigned 8-bit normalized integer\n' - ){{endif}} - {{if 'CU_AD_FORMAT_UNORM_INT8X4' in found_values}} + ) + CU_AD_FORMAT_UNORM_INT8X4 = ( cydriver.CUarray_format_enum.CU_AD_FORMAT_UNORM_INT8X4, '4 channel unsigned 8-bit normalized integer\n' - ){{endif}} - {{if 'CU_AD_FORMAT_UNORM_INT16X1' in found_values}} + ) + CU_AD_FORMAT_UNORM_INT16X1 = ( cydriver.CUarray_format_enum.CU_AD_FORMAT_UNORM_INT16X1, '1 channel unsigned 16-bit normalized integer\n' - ){{endif}} - {{if 'CU_AD_FORMAT_UNORM_INT16X2' in found_values}} + ) + CU_AD_FORMAT_UNORM_INT16X2 = ( cydriver.CUarray_format_enum.CU_AD_FORMAT_UNORM_INT16X2, '2 channel unsigned 16-bit normalized integer\n' - ){{endif}} - {{if 'CU_AD_FORMAT_UNORM_INT16X4' in found_values}} + ) + CU_AD_FORMAT_UNORM_INT16X4 = ( cydriver.CUarray_format_enum.CU_AD_FORMAT_UNORM_INT16X4, '4 channel unsigned 16-bit normalized integer\n' - ){{endif}} - {{if 'CU_AD_FORMAT_SNORM_INT8X1' in found_values}} + ) + CU_AD_FORMAT_SNORM_INT8X1 = ( cydriver.CUarray_format_enum.CU_AD_FORMAT_SNORM_INT8X1, '1 channel signed 8-bit normalized integer\n' - ){{endif}} - {{if 'CU_AD_FORMAT_SNORM_INT8X2' in found_values}} + ) + CU_AD_FORMAT_SNORM_INT8X2 = ( cydriver.CUarray_format_enum.CU_AD_FORMAT_SNORM_INT8X2, '2 channel signed 8-bit normalized integer\n' - ){{endif}} - {{if 'CU_AD_FORMAT_SNORM_INT8X4' in found_values}} + ) + CU_AD_FORMAT_SNORM_INT8X4 = ( cydriver.CUarray_format_enum.CU_AD_FORMAT_SNORM_INT8X4, '4 channel signed 8-bit normalized integer\n' - ){{endif}} - {{if 'CU_AD_FORMAT_SNORM_INT16X1' in found_values}} + ) + CU_AD_FORMAT_SNORM_INT16X1 = ( cydriver.CUarray_format_enum.CU_AD_FORMAT_SNORM_INT16X1, '1 channel signed 16-bit normalized integer\n' - ){{endif}} - {{if 'CU_AD_FORMAT_SNORM_INT16X2' in found_values}} + ) + CU_AD_FORMAT_SNORM_INT16X2 = ( cydriver.CUarray_format_enum.CU_AD_FORMAT_SNORM_INT16X2, '2 channel signed 16-bit normalized integer\n' - ){{endif}} - {{if 'CU_AD_FORMAT_SNORM_INT16X4' in found_values}} + ) + CU_AD_FORMAT_SNORM_INT16X4 = ( cydriver.CUarray_format_enum.CU_AD_FORMAT_SNORM_INT16X4, '4 channel signed 16-bit normalized integer\n' - ){{endif}} - {{if 'CU_AD_FORMAT_MAX' in found_values}} - CU_AD_FORMAT_MAX = cydriver.CUarray_format_enum.CU_AD_FORMAT_MAX{{endif}} + ) -{{endif}} -{{if 'CUaddress_mode_enum' in found_types}} + CU_AD_FORMAT_MAX = cydriver.CUarray_format_enum.CU_AD_FORMAT_MAX class CUaddress_mode(_FastEnum): """ Texture reference addressing modes """ - {{if 'CU_TR_ADDRESS_MODE_WRAP' in found_values}} + CU_TR_ADDRESS_MODE_WRAP = ( cydriver.CUaddress_mode_enum.CU_TR_ADDRESS_MODE_WRAP, 'Wrapping address mode\n' - ){{endif}} - {{if 'CU_TR_ADDRESS_MODE_CLAMP' in found_values}} + ) + CU_TR_ADDRESS_MODE_CLAMP = ( cydriver.CUaddress_mode_enum.CU_TR_ADDRESS_MODE_CLAMP, 'Clamp to edge address mode\n' - ){{endif}} - {{if 'CU_TR_ADDRESS_MODE_MIRROR' in found_values}} + ) + CU_TR_ADDRESS_MODE_MIRROR = ( cydriver.CUaddress_mode_enum.CU_TR_ADDRESS_MODE_MIRROR, 'Mirror address mode\n' - ){{endif}} - {{if 'CU_TR_ADDRESS_MODE_BORDER' in found_values}} + ) + CU_TR_ADDRESS_MODE_BORDER = ( cydriver.CUaddress_mode_enum.CU_TR_ADDRESS_MODE_BORDER, 'Border address mode\n' - ){{endif}} - -{{endif}} -{{if 'CUfilter_mode_enum' in found_types}} + ) class CUfilter_mode(_FastEnum): """ Texture reference filtering modes """ - {{if 'CU_TR_FILTER_MODE_POINT' in found_values}} + CU_TR_FILTER_MODE_POINT = ( cydriver.CUfilter_mode_enum.CU_TR_FILTER_MODE_POINT, 'Point filter mode\n' - ){{endif}} - {{if 'CU_TR_FILTER_MODE_LINEAR' in found_values}} + ) + CU_TR_FILTER_MODE_LINEAR = ( cydriver.CUfilter_mode_enum.CU_TR_FILTER_MODE_LINEAR, 'Linear filter mode\n' - ){{endif}} - -{{endif}} -{{if 'CUdevice_attribute_enum' in found_types}} + ) class CUdevice_attribute(_FastEnum): """ Device properties """ - {{if 'CU_DEVICE_ATTRIBUTE_MAX_THREADS_PER_BLOCK' in found_values}} + CU_DEVICE_ATTRIBUTE_MAX_THREADS_PER_BLOCK = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_MAX_THREADS_PER_BLOCK, 'Maximum number of threads per block\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_MAX_BLOCK_DIM_X' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_MAX_BLOCK_DIM_X = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_MAX_BLOCK_DIM_X, 'Maximum block dimension X\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_MAX_BLOCK_DIM_Y' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_MAX_BLOCK_DIM_Y = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_MAX_BLOCK_DIM_Y, 'Maximum block dimension Y\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_MAX_BLOCK_DIM_Z' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_MAX_BLOCK_DIM_Z = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_MAX_BLOCK_DIM_Z, 'Maximum block dimension Z\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_MAX_GRID_DIM_X' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_MAX_GRID_DIM_X = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_MAX_GRID_DIM_X, 'Maximum grid dimension X\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_MAX_GRID_DIM_Y' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_MAX_GRID_DIM_Y = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_MAX_GRID_DIM_Y, 'Maximum grid dimension Y\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_MAX_GRID_DIM_Z' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_MAX_GRID_DIM_Z = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_MAX_GRID_DIM_Z, 'Maximum grid dimension Z\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_MAX_SHARED_MEMORY_PER_BLOCK' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_MAX_SHARED_MEMORY_PER_BLOCK = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_MAX_SHARED_MEMORY_PER_BLOCK, 'Maximum shared memory available per block in bytes\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_SHARED_MEMORY_PER_BLOCK' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_SHARED_MEMORY_PER_BLOCK = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_SHARED_MEMORY_PER_BLOCK, 'Deprecated, use CU_DEVICE_ATTRIBUTE_MAX_SHARED_MEMORY_PER_BLOCK\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_TOTAL_CONSTANT_MEMORY' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_TOTAL_CONSTANT_MEMORY = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_TOTAL_CONSTANT_MEMORY, 'Memory available on device for constant variables in a CUDA C kernel in\n' 'bytes\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_WARP_SIZE' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_WARP_SIZE = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_WARP_SIZE, 'Warp size in threads\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_MAX_PITCH' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_MAX_PITCH = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_MAX_PITCH, 'Maximum pitch in bytes allowed by memory copies\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_BLOCK' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_BLOCK = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_BLOCK, 'Maximum number of 32-bit registers available per block\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_REGISTERS_PER_BLOCK' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_REGISTERS_PER_BLOCK = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_REGISTERS_PER_BLOCK, 'Deprecated, use CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_BLOCK\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_CLOCK_RATE' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_CLOCK_RATE = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_CLOCK_RATE, 'Typical clock frequency in kilohertz\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_TEXTURE_ALIGNMENT' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_TEXTURE_ALIGNMENT = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_TEXTURE_ALIGNMENT, 'Alignment requirement for textures\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_GPU_OVERLAP' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_GPU_OVERLAP = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_GPU_OVERLAP, 'Device can possibly copy memory and execute a kernel concurrently.\n' 'Deprecated. Use instead CU_DEVICE_ATTRIBUTE_ASYNC_ENGINE_COUNT.\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_MULTIPROCESSOR_COUNT' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_MULTIPROCESSOR_COUNT = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_MULTIPROCESSOR_COUNT, 'Number of multiprocessors on device\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_KERNEL_EXEC_TIMEOUT' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_KERNEL_EXEC_TIMEOUT = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_KERNEL_EXEC_TIMEOUT, 'Specifies whether there is a run time limit on kernels\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_INTEGRATED' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_INTEGRATED = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_INTEGRATED, 'Device is integrated with host memory\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_CAN_MAP_HOST_MEMORY' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_CAN_MAP_HOST_MEMORY = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_CAN_MAP_HOST_MEMORY, 'Device can map host memory into CUDA address space\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_COMPUTE_MODE' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_COMPUTE_MODE = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_COMPUTE_MODE, 'Compute mode (See :py:obj:`~.CUcomputemode` for details)\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE1D_WIDTH' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE1D_WIDTH = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE1D_WIDTH, 'Maximum 1D texture width\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_WIDTH' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_WIDTH = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_WIDTH, 'Maximum 2D texture width\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_HEIGHT' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_HEIGHT = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_HEIGHT, 'Maximum 2D texture height\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE3D_WIDTH' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE3D_WIDTH = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE3D_WIDTH, 'Maximum 3D texture width\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE3D_HEIGHT' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE3D_HEIGHT = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE3D_HEIGHT, 'Maximum 3D texture height\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE3D_DEPTH' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE3D_DEPTH = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE3D_DEPTH, 'Maximum 3D texture depth\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_LAYERED_WIDTH' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_LAYERED_WIDTH = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_LAYERED_WIDTH, 'Maximum 2D layered texture width\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_ARRAY_WIDTH' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_ARRAY_WIDTH = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_ARRAY_WIDTH, 'Deprecated, use CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_LAYERED_WIDTH\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_LAYERED_HEIGHT' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_LAYERED_HEIGHT = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_LAYERED_HEIGHT, 'Maximum 2D layered texture height\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_ARRAY_HEIGHT' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_ARRAY_HEIGHT = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_ARRAY_HEIGHT, 'Deprecated, use CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_LAYERED_HEIGHT\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_LAYERED_LAYERS' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_LAYERED_LAYERS = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_LAYERED_LAYERS, 'Maximum layers in a 2D layered texture\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_ARRAY_NUMSLICES' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_ARRAY_NUMSLICES = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_ARRAY_NUMSLICES, 'Deprecated, use CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_LAYERED_LAYERS\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_SURFACE_ALIGNMENT' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_SURFACE_ALIGNMENT = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_SURFACE_ALIGNMENT, 'Alignment requirement for surfaces\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_CONCURRENT_KERNELS' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_CONCURRENT_KERNELS = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_CONCURRENT_KERNELS, 'Device can possibly execute multiple kernels concurrently\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_ECC_ENABLED' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_ECC_ENABLED = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_ECC_ENABLED, 'Device has ECC support enabled\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_PCI_BUS_ID' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_PCI_BUS_ID = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_PCI_BUS_ID, 'PCI bus ID of the device\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_PCI_DEVICE_ID' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_PCI_DEVICE_ID = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_PCI_DEVICE_ID, 'PCI device ID of the device\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_TCC_DRIVER' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_TCC_DRIVER = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_TCC_DRIVER, 'Device is using TCC driver model\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_MEMORY_CLOCK_RATE' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_MEMORY_CLOCK_RATE = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_MEMORY_CLOCK_RATE, 'Peak memory clock frequency in kilohertz\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_GLOBAL_MEMORY_BUS_WIDTH' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_GLOBAL_MEMORY_BUS_WIDTH = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_GLOBAL_MEMORY_BUS_WIDTH, 'Global memory bus width in bits\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_L2_CACHE_SIZE' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_L2_CACHE_SIZE = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_L2_CACHE_SIZE, 'Size of L2 cache in bytes\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_MAX_THREADS_PER_MULTIPROCESSOR' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_MAX_THREADS_PER_MULTIPROCESSOR = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_MAX_THREADS_PER_MULTIPROCESSOR, 'Maximum resident threads per multiprocessor\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_ASYNC_ENGINE_COUNT' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_ASYNC_ENGINE_COUNT = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_ASYNC_ENGINE_COUNT, 'Number of asynchronous engines\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_UNIFIED_ADDRESSING' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_UNIFIED_ADDRESSING = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_UNIFIED_ADDRESSING, 'Device shares a unified address space with the host\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE1D_LAYERED_WIDTH' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE1D_LAYERED_WIDTH = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE1D_LAYERED_WIDTH, 'Maximum 1D layered texture width\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE1D_LAYERED_LAYERS' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE1D_LAYERED_LAYERS = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE1D_LAYERED_LAYERS, 'Maximum layers in a 1D layered texture\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_CAN_TEX2D_GATHER' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_CAN_TEX2D_GATHER = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_CAN_TEX2D_GATHER, 'Deprecated, do not use.\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_GATHER_WIDTH' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_GATHER_WIDTH = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_GATHER_WIDTH, 'Maximum 2D texture width if CUDA_ARRAY3D_TEXTURE_GATHER is set\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_GATHER_HEIGHT' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_GATHER_HEIGHT = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_GATHER_HEIGHT, 'Maximum 2D texture height if CUDA_ARRAY3D_TEXTURE_GATHER is set\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE3D_WIDTH_ALTERNATE' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE3D_WIDTH_ALTERNATE = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE3D_WIDTH_ALTERNATE, 'Alternate maximum 3D texture width\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE3D_HEIGHT_ALTERNATE' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE3D_HEIGHT_ALTERNATE = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE3D_HEIGHT_ALTERNATE, 'Alternate maximum 3D texture height\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE3D_DEPTH_ALTERNATE' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE3D_DEPTH_ALTERNATE = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE3D_DEPTH_ALTERNATE, 'Alternate maximum 3D texture depth\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_PCI_DOMAIN_ID' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_PCI_DOMAIN_ID = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_PCI_DOMAIN_ID, 'PCI domain ID of the device\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_TEXTURE_PITCH_ALIGNMENT' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_TEXTURE_PITCH_ALIGNMENT = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_TEXTURE_PITCH_ALIGNMENT, 'Pitch alignment requirement for textures\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURECUBEMAP_WIDTH' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURECUBEMAP_WIDTH = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURECUBEMAP_WIDTH, 'Maximum cubemap texture width/height\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURECUBEMAP_LAYERED_WIDTH' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURECUBEMAP_LAYERED_WIDTH = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURECUBEMAP_LAYERED_WIDTH, 'Maximum cubemap layered texture width/height\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURECUBEMAP_LAYERED_LAYERS' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURECUBEMAP_LAYERED_LAYERS = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURECUBEMAP_LAYERED_LAYERS, 'Maximum layers in a cubemap layered texture\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE1D_WIDTH' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE1D_WIDTH = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE1D_WIDTH, 'Maximum 1D surface width\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE2D_WIDTH' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE2D_WIDTH = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE2D_WIDTH, 'Maximum 2D surface width\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE2D_HEIGHT' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE2D_HEIGHT = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE2D_HEIGHT, 'Maximum 2D surface height\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE3D_WIDTH' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE3D_WIDTH = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE3D_WIDTH, 'Maximum 3D surface width\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE3D_HEIGHT' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE3D_HEIGHT = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE3D_HEIGHT, 'Maximum 3D surface height\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE3D_DEPTH' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE3D_DEPTH = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE3D_DEPTH, 'Maximum 3D surface depth\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE1D_LAYERED_WIDTH' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE1D_LAYERED_WIDTH = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE1D_LAYERED_WIDTH, 'Maximum 1D layered surface width\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE1D_LAYERED_LAYERS' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE1D_LAYERED_LAYERS = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE1D_LAYERED_LAYERS, 'Maximum layers in a 1D layered surface\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE2D_LAYERED_WIDTH' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE2D_LAYERED_WIDTH = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE2D_LAYERED_WIDTH, 'Maximum 2D layered surface width\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE2D_LAYERED_HEIGHT' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE2D_LAYERED_HEIGHT = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE2D_LAYERED_HEIGHT, 'Maximum 2D layered surface height\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE2D_LAYERED_LAYERS' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE2D_LAYERED_LAYERS = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACE2D_LAYERED_LAYERS, 'Maximum layers in a 2D layered surface\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACECUBEMAP_WIDTH' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACECUBEMAP_WIDTH = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACECUBEMAP_WIDTH, 'Maximum cubemap surface width\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACECUBEMAP_LAYERED_WIDTH' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACECUBEMAP_LAYERED_WIDTH = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACECUBEMAP_LAYERED_WIDTH, 'Maximum cubemap layered surface width\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACECUBEMAP_LAYERED_LAYERS' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACECUBEMAP_LAYERED_LAYERS = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_MAXIMUM_SURFACECUBEMAP_LAYERED_LAYERS, 'Maximum layers in a cubemap layered surface\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE1D_LINEAR_WIDTH' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE1D_LINEAR_WIDTH = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE1D_LINEAR_WIDTH, 'Deprecated, do not use. Use cudaDeviceGetTexture1DLinearMaxWidth() or\n' ':py:obj:`~.cuDeviceGetTexture1DLinearMaxWidth()` instead.\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_LINEAR_WIDTH' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_LINEAR_WIDTH = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_LINEAR_WIDTH, 'Maximum 2D linear texture width\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_LINEAR_HEIGHT' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_LINEAR_HEIGHT = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_LINEAR_HEIGHT, 'Maximum 2D linear texture height\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_LINEAR_PITCH' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_LINEAR_PITCH = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_LINEAR_PITCH, 'Maximum 2D linear texture pitch in bytes\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_MIPMAPPED_WIDTH' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_MIPMAPPED_WIDTH = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_MIPMAPPED_WIDTH, 'Maximum mipmapped 2D texture width\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_MIPMAPPED_HEIGHT' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_MIPMAPPED_HEIGHT = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_MIPMAPPED_HEIGHT, 'Maximum mipmapped 2D texture height\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_COMPUTE_CAPABILITY_MAJOR' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_COMPUTE_CAPABILITY_MAJOR = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_COMPUTE_CAPABILITY_MAJOR, 'Major compute capability version number\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_COMPUTE_CAPABILITY_MINOR' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_COMPUTE_CAPABILITY_MINOR = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_COMPUTE_CAPABILITY_MINOR, 'Minor compute capability version number\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE1D_MIPMAPPED_WIDTH' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE1D_MIPMAPPED_WIDTH = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE1D_MIPMAPPED_WIDTH, 'Maximum mipmapped 1D texture width\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_STREAM_PRIORITIES_SUPPORTED' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_STREAM_PRIORITIES_SUPPORTED = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_STREAM_PRIORITIES_SUPPORTED, 'Device supports stream priorities\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_GLOBAL_L1_CACHE_SUPPORTED' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_GLOBAL_L1_CACHE_SUPPORTED = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_GLOBAL_L1_CACHE_SUPPORTED, 'Device supports caching globals in L1\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_LOCAL_L1_CACHE_SUPPORTED' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_LOCAL_L1_CACHE_SUPPORTED = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_LOCAL_L1_CACHE_SUPPORTED, 'Device supports caching locals in L1\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_MAX_SHARED_MEMORY_PER_MULTIPROCESSOR' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_MAX_SHARED_MEMORY_PER_MULTIPROCESSOR = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_MAX_SHARED_MEMORY_PER_MULTIPROCESSOR, 'Maximum shared memory available per multiprocessor in bytes\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR, 'Maximum number of 32-bit registers available per multiprocessor\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_MANAGED_MEMORY' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_MANAGED_MEMORY = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_MANAGED_MEMORY, 'Device can allocate managed memory on this system\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_MULTI_GPU_BOARD' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_MULTI_GPU_BOARD = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_MULTI_GPU_BOARD, 'Device is on a multi-GPU board\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_MULTI_GPU_BOARD_GROUP_ID' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_MULTI_GPU_BOARD_GROUP_ID = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_MULTI_GPU_BOARD_GROUP_ID, 'Unique id for a group of devices on the same multi-GPU board\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_HOST_NATIVE_ATOMIC_SUPPORTED' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_HOST_NATIVE_ATOMIC_SUPPORTED = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_HOST_NATIVE_ATOMIC_SUPPORTED, 'Link between the device and the host supports all native atomic operations\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_SINGLE_TO_DOUBLE_PRECISION_PERF_RATIO' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_SINGLE_TO_DOUBLE_PRECISION_PERF_RATIO = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_SINGLE_TO_DOUBLE_PRECISION_PERF_RATIO, 'Ratio of single precision performance (in floating-point operations per\n' 'second) to double precision performance\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_PAGEABLE_MEMORY_ACCESS' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_PAGEABLE_MEMORY_ACCESS = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_PAGEABLE_MEMORY_ACCESS, 'Device supports coherently accessing pageable memory without calling\n' 'cudaHostRegister on it\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_CONCURRENT_MANAGED_ACCESS' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_CONCURRENT_MANAGED_ACCESS = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_CONCURRENT_MANAGED_ACCESS, 'Device can coherently access managed memory concurrently with the CPU\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_COMPUTE_PREEMPTION_SUPPORTED' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_COMPUTE_PREEMPTION_SUPPORTED = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_COMPUTE_PREEMPTION_SUPPORTED, 'Device supports compute preemption.\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_CAN_USE_HOST_POINTER_FOR_REGISTERED_MEM' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_CAN_USE_HOST_POINTER_FOR_REGISTERED_MEM = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_CAN_USE_HOST_POINTER_FOR_REGISTERED_MEM, 'Device can access host registered memory at the same virtual address as the\n' 'CPU\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_CAN_USE_STREAM_MEM_OPS_V1' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_CAN_USE_STREAM_MEM_OPS_V1 = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_CAN_USE_STREAM_MEM_OPS_V1, 'Deprecated, along with v1 MemOps API, :py:obj:`~.cuStreamBatchMemOp` and\n' 'related APIs are supported.\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_CAN_USE_64_BIT_STREAM_MEM_OPS_V1' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_CAN_USE_64_BIT_STREAM_MEM_OPS_V1 = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_CAN_USE_64_BIT_STREAM_MEM_OPS_V1, 'Deprecated, along with v1 MemOps API, 64-bit operations are supported in\n' ':py:obj:`~.cuStreamBatchMemOp` and related APIs.\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_CAN_USE_STREAM_WAIT_VALUE_NOR_V1' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_CAN_USE_STREAM_WAIT_VALUE_NOR_V1 = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_CAN_USE_STREAM_WAIT_VALUE_NOR_V1, 'Deprecated, along with v1 MemOps API, :py:obj:`~.CU_STREAM_WAIT_VALUE_NOR`\n' 'is supported.\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_COOPERATIVE_LAUNCH' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_COOPERATIVE_LAUNCH = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_COOPERATIVE_LAUNCH, 'Device supports launching cooperative kernels via\n' ':py:obj:`~.cuLaunchCooperativeKernel`\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_COOPERATIVE_MULTI_DEVICE_LAUNCH' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_COOPERATIVE_MULTI_DEVICE_LAUNCH = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_COOPERATIVE_MULTI_DEVICE_LAUNCH, 'Deprecated, :py:obj:`~.cuLaunchCooperativeKernelMultiDevice` is deprecated.\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_MAX_SHARED_MEMORY_PER_BLOCK_OPTIN' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_MAX_SHARED_MEMORY_PER_BLOCK_OPTIN = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_MAX_SHARED_MEMORY_PER_BLOCK_OPTIN, 'Maximum optin shared memory per block\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_CAN_FLUSH_REMOTE_WRITES' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_CAN_FLUSH_REMOTE_WRITES = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_CAN_FLUSH_REMOTE_WRITES, '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' 'device. See :py:obj:`~.Stream Memory Operations` for additional details.\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_HOST_REGISTER_SUPPORTED' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_HOST_REGISTER_SUPPORTED = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_HOST_REGISTER_SUPPORTED, 'Device supports host memory registration via :py:obj:`~.cudaHostRegister`.\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_PAGEABLE_MEMORY_ACCESS_USES_HOST_PAGE_TABLES' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_PAGEABLE_MEMORY_ACCESS_USES_HOST_PAGE_TABLES = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_PAGEABLE_MEMORY_ACCESS_USES_HOST_PAGE_TABLES, "Device accesses pageable memory via the host's page tables.\n" - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_DIRECT_MANAGED_MEM_ACCESS_FROM_HOST' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_DIRECT_MANAGED_MEM_ACCESS_FROM_HOST = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_DIRECT_MANAGED_MEM_ACCESS_FROM_HOST, 'The host can directly access managed memory on the device without\n' 'migration.\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_VIRTUAL_ADDRESS_MANAGEMENT_SUPPORTED' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_VIRTUAL_ADDRESS_MANAGEMENT_SUPPORTED = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_VIRTUAL_ADDRESS_MANAGEMENT_SUPPORTED, 'Deprecated, Use CU_DEVICE_ATTRIBUTE_VIRTUAL_MEMORY_MANAGEMENT_SUPPORTED\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_VIRTUAL_MEMORY_MANAGEMENT_SUPPORTED' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_VIRTUAL_MEMORY_MANAGEMENT_SUPPORTED = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_VIRTUAL_MEMORY_MANAGEMENT_SUPPORTED, 'Device supports virtual memory management APIs like\n' ':py:obj:`~.cuMemAddressReserve`, :py:obj:`~.cuMemCreate`,\n' ':py:obj:`~.cuMemMap` and related APIs\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_HANDLE_TYPE_POSIX_FILE_DESCRIPTOR_SUPPORTED' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_HANDLE_TYPE_POSIX_FILE_DESCRIPTOR_SUPPORTED = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_HANDLE_TYPE_POSIX_FILE_DESCRIPTOR_SUPPORTED, 'Device supports exporting memory to a posix file descriptor with\n' ':py:obj:`~.cuMemExportToShareableHandle`, if requested via\n' ':py:obj:`~.cuMemCreate`\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_HANDLE_TYPE_WIN32_HANDLE_SUPPORTED' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_HANDLE_TYPE_WIN32_HANDLE_SUPPORTED = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_HANDLE_TYPE_WIN32_HANDLE_SUPPORTED, 'Device supports exporting memory to a Win32 NT handle with\n' ':py:obj:`~.cuMemExportToShareableHandle`, if requested via\n' ':py:obj:`~.cuMemCreate`\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_HANDLE_TYPE_WIN32_KMT_HANDLE_SUPPORTED' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_HANDLE_TYPE_WIN32_KMT_HANDLE_SUPPORTED = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_HANDLE_TYPE_WIN32_KMT_HANDLE_SUPPORTED, 'Device supports exporting memory to a Win32 KMT handle with\n' ':py:obj:`~.cuMemExportToShareableHandle`, if requested via\n' ':py:obj:`~.cuMemCreate`\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_MAX_BLOCKS_PER_MULTIPROCESSOR' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_MAX_BLOCKS_PER_MULTIPROCESSOR = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_MAX_BLOCKS_PER_MULTIPROCESSOR, 'Maximum number of blocks per multiprocessor\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_GENERIC_COMPRESSION_SUPPORTED' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_GENERIC_COMPRESSION_SUPPORTED = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_GENERIC_COMPRESSION_SUPPORTED, 'Device supports compression of memory\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_MAX_PERSISTING_L2_CACHE_SIZE' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_MAX_PERSISTING_L2_CACHE_SIZE = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_MAX_PERSISTING_L2_CACHE_SIZE, 'Maximum L2 persisting lines capacity setting in bytes.\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_MAX_ACCESS_POLICY_WINDOW_SIZE' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_MAX_ACCESS_POLICY_WINDOW_SIZE = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_MAX_ACCESS_POLICY_WINDOW_SIZE, 'Maximum value of :py:obj:`~.CUaccessPolicyWindow.num_bytes`.\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_GPU_DIRECT_RDMA_WITH_CUDA_VMM_SUPPORTED' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_GPU_DIRECT_RDMA_WITH_CUDA_VMM_SUPPORTED = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_GPU_DIRECT_RDMA_WITH_CUDA_VMM_SUPPORTED, 'Device supports specifying the GPUDirect RDMA flag with\n' ':py:obj:`~.cuMemCreate`\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_RESERVED_SHARED_MEMORY_PER_BLOCK' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_RESERVED_SHARED_MEMORY_PER_BLOCK = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_RESERVED_SHARED_MEMORY_PER_BLOCK, 'Shared memory reserved by CUDA driver per block in bytes\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_SPARSE_CUDA_ARRAY_SUPPORTED' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_SPARSE_CUDA_ARRAY_SUPPORTED = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_SPARSE_CUDA_ARRAY_SUPPORTED, 'Device supports sparse CUDA arrays and sparse CUDA mipmapped arrays\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_READ_ONLY_HOST_REGISTER_SUPPORTED' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_READ_ONLY_HOST_REGISTER_SUPPORTED = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_READ_ONLY_HOST_REGISTER_SUPPORTED, 'Device supports using the :py:obj:`~.cuMemHostRegister` flag\n' ':py:obj:`~.CU_MEMHOSTERGISTER_READ_ONLY` to register memory that must be\n' 'mapped as read-only to the GPU\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_TIMELINE_SEMAPHORE_INTEROP_SUPPORTED' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_TIMELINE_SEMAPHORE_INTEROP_SUPPORTED = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_TIMELINE_SEMAPHORE_INTEROP_SUPPORTED, 'External timeline semaphore interop is supported on the device\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_MEMORY_POOLS_SUPPORTED' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_MEMORY_POOLS_SUPPORTED = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_MEMORY_POOLS_SUPPORTED, 'Device supports using the :py:obj:`~.cuMemAllocAsync` and\n' ':py:obj:`~.cuMemPool` family of APIs\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_GPU_DIRECT_RDMA_SUPPORTED' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_GPU_DIRECT_RDMA_SUPPORTED = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_GPU_DIRECT_RDMA_SUPPORTED, '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 'CU_DEVICE_ATTRIBUTE_GPU_DIRECT_RDMA_FLUSH_WRITES_OPTIONS' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_GPU_DIRECT_RDMA_FLUSH_WRITES_OPTIONS = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_GPU_DIRECT_RDMA_FLUSH_WRITES_OPTIONS, 'The returned attribute shall be interpreted as a bitmask, where the\n' 'individual bits are described by the\n' ':py:obj:`~.CUflushGPUDirectRDMAWritesOptions` enum\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_GPU_DIRECT_RDMA_WRITES_ORDERING' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_GPU_DIRECT_RDMA_WRITES_ORDERING = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_GPU_DIRECT_RDMA_WRITES_ORDERING, @@ -2204,390 +2127,384 @@ class CUdevice_attribute(_FastEnum): 'within the scope indicated by the returned attribute. See\n' ':py:obj:`~.CUGPUDirectRDMAWritesOrdering` for the numerical values returned\n' 'here.\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_MEMPOOL_SUPPORTED_HANDLE_TYPES' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_MEMPOOL_SUPPORTED_HANDLE_TYPES = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_MEMPOOL_SUPPORTED_HANDLE_TYPES, 'Handle types supported with mempool based IPC\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_CLUSTER_LAUNCH' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_CLUSTER_LAUNCH = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_CLUSTER_LAUNCH, 'Indicates device supports cluster launch\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_DEFERRED_MAPPING_CUDA_ARRAY_SUPPORTED' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_DEFERRED_MAPPING_CUDA_ARRAY_SUPPORTED = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_DEFERRED_MAPPING_CUDA_ARRAY_SUPPORTED, 'Device supports deferred mapping CUDA arrays and CUDA mipmapped arrays\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_CAN_USE_64_BIT_STREAM_MEM_OPS' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_CAN_USE_64_BIT_STREAM_MEM_OPS = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_CAN_USE_64_BIT_STREAM_MEM_OPS, '64-bit operations are supported in :py:obj:`~.cuStreamBatchMemOp` and\n' 'related MemOp APIs.\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_CAN_USE_STREAM_WAIT_VALUE_NOR' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_CAN_USE_STREAM_WAIT_VALUE_NOR = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_CAN_USE_STREAM_WAIT_VALUE_NOR, ':py:obj:`~.CU_STREAM_WAIT_VALUE_NOR` is supported by MemOp APIs.\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_DMA_BUF_SUPPORTED' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_DMA_BUF_SUPPORTED = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_DMA_BUF_SUPPORTED, 'Device supports buffer sharing with dma_buf mechanism.\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_IPC_EVENT_SUPPORTED' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_IPC_EVENT_SUPPORTED = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_IPC_EVENT_SUPPORTED, 'Device supports IPC Events.\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_MEM_SYNC_DOMAIN_COUNT' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_MEM_SYNC_DOMAIN_COUNT = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_MEM_SYNC_DOMAIN_COUNT, 'Number of memory domains the device supports.\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_TENSOR_MAP_ACCESS_SUPPORTED' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_TENSOR_MAP_ACCESS_SUPPORTED = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_TENSOR_MAP_ACCESS_SUPPORTED, 'Device supports accessing memory using Tensor Map.\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_HANDLE_TYPE_FABRIC_SUPPORTED' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_HANDLE_TYPE_FABRIC_SUPPORTED = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_HANDLE_TYPE_FABRIC_SUPPORTED, 'Device supports exporting memory to a fabric handle with\n' ':py:obj:`~.cuMemExportToShareableHandle()` or requested with\n' ':py:obj:`~.cuMemCreate()`\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_UNIFIED_FUNCTION_POINTERS' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_UNIFIED_FUNCTION_POINTERS = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_UNIFIED_FUNCTION_POINTERS, 'Device supports unified function pointers.\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_NUMA_CONFIG' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_NUMA_CONFIG = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_NUMA_CONFIG, 'NUMA configuration of a device: value is of type\n' ':py:obj:`~.CUdeviceNumaConfig` enum\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_NUMA_ID' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_NUMA_ID = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_NUMA_ID, 'NUMA node ID of the GPU memory\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_MULTICAST_SUPPORTED' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_MULTICAST_SUPPORTED = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_MULTICAST_SUPPORTED, 'Device supports switch multicast and reduction operations.\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_MPS_ENABLED' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_MPS_ENABLED = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_MPS_ENABLED, 'Indicates if contexts created on this device will be shared via MPS\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_HOST_NUMA_ID' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_HOST_NUMA_ID = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_HOST_NUMA_ID, 'NUMA ID of the host node closest to the device. Returns -1 when system does\n' 'not support NUMA.\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_D3D12_CIG_SUPPORTED' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_D3D12_CIG_SUPPORTED = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_D3D12_CIG_SUPPORTED, 'Device supports CIG with D3D12.\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_MEM_DECOMPRESS_ALGORITHM_MASK' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_MEM_DECOMPRESS_ALGORITHM_MASK = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_MEM_DECOMPRESS_ALGORITHM_MASK, 'The returned valued shall be interpreted as a bitmask, where the individual\n' 'bits are described by the :py:obj:`~.CUmemDecompressAlgorithm` enum.\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_MEM_DECOMPRESS_MAXIMUM_LENGTH' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_MEM_DECOMPRESS_MAXIMUM_LENGTH = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_MEM_DECOMPRESS_MAXIMUM_LENGTH, 'The returned valued is the maximum length in bytes of a single decompress\n' 'operation that is allowed.\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_VULKAN_CIG_SUPPORTED' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_VULKAN_CIG_SUPPORTED = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_VULKAN_CIG_SUPPORTED, 'Device supports CIG with Vulkan.\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_GPU_PCI_DEVICE_ID' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_GPU_PCI_DEVICE_ID = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_GPU_PCI_DEVICE_ID, 'The combined 16-bit PCI device ID and 16-bit PCI vendor ID.\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_GPU_PCI_SUBSYSTEM_ID' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_GPU_PCI_SUBSYSTEM_ID = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_GPU_PCI_SUBSYSTEM_ID, 'The combined 16-bit PCI subsystem ID and 16-bit PCI subsystem vendor ID.\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_HOST_NUMA_VIRTUAL_MEMORY_MANAGEMENT_SUPPORTED' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_HOST_NUMA_VIRTUAL_MEMORY_MANAGEMENT_SUPPORTED = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_HOST_NUMA_VIRTUAL_MEMORY_MANAGEMENT_SUPPORTED, 'Device supports HOST_NUMA location with the virtual memory management APIs\n' 'like :py:obj:`~.cuMemCreate`, :py:obj:`~.cuMemMap` and related APIs\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_HOST_NUMA_MEMORY_POOLS_SUPPORTED' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_HOST_NUMA_MEMORY_POOLS_SUPPORTED = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_HOST_NUMA_MEMORY_POOLS_SUPPORTED, 'Device supports HOST_NUMA location with the :py:obj:`~.cuMemAllocAsync` and\n' ':py:obj:`~.cuMemPool` family of APIs\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_HOST_NUMA_MULTINODE_IPC_SUPPORTED' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_HOST_NUMA_MULTINODE_IPC_SUPPORTED = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_HOST_NUMA_MULTINODE_IPC_SUPPORTED, 'Device supports HOST_NUMA location IPC between nodes in a multi-node\n' 'system.\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_HOST_MEMORY_POOLS_SUPPORTED' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_HOST_MEMORY_POOLS_SUPPORTED = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_HOST_MEMORY_POOLS_SUPPORTED, 'Device suports HOST location with the :py:obj:`~.cuMemAllocAsync` and\n' ':py:obj:`~.cuMemPool` family of APIs\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_HOST_VIRTUAL_MEMORY_MANAGEMENT_SUPPORTED' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_HOST_VIRTUAL_MEMORY_MANAGEMENT_SUPPORTED = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_HOST_VIRTUAL_MEMORY_MANAGEMENT_SUPPORTED, 'Device supports HOST location with the virtual memory management APIs like\n' ':py:obj:`~.cuMemCreate`, :py:obj:`~.cuMemMap` and related APIs\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_HOST_ALLOC_DMA_BUF_SUPPORTED' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_HOST_ALLOC_DMA_BUF_SUPPORTED = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_HOST_ALLOC_DMA_BUF_SUPPORTED, 'Device supports page-locked host memory buffer sharing with dma_buf\n' 'mechanism.\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_ONLY_PARTIAL_HOST_NATIVE_ATOMIC_SUPPORTED' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_ONLY_PARTIAL_HOST_NATIVE_ATOMIC_SUPPORTED = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_ONLY_PARTIAL_HOST_NATIVE_ATOMIC_SUPPORTED, 'Link between the device and the host supports only some native atomic\n' 'operations\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_ATOMIC_REDUCTION_SUPPORTED' in found_values}} + ) + CU_DEVICE_ATTRIBUTE_ATOMIC_REDUCTION_SUPPORTED = ( cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_ATOMIC_REDUCTION_SUPPORTED, 'Device supports atomic reduction operations in stream batch memory\n' 'operations\n' - ){{endif}} - {{if 'CU_DEVICE_ATTRIBUTE_MAX' in found_values}} - CU_DEVICE_ATTRIBUTE_MAX = cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_MAX{{endif}} + ) -{{endif}} -{{if 'CUpointer_attribute_enum' in found_types}} + CU_DEVICE_ATTRIBUTE_MAX = cydriver.CUdevice_attribute_enum.CU_DEVICE_ATTRIBUTE_MAX class CUpointer_attribute(_FastEnum): """ Pointer information """ - {{if 'CU_POINTER_ATTRIBUTE_CONTEXT' in found_values}} + CU_POINTER_ATTRIBUTE_CONTEXT = ( cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_CONTEXT, 'The :py:obj:`~.CUcontext` on which a pointer was allocated or registered\n' - ){{endif}} - {{if 'CU_POINTER_ATTRIBUTE_MEMORY_TYPE' in found_values}} + ) + CU_POINTER_ATTRIBUTE_MEMORY_TYPE = ( cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_MEMORY_TYPE, 'The :py:obj:`~.CUmemorytype` describing the physical location of a pointer\n' - ){{endif}} - {{if 'CU_POINTER_ATTRIBUTE_DEVICE_POINTER' in found_values}} + ) + CU_POINTER_ATTRIBUTE_DEVICE_POINTER = ( cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_DEVICE_POINTER, "The address at which a pointer's memory may be accessed on the device\n" - ){{endif}} - {{if 'CU_POINTER_ATTRIBUTE_HOST_POINTER' in found_values}} + ) + CU_POINTER_ATTRIBUTE_HOST_POINTER = ( cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_HOST_POINTER, "The address at which a pointer's memory may be accessed on the host\n" - ){{endif}} - {{if 'CU_POINTER_ATTRIBUTE_P2P_TOKENS' in found_values}} + ) + CU_POINTER_ATTRIBUTE_P2P_TOKENS = ( cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_P2P_TOKENS, 'A pair of tokens for use with the nv-p2p.h Linux kernel interface\n' - ){{endif}} - {{if 'CU_POINTER_ATTRIBUTE_SYNC_MEMOPS' in found_values}} + ) + CU_POINTER_ATTRIBUTE_SYNC_MEMOPS = ( cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_SYNC_MEMOPS, 'Synchronize every synchronous memory operation initiated on this region\n' - ){{endif}} - {{if 'CU_POINTER_ATTRIBUTE_BUFFER_ID' in found_values}} + ) + CU_POINTER_ATTRIBUTE_BUFFER_ID = ( cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_BUFFER_ID, 'A process-wide unique ID for an allocated memory region\n' - ){{endif}} - {{if 'CU_POINTER_ATTRIBUTE_IS_MANAGED' in found_values}} + ) + CU_POINTER_ATTRIBUTE_IS_MANAGED = ( cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_IS_MANAGED, 'Indicates if the pointer points to managed memory\n' - ){{endif}} - {{if 'CU_POINTER_ATTRIBUTE_DEVICE_ORDINAL' in found_values}} + ) + CU_POINTER_ATTRIBUTE_DEVICE_ORDINAL = ( cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_DEVICE_ORDINAL, 'A device ordinal of a device on which a pointer was allocated or registered\n' - ){{endif}} - {{if 'CU_POINTER_ATTRIBUTE_IS_LEGACY_CUDA_IPC_CAPABLE' in found_values}} + ) + CU_POINTER_ATTRIBUTE_IS_LEGACY_CUDA_IPC_CAPABLE = ( cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_IS_LEGACY_CUDA_IPC_CAPABLE, '1 if this pointer maps to an allocation that is suitable for\n' ':py:obj:`~.cudaIpcGetMemHandle`, 0 otherwise\n' - ){{endif}} - {{if 'CU_POINTER_ATTRIBUTE_RANGE_START_ADDR' in found_values}} + ) + CU_POINTER_ATTRIBUTE_RANGE_START_ADDR = ( cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_RANGE_START_ADDR, 'Starting address for this requested pointer\n' - ){{endif}} - {{if 'CU_POINTER_ATTRIBUTE_RANGE_SIZE' in found_values}} + ) + CU_POINTER_ATTRIBUTE_RANGE_SIZE = ( cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_RANGE_SIZE, 'Size of the address range for this requested pointer\n' - ){{endif}} - {{if 'CU_POINTER_ATTRIBUTE_MAPPED' in found_values}} + ) + CU_POINTER_ATTRIBUTE_MAPPED = ( cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_MAPPED, '1 if this pointer is in a valid address range that is mapped to a backing\n' 'allocation, 0 otherwise\n' - ){{endif}} - {{if 'CU_POINTER_ATTRIBUTE_ALLOWED_HANDLE_TYPES' in found_values}} + ) + CU_POINTER_ATTRIBUTE_ALLOWED_HANDLE_TYPES = ( cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_ALLOWED_HANDLE_TYPES, 'Bitmask of allowed :py:obj:`~.CUmemAllocationHandleType` for this\n' 'allocation\n' - ){{endif}} - {{if 'CU_POINTER_ATTRIBUTE_IS_GPU_DIRECT_RDMA_CAPABLE' in found_values}} + ) + CU_POINTER_ATTRIBUTE_IS_GPU_DIRECT_RDMA_CAPABLE = ( cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_IS_GPU_DIRECT_RDMA_CAPABLE, '1 if the memory this pointer is referencing can be used with the GPUDirect\n' 'RDMA API\n' - ){{endif}} - {{if 'CU_POINTER_ATTRIBUTE_ACCESS_FLAGS' in found_values}} + ) + CU_POINTER_ATTRIBUTE_ACCESS_FLAGS = ( cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_ACCESS_FLAGS, 'Returns the access flags the device associated with the current context has\n' 'on the corresponding memory referenced by the pointer given\n' - ){{endif}} - {{if 'CU_POINTER_ATTRIBUTE_MEMPOOL_HANDLE' in found_values}} + ) + CU_POINTER_ATTRIBUTE_MEMPOOL_HANDLE = ( cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_MEMPOOL_HANDLE, 'Returns the mempool handle for the allocation if it was allocated from a\n' 'mempool. Otherwise returns NULL.\n' - ){{endif}} - {{if 'CU_POINTER_ATTRIBUTE_MAPPING_SIZE' in found_values}} + ) + CU_POINTER_ATTRIBUTE_MAPPING_SIZE = ( cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_MAPPING_SIZE, 'Size of the actual underlying mapping that the pointer belongs to\n' - ){{endif}} - {{if 'CU_POINTER_ATTRIBUTE_MAPPING_BASE_ADDR' in found_values}} + ) + CU_POINTER_ATTRIBUTE_MAPPING_BASE_ADDR = ( cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_MAPPING_BASE_ADDR, 'The start address of the mapping that the pointer belongs to\n' - ){{endif}} - {{if 'CU_POINTER_ATTRIBUTE_MEMORY_BLOCK_ID' in found_values}} + ) + CU_POINTER_ATTRIBUTE_MEMORY_BLOCK_ID = ( cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_MEMORY_BLOCK_ID, 'A process-wide unique id corresponding to the physical allocation the\n' 'pointer belongs to\n' - ){{endif}} - {{if 'CU_POINTER_ATTRIBUTE_IS_HW_DECOMPRESS_CAPABLE' in found_values}} + ) + CU_POINTER_ATTRIBUTE_IS_HW_DECOMPRESS_CAPABLE = ( cydriver.CUpointer_attribute_enum.CU_POINTER_ATTRIBUTE_IS_HW_DECOMPRESS_CAPABLE, 'Returns in `*data` a boolean that indicates whether the pointer points to\n' 'memory that is capable to be used for hardware accelerated decompression.\n' - ){{endif}} - -{{endif}} -{{if 'CUfunction_attribute_enum' in found_types}} + ) class CUfunction_attribute(_FastEnum): """ Function properties """ - {{if 'CU_FUNC_ATTRIBUTE_MAX_THREADS_PER_BLOCK' in found_values}} + CU_FUNC_ATTRIBUTE_MAX_THREADS_PER_BLOCK = ( cydriver.CUfunction_attribute_enum.CU_FUNC_ATTRIBUTE_MAX_THREADS_PER_BLOCK, 'The maximum number of threads per block, beyond which a launch of the\n' 'function would fail. This number depends on both the function and the\n' 'device on which the function is currently loaded.\n' - ){{endif}} - {{if 'CU_FUNC_ATTRIBUTE_SHARED_SIZE_BYTES' in found_values}} + ) + CU_FUNC_ATTRIBUTE_SHARED_SIZE_BYTES = ( cydriver.CUfunction_attribute_enum.CU_FUNC_ATTRIBUTE_SHARED_SIZE_BYTES, 'The size in bytes of statically-allocated shared memory required by this\n' 'function. This does not include dynamically-allocated shared memory\n' 'requested by the user at runtime.\n' - ){{endif}} - {{if 'CU_FUNC_ATTRIBUTE_CONST_SIZE_BYTES' in found_values}} + ) + CU_FUNC_ATTRIBUTE_CONST_SIZE_BYTES = ( cydriver.CUfunction_attribute_enum.CU_FUNC_ATTRIBUTE_CONST_SIZE_BYTES, 'The size in bytes of user-allocated constant memory required by this\n' 'function.\n' - ){{endif}} - {{if 'CU_FUNC_ATTRIBUTE_LOCAL_SIZE_BYTES' in found_values}} + ) + CU_FUNC_ATTRIBUTE_LOCAL_SIZE_BYTES = ( cydriver.CUfunction_attribute_enum.CU_FUNC_ATTRIBUTE_LOCAL_SIZE_BYTES, 'The size in bytes of local memory used by each thread of this function.\n' - ){{endif}} - {{if 'CU_FUNC_ATTRIBUTE_NUM_REGS' in found_values}} + ) + CU_FUNC_ATTRIBUTE_NUM_REGS = ( cydriver.CUfunction_attribute_enum.CU_FUNC_ATTRIBUTE_NUM_REGS, 'The number of registers used by each thread of this function.\n' - ){{endif}} - {{if 'CU_FUNC_ATTRIBUTE_PTX_VERSION' in found_values}} + ) + CU_FUNC_ATTRIBUTE_PTX_VERSION = ( cydriver.CUfunction_attribute_enum.CU_FUNC_ATTRIBUTE_PTX_VERSION, @@ -2595,8 +2512,8 @@ class CUfunction_attribute(_FastEnum): 'This value is the major PTX version * 10 + the minor PTX version, so a PTX\n' 'version 1.3 function would return the value 13. Note that this may return\n' 'the undefined value of 0 for cubins compiled prior to CUDA 3.0.\n' - ){{endif}} - {{if 'CU_FUNC_ATTRIBUTE_BINARY_VERSION' in found_values}} + ) + CU_FUNC_ATTRIBUTE_BINARY_VERSION = ( cydriver.CUfunction_attribute_enum.CU_FUNC_ATTRIBUTE_BINARY_VERSION, @@ -2605,15 +2522,15 @@ class CUfunction_attribute(_FastEnum): 'binary version 1.3 function would return the value 13. Note that this will\n' 'return a value of 10 for legacy cubins that do not have a properly-encoded\n' 'binary architecture version.\n' - ){{endif}} - {{if 'CU_FUNC_ATTRIBUTE_CACHE_MODE_CA' in found_values}} + ) + CU_FUNC_ATTRIBUTE_CACHE_MODE_CA = ( cydriver.CUfunction_attribute_enum.CU_FUNC_ATTRIBUTE_CACHE_MODE_CA, 'The attribute to indicate whether the function has been compiled with user\n' 'specified option "-Xptxas --dlcm=ca" set .\n' - ){{endif}} - {{if 'CU_FUNC_ATTRIBUTE_MAX_DYNAMIC_SHARED_SIZE_BYTES' in found_values}} + ) + CU_FUNC_ATTRIBUTE_MAX_DYNAMIC_SHARED_SIZE_BYTES = ( cydriver.CUfunction_attribute_enum.CU_FUNC_ATTRIBUTE_MAX_DYNAMIC_SHARED_SIZE_BYTES, @@ -2628,8 +2545,8 @@ class CUfunction_attribute(_FastEnum): ':py:obj:`~.CU_DEVICE_ATTRIBUTE_MAX_SHARED_MEMORY_PER_BLOCK_OPTIN` -\n' ':py:obj:`~.CU_FUNC_ATTRIBUTE_SHARED_SIZE_BYTES`. See\n' ':py:obj:`~.cuFuncSetAttribute`, :py:obj:`~.cuKernelSetAttribute`\n' - ){{endif}} - {{if 'CU_FUNC_ATTRIBUTE_PREFERRED_SHARED_MEMORY_CARVEOUT' in found_values}} + ) + CU_FUNC_ATTRIBUTE_PREFERRED_SHARED_MEMORY_CARVEOUT = ( cydriver.CUfunction_attribute_enum.CU_FUNC_ATTRIBUTE_PREFERRED_SHARED_MEMORY_CARVEOUT, @@ -2640,16 +2557,16 @@ class CUfunction_attribute(_FastEnum): 'is only a hint, and the driver can choose a different ratio if required to\n' 'execute the function. See :py:obj:`~.cuFuncSetAttribute`,\n' ':py:obj:`~.cuKernelSetAttribute`\n' - ){{endif}} - {{if 'CU_FUNC_ATTRIBUTE_CLUSTER_SIZE_MUST_BE_SET' in found_values}} + ) + CU_FUNC_ATTRIBUTE_CLUSTER_SIZE_MUST_BE_SET = ( cydriver.CUfunction_attribute_enum.CU_FUNC_ATTRIBUTE_CLUSTER_SIZE_MUST_BE_SET, 'If this attribute is set, the kernel must launch with a valid cluster size\n' 'specified. See :py:obj:`~.cuFuncSetAttribute`,\n' ':py:obj:`~.cuKernelSetAttribute`\n' - ){{endif}} - {{if 'CU_FUNC_ATTRIBUTE_REQUIRED_CLUSTER_WIDTH' in found_values}} + ) + CU_FUNC_ATTRIBUTE_REQUIRED_CLUSTER_WIDTH = ( cydriver.CUfunction_attribute_enum.CU_FUNC_ATTRIBUTE_REQUIRED_CLUSTER_WIDTH, @@ -2659,8 +2576,8 @@ class CUfunction_attribute(_FastEnum): 'If the value is set during compile time, it cannot be set at runtime.\n' 'Setting it at runtime will return CUDA_ERROR_NOT_PERMITTED. See\n' ':py:obj:`~.cuFuncSetAttribute`, :py:obj:`~.cuKernelSetAttribute`\n' - ){{endif}} - {{if 'CU_FUNC_ATTRIBUTE_REQUIRED_CLUSTER_HEIGHT' in found_values}} + ) + CU_FUNC_ATTRIBUTE_REQUIRED_CLUSTER_HEIGHT = ( cydriver.CUfunction_attribute_enum.CU_FUNC_ATTRIBUTE_REQUIRED_CLUSTER_HEIGHT, @@ -2670,8 +2587,8 @@ class CUfunction_attribute(_FastEnum): 'If the value is set during compile time, it cannot be set at runtime.\n' 'Setting it at runtime should return CUDA_ERROR_NOT_PERMITTED. See\n' ':py:obj:`~.cuFuncSetAttribute`, :py:obj:`~.cuKernelSetAttribute`\n' - ){{endif}} - {{if 'CU_FUNC_ATTRIBUTE_REQUIRED_CLUSTER_DEPTH' in found_values}} + ) + CU_FUNC_ATTRIBUTE_REQUIRED_CLUSTER_DEPTH = ( cydriver.CUfunction_attribute_enum.CU_FUNC_ATTRIBUTE_REQUIRED_CLUSTER_DEPTH, @@ -2681,8 +2598,8 @@ class CUfunction_attribute(_FastEnum): 'If the value is set during compile time, it cannot be set at runtime.\n' 'Setting it at runtime should return CUDA_ERROR_NOT_PERMITTED. See\n' ':py:obj:`~.cuFuncSetAttribute`, :py:obj:`~.cuKernelSetAttribute`\n' - ){{endif}} - {{if 'CU_FUNC_ATTRIBUTE_NON_PORTABLE_CLUSTER_SIZE_ALLOWED' in found_values}} + ) + CU_FUNC_ATTRIBUTE_NON_PORTABLE_CLUSTER_SIZE_ALLOWED = ( cydriver.CUfunction_attribute_enum.CU_FUNC_ATTRIBUTE_NON_PORTABLE_CLUSTER_SIZE_ALLOWED, @@ -2700,282 +2617,258 @@ class CUfunction_attribute(_FastEnum): 'The specific hardware unit may support higher cluster sizes that’s not\n' 'guaranteed to be portable. See :py:obj:`~.cuFuncSetAttribute`,\n' ':py:obj:`~.cuKernelSetAttribute`\n' - ){{endif}} - {{if 'CU_FUNC_ATTRIBUTE_CLUSTER_SCHEDULING_POLICY_PREFERENCE' in found_values}} + ) + CU_FUNC_ATTRIBUTE_CLUSTER_SCHEDULING_POLICY_PREFERENCE = ( cydriver.CUfunction_attribute_enum.CU_FUNC_ATTRIBUTE_CLUSTER_SCHEDULING_POLICY_PREFERENCE, 'The block scheduling policy of a function. The value type is\n' 'CUclusterSchedulingPolicy / cudaClusterSchedulingPolicy. See\n' ':py:obj:`~.cuFuncSetAttribute`, :py:obj:`~.cuKernelSetAttribute`\n' - ){{endif}} - {{if 'CU_FUNC_ATTRIBUTE_MAX' in found_values}} - CU_FUNC_ATTRIBUTE_MAX = cydriver.CUfunction_attribute_enum.CU_FUNC_ATTRIBUTE_MAX{{endif}} + ) -{{endif}} -{{if 'CUfunc_cache_enum' in found_types}} + CU_FUNC_ATTRIBUTE_MAX = cydriver.CUfunction_attribute_enum.CU_FUNC_ATTRIBUTE_MAX class CUfunc_cache(_FastEnum): """ Function cache configurations """ - {{if 'CU_FUNC_CACHE_PREFER_NONE' in found_values}} + CU_FUNC_CACHE_PREFER_NONE = ( cydriver.CUfunc_cache_enum.CU_FUNC_CACHE_PREFER_NONE, 'no preference for shared memory or L1 (default)\n' - ){{endif}} - {{if 'CU_FUNC_CACHE_PREFER_SHARED' in found_values}} + ) + CU_FUNC_CACHE_PREFER_SHARED = ( cydriver.CUfunc_cache_enum.CU_FUNC_CACHE_PREFER_SHARED, 'prefer larger shared memory and smaller L1 cache\n' - ){{endif}} - {{if 'CU_FUNC_CACHE_PREFER_L1' in found_values}} + ) + CU_FUNC_CACHE_PREFER_L1 = ( cydriver.CUfunc_cache_enum.CU_FUNC_CACHE_PREFER_L1, 'prefer larger L1 cache and smaller shared memory\n' - ){{endif}} - {{if 'CU_FUNC_CACHE_PREFER_EQUAL' in found_values}} + ) + CU_FUNC_CACHE_PREFER_EQUAL = ( cydriver.CUfunc_cache_enum.CU_FUNC_CACHE_PREFER_EQUAL, 'prefer equal sized L1 cache and shared memory\n' - ){{endif}} - -{{endif}} -{{if 'CUsharedconfig_enum' in found_types}} + ) class CUsharedconfig(_FastEnum): """ [Deprecated] Shared memory configurations """ - {{if 'CU_SHARED_MEM_CONFIG_DEFAULT_BANK_SIZE' in found_values}} + CU_SHARED_MEM_CONFIG_DEFAULT_BANK_SIZE = ( cydriver.CUsharedconfig_enum.CU_SHARED_MEM_CONFIG_DEFAULT_BANK_SIZE, 'set default shared memory bank size\n' - ){{endif}} - {{if 'CU_SHARED_MEM_CONFIG_FOUR_BYTE_BANK_SIZE' in found_values}} + ) + CU_SHARED_MEM_CONFIG_FOUR_BYTE_BANK_SIZE = ( cydriver.CUsharedconfig_enum.CU_SHARED_MEM_CONFIG_FOUR_BYTE_BANK_SIZE, 'set shared memory bank width to four bytes\n' - ){{endif}} - {{if 'CU_SHARED_MEM_CONFIG_EIGHT_BYTE_BANK_SIZE' in found_values}} + ) + CU_SHARED_MEM_CONFIG_EIGHT_BYTE_BANK_SIZE = ( cydriver.CUsharedconfig_enum.CU_SHARED_MEM_CONFIG_EIGHT_BYTE_BANK_SIZE, 'set shared memory bank width to eight bytes\n' - ){{endif}} - -{{endif}} -{{if 'CUshared_carveout_enum' in found_types}} + ) class CUshared_carveout(_FastEnum): """ Shared memory carveout configurations. These may be passed to :py:obj:`~.cuFuncSetAttribute` or :py:obj:`~.cuKernelSetAttribute` """ - {{if 'CU_SHAREDMEM_CARVEOUT_DEFAULT' in found_values}} + CU_SHAREDMEM_CARVEOUT_DEFAULT = ( cydriver.CUshared_carveout_enum.CU_SHAREDMEM_CARVEOUT_DEFAULT, 'No preference for shared memory or L1 (default)\n' - ){{endif}} - {{if 'CU_SHAREDMEM_CARVEOUT_MAX_L1' in found_values}} + ) + CU_SHAREDMEM_CARVEOUT_MAX_L1 = ( cydriver.CUshared_carveout_enum.CU_SHAREDMEM_CARVEOUT_MAX_L1, 'Prefer maximum available L1 cache, minimum shared memory\n' - ){{endif}} - {{if 'CU_SHAREDMEM_CARVEOUT_MAX_SHARED' in found_values}} + ) + CU_SHAREDMEM_CARVEOUT_MAX_SHARED = ( cydriver.CUshared_carveout_enum.CU_SHAREDMEM_CARVEOUT_MAX_SHARED, 'Prefer maximum available shared memory, minimum L1 cache\n' - ){{endif}} - -{{endif}} -{{if 'CUmemorytype_enum' in found_types}} + ) class CUmemorytype(_FastEnum): """ Memory types """ - {{if 'CU_MEMORYTYPE_HOST' in found_values}} + CU_MEMORYTYPE_HOST = ( cydriver.CUmemorytype_enum.CU_MEMORYTYPE_HOST, 'Host memory\n' - ){{endif}} - {{if 'CU_MEMORYTYPE_DEVICE' in found_values}} + ) + CU_MEMORYTYPE_DEVICE = ( cydriver.CUmemorytype_enum.CU_MEMORYTYPE_DEVICE, 'Device memory\n' - ){{endif}} - {{if 'CU_MEMORYTYPE_ARRAY' in found_values}} + ) + CU_MEMORYTYPE_ARRAY = ( cydriver.CUmemorytype_enum.CU_MEMORYTYPE_ARRAY, 'Array memory\n' - ){{endif}} - {{if 'CU_MEMORYTYPE_UNIFIED' in found_values}} + ) + CU_MEMORYTYPE_UNIFIED = ( cydriver.CUmemorytype_enum.CU_MEMORYTYPE_UNIFIED, 'Unified device or host memory\n' - ){{endif}} - -{{endif}} -{{if 'CUcomputemode_enum' in found_types}} + ) class CUcomputemode(_FastEnum): """ Compute Modes """ - {{if 'CU_COMPUTEMODE_DEFAULT' in found_values}} + CU_COMPUTEMODE_DEFAULT = ( cydriver.CUcomputemode_enum.CU_COMPUTEMODE_DEFAULT, 'Default compute mode (Multiple contexts allowed per device)\n' - ){{endif}} - {{if 'CU_COMPUTEMODE_PROHIBITED' in found_values}} + ) + CU_COMPUTEMODE_PROHIBITED = ( cydriver.CUcomputemode_enum.CU_COMPUTEMODE_PROHIBITED, 'Compute-prohibited mode (No contexts can be created on this device at this\n' 'time)\n' - ){{endif}} - {{if 'CU_COMPUTEMODE_EXCLUSIVE_PROCESS' in found_values}} + ) + CU_COMPUTEMODE_EXCLUSIVE_PROCESS = ( cydriver.CUcomputemode_enum.CU_COMPUTEMODE_EXCLUSIVE_PROCESS, 'Compute-exclusive-process mode (Only one context used by a single process\n' 'can be present on this device at a time)\n' - ){{endif}} - -{{endif}} -{{if 'CUmem_advise_enum' in found_types}} + ) class CUmem_advise(_FastEnum): """ Memory advise values """ - {{if 'CU_MEM_ADVISE_SET_READ_MOSTLY' in found_values}} + CU_MEM_ADVISE_SET_READ_MOSTLY = ( cydriver.CUmem_advise_enum.CU_MEM_ADVISE_SET_READ_MOSTLY, 'Data will mostly be read and only occasionally be written to\n' - ){{endif}} - {{if 'CU_MEM_ADVISE_UNSET_READ_MOSTLY' in found_values}} + ) + CU_MEM_ADVISE_UNSET_READ_MOSTLY = ( cydriver.CUmem_advise_enum.CU_MEM_ADVISE_UNSET_READ_MOSTLY, 'Undo the effect of :py:obj:`~.CU_MEM_ADVISE_SET_READ_MOSTLY`\n' - ){{endif}} - {{if 'CU_MEM_ADVISE_SET_PREFERRED_LOCATION' in found_values}} + ) + CU_MEM_ADVISE_SET_PREFERRED_LOCATION = ( cydriver.CUmem_advise_enum.CU_MEM_ADVISE_SET_PREFERRED_LOCATION, 'Set the preferred location for the data as the specified device\n' - ){{endif}} - {{if 'CU_MEM_ADVISE_UNSET_PREFERRED_LOCATION' in found_values}} + ) + CU_MEM_ADVISE_UNSET_PREFERRED_LOCATION = ( cydriver.CUmem_advise_enum.CU_MEM_ADVISE_UNSET_PREFERRED_LOCATION, 'Clear the preferred location for the data\n' - ){{endif}} - {{if 'CU_MEM_ADVISE_SET_ACCESSED_BY' in found_values}} + ) + CU_MEM_ADVISE_SET_ACCESSED_BY = ( cydriver.CUmem_advise_enum.CU_MEM_ADVISE_SET_ACCESSED_BY, 'Data will be accessed by the specified device, so prevent page faults as\n' 'much as possible\n' - ){{endif}} - {{if 'CU_MEM_ADVISE_UNSET_ACCESSED_BY' in found_values}} + ) + CU_MEM_ADVISE_UNSET_ACCESSED_BY = ( cydriver.CUmem_advise_enum.CU_MEM_ADVISE_UNSET_ACCESSED_BY, 'Let the Unified Memory subsystem decide on the page faulting policy for the\n' 'specified device\n' - ){{endif}} - -{{endif}} -{{if 'CUmem_range_attribute_enum' in found_types}} + ) class CUmem_range_attribute(_FastEnum): """ """ - {{if 'CU_MEM_RANGE_ATTRIBUTE_READ_MOSTLY' in found_values}} + CU_MEM_RANGE_ATTRIBUTE_READ_MOSTLY = ( cydriver.CUmem_range_attribute_enum.CU_MEM_RANGE_ATTRIBUTE_READ_MOSTLY, 'Whether the range will mostly be read and only occasionally be written to\n' - ){{endif}} - {{if 'CU_MEM_RANGE_ATTRIBUTE_PREFERRED_LOCATION' in found_values}} + ) + CU_MEM_RANGE_ATTRIBUTE_PREFERRED_LOCATION = ( cydriver.CUmem_range_attribute_enum.CU_MEM_RANGE_ATTRIBUTE_PREFERRED_LOCATION, 'The preferred location of the range\n' - ){{endif}} - {{if 'CU_MEM_RANGE_ATTRIBUTE_ACCESSED_BY' in found_values}} + ) + CU_MEM_RANGE_ATTRIBUTE_ACCESSED_BY = ( cydriver.CUmem_range_attribute_enum.CU_MEM_RANGE_ATTRIBUTE_ACCESSED_BY, 'Memory range has :py:obj:`~.CU_MEM_ADVISE_SET_ACCESSED_BY` set for\n' 'specified device\n' - ){{endif}} - {{if 'CU_MEM_RANGE_ATTRIBUTE_LAST_PREFETCH_LOCATION' in found_values}} + ) + CU_MEM_RANGE_ATTRIBUTE_LAST_PREFETCH_LOCATION = ( cydriver.CUmem_range_attribute_enum.CU_MEM_RANGE_ATTRIBUTE_LAST_PREFETCH_LOCATION, 'The last location to which the range was prefetched\n' - ){{endif}} - {{if 'CU_MEM_RANGE_ATTRIBUTE_PREFERRED_LOCATION_TYPE' in found_values}} + ) + CU_MEM_RANGE_ATTRIBUTE_PREFERRED_LOCATION_TYPE = ( cydriver.CUmem_range_attribute_enum.CU_MEM_RANGE_ATTRIBUTE_PREFERRED_LOCATION_TYPE, 'The preferred location type of the range\n' - ){{endif}} - {{if 'CU_MEM_RANGE_ATTRIBUTE_PREFERRED_LOCATION_ID' in found_values}} + ) + CU_MEM_RANGE_ATTRIBUTE_PREFERRED_LOCATION_ID = ( cydriver.CUmem_range_attribute_enum.CU_MEM_RANGE_ATTRIBUTE_PREFERRED_LOCATION_ID, 'The preferred location id of the range\n' - ){{endif}} - {{if 'CU_MEM_RANGE_ATTRIBUTE_LAST_PREFETCH_LOCATION_TYPE' in found_values}} + ) + CU_MEM_RANGE_ATTRIBUTE_LAST_PREFETCH_LOCATION_TYPE = ( cydriver.CUmem_range_attribute_enum.CU_MEM_RANGE_ATTRIBUTE_LAST_PREFETCH_LOCATION_TYPE, 'The last location type to which the range was prefetched\n' - ){{endif}} - {{if 'CU_MEM_RANGE_ATTRIBUTE_LAST_PREFETCH_LOCATION_ID' in found_values}} + ) + CU_MEM_RANGE_ATTRIBUTE_LAST_PREFETCH_LOCATION_ID = ( cydriver.CUmem_range_attribute_enum.CU_MEM_RANGE_ATTRIBUTE_LAST_PREFETCH_LOCATION_ID, 'The last location id to which the range was prefetched\n' - ){{endif}} - -{{endif}} -{{if 'CUjit_option_enum' in found_types}} + ) class CUjit_option(_FastEnum): """ Online compiler and linker options """ - {{if 'CU_JIT_MAX_REGISTERS' in found_values}} + CU_JIT_MAX_REGISTERS = ( cydriver.CUjit_option_enum.CU_JIT_MAX_REGISTERS, 'Max number of registers that a thread may use.\n' 'Option type: unsigned int\n' 'Applies to: compiler only\n' - ){{endif}} - {{if 'CU_JIT_THREADS_PER_BLOCK' in found_values}} + ) + CU_JIT_THREADS_PER_BLOCK = ( cydriver.CUjit_option_enum.CU_JIT_THREADS_PER_BLOCK, @@ -2989,8 +2882,8 @@ class CUjit_option(_FastEnum): 'Cannot be combined with :py:obj:`~.CU_JIT_TARGET`.\n' 'Option type: unsigned int\n' 'Applies to: compiler only\n' - ){{endif}} - {{if 'CU_JIT_WALL_TIME' in found_values}} + ) + CU_JIT_WALL_TIME = ( cydriver.CUjit_option_enum.CU_JIT_WALL_TIME, @@ -2998,8 +2891,8 @@ class CUjit_option(_FastEnum): 'milliseconds, spent in the compiler and linker\n' 'Option type: float\n' 'Applies to: compiler and linker\n' - ){{endif}} - {{if 'CU_JIT_INFO_LOG_BUFFER' in found_values}} + ) + CU_JIT_INFO_LOG_BUFFER = ( cydriver.CUjit_option_enum.CU_JIT_INFO_LOG_BUFFER, @@ -3008,8 +2901,8 @@ class CUjit_option(_FastEnum): ':py:obj:`~.CU_JIT_INFO_LOG_BUFFER_SIZE_BYTES`)\n' 'Option type: char *\n' 'Applies to: compiler and linker\n' - ){{endif}} - {{if 'CU_JIT_INFO_LOG_BUFFER_SIZE_BYTES' in found_values}} + ) + CU_JIT_INFO_LOG_BUFFER_SIZE_BYTES = ( cydriver.CUjit_option_enum.CU_JIT_INFO_LOG_BUFFER_SIZE_BYTES, @@ -3018,8 +2911,8 @@ class CUjit_option(_FastEnum): 'OUT: Amount of log buffer filled with messages\n' 'Option type: unsigned int\n' 'Applies to: compiler and linker\n' - ){{endif}} - {{if 'CU_JIT_ERROR_LOG_BUFFER' in found_values}} + ) + CU_JIT_ERROR_LOG_BUFFER = ( cydriver.CUjit_option_enum.CU_JIT_ERROR_LOG_BUFFER, @@ -3028,8 +2921,8 @@ class CUjit_option(_FastEnum): ':py:obj:`~.CU_JIT_ERROR_LOG_BUFFER_SIZE_BYTES`)\n' 'Option type: char *\n' 'Applies to: compiler and linker\n' - ){{endif}} - {{if 'CU_JIT_ERROR_LOG_BUFFER_SIZE_BYTES' in found_values}} + ) + CU_JIT_ERROR_LOG_BUFFER_SIZE_BYTES = ( cydriver.CUjit_option_enum.CU_JIT_ERROR_LOG_BUFFER_SIZE_BYTES, @@ -3038,8 +2931,8 @@ class CUjit_option(_FastEnum): 'OUT: Amount of log buffer filled with messages\n' 'Option type: unsigned int\n' 'Applies to: compiler and linker\n' - ){{endif}} - {{if 'CU_JIT_OPTIMIZATION_LEVEL' in found_values}} + ) + CU_JIT_OPTIMIZATION_LEVEL = ( cydriver.CUjit_option_enum.CU_JIT_OPTIMIZATION_LEVEL, @@ -3047,8 +2940,8 @@ class CUjit_option(_FastEnum): 'default and highest level of optimizations.\n' 'Option type: unsigned int\n' 'Applies to: compiler only\n' - ){{endif}} - {{if 'CU_JIT_TARGET_FROM_CUCONTEXT' in found_values}} + ) + CU_JIT_TARGET_FROM_CUCONTEXT = ( cydriver.CUjit_option_enum.CU_JIT_TARGET_FROM_CUCONTEXT, @@ -3056,8 +2949,8 @@ class CUjit_option(_FastEnum): 'attached context (default)\n' 'Option type: No option value needed\n' 'Applies to: compiler and linker\n' - ){{endif}} - {{if 'CU_JIT_TARGET' in found_values}} + ) + CU_JIT_TARGET = ( cydriver.CUjit_option_enum.CU_JIT_TARGET, @@ -3065,8 +2958,8 @@ class CUjit_option(_FastEnum): 'combined with :py:obj:`~.CU_JIT_THREADS_PER_BLOCK`.\n' 'Option type: unsigned int for enumerated type :py:obj:`~.CUjit_target`\n' 'Applies to: compiler and linker\n' - ){{endif}} - {{if 'CU_JIT_FALLBACK_STRATEGY' in found_values}} + ) + CU_JIT_FALLBACK_STRATEGY = ( cydriver.CUjit_option_enum.CU_JIT_FALLBACK_STRATEGY, @@ -3075,8 +2968,8 @@ class CUjit_option(_FastEnum): 'be used with cuLink* APIs as the linker requires exact matches.\n' 'Option type: unsigned int for enumerated type :py:obj:`~.CUjit_fallback`\n' 'Applies to: compiler only\n' - ){{endif}} - {{if 'CU_JIT_GENERATE_DEBUG_INFO' in found_values}} + ) + CU_JIT_GENERATE_DEBUG_INFO = ( cydriver.CUjit_option_enum.CU_JIT_GENERATE_DEBUG_INFO, @@ -3084,24 +2977,24 @@ class CUjit_option(_FastEnum): 'default)\n' 'Option type: int\n' 'Applies to: compiler and linker\n' - ){{endif}} - {{if 'CU_JIT_LOG_VERBOSE' in found_values}} + ) + CU_JIT_LOG_VERBOSE = ( cydriver.CUjit_option_enum.CU_JIT_LOG_VERBOSE, 'Generate verbose log messages (0: false, default)\n' 'Option type: int\n' 'Applies to: compiler and linker\n' - ){{endif}} - {{if 'CU_JIT_GENERATE_LINE_INFO' in found_values}} + ) + CU_JIT_GENERATE_LINE_INFO = ( cydriver.CUjit_option_enum.CU_JIT_GENERATE_LINE_INFO, 'Generate line number information (-lineinfo) (0: false, default)\n' 'Option type: int\n' 'Applies to: compiler only\n' - ){{endif}} - {{if 'CU_JIT_CACHE_MODE' in found_values}} + ) + CU_JIT_CACHE_MODE = ( cydriver.CUjit_option_enum.CU_JIT_CACHE_MODE, @@ -3110,20 +3003,20 @@ class CUjit_option(_FastEnum): 'Option type: unsigned int for enumerated type\n' ':py:obj:`~.CUjit_cacheMode_enum`\n' 'Applies to: compiler only\n' - ){{endif}} - {{if 'CU_JIT_NEW_SM3X_OPT' in found_values}} + ) + CU_JIT_NEW_SM3X_OPT = ( cydriver.CUjit_option_enum.CU_JIT_NEW_SM3X_OPT, '[Deprecated]\n' - ){{endif}} - {{if 'CU_JIT_FAST_COMPILE' in found_values}} + ) + CU_JIT_FAST_COMPILE = ( cydriver.CUjit_option_enum.CU_JIT_FAST_COMPILE, 'This jit option is used for internal purpose only.\n' - ){{endif}} - {{if 'CU_JIT_GLOBAL_SYMBOL_NAMES' in found_values}} + ) + CU_JIT_GLOBAL_SYMBOL_NAMES = ( cydriver.CUjit_option_enum.CU_JIT_GLOBAL_SYMBOL_NAMES, @@ -3137,8 +3030,8 @@ class CUjit_option(_FastEnum): 'It is illegal to register the same device symbol at multiple addresses.\n' 'Option type: const char **\n' 'Applies to: dynamic linker only\n' - ){{endif}} - {{if 'CU_JIT_GLOBAL_SYMBOL_ADDRESSES' in found_values}} + ) + CU_JIT_GLOBAL_SYMBOL_ADDRESSES = ( cydriver.CUjit_option_enum.CU_JIT_GLOBAL_SYMBOL_ADDRESSES, @@ -3147,8 +3040,8 @@ class CUjit_option(_FastEnum): 'Must contain :py:obj:`~.CU_JIT_GLOBAL_SYMBOL_COUNT` entries.\n' 'Option type: void **\n' 'Applies to: dynamic linker only\n' - ){{endif}} - {{if 'CU_JIT_GLOBAL_SYMBOL_COUNT' in found_values}} + ) + CU_JIT_GLOBAL_SYMBOL_COUNT = ( cydriver.CUjit_option_enum.CU_JIT_GLOBAL_SYMBOL_COUNT, @@ -3156,86 +3049,86 @@ class CUjit_option(_FastEnum): ':py:obj:`~.CU_JIT_GLOBAL_SYMBOL_ADDRESSES` arrays.\n' 'Option type: unsigned int\n' 'Applies to: dynamic linker only\n' - ){{endif}} - {{if 'CU_JIT_LTO' in found_values}} + ) + CU_JIT_LTO = ( cydriver.CUjit_option_enum.CU_JIT_LTO, '[Deprecated]\n' 'Only valid with LTO-IR compiled with toolkits prior to CUDA 12.0\n' - ){{endif}} - {{if 'CU_JIT_FTZ' in found_values}} + ) + CU_JIT_FTZ = ( cydriver.CUjit_option_enum.CU_JIT_FTZ, '[Deprecated]\n' 'Only valid with LTO-IR compiled with toolkits prior to CUDA 12.0\n' - ){{endif}} - {{if 'CU_JIT_PREC_DIV' in found_values}} + ) + CU_JIT_PREC_DIV = ( cydriver.CUjit_option_enum.CU_JIT_PREC_DIV, '[Deprecated]\n' 'Only valid with LTO-IR compiled with toolkits prior to CUDA 12.0\n' - ){{endif}} - {{if 'CU_JIT_PREC_SQRT' in found_values}} + ) + CU_JIT_PREC_SQRT = ( cydriver.CUjit_option_enum.CU_JIT_PREC_SQRT, '[Deprecated]\n' 'Only valid with LTO-IR compiled with toolkits prior to CUDA 12.0\n' - ){{endif}} - {{if 'CU_JIT_FMA' in found_values}} + ) + CU_JIT_FMA = ( cydriver.CUjit_option_enum.CU_JIT_FMA, '[Deprecated]\n' 'Only valid with LTO-IR compiled with toolkits prior to CUDA 12.0\n' - ){{endif}} - {{if 'CU_JIT_REFERENCED_KERNEL_NAMES' in found_values}} + ) + CU_JIT_REFERENCED_KERNEL_NAMES = ( cydriver.CUjit_option_enum.CU_JIT_REFERENCED_KERNEL_NAMES, '[Deprecated]\n' 'Only valid with LTO-IR compiled with toolkits prior to CUDA 12.0\n' - ){{endif}} - {{if 'CU_JIT_REFERENCED_KERNEL_COUNT' in found_values}} + ) + CU_JIT_REFERENCED_KERNEL_COUNT = ( cydriver.CUjit_option_enum.CU_JIT_REFERENCED_KERNEL_COUNT, '[Deprecated]\n' 'Only valid with LTO-IR compiled with toolkits prior to CUDA 12.0\n' - ){{endif}} - {{if 'CU_JIT_REFERENCED_VARIABLE_NAMES' in found_values}} + ) + CU_JIT_REFERENCED_VARIABLE_NAMES = ( cydriver.CUjit_option_enum.CU_JIT_REFERENCED_VARIABLE_NAMES, '[Deprecated]\n' 'Only valid with LTO-IR compiled with toolkits prior to CUDA 12.0\n' - ){{endif}} - {{if 'CU_JIT_REFERENCED_VARIABLE_COUNT' in found_values}} + ) + CU_JIT_REFERENCED_VARIABLE_COUNT = ( cydriver.CUjit_option_enum.CU_JIT_REFERENCED_VARIABLE_COUNT, '[Deprecated]\n' 'Only valid with LTO-IR compiled with toolkits prior to CUDA 12.0\n' - ){{endif}} - {{if 'CU_JIT_OPTIMIZE_UNUSED_DEVICE_VARIABLES' in found_values}} + ) + CU_JIT_OPTIMIZE_UNUSED_DEVICE_VARIABLES = ( cydriver.CUjit_option_enum.CU_JIT_OPTIMIZE_UNUSED_DEVICE_VARIABLES, '[Deprecated]\n' 'Only valid with LTO-IR compiled with toolkits prior to CUDA 12.0\n' - ){{endif}} - {{if 'CU_JIT_POSITION_INDEPENDENT_CODE' in found_values}} + ) + CU_JIT_POSITION_INDEPENDENT_CODE = ( cydriver.CUjit_option_enum.CU_JIT_POSITION_INDEPENDENT_CODE, 'Generate position independent code (0: false)\n' 'Option type: int\n' 'Applies to: compiler only\n' - ){{endif}} - {{if 'CU_JIT_MIN_CTA_PER_SM' in found_values}} + ) + CU_JIT_MIN_CTA_PER_SM = ( cydriver.CUjit_option_enum.CU_JIT_MIN_CTA_PER_SM, @@ -3249,8 +3142,8 @@ class CUjit_option(_FastEnum): 'this option take precedence over the PTX directive. Option type: unsigned\n' 'int\n' 'Applies to: compiler only\n' - ){{endif}} - {{if 'CU_JIT_MAX_THREADS_PER_BLOCK' in found_values}} + ) + CU_JIT_MAX_THREADS_PER_BLOCK = ( cydriver.CUjit_option_enum.CU_JIT_MAX_THREADS_PER_BLOCK, @@ -3262,8 +3155,8 @@ class CUjit_option(_FastEnum): 'be ignored by default. Use :py:obj:`~.CU_JIT_OVERRIDE_DIRECTIVE_VALUES` to\n' 'let this option take precedence over the PTX directive. Option type: int\n' 'Applies to: compiler only\n' - ){{endif}} - {{if 'CU_JIT_OVERRIDE_DIRECTIVE_VALUES' in found_values}} + ) + CU_JIT_OVERRIDE_DIRECTIVE_VALUES = ( cydriver.CUjit_option_enum.CU_JIT_OVERRIDE_DIRECTIVE_VALUES, @@ -3273,8 +3166,8 @@ class CUjit_option(_FastEnum): ':py:obj:`~.CU_JIT_MIN_CTA_PER_SM` take precedence over any PTX directives.\n' '(0: Disable, default; 1: Enable) Option type: int\n' 'Applies to: compiler only\n' - ){{endif}} - {{if 'CU_JIT_SPLIT_COMPILE' in found_values}} + ) + CU_JIT_SPLIT_COMPILE = ( cydriver.CUjit_option_enum.CU_JIT_SPLIT_COMPILE, @@ -3284,8 +3177,8 @@ class CUjit_option(_FastEnum): 'match the number of CPUs on the underlying machine. Otherwise, if the\n' 'option is N, then up to N threads will be used. Option type: unsigned int\n' 'Applies to: compiler only\n' - ){{endif}} - {{if 'CU_JIT_BINARY_LOADER_THREAD_COUNT' in found_values}} + ) + CU_JIT_BINARY_LOADER_THREAD_COUNT = ( cydriver.CUjit_option_enum.CU_JIT_BINARY_LOADER_THREAD_COUNT, @@ -3296,648 +3189,612 @@ class CUjit_option(_FastEnum): 'then up to N threads will be used. This option is ignored if the env var\n' 'CUDA_BINARY_LOADER_THREAD_COUNT is set. Option type: unsigned int\n' 'Applies to: compiler and linker\n' - ){{endif}} - {{if 'CU_JIT_NUM_OPTIONS' in found_values}} - CU_JIT_NUM_OPTIONS = cydriver.CUjit_option_enum.CU_JIT_NUM_OPTIONS{{endif}} + ) -{{endif}} -{{if 'CUjit_target_enum' in found_types}} + CU_JIT_NUM_OPTIONS = cydriver.CUjit_option_enum.CU_JIT_NUM_OPTIONS class CUjit_target(_FastEnum): """ Online compilation targets """ - {{if 'CU_TARGET_COMPUTE_30' in found_values}} + CU_TARGET_COMPUTE_30 = ( cydriver.CUjit_target_enum.CU_TARGET_COMPUTE_30, 'Compute device class 3.0\n' - ){{endif}} - {{if 'CU_TARGET_COMPUTE_32' in found_values}} + ) + CU_TARGET_COMPUTE_32 = ( cydriver.CUjit_target_enum.CU_TARGET_COMPUTE_32, 'Compute device class 3.2\n' - ){{endif}} - {{if 'CU_TARGET_COMPUTE_35' in found_values}} + ) + CU_TARGET_COMPUTE_35 = ( cydriver.CUjit_target_enum.CU_TARGET_COMPUTE_35, 'Compute device class 3.5\n' - ){{endif}} - {{if 'CU_TARGET_COMPUTE_37' in found_values}} + ) + CU_TARGET_COMPUTE_37 = ( cydriver.CUjit_target_enum.CU_TARGET_COMPUTE_37, 'Compute device class 3.7\n' - ){{endif}} - {{if 'CU_TARGET_COMPUTE_50' in found_values}} + ) + CU_TARGET_COMPUTE_50 = ( cydriver.CUjit_target_enum.CU_TARGET_COMPUTE_50, 'Compute device class 5.0\n' - ){{endif}} - {{if 'CU_TARGET_COMPUTE_52' in found_values}} + ) + CU_TARGET_COMPUTE_52 = ( cydriver.CUjit_target_enum.CU_TARGET_COMPUTE_52, 'Compute device class 5.2\n' - ){{endif}} - {{if 'CU_TARGET_COMPUTE_53' in found_values}} + ) + CU_TARGET_COMPUTE_53 = ( cydriver.CUjit_target_enum.CU_TARGET_COMPUTE_53, 'Compute device class 5.3\n' - ){{endif}} - {{if 'CU_TARGET_COMPUTE_60' in found_values}} + ) + CU_TARGET_COMPUTE_60 = ( cydriver.CUjit_target_enum.CU_TARGET_COMPUTE_60, 'Compute device class 6.0.\n' - ){{endif}} - {{if 'CU_TARGET_COMPUTE_61' in found_values}} + ) + CU_TARGET_COMPUTE_61 = ( cydriver.CUjit_target_enum.CU_TARGET_COMPUTE_61, 'Compute device class 6.1.\n' - ){{endif}} - {{if 'CU_TARGET_COMPUTE_62' in found_values}} + ) + CU_TARGET_COMPUTE_62 = ( cydriver.CUjit_target_enum.CU_TARGET_COMPUTE_62, 'Compute device class 6.2.\n' - ){{endif}} - {{if 'CU_TARGET_COMPUTE_70' in found_values}} + ) + CU_TARGET_COMPUTE_70 = ( cydriver.CUjit_target_enum.CU_TARGET_COMPUTE_70, 'Compute device class 7.0.\n' - ){{endif}} - {{if 'CU_TARGET_COMPUTE_72' in found_values}} + ) + CU_TARGET_COMPUTE_72 = ( cydriver.CUjit_target_enum.CU_TARGET_COMPUTE_72, 'Compute device class 7.2.\n' - ){{endif}} - {{if 'CU_TARGET_COMPUTE_75' in found_values}} + ) + CU_TARGET_COMPUTE_75 = ( cydriver.CUjit_target_enum.CU_TARGET_COMPUTE_75, 'Compute device class 7.5.\n' - ){{endif}} - {{if 'CU_TARGET_COMPUTE_80' in found_values}} + ) + CU_TARGET_COMPUTE_80 = ( cydriver.CUjit_target_enum.CU_TARGET_COMPUTE_80, 'Compute device class 8.0.\n' - ){{endif}} - {{if 'CU_TARGET_COMPUTE_86' in found_values}} + ) + CU_TARGET_COMPUTE_86 = ( cydriver.CUjit_target_enum.CU_TARGET_COMPUTE_86, 'Compute device class 8.6.\n' - ){{endif}} - {{if 'CU_TARGET_COMPUTE_87' in found_values}} + ) + CU_TARGET_COMPUTE_87 = ( cydriver.CUjit_target_enum.CU_TARGET_COMPUTE_87, 'Compute device class 8.7.\n' - ){{endif}} - {{if 'CU_TARGET_COMPUTE_89' in found_values}} + ) + CU_TARGET_COMPUTE_89 = ( cydriver.CUjit_target_enum.CU_TARGET_COMPUTE_89, 'Compute device class 8.9.\n' - ){{endif}} - {{if 'CU_TARGET_COMPUTE_90' in found_values}} + ) + CU_TARGET_COMPUTE_90 = ( cydriver.CUjit_target_enum.CU_TARGET_COMPUTE_90, 'Compute device class 9.0.\n' - ){{endif}} - {{if 'CU_TARGET_COMPUTE_100' in found_values}} + ) + CU_TARGET_COMPUTE_100 = ( cydriver.CUjit_target_enum.CU_TARGET_COMPUTE_100, 'Compute device class 10.0.\n' - ){{endif}} - {{if 'CU_TARGET_COMPUTE_103' in found_values}} + ) + CU_TARGET_COMPUTE_103 = ( cydriver.CUjit_target_enum.CU_TARGET_COMPUTE_103, 'Compute device class 10.3.\n' - ){{endif}} - {{if 'CU_TARGET_COMPUTE_110' in found_values}} + ) + CU_TARGET_COMPUTE_110 = ( cydriver.CUjit_target_enum.CU_TARGET_COMPUTE_110, 'Compute device class 11.0.\n' - ){{endif}} - {{if 'CU_TARGET_COMPUTE_120' in found_values}} + ) + CU_TARGET_COMPUTE_120 = ( cydriver.CUjit_target_enum.CU_TARGET_COMPUTE_120, 'Compute device class 12.0.\n' - ){{endif}} - {{if 'CU_TARGET_COMPUTE_121' in found_values}} + ) + CU_TARGET_COMPUTE_121 = ( cydriver.CUjit_target_enum.CU_TARGET_COMPUTE_121, 'Compute device class 12.1. Compute device class 9.0. with accelerated\n' 'features.\n' - ){{endif}} - {{if 'CU_TARGET_COMPUTE_90A' in found_values}} + ) + CU_TARGET_COMPUTE_90A = ( cydriver.CUjit_target_enum.CU_TARGET_COMPUTE_90A, 'Compute device class 10.0. with accelerated features.\n' - ){{endif}} - {{if 'CU_TARGET_COMPUTE_100A' in found_values}} + ) + CU_TARGET_COMPUTE_100A = ( cydriver.CUjit_target_enum.CU_TARGET_COMPUTE_100A, 'Compute device class 11.0 with accelerated features.\n' - ){{endif}} - {{if 'CU_TARGET_COMPUTE_103A' in found_values}} + ) + CU_TARGET_COMPUTE_103A = ( cydriver.CUjit_target_enum.CU_TARGET_COMPUTE_103A, 'Compute device class 12.0. with accelerated features.\n' - ){{endif}} - {{if 'CU_TARGET_COMPUTE_110A' in found_values}} + ) + CU_TARGET_COMPUTE_110A = ( cydriver.CUjit_target_enum.CU_TARGET_COMPUTE_110A, 'Compute device class 10.3. with accelerated features.\n' - ){{endif}} - {{if 'CU_TARGET_COMPUTE_120A' in found_values}} + ) + CU_TARGET_COMPUTE_120A = ( cydriver.CUjit_target_enum.CU_TARGET_COMPUTE_120A, 'Compute device class 12.1. with accelerated features.\n' - ){{endif}} - {{if 'CU_TARGET_COMPUTE_121A' in found_values}} + ) + CU_TARGET_COMPUTE_121A = ( cydriver.CUjit_target_enum.CU_TARGET_COMPUTE_121A, 'Compute device class 10.x with family features.\n' - ){{endif}} - {{if 'CU_TARGET_COMPUTE_100F' in found_values}} + ) + CU_TARGET_COMPUTE_100F = ( cydriver.CUjit_target_enum.CU_TARGET_COMPUTE_100F, 'Compute device class 11.0 with family features.\n' - ){{endif}} - {{if 'CU_TARGET_COMPUTE_103F' in found_values}} + ) + CU_TARGET_COMPUTE_103F = ( cydriver.CUjit_target_enum.CU_TARGET_COMPUTE_103F, 'Compute device class 12.0. with family features.\n' - ){{endif}} - {{if 'CU_TARGET_COMPUTE_110F' in found_values}} + ) + CU_TARGET_COMPUTE_110F = ( cydriver.CUjit_target_enum.CU_TARGET_COMPUTE_110F, 'Compute device class 10.3. with family features.\n' - ){{endif}} - {{if 'CU_TARGET_COMPUTE_120F' in found_values}} + ) + CU_TARGET_COMPUTE_120F = ( cydriver.CUjit_target_enum.CU_TARGET_COMPUTE_120F, 'Compute device class 12.1. with family features.\n' - ){{endif}} - {{if 'CU_TARGET_COMPUTE_121F' in found_values}} - CU_TARGET_COMPUTE_121F = cydriver.CUjit_target_enum.CU_TARGET_COMPUTE_121F{{endif}} + ) -{{endif}} -{{if 'CUjit_fallback_enum' in found_types}} + CU_TARGET_COMPUTE_121F = cydriver.CUjit_target_enum.CU_TARGET_COMPUTE_121F class CUjit_fallback(_FastEnum): """ Cubin matching fallback strategies """ - {{if 'CU_PREFER_PTX' in found_values}} + CU_PREFER_PTX = ( cydriver.CUjit_fallback_enum.CU_PREFER_PTX, 'Prefer to compile ptx if exact binary match not found\n' - ){{endif}} - {{if 'CU_PREFER_BINARY' in found_values}} + ) + CU_PREFER_BINARY = ( cydriver.CUjit_fallback_enum.CU_PREFER_BINARY, 'Prefer to fall back to compatible binary code if exact match not found\n' - ){{endif}} - -{{endif}} -{{if 'CUjit_cacheMode_enum' in found_types}} + ) class CUjit_cacheMode(_FastEnum): """ Caching modes for dlcm """ - {{if 'CU_JIT_CACHE_OPTION_NONE' in found_values}} + CU_JIT_CACHE_OPTION_NONE = ( cydriver.CUjit_cacheMode_enum.CU_JIT_CACHE_OPTION_NONE, 'Compile with no -dlcm flag specified\n' - ){{endif}} - {{if 'CU_JIT_CACHE_OPTION_CG' in found_values}} + ) + CU_JIT_CACHE_OPTION_CG = ( cydriver.CUjit_cacheMode_enum.CU_JIT_CACHE_OPTION_CG, 'Compile with L1 cache disabled\n' - ){{endif}} - {{if 'CU_JIT_CACHE_OPTION_CA' in found_values}} + ) + CU_JIT_CACHE_OPTION_CA = ( cydriver.CUjit_cacheMode_enum.CU_JIT_CACHE_OPTION_CA, 'Compile with L1 cache enabled\n' - ){{endif}} - -{{endif}} -{{if 'CUjitInputType_enum' in found_types}} + ) class CUjitInputType(_FastEnum): """ Device code formats """ - {{if 'CU_JIT_INPUT_CUBIN' in found_values}} + CU_JIT_INPUT_CUBIN = ( cydriver.CUjitInputType_enum.CU_JIT_INPUT_CUBIN, 'Compiled device-class-specific device code\n' 'Applicable options: none\n' - ){{endif}} - {{if 'CU_JIT_INPUT_PTX' in found_values}} + ) + CU_JIT_INPUT_PTX = ( cydriver.CUjitInputType_enum.CU_JIT_INPUT_PTX, 'PTX source code\n' 'Applicable options: PTX compiler options\n' - ){{endif}} - {{if 'CU_JIT_INPUT_FATBINARY' in found_values}} + ) + CU_JIT_INPUT_FATBINARY = ( cydriver.CUjitInputType_enum.CU_JIT_INPUT_FATBINARY, 'Bundle of multiple cubins and/or PTX of some device code\n' 'Applicable options: PTX compiler options,\n' ':py:obj:`~.CU_JIT_FALLBACK_STRATEGY`\n' - ){{endif}} - {{if 'CU_JIT_INPUT_OBJECT' in found_values}} + ) + CU_JIT_INPUT_OBJECT = ( cydriver.CUjitInputType_enum.CU_JIT_INPUT_OBJECT, 'Host object with embedded device code\n' 'Applicable options: PTX compiler options,\n' ':py:obj:`~.CU_JIT_FALLBACK_STRATEGY`\n' - ){{endif}} - {{if 'CU_JIT_INPUT_LIBRARY' in found_values}} + ) + CU_JIT_INPUT_LIBRARY = ( cydriver.CUjitInputType_enum.CU_JIT_INPUT_LIBRARY, 'Archive of host objects with embedded device code\n' 'Applicable options: PTX compiler options,\n' ':py:obj:`~.CU_JIT_FALLBACK_STRATEGY`\n' - ){{endif}} - {{if 'CU_JIT_INPUT_NVVM' in found_values}} + ) + CU_JIT_INPUT_NVVM = ( cydriver.CUjitInputType_enum.CU_JIT_INPUT_NVVM, '[Deprecated]\n' 'Only valid with LTO-IR compiled with toolkits prior to CUDA 12.0\n' - ){{endif}} - {{if 'CU_JIT_NUM_INPUT_TYPES' in found_values}} - CU_JIT_NUM_INPUT_TYPES = cydriver.CUjitInputType_enum.CU_JIT_NUM_INPUT_TYPES{{endif}} + ) -{{endif}} -{{if 'CUgraphicsRegisterFlags_enum' in found_types}} + CU_JIT_NUM_INPUT_TYPES = cydriver.CUjitInputType_enum.CU_JIT_NUM_INPUT_TYPES class CUgraphicsRegisterFlags(_FastEnum): """ Flags to register a graphics resource """ - {{if 'CU_GRAPHICS_REGISTER_FLAGS_NONE' in found_values}} - CU_GRAPHICS_REGISTER_FLAGS_NONE = cydriver.CUgraphicsRegisterFlags_enum.CU_GRAPHICS_REGISTER_FLAGS_NONE{{endif}} - {{if 'CU_GRAPHICS_REGISTER_FLAGS_READ_ONLY' in found_values}} - CU_GRAPHICS_REGISTER_FLAGS_READ_ONLY = cydriver.CUgraphicsRegisterFlags_enum.CU_GRAPHICS_REGISTER_FLAGS_READ_ONLY{{endif}} - {{if 'CU_GRAPHICS_REGISTER_FLAGS_WRITE_DISCARD' in found_values}} - CU_GRAPHICS_REGISTER_FLAGS_WRITE_DISCARD = cydriver.CUgraphicsRegisterFlags_enum.CU_GRAPHICS_REGISTER_FLAGS_WRITE_DISCARD{{endif}} - {{if 'CU_GRAPHICS_REGISTER_FLAGS_SURFACE_LDST' in found_values}} - CU_GRAPHICS_REGISTER_FLAGS_SURFACE_LDST = cydriver.CUgraphicsRegisterFlags_enum.CU_GRAPHICS_REGISTER_FLAGS_SURFACE_LDST{{endif}} - {{if 'CU_GRAPHICS_REGISTER_FLAGS_TEXTURE_GATHER' in found_values}} - CU_GRAPHICS_REGISTER_FLAGS_TEXTURE_GATHER = cydriver.CUgraphicsRegisterFlags_enum.CU_GRAPHICS_REGISTER_FLAGS_TEXTURE_GATHER{{endif}} -{{endif}} -{{if 'CUgraphicsMapResourceFlags_enum' in found_types}} + CU_GRAPHICS_REGISTER_FLAGS_NONE = cydriver.CUgraphicsRegisterFlags_enum.CU_GRAPHICS_REGISTER_FLAGS_NONE + + CU_GRAPHICS_REGISTER_FLAGS_READ_ONLY = cydriver.CUgraphicsRegisterFlags_enum.CU_GRAPHICS_REGISTER_FLAGS_READ_ONLY + + CU_GRAPHICS_REGISTER_FLAGS_WRITE_DISCARD = cydriver.CUgraphicsRegisterFlags_enum.CU_GRAPHICS_REGISTER_FLAGS_WRITE_DISCARD + + CU_GRAPHICS_REGISTER_FLAGS_SURFACE_LDST = cydriver.CUgraphicsRegisterFlags_enum.CU_GRAPHICS_REGISTER_FLAGS_SURFACE_LDST + + CU_GRAPHICS_REGISTER_FLAGS_TEXTURE_GATHER = cydriver.CUgraphicsRegisterFlags_enum.CU_GRAPHICS_REGISTER_FLAGS_TEXTURE_GATHER class CUgraphicsMapResourceFlags(_FastEnum): """ Flags for mapping and unmapping interop resources """ - {{if 'CU_GRAPHICS_MAP_RESOURCE_FLAGS_NONE' in found_values}} - CU_GRAPHICS_MAP_RESOURCE_FLAGS_NONE = cydriver.CUgraphicsMapResourceFlags_enum.CU_GRAPHICS_MAP_RESOURCE_FLAGS_NONE{{endif}} - {{if 'CU_GRAPHICS_MAP_RESOURCE_FLAGS_READ_ONLY' in found_values}} - CU_GRAPHICS_MAP_RESOURCE_FLAGS_READ_ONLY = cydriver.CUgraphicsMapResourceFlags_enum.CU_GRAPHICS_MAP_RESOURCE_FLAGS_READ_ONLY{{endif}} - {{if 'CU_GRAPHICS_MAP_RESOURCE_FLAGS_WRITE_DISCARD' in found_values}} - CU_GRAPHICS_MAP_RESOURCE_FLAGS_WRITE_DISCARD = cydriver.CUgraphicsMapResourceFlags_enum.CU_GRAPHICS_MAP_RESOURCE_FLAGS_WRITE_DISCARD{{endif}} -{{endif}} -{{if 'CUarray_cubemap_face_enum' in found_types}} + CU_GRAPHICS_MAP_RESOURCE_FLAGS_NONE = cydriver.CUgraphicsMapResourceFlags_enum.CU_GRAPHICS_MAP_RESOURCE_FLAGS_NONE + + CU_GRAPHICS_MAP_RESOURCE_FLAGS_READ_ONLY = cydriver.CUgraphicsMapResourceFlags_enum.CU_GRAPHICS_MAP_RESOURCE_FLAGS_READ_ONLY + + CU_GRAPHICS_MAP_RESOURCE_FLAGS_WRITE_DISCARD = cydriver.CUgraphicsMapResourceFlags_enum.CU_GRAPHICS_MAP_RESOURCE_FLAGS_WRITE_DISCARD class CUarray_cubemap_face(_FastEnum): """ Array indices for cube faces """ - {{if 'CU_CUBEMAP_FACE_POSITIVE_X' in found_values}} + CU_CUBEMAP_FACE_POSITIVE_X = ( cydriver.CUarray_cubemap_face_enum.CU_CUBEMAP_FACE_POSITIVE_X, 'Positive X face of cubemap\n' - ){{endif}} - {{if 'CU_CUBEMAP_FACE_NEGATIVE_X' in found_values}} + ) + CU_CUBEMAP_FACE_NEGATIVE_X = ( cydriver.CUarray_cubemap_face_enum.CU_CUBEMAP_FACE_NEGATIVE_X, 'Negative X face of cubemap\n' - ){{endif}} - {{if 'CU_CUBEMAP_FACE_POSITIVE_Y' in found_values}} + ) + CU_CUBEMAP_FACE_POSITIVE_Y = ( cydriver.CUarray_cubemap_face_enum.CU_CUBEMAP_FACE_POSITIVE_Y, 'Positive Y face of cubemap\n' - ){{endif}} - {{if 'CU_CUBEMAP_FACE_NEGATIVE_Y' in found_values}} + ) + CU_CUBEMAP_FACE_NEGATIVE_Y = ( cydriver.CUarray_cubemap_face_enum.CU_CUBEMAP_FACE_NEGATIVE_Y, 'Negative Y face of cubemap\n' - ){{endif}} - {{if 'CU_CUBEMAP_FACE_POSITIVE_Z' in found_values}} + ) + CU_CUBEMAP_FACE_POSITIVE_Z = ( cydriver.CUarray_cubemap_face_enum.CU_CUBEMAP_FACE_POSITIVE_Z, 'Positive Z face of cubemap\n' - ){{endif}} - {{if 'CU_CUBEMAP_FACE_NEGATIVE_Z' in found_values}} + ) + CU_CUBEMAP_FACE_NEGATIVE_Z = ( cydriver.CUarray_cubemap_face_enum.CU_CUBEMAP_FACE_NEGATIVE_Z, 'Negative Z face of cubemap\n' - ){{endif}} - -{{endif}} -{{if 'CUlimit_enum' in found_types}} + ) class CUlimit(_FastEnum): """ Limits """ - {{if 'CU_LIMIT_STACK_SIZE' in found_values}} + CU_LIMIT_STACK_SIZE = ( cydriver.CUlimit_enum.CU_LIMIT_STACK_SIZE, 'GPU thread stack size\n' - ){{endif}} - {{if 'CU_LIMIT_PRINTF_FIFO_SIZE' in found_values}} + ) + CU_LIMIT_PRINTF_FIFO_SIZE = ( cydriver.CUlimit_enum.CU_LIMIT_PRINTF_FIFO_SIZE, 'GPU printf FIFO size\n' - ){{endif}} - {{if 'CU_LIMIT_MALLOC_HEAP_SIZE' in found_values}} + ) + CU_LIMIT_MALLOC_HEAP_SIZE = ( cydriver.CUlimit_enum.CU_LIMIT_MALLOC_HEAP_SIZE, 'GPU malloc heap size\n' - ){{endif}} - {{if 'CU_LIMIT_DEV_RUNTIME_SYNC_DEPTH' in found_values}} + ) + CU_LIMIT_DEV_RUNTIME_SYNC_DEPTH = ( cydriver.CUlimit_enum.CU_LIMIT_DEV_RUNTIME_SYNC_DEPTH, 'GPU device runtime launch synchronize depth\n' - ){{endif}} - {{if 'CU_LIMIT_DEV_RUNTIME_PENDING_LAUNCH_COUNT' in found_values}} + ) + CU_LIMIT_DEV_RUNTIME_PENDING_LAUNCH_COUNT = ( cydriver.CUlimit_enum.CU_LIMIT_DEV_RUNTIME_PENDING_LAUNCH_COUNT, 'GPU device runtime pending launch count\n' - ){{endif}} - {{if 'CU_LIMIT_MAX_L2_FETCH_GRANULARITY' in found_values}} + ) + CU_LIMIT_MAX_L2_FETCH_GRANULARITY = ( cydriver.CUlimit_enum.CU_LIMIT_MAX_L2_FETCH_GRANULARITY, 'A value between 0 and 128 that indicates the maximum fetch granularity of\n' 'L2 (in Bytes). This is a hint\n' - ){{endif}} - {{if 'CU_LIMIT_PERSISTING_L2_CACHE_SIZE' in found_values}} + ) + CU_LIMIT_PERSISTING_L2_CACHE_SIZE = ( cydriver.CUlimit_enum.CU_LIMIT_PERSISTING_L2_CACHE_SIZE, 'A size in bytes for L2 persisting lines cache size\n' - ){{endif}} - {{if 'CU_LIMIT_SHMEM_SIZE' in found_values}} + ) + CU_LIMIT_SHMEM_SIZE = ( cydriver.CUlimit_enum.CU_LIMIT_SHMEM_SIZE, 'A maximum size in bytes of shared memory available to CUDA kernels on a CIG\n' 'context. Can only be queried, cannot be set\n' - ){{endif}} - {{if 'CU_LIMIT_CIG_ENABLED' in found_values}} + ) + CU_LIMIT_CIG_ENABLED = ( cydriver.CUlimit_enum.CU_LIMIT_CIG_ENABLED, 'A non-zero value indicates this CUDA context is a CIG-enabled context. Can\n' 'only be queried, cannot be set\n' - ){{endif}} - {{if 'CU_LIMIT_CIG_SHMEM_FALLBACK_ENABLED' in found_values}} + ) + CU_LIMIT_CIG_SHMEM_FALLBACK_ENABLED = ( cydriver.CUlimit_enum.CU_LIMIT_CIG_SHMEM_FALLBACK_ENABLED, 'When set to zero, CUDA will fail to launch a kernel on a CIG context,\n' 'instead of using the fallback path, if the kernel uses more shared memory\n' 'than available\n' - ){{endif}} - {{if 'CU_LIMIT_MAX' in found_values}} - CU_LIMIT_MAX = cydriver.CUlimit_enum.CU_LIMIT_MAX{{endif}} + ) -{{endif}} -{{if 'CUresourcetype_enum' in found_types}} + CU_LIMIT_MAX = cydriver.CUlimit_enum.CU_LIMIT_MAX class CUresourcetype(_FastEnum): """ Resource types """ - {{if 'CU_RESOURCE_TYPE_ARRAY' in found_values}} + CU_RESOURCE_TYPE_ARRAY = ( cydriver.CUresourcetype_enum.CU_RESOURCE_TYPE_ARRAY, 'Array resource\n' - ){{endif}} - {{if 'CU_RESOURCE_TYPE_MIPMAPPED_ARRAY' in found_values}} + ) + CU_RESOURCE_TYPE_MIPMAPPED_ARRAY = ( cydriver.CUresourcetype_enum.CU_RESOURCE_TYPE_MIPMAPPED_ARRAY, 'Mipmapped array resource\n' - ){{endif}} - {{if 'CU_RESOURCE_TYPE_LINEAR' in found_values}} + ) + CU_RESOURCE_TYPE_LINEAR = ( cydriver.CUresourcetype_enum.CU_RESOURCE_TYPE_LINEAR, 'Linear resource\n' - ){{endif}} - {{if 'CU_RESOURCE_TYPE_PITCH2D' in found_values}} + ) + CU_RESOURCE_TYPE_PITCH2D = ( cydriver.CUresourcetype_enum.CU_RESOURCE_TYPE_PITCH2D, 'Pitch 2D resource\n' - ){{endif}} - -{{endif}} -{{if 'CUaccessProperty_enum' in found_types}} + ) class CUaccessProperty(_FastEnum): """ Specifies performance hint with :py:obj:`~.CUaccessPolicyWindow` for hitProp and missProp members. """ - {{if 'CU_ACCESS_PROPERTY_NORMAL' in found_values}} + CU_ACCESS_PROPERTY_NORMAL = ( cydriver.CUaccessProperty_enum.CU_ACCESS_PROPERTY_NORMAL, 'Normal cache persistence.\n' - ){{endif}} - {{if 'CU_ACCESS_PROPERTY_STREAMING' in found_values}} + ) + CU_ACCESS_PROPERTY_STREAMING = ( cydriver.CUaccessProperty_enum.CU_ACCESS_PROPERTY_STREAMING, 'Streaming access is less likely to persit from cache.\n' - ){{endif}} - {{if 'CU_ACCESS_PROPERTY_PERSISTING' in found_values}} + ) + CU_ACCESS_PROPERTY_PERSISTING = ( cydriver.CUaccessProperty_enum.CU_ACCESS_PROPERTY_PERSISTING, 'Persisting access is more likely to persist in cache.\n' - ){{endif}} - -{{endif}} -{{if 'CUgraphConditionalNodeType_enum' in found_types}} + ) class CUgraphConditionalNodeType(_FastEnum): """ Conditional node types """ - {{if 'CU_GRAPH_COND_TYPE_IF' in found_values}} + CU_GRAPH_COND_TYPE_IF = ( cydriver.CUgraphConditionalNodeType_enum.CU_GRAPH_COND_TYPE_IF, "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 'CU_GRAPH_COND_TYPE_WHILE' in found_values}} + ) + CU_GRAPH_COND_TYPE_WHILE = ( cydriver.CUgraphConditionalNodeType_enum.CU_GRAPH_COND_TYPE_WHILE, "Conditional 'while' Node. Body executed repeatedly while condition value is\n" 'non-zero.\n' - ){{endif}} - {{if 'CU_GRAPH_COND_TYPE_SWITCH' in found_values}} + ) + CU_GRAPH_COND_TYPE_SWITCH = ( cydriver.CUgraphConditionalNodeType_enum.CU_GRAPH_COND_TYPE_SWITCH, "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 'CUgraphNodeType_enum' in found_types}} + ) class CUgraphNodeType(_FastEnum): """ Graph node types """ - {{if 'CU_GRAPH_NODE_TYPE_KERNEL' in found_values}} + CU_GRAPH_NODE_TYPE_KERNEL = ( cydriver.CUgraphNodeType_enum.CU_GRAPH_NODE_TYPE_KERNEL, 'GPU kernel node\n' - ){{endif}} - {{if 'CU_GRAPH_NODE_TYPE_MEMCPY' in found_values}} + ) + CU_GRAPH_NODE_TYPE_MEMCPY = ( cydriver.CUgraphNodeType_enum.CU_GRAPH_NODE_TYPE_MEMCPY, 'Memcpy node\n' - ){{endif}} - {{if 'CU_GRAPH_NODE_TYPE_MEMSET' in found_values}} + ) + CU_GRAPH_NODE_TYPE_MEMSET = ( cydriver.CUgraphNodeType_enum.CU_GRAPH_NODE_TYPE_MEMSET, 'Memset node\n' - ){{endif}} - {{if 'CU_GRAPH_NODE_TYPE_HOST' in found_values}} + ) + CU_GRAPH_NODE_TYPE_HOST = ( cydriver.CUgraphNodeType_enum.CU_GRAPH_NODE_TYPE_HOST, 'Host (executable) node\n' - ){{endif}} - {{if 'CU_GRAPH_NODE_TYPE_GRAPH' in found_values}} + ) + CU_GRAPH_NODE_TYPE_GRAPH = ( cydriver.CUgraphNodeType_enum.CU_GRAPH_NODE_TYPE_GRAPH, 'Node which executes an embedded graph\n' - ){{endif}} - {{if 'CU_GRAPH_NODE_TYPE_EMPTY' in found_values}} + ) + CU_GRAPH_NODE_TYPE_EMPTY = ( cydriver.CUgraphNodeType_enum.CU_GRAPH_NODE_TYPE_EMPTY, 'Empty (no-op) node\n' - ){{endif}} - {{if 'CU_GRAPH_NODE_TYPE_WAIT_EVENT' in found_values}} + ) + CU_GRAPH_NODE_TYPE_WAIT_EVENT = ( cydriver.CUgraphNodeType_enum.CU_GRAPH_NODE_TYPE_WAIT_EVENT, 'External event wait node\n' - ){{endif}} - {{if 'CU_GRAPH_NODE_TYPE_EVENT_RECORD' in found_values}} + ) + CU_GRAPH_NODE_TYPE_EVENT_RECORD = ( cydriver.CUgraphNodeType_enum.CU_GRAPH_NODE_TYPE_EVENT_RECORD, 'External event record node\n' - ){{endif}} - {{if 'CU_GRAPH_NODE_TYPE_EXT_SEMAS_SIGNAL' in found_values}} + ) + CU_GRAPH_NODE_TYPE_EXT_SEMAS_SIGNAL = ( cydriver.CUgraphNodeType_enum.CU_GRAPH_NODE_TYPE_EXT_SEMAS_SIGNAL, 'External semaphore signal node\n' - ){{endif}} - {{if 'CU_GRAPH_NODE_TYPE_EXT_SEMAS_WAIT' in found_values}} + ) + CU_GRAPH_NODE_TYPE_EXT_SEMAS_WAIT = ( cydriver.CUgraphNodeType_enum.CU_GRAPH_NODE_TYPE_EXT_SEMAS_WAIT, 'External semaphore wait node\n' - ){{endif}} - {{if 'CU_GRAPH_NODE_TYPE_MEM_ALLOC' in found_values}} + ) + CU_GRAPH_NODE_TYPE_MEM_ALLOC = ( cydriver.CUgraphNodeType_enum.CU_GRAPH_NODE_TYPE_MEM_ALLOC, 'Memory Allocation Node\n' - ){{endif}} - {{if 'CU_GRAPH_NODE_TYPE_MEM_FREE' in found_values}} + ) + CU_GRAPH_NODE_TYPE_MEM_FREE = ( cydriver.CUgraphNodeType_enum.CU_GRAPH_NODE_TYPE_MEM_FREE, 'Memory Free Node\n' - ){{endif}} - {{if 'CU_GRAPH_NODE_TYPE_BATCH_MEM_OP' in found_values}} + ) + CU_GRAPH_NODE_TYPE_BATCH_MEM_OP = ( cydriver.CUgraphNodeType_enum.CU_GRAPH_NODE_TYPE_BATCH_MEM_OP, 'Batch MemOp Node See :py:obj:`~.cuStreamBatchMemOp` and\n' ':py:obj:`~.CUstreamBatchMemOpType` for what these nodes can do.\n' - ){{endif}} - {{if 'CU_GRAPH_NODE_TYPE_CONDITIONAL' in found_values}} + ) + CU_GRAPH_NODE_TYPE_CONDITIONAL = ( cydriver.CUgraphNodeType_enum.CU_GRAPH_NODE_TYPE_CONDITIONAL, @@ -3963,23 +3820,20 @@ class CUgraphNodeType(_FastEnum): 'default value when creating the handle and/or\n' ' call\n' ':py:obj:`~.cudaGraphSetConditional` from device code.\n' - ){{endif}} - -{{endif}} -{{if 'CUgraphDependencyType_enum' in found_types}} + ) class CUgraphDependencyType(_FastEnum): """ Type annotations that can be applied to graph edges as part of :py:obj:`~.CUgraphEdgeData`. """ - {{if 'CU_GRAPH_DEPENDENCY_TYPE_DEFAULT' in found_values}} + CU_GRAPH_DEPENDENCY_TYPE_DEFAULT = ( cydriver.CUgraphDependencyType_enum.CU_GRAPH_DEPENDENCY_TYPE_DEFAULT, 'This is an ordinary dependency.\n' - ){{endif}} - {{if 'CU_GRAPH_DEPENDENCY_TYPE_PROGRAMMATIC' in found_values}} + ) + CU_GRAPH_DEPENDENCY_TYPE_PROGRAMMATIC = ( cydriver.CUgraphDependencyType_enum.CU_GRAPH_DEPENDENCY_TYPE_PROGRAMMATIC, @@ -3988,100 +3842,88 @@ class CUgraphDependencyType(_FastEnum): 'nodes, and must be used with either the\n' ':py:obj:`~.CU_GRAPH_KERNEL_NODE_PORT_PROGRAMMATIC` or\n' ':py:obj:`~.CU_GRAPH_KERNEL_NODE_PORT_LAUNCH_ORDER` outgoing port.\n' - ){{endif}} - -{{endif}} -{{if 'CUgraphInstantiateResult_enum' in found_types}} + ) class CUgraphInstantiateResult(_FastEnum): """ Graph instantiation results """ - {{if 'CUDA_GRAPH_INSTANTIATE_SUCCESS' in found_values}} + CUDA_GRAPH_INSTANTIATE_SUCCESS = ( cydriver.CUgraphInstantiateResult_enum.CUDA_GRAPH_INSTANTIATE_SUCCESS, 'Instantiation succeeded\n' - ){{endif}} - {{if 'CUDA_GRAPH_INSTANTIATE_ERROR' in found_values}} + ) + CUDA_GRAPH_INSTANTIATE_ERROR = ( cydriver.CUgraphInstantiateResult_enum.CUDA_GRAPH_INSTANTIATE_ERROR, 'Instantiation failed for an unexpected reason which is described in the\n' 'return value of the function\n' - ){{endif}} - {{if 'CUDA_GRAPH_INSTANTIATE_INVALID_STRUCTURE' in found_values}} + ) + CUDA_GRAPH_INSTANTIATE_INVALID_STRUCTURE = ( cydriver.CUgraphInstantiateResult_enum.CUDA_GRAPH_INSTANTIATE_INVALID_STRUCTURE, 'Instantiation failed due to invalid structure, such as cycles\n' - ){{endif}} - {{if 'CUDA_GRAPH_INSTANTIATE_NODE_OPERATION_NOT_SUPPORTED' in found_values}} + ) + CUDA_GRAPH_INSTANTIATE_NODE_OPERATION_NOT_SUPPORTED = ( cydriver.CUgraphInstantiateResult_enum.CUDA_GRAPH_INSTANTIATE_NODE_OPERATION_NOT_SUPPORTED, 'Instantiation for device launch failed because the graph contained an\n' 'unsupported operation\n' - ){{endif}} - {{if 'CUDA_GRAPH_INSTANTIATE_MULTIPLE_CTXS_NOT_SUPPORTED' in found_values}} + ) + CUDA_GRAPH_INSTANTIATE_MULTIPLE_CTXS_NOT_SUPPORTED = ( cydriver.CUgraphInstantiateResult_enum.CUDA_GRAPH_INSTANTIATE_MULTIPLE_CTXS_NOT_SUPPORTED, 'Instantiation for device launch failed due to the nodes belonging to\n' 'different contexts\n' - ){{endif}} - {{if 'CUDA_GRAPH_INSTANTIATE_CONDITIONAL_HANDLE_UNUSED' in found_values}} + ) + CUDA_GRAPH_INSTANTIATE_CONDITIONAL_HANDLE_UNUSED = ( cydriver.CUgraphInstantiateResult_enum.CUDA_GRAPH_INSTANTIATE_CONDITIONAL_HANDLE_UNUSED, 'One or more conditional handles are not associated with conditional nodes\n' - ){{endif}} - -{{endif}} -{{if 'CUsynchronizationPolicy_enum' in found_types}} + ) class CUsynchronizationPolicy(_FastEnum): """ """ - {{if 'CU_SYNC_POLICY_AUTO' in found_values}} - CU_SYNC_POLICY_AUTO = cydriver.CUsynchronizationPolicy_enum.CU_SYNC_POLICY_AUTO{{endif}} - {{if 'CU_SYNC_POLICY_SPIN' in found_values}} - CU_SYNC_POLICY_SPIN = cydriver.CUsynchronizationPolicy_enum.CU_SYNC_POLICY_SPIN{{endif}} - {{if 'CU_SYNC_POLICY_YIELD' in found_values}} - CU_SYNC_POLICY_YIELD = cydriver.CUsynchronizationPolicy_enum.CU_SYNC_POLICY_YIELD{{endif}} - {{if 'CU_SYNC_POLICY_BLOCKING_SYNC' in found_values}} - CU_SYNC_POLICY_BLOCKING_SYNC = cydriver.CUsynchronizationPolicy_enum.CU_SYNC_POLICY_BLOCKING_SYNC{{endif}} -{{endif}} -{{if 'CUclusterSchedulingPolicy_enum' in found_types}} + CU_SYNC_POLICY_AUTO = cydriver.CUsynchronizationPolicy_enum.CU_SYNC_POLICY_AUTO + + CU_SYNC_POLICY_SPIN = cydriver.CUsynchronizationPolicy_enum.CU_SYNC_POLICY_SPIN + + CU_SYNC_POLICY_YIELD = cydriver.CUsynchronizationPolicy_enum.CU_SYNC_POLICY_YIELD + + CU_SYNC_POLICY_BLOCKING_SYNC = cydriver.CUsynchronizationPolicy_enum.CU_SYNC_POLICY_BLOCKING_SYNC class CUclusterSchedulingPolicy(_FastEnum): """ Cluster scheduling policies. These may be passed to :py:obj:`~.cuFuncSetAttribute` or :py:obj:`~.cuKernelSetAttribute` """ - {{if 'CU_CLUSTER_SCHEDULING_POLICY_DEFAULT' in found_values}} + CU_CLUSTER_SCHEDULING_POLICY_DEFAULT = ( cydriver.CUclusterSchedulingPolicy_enum.CU_CLUSTER_SCHEDULING_POLICY_DEFAULT, 'the default policy\n' - ){{endif}} - {{if 'CU_CLUSTER_SCHEDULING_POLICY_SPREAD' in found_values}} + ) + CU_CLUSTER_SCHEDULING_POLICY_SPREAD = ( cydriver.CUclusterSchedulingPolicy_enum.CU_CLUSTER_SCHEDULING_POLICY_SPREAD, 'spread the blocks within a cluster to the SMs\n' - ){{endif}} - {{if 'CU_CLUSTER_SCHEDULING_POLICY_LOAD_BALANCING' in found_values}} + ) + CU_CLUSTER_SCHEDULING_POLICY_LOAD_BALANCING = ( cydriver.CUclusterSchedulingPolicy_enum.CU_CLUSTER_SCHEDULING_POLICY_LOAD_BALANCING, 'allow the hardware to load-balance the blocks in a cluster to the SMs\n' - ){{endif}} - -{{endif}} -{{if 'CUlaunchMemSyncDomain_enum' in found_types}} + ) class CUlaunchMemSyncDomain(_FastEnum): """ @@ -4104,129 +3946,120 @@ class CUlaunchMemSyncDomain(_FastEnum): by kernels in another memory synchronization domain even if they are on the same GPU. """ - {{if 'CU_LAUNCH_MEM_SYNC_DOMAIN_DEFAULT' in found_values}} + CU_LAUNCH_MEM_SYNC_DOMAIN_DEFAULT = ( cydriver.CUlaunchMemSyncDomain_enum.CU_LAUNCH_MEM_SYNC_DOMAIN_DEFAULT, 'Launch kernels in the default domain\n' - ){{endif}} - {{if 'CU_LAUNCH_MEM_SYNC_DOMAIN_REMOTE' in found_values}} + ) + CU_LAUNCH_MEM_SYNC_DOMAIN_REMOTE = ( cydriver.CUlaunchMemSyncDomain_enum.CU_LAUNCH_MEM_SYNC_DOMAIN_REMOTE, 'Launch kernels in the remote domain\n' - ){{endif}} - -{{endif}} -{{if 'CUlaunchAttributePortableClusterMode_enum' in found_types}} + ) class CUlaunchAttributePortableClusterMode(_FastEnum): """ Enum for defining applicability of portable cluster size, used with :py:obj:`~.cuLaunchKernelEx` """ - {{if 'CU_LAUNCH_PORTABLE_CLUSTER_MODE_DEFAULT' in found_values}} + CU_LAUNCH_PORTABLE_CLUSTER_MODE_DEFAULT = ( cydriver.CUlaunchAttributePortableClusterMode_enum.CU_LAUNCH_PORTABLE_CLUSTER_MODE_DEFAULT, 'The default to use for allowing non-portable cluster size on launch - uses\n' 'current function attribute for\n' ':py:obj:`~.CU_FUNC_ATTRIBUTE_NON_PORTABLE_CLUSTER_SIZE_ALLOWED`\n' - ){{endif}} - {{if 'CU_LAUNCH_PORTABLE_CLUSTER_MODE_REQUIRE_PORTABLE' in found_values}} + ) + CU_LAUNCH_PORTABLE_CLUSTER_MODE_REQUIRE_PORTABLE = ( cydriver.CUlaunchAttributePortableClusterMode_enum.CU_LAUNCH_PORTABLE_CLUSTER_MODE_REQUIRE_PORTABLE, 'Specifies that the cluster size requested must be a portable size\n' - ){{endif}} - {{if 'CU_LAUNCH_PORTABLE_CLUSTER_MODE_ALLOW_NON_PORTABLE' in found_values}} + ) + CU_LAUNCH_PORTABLE_CLUSTER_MODE_ALLOW_NON_PORTABLE = ( cydriver.CUlaunchAttributePortableClusterMode_enum.CU_LAUNCH_PORTABLE_CLUSTER_MODE_ALLOW_NON_PORTABLE, 'Specifies that the cluster size requested may be a non-portable size\n' - ){{endif}} - -{{endif}} -{{if 'CUsharedMemoryMode_enum' in found_types}} + ) class CUsharedMemoryMode(_FastEnum): """ Shared memory related attributes for use with :py:obj:`~.cuLaunchKernelEx` """ - {{if 'CU_SHARED_MEMORY_MODE_DEFAULT' in found_values}} + CU_SHARED_MEMORY_MODE_DEFAULT = ( cydriver.CUsharedMemoryMode_enum.CU_SHARED_MEMORY_MODE_DEFAULT, 'The default to use for shared memory on launch - uses current function\n' 'attribute for :py:obj:`~.CU_FUNC_ATTRIBUTE_MAX_DYNAMIC_SHARED_SIZE_BYTES`\n' - ){{endif}} - {{if 'CU_SHARED_MEMORY_MODE_REQUIRE_PORTABLE' in found_values}} + ) + CU_SHARED_MEMORY_MODE_REQUIRE_PORTABLE = ( cydriver.CUsharedMemoryMode_enum.CU_SHARED_MEMORY_MODE_REQUIRE_PORTABLE, 'Specifies that the dynamic shared size bytes requested must be a portable\n' 'size within the bounds of\n' ':py:obj:`~.CU_DEVICE_ATTRIBUTE_MAX_SHARED_MEMORY_PER_BLOCK`\n' - ){{endif}} - {{if 'CU_SHARED_MEMORY_MODE_ALLOW_NON_PORTABLE' in found_values}} + ) + CU_SHARED_MEMORY_MODE_ALLOW_NON_PORTABLE = ( cydriver.CUsharedMemoryMode_enum.CU_SHARED_MEMORY_MODE_ALLOW_NON_PORTABLE, 'Specifies that the dynamic shared size bytes requested may be a non-\n' 'portable size but still within the bounds of\n' ':py:obj:`~.CU_DEVICE_ATTRIBUTE_MAX_SHARED_MEMORY_PER_BLOCK_OPTIN`\n' - ){{endif}} - -{{endif}} -{{if 'CUlaunchAttributeID_enum' in found_types}} + ) class CUlaunchAttributeID(_FastEnum): """ Launch attributes enum; used as id field of :py:obj:`~.CUlaunchAttribute` """ - {{if 'CU_LAUNCH_ATTRIBUTE_IGNORE' in found_values}} + CU_LAUNCH_ATTRIBUTE_IGNORE = ( cydriver.CUlaunchAttributeID_enum.CU_LAUNCH_ATTRIBUTE_IGNORE, 'Ignored entry, for convenient composition\n' - ){{endif}} - {{if 'CU_LAUNCH_ATTRIBUTE_ACCESS_POLICY_WINDOW' in found_values}} + ) + CU_LAUNCH_ATTRIBUTE_ACCESS_POLICY_WINDOW = ( cydriver.CUlaunchAttributeID_enum.CU_LAUNCH_ATTRIBUTE_ACCESS_POLICY_WINDOW, 'Valid for streams, graph nodes, launches. See\n' ':py:obj:`~.CUlaunchAttributeValue.accessPolicyWindow`.\n' - ){{endif}} - {{if 'CU_LAUNCH_ATTRIBUTE_COOPERATIVE' in found_values}} + ) + CU_LAUNCH_ATTRIBUTE_COOPERATIVE = ( cydriver.CUlaunchAttributeID_enum.CU_LAUNCH_ATTRIBUTE_COOPERATIVE, 'Valid for graph nodes, launches. See\n' ':py:obj:`~.CUlaunchAttributeValue.cooperative`.\n' - ){{endif}} - {{if 'CU_LAUNCH_ATTRIBUTE_SYNCHRONIZATION_POLICY' in found_values}} + ) + CU_LAUNCH_ATTRIBUTE_SYNCHRONIZATION_POLICY = ( cydriver.CUlaunchAttributeID_enum.CU_LAUNCH_ATTRIBUTE_SYNCHRONIZATION_POLICY, 'Valid for streams. See :py:obj:`~.CUlaunchAttributeValue.syncPolicy`.\n' - ){{endif}} - {{if 'CU_LAUNCH_ATTRIBUTE_CLUSTER_DIMENSION' in found_values}} + ) + CU_LAUNCH_ATTRIBUTE_CLUSTER_DIMENSION = ( cydriver.CUlaunchAttributeID_enum.CU_LAUNCH_ATTRIBUTE_CLUSTER_DIMENSION, 'Valid for graph nodes, launches. See\n' ':py:obj:`~.CUlaunchAttributeValue.clusterDim`.\n' - ){{endif}} - {{if 'CU_LAUNCH_ATTRIBUTE_CLUSTER_SCHEDULING_POLICY_PREFERENCE' in found_values}} + ) + CU_LAUNCH_ATTRIBUTE_CLUSTER_SCHEDULING_POLICY_PREFERENCE = ( cydriver.CUlaunchAttributeID_enum.CU_LAUNCH_ATTRIBUTE_CLUSTER_SCHEDULING_POLICY_PREFERENCE, 'Valid for graph nodes, launches. See\n' ':py:obj:`~.CUlaunchAttributeValue.clusterSchedulingPolicyPreference`.\n' - ){{endif}} - {{if 'CU_LAUNCH_ATTRIBUTE_PROGRAMMATIC_STREAM_SERIALIZATION' in found_values}} + ) + CU_LAUNCH_ATTRIBUTE_PROGRAMMATIC_STREAM_SERIALIZATION = ( cydriver.CUlaunchAttributeID_enum.CU_LAUNCH_ATTRIBUTE_PROGRAMMATIC_STREAM_SERIALIZATION, @@ -4238,8 +4071,8 @@ class CUlaunchAttributeID(_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 'CU_LAUNCH_ATTRIBUTE_PROGRAMMATIC_EVENT' in found_values}} + ) + CU_LAUNCH_ATTRIBUTE_PROGRAMMATIC_EVENT = ( cydriver.CUlaunchAttributeID_enum.CU_LAUNCH_ATTRIBUTE_PROGRAMMATIC_EVENT, @@ -4263,29 +4096,29 @@ class CUlaunchAttributeID(_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:`~.CU_EVENT_DISABLE_TIMING` flag set).\n' - ){{endif}} - {{if 'CU_LAUNCH_ATTRIBUTE_PRIORITY' in found_values}} + ) + CU_LAUNCH_ATTRIBUTE_PRIORITY = ( cydriver.CUlaunchAttributeID_enum.CU_LAUNCH_ATTRIBUTE_PRIORITY, 'Valid for streams, graph nodes, launches. See\n' ':py:obj:`~.CUlaunchAttributeValue.priority`.\n' - ){{endif}} - {{if 'CU_LAUNCH_ATTRIBUTE_MEM_SYNC_DOMAIN_MAP' in found_values}} + ) + CU_LAUNCH_ATTRIBUTE_MEM_SYNC_DOMAIN_MAP = ( cydriver.CUlaunchAttributeID_enum.CU_LAUNCH_ATTRIBUTE_MEM_SYNC_DOMAIN_MAP, 'Valid for streams, graph nodes, launches. See\n' ':py:obj:`~.CUlaunchAttributeValue.memSyncDomainMap`.\n' - ){{endif}} - {{if 'CU_LAUNCH_ATTRIBUTE_MEM_SYNC_DOMAIN' in found_values}} + ) + CU_LAUNCH_ATTRIBUTE_MEM_SYNC_DOMAIN = ( cydriver.CUlaunchAttributeID_enum.CU_LAUNCH_ATTRIBUTE_MEM_SYNC_DOMAIN, 'Valid for streams, graph nodes, launches. See\n' ':py:obj:`~.CUlaunchAttributeValue.memSyncDomain`.\n' - ){{endif}} - {{if 'CU_LAUNCH_ATTRIBUTE_PREFERRED_CLUSTER_DIMENSION' in found_values}} + ) + CU_LAUNCH_ATTRIBUTE_PREFERRED_CLUSTER_DIMENSION = ( cydriver.CUlaunchAttributeID_enum.CU_LAUNCH_ATTRIBUTE_PREFERRED_CLUSTER_DIMENSION, @@ -4318,8 +4151,8 @@ class CUlaunchAttributeID(_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 'CU_LAUNCH_ATTRIBUTE_LAUNCH_COMPLETION_EVENT' in found_values}} + ) + CU_LAUNCH_ATTRIBUTE_LAUNCH_COMPLETION_EVENT = ( cydriver.CUlaunchAttributeID_enum.CU_LAUNCH_ATTRIBUTE_LAUNCH_COMPLETION_EVENT, @@ -4340,8 +4173,8 @@ class CUlaunchAttributeID(_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:`~.CU_EVENT_DISABLE_TIMING` flag set).\n' - ){{endif}} - {{if 'CU_LAUNCH_ATTRIBUTE_DEVICE_UPDATABLE_KERNEL_NODE' in found_values}} + ) + CU_LAUNCH_ATTRIBUTE_DEVICE_UPDATABLE_KERNEL_NODE = ( cydriver.CUlaunchAttributeID_enum.CU_LAUNCH_ATTRIBUTE_DEVICE_UPDATABLE_KERNEL_NODE, @@ -4371,8 +4204,8 @@ class CUlaunchAttributeID(_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 'CU_LAUNCH_ATTRIBUTE_PREFERRED_SHARED_MEMORY_CARVEOUT' in found_values}} + ) + CU_LAUNCH_ATTRIBUTE_PREFERRED_SHARED_MEMORY_CARVEOUT = ( cydriver.CUlaunchAttributeID_enum.CU_LAUNCH_ATTRIBUTE_PREFERRED_SHARED_MEMORY_CARVEOUT, @@ -4385,8 +4218,8 @@ class CUlaunchAttributeID(_FastEnum): ':py:obj:`~.CU_FUNC_ATTRIBUTE_PREFERRED_SHARED_MEMORY_CARVEOUT`. This is\n' 'only a hint, and the CUDA driver can choose a different configuration if\n' 'required for the launch.\n' - ){{endif}} - {{if 'CU_LAUNCH_ATTRIBUTE_NVLINK_UTIL_CENTRIC_SCHEDULING' in found_values}} + ) + CU_LAUNCH_ATTRIBUTE_NVLINK_UTIL_CENTRIC_SCHEDULING = ( cydriver.CUlaunchAttributeID_enum.CU_LAUNCH_ATTRIBUTE_NVLINK_UTIL_CENTRIC_SCHEDULING, @@ -4407,8 +4240,8 @@ class CUlaunchAttributeID(_FastEnum): ' Valid values for\n' ':py:obj:`~.CUlaunchAttributeValue.nvlinkUtilCentricScheduling` are 0\n' '(disabled) and 1 (enabled).\n' - ){{endif}} - {{if 'CU_LAUNCH_ATTRIBUTE_PORTABLE_CLUSTER_SIZE_MODE' in found_values}} + ) + CU_LAUNCH_ATTRIBUTE_PORTABLE_CLUSTER_SIZE_MODE = ( cydriver.CUlaunchAttributeID_enum.CU_LAUNCH_ATTRIBUTE_PORTABLE_CLUSTER_SIZE_MODE, @@ -4417,45 +4250,39 @@ class CUlaunchAttributeID(_FastEnum): ':py:obj:`~.CUlaunchAttributeValue.portableClusterSizeMode` are described in\n' ':py:obj:`~.CUlaunchAttributePortableClusterMode`. Any other value will\n' 'return :py:obj:`~.CUDA_ERROR_INVALID_VALUE`\n' - ){{endif}} - {{if 'CU_LAUNCH_ATTRIBUTE_SHARED_MEMORY_MODE' in found_values}} + ) + CU_LAUNCH_ATTRIBUTE_SHARED_MEMORY_MODE = ( cydriver.CUlaunchAttributeID_enum.CU_LAUNCH_ATTRIBUTE_SHARED_MEMORY_MODE, 'Valid for graph nodes, launches. This indicates if the kernel is allowed to\n' 'use a non-portable dynamic shared memory mode.\n' - ){{endif}} - -{{endif}} -{{if 'CUstreamCaptureStatus_enum' in found_types}} + ) class CUstreamCaptureStatus(_FastEnum): """ Possible stream capture statuses returned by :py:obj:`~.cuStreamIsCapturing` """ - {{if 'CU_STREAM_CAPTURE_STATUS_NONE' in found_values}} + CU_STREAM_CAPTURE_STATUS_NONE = ( cydriver.CUstreamCaptureStatus_enum.CU_STREAM_CAPTURE_STATUS_NONE, 'Stream is not capturing\n' - ){{endif}} - {{if 'CU_STREAM_CAPTURE_STATUS_ACTIVE' in found_values}} + ) + CU_STREAM_CAPTURE_STATUS_ACTIVE = ( cydriver.CUstreamCaptureStatus_enum.CU_STREAM_CAPTURE_STATUS_ACTIVE, 'Stream is actively capturing\n' - ){{endif}} - {{if 'CU_STREAM_CAPTURE_STATUS_INVALIDATED' in found_values}} + ) + CU_STREAM_CAPTURE_STATUS_INVALIDATED = ( cydriver.CUstreamCaptureStatus_enum.CU_STREAM_CAPTURE_STATUS_INVALIDATED, 'Stream is part of a capture sequence that has been invalidated, but not\n' 'terminated\n' - ){{endif}} - -{{endif}} -{{if 'CUstreamCaptureMode_enum' in found_types}} + ) class CUstreamCaptureMode(_FastEnum): """ @@ -4463,119 +4290,101 @@ class CUstreamCaptureMode(_FastEnum): details see :py:obj:`~.cuStreamBeginCapture` and :py:obj:`~.cuThreadExchangeStreamCaptureMode` """ - {{if 'CU_STREAM_CAPTURE_MODE_GLOBAL' in found_values}} - CU_STREAM_CAPTURE_MODE_GLOBAL = cydriver.CUstreamCaptureMode_enum.CU_STREAM_CAPTURE_MODE_GLOBAL{{endif}} - {{if 'CU_STREAM_CAPTURE_MODE_THREAD_LOCAL' in found_values}} - CU_STREAM_CAPTURE_MODE_THREAD_LOCAL = cydriver.CUstreamCaptureMode_enum.CU_STREAM_CAPTURE_MODE_THREAD_LOCAL{{endif}} - {{if 'CU_STREAM_CAPTURE_MODE_RELAXED' in found_values}} - CU_STREAM_CAPTURE_MODE_RELAXED = cydriver.CUstreamCaptureMode_enum.CU_STREAM_CAPTURE_MODE_RELAXED{{endif}} -{{endif}} -{{if 'CUdriverProcAddress_flags_enum' in found_types}} + CU_STREAM_CAPTURE_MODE_GLOBAL = cydriver.CUstreamCaptureMode_enum.CU_STREAM_CAPTURE_MODE_GLOBAL + + CU_STREAM_CAPTURE_MODE_THREAD_LOCAL = cydriver.CUstreamCaptureMode_enum.CU_STREAM_CAPTURE_MODE_THREAD_LOCAL + + CU_STREAM_CAPTURE_MODE_RELAXED = cydriver.CUstreamCaptureMode_enum.CU_STREAM_CAPTURE_MODE_RELAXED class CUdriverProcAddress_flags(_FastEnum): """ Flags to specify search options. For more details see :py:obj:`~.cuGetProcAddress` """ - {{if 'CU_GET_PROC_ADDRESS_DEFAULT' in found_values}} + CU_GET_PROC_ADDRESS_DEFAULT = ( cydriver.CUdriverProcAddress_flags_enum.CU_GET_PROC_ADDRESS_DEFAULT, 'Default search mode for driver symbols.\n' - ){{endif}} - {{if 'CU_GET_PROC_ADDRESS_LEGACY_STREAM' in found_values}} + ) + CU_GET_PROC_ADDRESS_LEGACY_STREAM = ( cydriver.CUdriverProcAddress_flags_enum.CU_GET_PROC_ADDRESS_LEGACY_STREAM, 'Search for legacy versions of driver symbols.\n' - ){{endif}} - {{if 'CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM' in found_values}} + ) + CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM = ( cydriver.CUdriverProcAddress_flags_enum.CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM, 'Search for per-thread versions of driver symbols.\n' - ){{endif}} - -{{endif}} -{{if 'CUdriverProcAddressQueryResult_enum' in found_types}} + ) class CUdriverProcAddressQueryResult(_FastEnum): """ Flags to indicate search status. For more details see :py:obj:`~.cuGetProcAddress` """ - {{if 'CU_GET_PROC_ADDRESS_SUCCESS' in found_values}} + CU_GET_PROC_ADDRESS_SUCCESS = ( cydriver.CUdriverProcAddressQueryResult_enum.CU_GET_PROC_ADDRESS_SUCCESS, 'Symbol was succesfully found\n' - ){{endif}} - {{if 'CU_GET_PROC_ADDRESS_SYMBOL_NOT_FOUND' in found_values}} + ) + CU_GET_PROC_ADDRESS_SYMBOL_NOT_FOUND = ( cydriver.CUdriverProcAddressQueryResult_enum.CU_GET_PROC_ADDRESS_SYMBOL_NOT_FOUND, 'Symbol was not found in search\n' - ){{endif}} - {{if 'CU_GET_PROC_ADDRESS_VERSION_NOT_SUFFICIENT' in found_values}} + ) + CU_GET_PROC_ADDRESS_VERSION_NOT_SUFFICIENT = ( cydriver.CUdriverProcAddressQueryResult_enum.CU_GET_PROC_ADDRESS_VERSION_NOT_SUFFICIENT, 'Symbol was found but version supplied was not sufficient\n' - ){{endif}} - -{{endif}} -{{if 'CUexecAffinityType_enum' in found_types}} + ) class CUexecAffinityType(_FastEnum): """ Execution Affinity Types """ - {{if 'CU_EXEC_AFFINITY_TYPE_SM_COUNT' in found_values}} + CU_EXEC_AFFINITY_TYPE_SM_COUNT = ( cydriver.CUexecAffinityType_enum.CU_EXEC_AFFINITY_TYPE_SM_COUNT, 'Create a context with limited SMs.\n' - ){{endif}} - {{if 'CU_EXEC_AFFINITY_TYPE_MAX' in found_values}} - CU_EXEC_AFFINITY_TYPE_MAX = cydriver.CUexecAffinityType_enum.CU_EXEC_AFFINITY_TYPE_MAX{{endif}} + ) -{{endif}} -{{if 'CUcigDataType_enum' in found_types}} + CU_EXEC_AFFINITY_TYPE_MAX = cydriver.CUexecAffinityType_enum.CU_EXEC_AFFINITY_TYPE_MAX class CUcigDataType(_FastEnum): """ """ - {{if 'CIG_DATA_TYPE_D3D12_COMMAND_QUEUE' in found_values}} + CIG_DATA_TYPE_D3D12_COMMAND_QUEUE = ( cydriver.CUcigDataType_enum.CIG_DATA_TYPE_D3D12_COMMAND_QUEUE, 'D3D12 Command Queue Handle\n' - ){{endif}} - {{if 'CIG_DATA_TYPE_NV_BLOB' in found_values}} + ) + CIG_DATA_TYPE_NV_BLOB = ( cydriver.CUcigDataType_enum.CIG_DATA_TYPE_NV_BLOB, 'Nvidia specific data blob used for Vulkan and other NV clients\n' - ){{endif}} - -{{endif}} -{{if 'CUstreamCigDataType_enum' in found_types}} + ) class CUstreamCigDataType(_FastEnum): """ """ - {{if 'STREAM_CIG_DATA_TYPE_D3D12_COMMAND_LIST' in found_values}} + STREAM_CIG_DATA_TYPE_D3D12_COMMAND_LIST = ( cydriver.CUstreamCigDataType_enum.STREAM_CIG_DATA_TYPE_D3D12_COMMAND_LIST, 'D3D12 Command List Handle\n' - ){{endif}} - -{{endif}} -{{if 'CUlibraryOption_enum' in found_types}} + ) class CUlibraryOption(_FastEnum): """ @@ -4583,9 +4392,9 @@ class CUlibraryOption(_FastEnum): :py:obj:`~.cuLibraryLoadData()` or :py:obj:`~.cuLibraryLoadFromFile()` """ - {{if 'CU_LIBRARY_HOST_UNIVERSAL_FUNCTION_AND_DATA_TABLE' in found_values}} - CU_LIBRARY_HOST_UNIVERSAL_FUNCTION_AND_DATA_TABLE = cydriver.CUlibraryOption_enum.CU_LIBRARY_HOST_UNIVERSAL_FUNCTION_AND_DATA_TABLE{{endif}} - {{if 'CU_LIBRARY_BINARY_IS_PRESERVED' in found_values}} + + CU_LIBRARY_HOST_UNIVERSAL_FUNCTION_AND_DATA_TABLE = cydriver.CUlibraryOption_enum.CU_LIBRARY_HOST_UNIVERSAL_FUNCTION_AND_DATA_TABLE + CU_LIBRARY_BINARY_IS_PRESERVED = ( cydriver.CUlibraryOption_enum.CU_LIBRARY_BINARY_IS_PRESERVED, @@ -4597,95 +4406,92 @@ class CUlibraryOption(_FastEnum): 'the driver can choose to ignore it if required. Specifying this option with\n' ':py:obj:`~.cuLibraryLoadFromFile()` is invalid and will return\n' ':py:obj:`~.CUDA_ERROR_INVALID_VALUE`.\n' - ){{endif}} - {{if 'CU_LIBRARY_NUM_OPTIONS' in found_values}} - CU_LIBRARY_NUM_OPTIONS = cydriver.CUlibraryOption_enum.CU_LIBRARY_NUM_OPTIONS{{endif}} + ) -{{endif}} -{{if 'cudaError_enum' in found_types}} + CU_LIBRARY_NUM_OPTIONS = cydriver.CUlibraryOption_enum.CU_LIBRARY_NUM_OPTIONS class CUresult(_FastEnum): """ Error codes """ - {{if 'CUDA_SUCCESS' in found_values}} + CUDA_SUCCESS = ( cydriver.cudaError_enum.CUDA_SUCCESS, '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:`~.cuEventQuery()` and :py:obj:`~.cuStreamQuery()`).\n' - ){{endif}} - {{if 'CUDA_ERROR_INVALID_VALUE' in found_values}} + ) + CUDA_ERROR_INVALID_VALUE = ( cydriver.cudaError_enum.CUDA_ERROR_INVALID_VALUE, '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 'CUDA_ERROR_OUT_OF_MEMORY' in found_values}} + ) + CUDA_ERROR_OUT_OF_MEMORY = ( cydriver.cudaError_enum.CUDA_ERROR_OUT_OF_MEMORY, 'The API call failed because it was unable to allocate enough memory or\n' 'other resources to perform the requested operation.\n' - ){{endif}} - {{if 'CUDA_ERROR_NOT_INITIALIZED' in found_values}} + ) + CUDA_ERROR_NOT_INITIALIZED = ( cydriver.cudaError_enum.CUDA_ERROR_NOT_INITIALIZED, 'This indicates that the CUDA driver has not been initialized with\n' ':py:obj:`~.cuInit()` or that initialization has failed.\n' - ){{endif}} - {{if 'CUDA_ERROR_DEINITIALIZED' in found_values}} + ) + CUDA_ERROR_DEINITIALIZED = ( cydriver.cudaError_enum.CUDA_ERROR_DEINITIALIZED, 'This indicates that the CUDA driver is in the process of shutting down.\n' - ){{endif}} - {{if 'CUDA_ERROR_PROFILER_DISABLED' in found_values}} + ) + CUDA_ERROR_PROFILER_DISABLED = ( cydriver.cudaError_enum.CUDA_ERROR_PROFILER_DISABLED, '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 'CUDA_ERROR_PROFILER_NOT_INITIALIZED' in found_values}} + ) + CUDA_ERROR_PROFILER_NOT_INITIALIZED = ( cydriver.cudaError_enum.CUDA_ERROR_PROFILER_NOT_INITIALIZED, '[Deprecated]\n' - ){{endif}} - {{if 'CUDA_ERROR_PROFILER_ALREADY_STARTED' in found_values}} + ) + CUDA_ERROR_PROFILER_ALREADY_STARTED = ( cydriver.cudaError_enum.CUDA_ERROR_PROFILER_ALREADY_STARTED, '[Deprecated]\n' - ){{endif}} - {{if 'CUDA_ERROR_PROFILER_ALREADY_STOPPED' in found_values}} + ) + CUDA_ERROR_PROFILER_ALREADY_STOPPED = ( cydriver.cudaError_enum.CUDA_ERROR_PROFILER_ALREADY_STOPPED, '[Deprecated]\n' - ){{endif}} - {{if 'CUDA_ERROR_STUB_LIBRARY' in found_values}} + ) + CUDA_ERROR_STUB_LIBRARY = ( cydriver.cudaError_enum.CUDA_ERROR_STUB_LIBRARY, '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 'CUDA_ERROR_CALL_REQUIRES_NEWER_DRIVER' in found_values}} + ) + CUDA_ERROR_CALL_REQUIRES_NEWER_DRIVER = ( cydriver.cudaError_enum.CUDA_ERROR_CALL_REQUIRES_NEWER_DRIVER, '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 'CUDA_ERROR_DEVICE_UNAVAILABLE' in found_values}} + ) + CUDA_ERROR_DEVICE_UNAVAILABLE = ( cydriver.cudaError_enum.CUDA_ERROR_DEVICE_UNAVAILABLE, @@ -4693,36 +4499,36 @@ class CUresult(_FastEnum): 'time. Devices are often unavailable due to use of\n' ':py:obj:`~.CU_COMPUTEMODE_EXCLUSIVE_PROCESS` or\n' ':py:obj:`~.CU_COMPUTEMODE_PROHIBITED`.\n' - ){{endif}} - {{if 'CUDA_ERROR_NO_DEVICE' in found_values}} + ) + CUDA_ERROR_NO_DEVICE = ( cydriver.cudaError_enum.CUDA_ERROR_NO_DEVICE, 'This indicates that no CUDA-capable devices were detected by the installed\n' 'CUDA driver.\n' - ){{endif}} - {{if 'CUDA_ERROR_INVALID_DEVICE' in found_values}} + ) + CUDA_ERROR_INVALID_DEVICE = ( cydriver.cudaError_enum.CUDA_ERROR_INVALID_DEVICE, '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 'CUDA_ERROR_DEVICE_NOT_LICENSED' in found_values}} + ) + CUDA_ERROR_DEVICE_NOT_LICENSED = ( cydriver.cudaError_enum.CUDA_ERROR_DEVICE_NOT_LICENSED, 'This error indicates that the Grid license is not applied.\n' - ){{endif}} - {{if 'CUDA_ERROR_INVALID_IMAGE' in found_values}} + ) + CUDA_ERROR_INVALID_IMAGE = ( cydriver.cudaError_enum.CUDA_ERROR_INVALID_IMAGE, 'This indicates that the device kernel image is invalid. This can also\n' 'indicate an invalid CUDA module.\n' - ){{endif}} - {{if 'CUDA_ERROR_INVALID_CONTEXT' in found_values}} + ) + CUDA_ERROR_INVALID_CONTEXT = ( cydriver.cudaError_enum.CUDA_ERROR_INVALID_CONTEXT, @@ -4734,40 +4540,40 @@ class CUresult(_FastEnum): 'See :py:obj:`~.cuCtxGetApiVersion()` for more details. This can also be\n' 'returned if the green context passed to an API call was not converted to a\n' ':py:obj:`~.CUcontext` using :py:obj:`~.cuCtxFromGreenCtx` API.\n' - ){{endif}} - {{if 'CUDA_ERROR_CONTEXT_ALREADY_CURRENT' in found_values}} + ) + CUDA_ERROR_CONTEXT_ALREADY_CURRENT = ( cydriver.cudaError_enum.CUDA_ERROR_CONTEXT_ALREADY_CURRENT, 'This indicated that the context being supplied as a parameter to the API\n' 'call was already the active context. [Deprecated]\n' - ){{endif}} - {{if 'CUDA_ERROR_MAP_FAILED' in found_values}} + ) + CUDA_ERROR_MAP_FAILED = ( cydriver.cudaError_enum.CUDA_ERROR_MAP_FAILED, 'This indicates that a map or register operation has failed.\n' - ){{endif}} - {{if 'CUDA_ERROR_UNMAP_FAILED' in found_values}} + ) + CUDA_ERROR_UNMAP_FAILED = ( cydriver.cudaError_enum.CUDA_ERROR_UNMAP_FAILED, 'This indicates that an unmap or unregister operation has failed.\n' - ){{endif}} - {{if 'CUDA_ERROR_ARRAY_IS_MAPPED' in found_values}} + ) + CUDA_ERROR_ARRAY_IS_MAPPED = ( cydriver.cudaError_enum.CUDA_ERROR_ARRAY_IS_MAPPED, 'This indicates that the specified array is currently mapped and thus cannot\n' 'be destroyed.\n' - ){{endif}} - {{if 'CUDA_ERROR_ALREADY_MAPPED' in found_values}} + ) + CUDA_ERROR_ALREADY_MAPPED = ( cydriver.cudaError_enum.CUDA_ERROR_ALREADY_MAPPED, 'This indicates that the resource is already mapped.\n' - ){{endif}} - {{if 'CUDA_ERROR_NO_BINARY_FOR_GPU' in found_values}} + ) + CUDA_ERROR_NO_BINARY_FOR_GPU = ( cydriver.cudaError_enum.CUDA_ERROR_NO_BINARY_FOR_GPU, @@ -4775,114 +4581,114 @@ class CUresult(_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 'CUDA_ERROR_ALREADY_ACQUIRED' in found_values}} + ) + CUDA_ERROR_ALREADY_ACQUIRED = ( cydriver.cudaError_enum.CUDA_ERROR_ALREADY_ACQUIRED, 'This indicates that a resource has already been acquired.\n' - ){{endif}} - {{if 'CUDA_ERROR_NOT_MAPPED' in found_values}} + ) + CUDA_ERROR_NOT_MAPPED = ( cydriver.cudaError_enum.CUDA_ERROR_NOT_MAPPED, 'This indicates that a resource is not mapped.\n' - ){{endif}} - {{if 'CUDA_ERROR_NOT_MAPPED_AS_ARRAY' in found_values}} + ) + CUDA_ERROR_NOT_MAPPED_AS_ARRAY = ( cydriver.cudaError_enum.CUDA_ERROR_NOT_MAPPED_AS_ARRAY, 'This indicates that a mapped resource is not available for access as an\n' 'array.\n' - ){{endif}} - {{if 'CUDA_ERROR_NOT_MAPPED_AS_POINTER' in found_values}} + ) + CUDA_ERROR_NOT_MAPPED_AS_POINTER = ( cydriver.cudaError_enum.CUDA_ERROR_NOT_MAPPED_AS_POINTER, 'This indicates that a mapped resource is not available for access as a\n' 'pointer.\n' - ){{endif}} - {{if 'CUDA_ERROR_ECC_UNCORRECTABLE' in found_values}} + ) + CUDA_ERROR_ECC_UNCORRECTABLE = ( cydriver.cudaError_enum.CUDA_ERROR_ECC_UNCORRECTABLE, 'This indicates that an uncorrectable ECC error was detected during\n' 'execution.\n' - ){{endif}} - {{if 'CUDA_ERROR_UNSUPPORTED_LIMIT' in found_values}} + ) + CUDA_ERROR_UNSUPPORTED_LIMIT = ( cydriver.cudaError_enum.CUDA_ERROR_UNSUPPORTED_LIMIT, 'This indicates that the :py:obj:`~.CUlimit` passed to the API call is not\n' 'supported by the active device.\n' - ){{endif}} - {{if 'CUDA_ERROR_CONTEXT_ALREADY_IN_USE' in found_values}} + ) + CUDA_ERROR_CONTEXT_ALREADY_IN_USE = ( cydriver.cudaError_enum.CUDA_ERROR_CONTEXT_ALREADY_IN_USE, 'This indicates that the :py:obj:`~.CUcontext` passed to the API call can\n' 'only be bound to a single CPU thread at a time but is already bound to a\n' 'CPU thread.\n' - ){{endif}} - {{if 'CUDA_ERROR_PEER_ACCESS_UNSUPPORTED' in found_values}} + ) + CUDA_ERROR_PEER_ACCESS_UNSUPPORTED = ( cydriver.cudaError_enum.CUDA_ERROR_PEER_ACCESS_UNSUPPORTED, 'This indicates that peer access is not supported across the given devices.\n' - ){{endif}} - {{if 'CUDA_ERROR_INVALID_PTX' in found_values}} + ) + CUDA_ERROR_INVALID_PTX = ( cydriver.cudaError_enum.CUDA_ERROR_INVALID_PTX, 'This indicates that a PTX JIT compilation failed.\n' - ){{endif}} - {{if 'CUDA_ERROR_INVALID_GRAPHICS_CONTEXT' in found_values}} + ) + CUDA_ERROR_INVALID_GRAPHICS_CONTEXT = ( cydriver.cudaError_enum.CUDA_ERROR_INVALID_GRAPHICS_CONTEXT, 'This indicates an error with OpenGL or DirectX context.\n' - ){{endif}} - {{if 'CUDA_ERROR_NVLINK_UNCORRECTABLE' in found_values}} + ) + CUDA_ERROR_NVLINK_UNCORRECTABLE = ( cydriver.cudaError_enum.CUDA_ERROR_NVLINK_UNCORRECTABLE, 'This indicates that an uncorrectable NVLink error was detected during the\n' 'execution.\n' - ){{endif}} - {{if 'CUDA_ERROR_JIT_COMPILER_NOT_FOUND' in found_values}} + ) + CUDA_ERROR_JIT_COMPILER_NOT_FOUND = ( cydriver.cudaError_enum.CUDA_ERROR_JIT_COMPILER_NOT_FOUND, 'This indicates that the PTX JIT compiler library was not found.\n' - ){{endif}} - {{if 'CUDA_ERROR_UNSUPPORTED_PTX_VERSION' in found_values}} + ) + CUDA_ERROR_UNSUPPORTED_PTX_VERSION = ( cydriver.cudaError_enum.CUDA_ERROR_UNSUPPORTED_PTX_VERSION, 'This indicates that the provided PTX was compiled with an unsupported\n' 'toolchain.\n' - ){{endif}} - {{if 'CUDA_ERROR_JIT_COMPILATION_DISABLED' in found_values}} + ) + CUDA_ERROR_JIT_COMPILATION_DISABLED = ( cydriver.cudaError_enum.CUDA_ERROR_JIT_COMPILATION_DISABLED, 'This indicates that the PTX JIT compilation was disabled.\n' - ){{endif}} - {{if 'CUDA_ERROR_UNSUPPORTED_EXEC_AFFINITY' in found_values}} + ) + CUDA_ERROR_UNSUPPORTED_EXEC_AFFINITY = ( cydriver.cudaError_enum.CUDA_ERROR_UNSUPPORTED_EXEC_AFFINITY, 'This indicates that the :py:obj:`~.CUexecAffinityType` passed to the API\n' 'call is not supported by the active device.\n' - ){{endif}} - {{if 'CUDA_ERROR_UNSUPPORTED_DEVSIDE_SYNC' in found_values}} + ) + CUDA_ERROR_UNSUPPORTED_DEVSIDE_SYNC = ( cydriver.cudaError_enum.CUDA_ERROR_UNSUPPORTED_DEVSIDE_SYNC, 'This indicates that the code to be compiled by the PTX JIT contains\n' 'unsupported call to cudaDeviceSynchronize.\n' - ){{endif}} - {{if 'CUDA_ERROR_CONTAINED' in found_values}} + ) + CUDA_ERROR_CONTAINED = ( cydriver.cudaError_enum.CUDA_ERROR_CONTAINED, @@ -4892,54 +4698,54 @@ class CUresult(_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 'CUDA_ERROR_INVALID_SOURCE' in found_values}} + ) + CUDA_ERROR_INVALID_SOURCE = ( cydriver.cudaError_enum.CUDA_ERROR_INVALID_SOURCE, 'This indicates that the device kernel source is invalid. This includes\n' 'compilation/linker errors encountered in device code or user error.\n' - ){{endif}} - {{if 'CUDA_ERROR_FILE_NOT_FOUND' in found_values}} + ) + CUDA_ERROR_FILE_NOT_FOUND = ( cydriver.cudaError_enum.CUDA_ERROR_FILE_NOT_FOUND, 'This indicates that the file specified was not found.\n' - ){{endif}} - {{if 'CUDA_ERROR_SHARED_OBJECT_SYMBOL_NOT_FOUND' in found_values}} + ) + CUDA_ERROR_SHARED_OBJECT_SYMBOL_NOT_FOUND = ( cydriver.cudaError_enum.CUDA_ERROR_SHARED_OBJECT_SYMBOL_NOT_FOUND, 'This indicates that a link to a shared object failed to resolve.\n' - ){{endif}} - {{if 'CUDA_ERROR_SHARED_OBJECT_INIT_FAILED' in found_values}} + ) + CUDA_ERROR_SHARED_OBJECT_INIT_FAILED = ( cydriver.cudaError_enum.CUDA_ERROR_SHARED_OBJECT_INIT_FAILED, 'This indicates that initialization of a shared object failed.\n' - ){{endif}} - {{if 'CUDA_ERROR_OPERATING_SYSTEM' in found_values}} + ) + CUDA_ERROR_OPERATING_SYSTEM = ( cydriver.cudaError_enum.CUDA_ERROR_OPERATING_SYSTEM, 'This indicates that an OS call failed.\n' - ){{endif}} - {{if 'CUDA_ERROR_INVALID_HANDLE' in found_values}} + ) + CUDA_ERROR_INVALID_HANDLE = ( cydriver.cudaError_enum.CUDA_ERROR_INVALID_HANDLE, 'This indicates that a resource handle passed to the API call was not valid.\n' 'Resource handles are opaque types like :py:obj:`~.CUstream` and\n' ':py:obj:`~.CUevent`.\n' - ){{endif}} - {{if 'CUDA_ERROR_ILLEGAL_STATE' in found_values}} + ) + CUDA_ERROR_ILLEGAL_STATE = ( cydriver.cudaError_enum.CUDA_ERROR_ILLEGAL_STATE, '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 'CUDA_ERROR_LOSSY_QUERY' in found_values}} + ) + CUDA_ERROR_LOSSY_QUERY = ( cydriver.cudaError_enum.CUDA_ERROR_LOSSY_QUERY, @@ -4947,16 +4753,16 @@ class CUresult(_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 'CUDA_ERROR_NOT_FOUND' in found_values}} + ) + CUDA_ERROR_NOT_FOUND = ( cydriver.cudaError_enum.CUDA_ERROR_NOT_FOUND, '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 'CUDA_ERROR_NOT_READY' in found_values}} + ) + CUDA_ERROR_NOT_READY = ( cydriver.cudaError_enum.CUDA_ERROR_NOT_READY, @@ -4965,8 +4771,8 @@ class CUresult(_FastEnum): 'differently than :py:obj:`~.CUDA_SUCCESS` (which indicates completion).\n' 'Calls that may return this value include :py:obj:`~.cuEventQuery()` and\n' ':py:obj:`~.cuStreamQuery()`.\n' - ){{endif}} - {{if 'CUDA_ERROR_ILLEGAL_ADDRESS' in found_values}} + ) + CUDA_ERROR_ILLEGAL_ADDRESS = ( cydriver.cudaError_enum.CUDA_ERROR_ILLEGAL_ADDRESS, @@ -4974,8 +4780,8 @@ class CUresult(_FastEnum): 'instruction on an invalid memory address. This leaves the process in an\n' 'inconsistent state and any further CUDA work will return the same error. To\n' 'continue using CUDA, the process must be terminated and relaunched.\n' - ){{endif}} - {{if 'CUDA_ERROR_LAUNCH_OUT_OF_RESOURCES' in found_values}} + ) + CUDA_ERROR_LAUNCH_OUT_OF_RESOURCES = ( cydriver.cudaError_enum.CUDA_ERROR_LAUNCH_OUT_OF_RESOURCES, @@ -4986,8 +4792,8 @@ class CUresult(_FastEnum): 'arguments of the wrong size (i.e. a 64-bit pointer when a 32-bit int is\n' 'expected) is equivalent to passing too many arguments and can also result\n' 'in this error.\n' - ){{endif}} - {{if 'CUDA_ERROR_LAUNCH_TIMEOUT' in found_values}} + ) + CUDA_ERROR_LAUNCH_TIMEOUT = ( cydriver.cudaError_enum.CUDA_ERROR_LAUNCH_TIMEOUT, @@ -4997,46 +4803,46 @@ class CUresult(_FastEnum): 'This leaves the process in an inconsistent state and any further CUDA work\n' 'will return the same error. To continue using CUDA, the process must be\n' 'terminated and relaunched.\n' - ){{endif}} - {{if 'CUDA_ERROR_LAUNCH_INCOMPATIBLE_TEXTURING' in found_values}} + ) + CUDA_ERROR_LAUNCH_INCOMPATIBLE_TEXTURING = ( cydriver.cudaError_enum.CUDA_ERROR_LAUNCH_INCOMPATIBLE_TEXTURING, 'This error indicates a kernel launch that uses an incompatible texturing\n' 'mode.\n' - ){{endif}} - {{if 'CUDA_ERROR_PEER_ACCESS_ALREADY_ENABLED' in found_values}} + ) + CUDA_ERROR_PEER_ACCESS_ALREADY_ENABLED = ( cydriver.cudaError_enum.CUDA_ERROR_PEER_ACCESS_ALREADY_ENABLED, 'This error indicates that a call to :py:obj:`~.cuCtxEnablePeerAccess()` is\n' 'trying to re-enable peer access to a context which has already had peer\n' 'access to it enabled.\n' - ){{endif}} - {{if 'CUDA_ERROR_PEER_ACCESS_NOT_ENABLED' in found_values}} + ) + CUDA_ERROR_PEER_ACCESS_NOT_ENABLED = ( cydriver.cudaError_enum.CUDA_ERROR_PEER_ACCESS_NOT_ENABLED, 'This error indicates that :py:obj:`~.cuCtxDisablePeerAccess()` is trying to\n' 'disable peer access which has not been enabled yet via\n' ':py:obj:`~.cuCtxEnablePeerAccess()`.\n' - ){{endif}} - {{if 'CUDA_ERROR_PRIMARY_CONTEXT_ACTIVE' in found_values}} + ) + CUDA_ERROR_PRIMARY_CONTEXT_ACTIVE = ( cydriver.cudaError_enum.CUDA_ERROR_PRIMARY_CONTEXT_ACTIVE, 'This error indicates that the primary context for the specified device has\n' 'already been initialized.\n' - ){{endif}} - {{if 'CUDA_ERROR_CONTEXT_IS_DESTROYED' in found_values}} + ) + CUDA_ERROR_CONTEXT_IS_DESTROYED = ( cydriver.cudaError_enum.CUDA_ERROR_CONTEXT_IS_DESTROYED, '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 'CUDA_ERROR_ASSERT' in found_values}} + ) + CUDA_ERROR_ASSERT = ( cydriver.cudaError_enum.CUDA_ERROR_ASSERT, @@ -5044,31 +4850,31 @@ class CUresult(_FastEnum): 'be used anymore, and must be destroyed. All existing device memory\n' 'allocations from this context are invalid and must be reconstructed if the\n' 'program is to continue using CUDA.\n' - ){{endif}} - {{if 'CUDA_ERROR_TOO_MANY_PEERS' in found_values}} + ) + CUDA_ERROR_TOO_MANY_PEERS = ( cydriver.cudaError_enum.CUDA_ERROR_TOO_MANY_PEERS, '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:`~.cuCtxEnablePeerAccess()`.\n' - ){{endif}} - {{if 'CUDA_ERROR_HOST_MEMORY_ALREADY_REGISTERED' in found_values}} + ) + CUDA_ERROR_HOST_MEMORY_ALREADY_REGISTERED = ( cydriver.cudaError_enum.CUDA_ERROR_HOST_MEMORY_ALREADY_REGISTERED, 'This error indicates that the memory range passed to\n' ':py:obj:`~.cuMemHostRegister()` has already been registered.\n' - ){{endif}} - {{if 'CUDA_ERROR_HOST_MEMORY_NOT_REGISTERED' in found_values}} + ) + CUDA_ERROR_HOST_MEMORY_NOT_REGISTERED = ( cydriver.cudaError_enum.CUDA_ERROR_HOST_MEMORY_NOT_REGISTERED, 'This error indicates that the pointer passed to\n' ':py:obj:`~.cuMemHostUnregister()` does not correspond to any currently\n' 'registered memory region.\n' - ){{endif}} - {{if 'CUDA_ERROR_HARDWARE_STACK_ERROR' in found_values}} + ) + CUDA_ERROR_HARDWARE_STACK_ERROR = ( cydriver.cudaError_enum.CUDA_ERROR_HARDWARE_STACK_ERROR, @@ -5077,8 +4883,8 @@ class CUresult(_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 'CUDA_ERROR_ILLEGAL_INSTRUCTION' in found_values}} + ) + CUDA_ERROR_ILLEGAL_INSTRUCTION = ( cydriver.cudaError_enum.CUDA_ERROR_ILLEGAL_INSTRUCTION, @@ -5086,8 +4892,8 @@ class CUresult(_FastEnum): 'This leaves the process in an inconsistent state and any further CUDA work\n' 'will return the same error. To continue using CUDA, the process must be\n' 'terminated and relaunched.\n' - ){{endif}} - {{if 'CUDA_ERROR_MISALIGNED_ADDRESS' in found_values}} + ) + CUDA_ERROR_MISALIGNED_ADDRESS = ( cydriver.cudaError_enum.CUDA_ERROR_MISALIGNED_ADDRESS, @@ -5096,8 +4902,8 @@ class CUresult(_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 'CUDA_ERROR_INVALID_ADDRESS_SPACE' in found_values}} + ) + CUDA_ERROR_INVALID_ADDRESS_SPACE = ( cydriver.cudaError_enum.CUDA_ERROR_INVALID_ADDRESS_SPACE, @@ -5107,8 +4913,8 @@ class CUresult(_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 'CUDA_ERROR_INVALID_PC' in found_values}} + ) + CUDA_ERROR_INVALID_PC = ( cydriver.cudaError_enum.CUDA_ERROR_INVALID_PC, @@ -5116,8 +4922,8 @@ class CUresult(_FastEnum): 'space. 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 'CUDA_ERROR_LAUNCH_FAILED' in found_values}} + ) + CUDA_ERROR_LAUNCH_FAILED = ( cydriver.cudaError_enum.CUDA_ERROR_LAUNCH_FAILED, @@ -5128,8 +4934,8 @@ class CUresult(_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 'CUDA_ERROR_COOPERATIVE_LAUNCH_TOO_LARGE' in found_values}} + ) + CUDA_ERROR_COOPERATIVE_LAUNCH_TOO_LARGE = ( cydriver.cudaError_enum.CUDA_ERROR_COOPERATIVE_LAUNCH_TOO_LARGE, @@ -5141,8 +4947,8 @@ class CUresult(_FastEnum): ':py:obj:`~.cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags` times the\n' 'number of multiprocessors as specified by the device attribute\n' ':py:obj:`~.CU_DEVICE_ATTRIBUTE_MULTIPROCESSOR_COUNT`.\n' - ){{endif}} - {{if 'CUDA_ERROR_TENSOR_MEMORY_LEAK' in found_values}} + ) + CUDA_ERROR_TENSOR_MEMORY_LEAK = ( cydriver.cudaError_enum.CUDA_ERROR_TENSOR_MEMORY_LEAK, @@ -5151,21 +4957,21 @@ class CUresult(_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 'CUDA_ERROR_NOT_PERMITTED' in found_values}} + ) + CUDA_ERROR_NOT_PERMITTED = ( cydriver.cudaError_enum.CUDA_ERROR_NOT_PERMITTED, 'This error indicates that the attempted operation is not permitted.\n' - ){{endif}} - {{if 'CUDA_ERROR_NOT_SUPPORTED' in found_values}} + ) + CUDA_ERROR_NOT_SUPPORTED = ( cydriver.cudaError_enum.CUDA_ERROR_NOT_SUPPORTED, 'This error indicates that the attempted operation is not supported on the\n' 'current system or device.\n' - ){{endif}} - {{if 'CUDA_ERROR_SYSTEM_NOT_READY' in found_values}} + ) + CUDA_ERROR_SYSTEM_NOT_READY = ( cydriver.cudaError_enum.CUDA_ERROR_SYSTEM_NOT_READY, @@ -5174,16 +4980,16 @@ class CUresult(_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 'CUDA_ERROR_SYSTEM_DRIVER_MISMATCH' in found_values}} + ) + CUDA_ERROR_SYSTEM_DRIVER_MISMATCH = ( cydriver.cudaError_enum.CUDA_ERROR_SYSTEM_DRIVER_MISMATCH, '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 'CUDA_ERROR_COMPAT_NOT_SUPPORTED_ON_DEVICE' in found_values}} + ) + CUDA_ERROR_COMPAT_NOT_SUPPORTED_ON_DEVICE = ( cydriver.cudaError_enum.CUDA_ERROR_COMPAT_NOT_SUPPORTED_ON_DEVICE, @@ -5192,121 +4998,121 @@ class CUresult(_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 'CUDA_ERROR_MPS_CONNECTION_FAILED' in found_values}} + ) + CUDA_ERROR_MPS_CONNECTION_FAILED = ( cydriver.cudaError_enum.CUDA_ERROR_MPS_CONNECTION_FAILED, 'This error indicates that the MPS client failed to connect to the MPS\n' 'control daemon or the MPS server.\n' - ){{endif}} - {{if 'CUDA_ERROR_MPS_RPC_FAILURE' in found_values}} + ) + CUDA_ERROR_MPS_RPC_FAILURE = ( cydriver.cudaError_enum.CUDA_ERROR_MPS_RPC_FAILURE, 'This error indicates that the remote procedural call between the MPS server\n' 'and the MPS client failed.\n' - ){{endif}} - {{if 'CUDA_ERROR_MPS_SERVER_NOT_READY' in found_values}} + ) + CUDA_ERROR_MPS_SERVER_NOT_READY = ( cydriver.cudaError_enum.CUDA_ERROR_MPS_SERVER_NOT_READY, '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 'CUDA_ERROR_MPS_MAX_CLIENTS_REACHED' in found_values}} + ) + CUDA_ERROR_MPS_MAX_CLIENTS_REACHED = ( cydriver.cudaError_enum.CUDA_ERROR_MPS_MAX_CLIENTS_REACHED, 'This error indicates that the hardware resources required to create MPS\n' 'client have been exhausted.\n' - ){{endif}} - {{if 'CUDA_ERROR_MPS_MAX_CONNECTIONS_REACHED' in found_values}} + ) + CUDA_ERROR_MPS_MAX_CONNECTIONS_REACHED = ( cydriver.cudaError_enum.CUDA_ERROR_MPS_MAX_CONNECTIONS_REACHED, 'This error indicates the the hardware resources required to support device\n' 'connections have been exhausted.\n' - ){{endif}} - {{if 'CUDA_ERROR_MPS_CLIENT_TERMINATED' in found_values}} + ) + CUDA_ERROR_MPS_CLIENT_TERMINATED = ( cydriver.cudaError_enum.CUDA_ERROR_MPS_CLIENT_TERMINATED, '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 'CUDA_ERROR_CDP_NOT_SUPPORTED' in found_values}} + ) + CUDA_ERROR_CDP_NOT_SUPPORTED = ( cydriver.cudaError_enum.CUDA_ERROR_CDP_NOT_SUPPORTED, 'This error indicates that the module is using CUDA Dynamic Parallelism, but\n' 'the current configuration, like MPS, does not support it.\n' - ){{endif}} - {{if 'CUDA_ERROR_CDP_VERSION_MISMATCH' in found_values}} + ) + CUDA_ERROR_CDP_VERSION_MISMATCH = ( cydriver.cudaError_enum.CUDA_ERROR_CDP_VERSION_MISMATCH, 'This error indicates that a module contains an unsupported interaction\n' 'between different versions of CUDA Dynamic Parallelism.\n' - ){{endif}} - {{if 'CUDA_ERROR_STREAM_CAPTURE_UNSUPPORTED' in found_values}} + ) + CUDA_ERROR_STREAM_CAPTURE_UNSUPPORTED = ( cydriver.cudaError_enum.CUDA_ERROR_STREAM_CAPTURE_UNSUPPORTED, 'This error indicates that the operation is not permitted when the stream is\n' 'capturing.\n' - ){{endif}} - {{if 'CUDA_ERROR_STREAM_CAPTURE_INVALIDATED' in found_values}} + ) + CUDA_ERROR_STREAM_CAPTURE_INVALIDATED = ( cydriver.cudaError_enum.CUDA_ERROR_STREAM_CAPTURE_INVALIDATED, 'This error indicates that the current capture sequence on the stream has\n' 'been invalidated due to a previous error.\n' - ){{endif}} - {{if 'CUDA_ERROR_STREAM_CAPTURE_MERGE' in found_values}} + ) + CUDA_ERROR_STREAM_CAPTURE_MERGE = ( cydriver.cudaError_enum.CUDA_ERROR_STREAM_CAPTURE_MERGE, 'This error indicates that the operation would have resulted in a merge of\n' 'two independent capture sequences.\n' - ){{endif}} - {{if 'CUDA_ERROR_STREAM_CAPTURE_UNMATCHED' in found_values}} + ) + CUDA_ERROR_STREAM_CAPTURE_UNMATCHED = ( cydriver.cudaError_enum.CUDA_ERROR_STREAM_CAPTURE_UNMATCHED, 'This error indicates that the capture was not initiated in this stream.\n' - ){{endif}} - {{if 'CUDA_ERROR_STREAM_CAPTURE_UNJOINED' in found_values}} + ) + CUDA_ERROR_STREAM_CAPTURE_UNJOINED = ( cydriver.cudaError_enum.CUDA_ERROR_STREAM_CAPTURE_UNJOINED, 'This error indicates that the capture sequence contains a fork that was not\n' 'joined to the primary stream.\n' - ){{endif}} - {{if 'CUDA_ERROR_STREAM_CAPTURE_ISOLATION' in found_values}} + ) + CUDA_ERROR_STREAM_CAPTURE_ISOLATION = ( cydriver.cudaError_enum.CUDA_ERROR_STREAM_CAPTURE_ISOLATION, 'This error indicates that a dependency would have been created which\n' 'crosses the capture sequence boundary. Only implicit in-stream ordering\n' 'dependencies are allowed to cross the boundary.\n' - ){{endif}} - {{if 'CUDA_ERROR_STREAM_CAPTURE_IMPLICIT' in found_values}} + ) + CUDA_ERROR_STREAM_CAPTURE_IMPLICIT = ( cydriver.cudaError_enum.CUDA_ERROR_STREAM_CAPTURE_IMPLICIT, 'This error indicates a disallowed implicit dependency on a current capture\n' 'sequence from cudaStreamLegacy.\n' - ){{endif}} - {{if 'CUDA_ERROR_CAPTURED_EVENT' in found_values}} + ) + CUDA_ERROR_CAPTURED_EVENT = ( cydriver.cudaError_enum.CUDA_ERROR_CAPTURED_EVENT, 'This error indicates that the operation is not permitted on an event which\n' 'was last recorded in a capturing stream.\n' - ){{endif}} - {{if 'CUDA_ERROR_STREAM_CAPTURE_WRONG_THREAD' in found_values}} + ) + CUDA_ERROR_STREAM_CAPTURE_WRONG_THREAD = ( cydriver.cudaError_enum.CUDA_ERROR_STREAM_CAPTURE_WRONG_THREAD, @@ -5314,23 +5120,23 @@ class CUresult(_FastEnum): ':py:obj:`~.CU_STREAM_CAPTURE_MODE_RELAXED` argument to\n' ':py:obj:`~.cuStreamBeginCapture` was passed to\n' ':py:obj:`~.cuStreamEndCapture` in a different thread.\n' - ){{endif}} - {{if 'CUDA_ERROR_TIMEOUT' in found_values}} + ) + CUDA_ERROR_TIMEOUT = ( cydriver.cudaError_enum.CUDA_ERROR_TIMEOUT, 'This error indicates that the timeout specified for the wait operation has\n' 'lapsed.\n' - ){{endif}} - {{if 'CUDA_ERROR_GRAPH_EXEC_UPDATE_FAILURE' in found_values}} + ) + CUDA_ERROR_GRAPH_EXEC_UPDATE_FAILURE = ( cydriver.cudaError_enum.CUDA_ERROR_GRAPH_EXEC_UPDATE_FAILURE, '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 'CUDA_ERROR_EXTERNAL_DEVICE' in found_values}} + ) + CUDA_ERROR_EXTERNAL_DEVICE = ( cydriver.cudaError_enum.CUDA_ERROR_EXTERNAL_DEVICE, @@ -5344,42 +5150,42 @@ class CUresult(_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 'CUDA_ERROR_INVALID_CLUSTER_SIZE' in found_values}} + ) + CUDA_ERROR_INVALID_CLUSTER_SIZE = ( cydriver.cudaError_enum.CUDA_ERROR_INVALID_CLUSTER_SIZE, 'Indicates a kernel launch error due to cluster misconfiguration.\n' - ){{endif}} - {{if 'CUDA_ERROR_FUNCTION_NOT_LOADED' in found_values}} + ) + CUDA_ERROR_FUNCTION_NOT_LOADED = ( cydriver.cudaError_enum.CUDA_ERROR_FUNCTION_NOT_LOADED, 'Indiciates a function handle is not loaded when calling an API that\n' 'requires a loaded function.\n' - ){{endif}} - {{if 'CUDA_ERROR_INVALID_RESOURCE_TYPE' in found_values}} + ) + CUDA_ERROR_INVALID_RESOURCE_TYPE = ( cydriver.cudaError_enum.CUDA_ERROR_INVALID_RESOURCE_TYPE, 'This error indicates one or more resources passed in are not valid resource\n' 'types for the operation.\n' - ){{endif}} - {{if 'CUDA_ERROR_INVALID_RESOURCE_CONFIGURATION' in found_values}} + ) + CUDA_ERROR_INVALID_RESOURCE_CONFIGURATION = ( cydriver.cudaError_enum.CUDA_ERROR_INVALID_RESOURCE_CONFIGURATION, 'This error indicates one or more resources are insufficient or non-\n' 'applicable for the operation.\n' - ){{endif}} - {{if 'CUDA_ERROR_KEY_ROTATION' in found_values}} + ) + CUDA_ERROR_KEY_ROTATION = ( cydriver.cudaError_enum.CUDA_ERROR_KEY_ROTATION, 'This error indicates that an error happened during the key rotation\n' 'sequence.\n' - ){{endif}} - {{if 'CUDA_ERROR_STREAM_DETACHED' in found_values}} + ) + CUDA_ERROR_STREAM_DETACHED = ( cydriver.cudaError_enum.CUDA_ERROR_STREAM_DETACHED, @@ -5387,891 +5193,816 @@ class CUresult(_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 'CUDA_ERROR_UNKNOWN' in found_values}} + ) + CUDA_ERROR_UNKNOWN = ( cydriver.cudaError_enum.CUDA_ERROR_UNKNOWN, 'This indicates that an unknown internal error has occurred.\n' - ){{endif}} - -{{endif}} -{{if 'CUdevice_P2PAttribute_enum' in found_types}} + ) class CUdevice_P2PAttribute(_FastEnum): """ P2P Attributes """ - {{if 'CU_DEVICE_P2P_ATTRIBUTE_PERFORMANCE_RANK' in found_values}} + CU_DEVICE_P2P_ATTRIBUTE_PERFORMANCE_RANK = ( cydriver.CUdevice_P2PAttribute_enum.CU_DEVICE_P2P_ATTRIBUTE_PERFORMANCE_RANK, 'A relative value indicating the performance of the link between two devices\n' - ){{endif}} - {{if 'CU_DEVICE_P2P_ATTRIBUTE_ACCESS_SUPPORTED' in found_values}} + ) + CU_DEVICE_P2P_ATTRIBUTE_ACCESS_SUPPORTED = ( cydriver.CUdevice_P2PAttribute_enum.CU_DEVICE_P2P_ATTRIBUTE_ACCESS_SUPPORTED, 'P2P Access is enable\n' - ){{endif}} - {{if 'CU_DEVICE_P2P_ATTRIBUTE_NATIVE_ATOMIC_SUPPORTED' in found_values}} + ) + CU_DEVICE_P2P_ATTRIBUTE_NATIVE_ATOMIC_SUPPORTED = ( cydriver.CUdevice_P2PAttribute_enum.CU_DEVICE_P2P_ATTRIBUTE_NATIVE_ATOMIC_SUPPORTED, 'All CUDA-valid atomic operation over the link are supported\n' - ){{endif}} - {{if 'CU_DEVICE_P2P_ATTRIBUTE_ACCESS_ACCESS_SUPPORTED' in found_values}} + ) + CU_DEVICE_P2P_ATTRIBUTE_ACCESS_ACCESS_SUPPORTED = ( cydriver.CUdevice_P2PAttribute_enum.CU_DEVICE_P2P_ATTRIBUTE_ACCESS_ACCESS_SUPPORTED, '[Deprecated]\n' - ){{endif}} - {{if 'CU_DEVICE_P2P_ATTRIBUTE_CUDA_ARRAY_ACCESS_SUPPORTED' in found_values}} + ) + CU_DEVICE_P2P_ATTRIBUTE_CUDA_ARRAY_ACCESS_SUPPORTED = ( cydriver.CUdevice_P2PAttribute_enum.CU_DEVICE_P2P_ATTRIBUTE_CUDA_ARRAY_ACCESS_SUPPORTED, 'Accessing CUDA arrays over the link supported\n' - ){{endif}} - {{if 'CU_DEVICE_P2P_ATTRIBUTE_ONLY_PARTIAL_NATIVE_ATOMIC_SUPPORTED' in found_values}} + ) + CU_DEVICE_P2P_ATTRIBUTE_ONLY_PARTIAL_NATIVE_ATOMIC_SUPPORTED = ( cydriver.CUdevice_P2PAttribute_enum.CU_DEVICE_P2P_ATTRIBUTE_ONLY_PARTIAL_NATIVE_ATOMIC_SUPPORTED, 'Only some CUDA-valid atomic operations over the link are supported.\n' - ){{endif}} - -{{endif}} -{{if 'CUresourceViewFormat_enum' in found_types}} + ) class CUresourceViewFormat(_FastEnum): """ Resource view format """ - {{if 'CU_RES_VIEW_FORMAT_NONE' in found_values}} + CU_RES_VIEW_FORMAT_NONE = ( cydriver.CUresourceViewFormat_enum.CU_RES_VIEW_FORMAT_NONE, 'No resource view format (use underlying resource format)\n' - ){{endif}} - {{if 'CU_RES_VIEW_FORMAT_UINT_1X8' in found_values}} + ) + CU_RES_VIEW_FORMAT_UINT_1X8 = ( cydriver.CUresourceViewFormat_enum.CU_RES_VIEW_FORMAT_UINT_1X8, '1 channel unsigned 8-bit integers\n' - ){{endif}} - {{if 'CU_RES_VIEW_FORMAT_UINT_2X8' in found_values}} + ) + CU_RES_VIEW_FORMAT_UINT_2X8 = ( cydriver.CUresourceViewFormat_enum.CU_RES_VIEW_FORMAT_UINT_2X8, '2 channel unsigned 8-bit integers\n' - ){{endif}} - {{if 'CU_RES_VIEW_FORMAT_UINT_4X8' in found_values}} + ) + CU_RES_VIEW_FORMAT_UINT_4X8 = ( cydriver.CUresourceViewFormat_enum.CU_RES_VIEW_FORMAT_UINT_4X8, '4 channel unsigned 8-bit integers\n' - ){{endif}} - {{if 'CU_RES_VIEW_FORMAT_SINT_1X8' in found_values}} + ) + CU_RES_VIEW_FORMAT_SINT_1X8 = ( cydriver.CUresourceViewFormat_enum.CU_RES_VIEW_FORMAT_SINT_1X8, '1 channel signed 8-bit integers\n' - ){{endif}} - {{if 'CU_RES_VIEW_FORMAT_SINT_2X8' in found_values}} + ) + CU_RES_VIEW_FORMAT_SINT_2X8 = ( cydriver.CUresourceViewFormat_enum.CU_RES_VIEW_FORMAT_SINT_2X8, '2 channel signed 8-bit integers\n' - ){{endif}} - {{if 'CU_RES_VIEW_FORMAT_SINT_4X8' in found_values}} + ) + CU_RES_VIEW_FORMAT_SINT_4X8 = ( cydriver.CUresourceViewFormat_enum.CU_RES_VIEW_FORMAT_SINT_4X8, '4 channel signed 8-bit integers\n' - ){{endif}} - {{if 'CU_RES_VIEW_FORMAT_UINT_1X16' in found_values}} + ) + CU_RES_VIEW_FORMAT_UINT_1X16 = ( cydriver.CUresourceViewFormat_enum.CU_RES_VIEW_FORMAT_UINT_1X16, '1 channel unsigned 16-bit integers\n' - ){{endif}} - {{if 'CU_RES_VIEW_FORMAT_UINT_2X16' in found_values}} + ) + CU_RES_VIEW_FORMAT_UINT_2X16 = ( cydriver.CUresourceViewFormat_enum.CU_RES_VIEW_FORMAT_UINT_2X16, '2 channel unsigned 16-bit integers\n' - ){{endif}} - {{if 'CU_RES_VIEW_FORMAT_UINT_4X16' in found_values}} + ) + CU_RES_VIEW_FORMAT_UINT_4X16 = ( cydriver.CUresourceViewFormat_enum.CU_RES_VIEW_FORMAT_UINT_4X16, '4 channel unsigned 16-bit integers\n' - ){{endif}} - {{if 'CU_RES_VIEW_FORMAT_SINT_1X16' in found_values}} + ) + CU_RES_VIEW_FORMAT_SINT_1X16 = ( cydriver.CUresourceViewFormat_enum.CU_RES_VIEW_FORMAT_SINT_1X16, '1 channel signed 16-bit integers\n' - ){{endif}} - {{if 'CU_RES_VIEW_FORMAT_SINT_2X16' in found_values}} + ) + CU_RES_VIEW_FORMAT_SINT_2X16 = ( cydriver.CUresourceViewFormat_enum.CU_RES_VIEW_FORMAT_SINT_2X16, '2 channel signed 16-bit integers\n' - ){{endif}} - {{if 'CU_RES_VIEW_FORMAT_SINT_4X16' in found_values}} + ) + CU_RES_VIEW_FORMAT_SINT_4X16 = ( cydriver.CUresourceViewFormat_enum.CU_RES_VIEW_FORMAT_SINT_4X16, '4 channel signed 16-bit integers\n' - ){{endif}} - {{if 'CU_RES_VIEW_FORMAT_UINT_1X32' in found_values}} + ) + CU_RES_VIEW_FORMAT_UINT_1X32 = ( cydriver.CUresourceViewFormat_enum.CU_RES_VIEW_FORMAT_UINT_1X32, '1 channel unsigned 32-bit integers\n' - ){{endif}} - {{if 'CU_RES_VIEW_FORMAT_UINT_2X32' in found_values}} + ) + CU_RES_VIEW_FORMAT_UINT_2X32 = ( cydriver.CUresourceViewFormat_enum.CU_RES_VIEW_FORMAT_UINT_2X32, '2 channel unsigned 32-bit integers\n' - ){{endif}} - {{if 'CU_RES_VIEW_FORMAT_UINT_4X32' in found_values}} + ) + CU_RES_VIEW_FORMAT_UINT_4X32 = ( cydriver.CUresourceViewFormat_enum.CU_RES_VIEW_FORMAT_UINT_4X32, '4 channel unsigned 32-bit integers\n' - ){{endif}} - {{if 'CU_RES_VIEW_FORMAT_SINT_1X32' in found_values}} + ) + CU_RES_VIEW_FORMAT_SINT_1X32 = ( cydriver.CUresourceViewFormat_enum.CU_RES_VIEW_FORMAT_SINT_1X32, '1 channel signed 32-bit integers\n' - ){{endif}} - {{if 'CU_RES_VIEW_FORMAT_SINT_2X32' in found_values}} + ) + CU_RES_VIEW_FORMAT_SINT_2X32 = ( cydriver.CUresourceViewFormat_enum.CU_RES_VIEW_FORMAT_SINT_2X32, '2 channel signed 32-bit integers\n' - ){{endif}} - {{if 'CU_RES_VIEW_FORMAT_SINT_4X32' in found_values}} + ) + CU_RES_VIEW_FORMAT_SINT_4X32 = ( cydriver.CUresourceViewFormat_enum.CU_RES_VIEW_FORMAT_SINT_4X32, '4 channel signed 32-bit integers\n' - ){{endif}} - {{if 'CU_RES_VIEW_FORMAT_FLOAT_1X16' in found_values}} + ) + CU_RES_VIEW_FORMAT_FLOAT_1X16 = ( cydriver.CUresourceViewFormat_enum.CU_RES_VIEW_FORMAT_FLOAT_1X16, '1 channel 16-bit floating point\n' - ){{endif}} - {{if 'CU_RES_VIEW_FORMAT_FLOAT_2X16' in found_values}} + ) + CU_RES_VIEW_FORMAT_FLOAT_2X16 = ( cydriver.CUresourceViewFormat_enum.CU_RES_VIEW_FORMAT_FLOAT_2X16, '2 channel 16-bit floating point\n' - ){{endif}} - {{if 'CU_RES_VIEW_FORMAT_FLOAT_4X16' in found_values}} + ) + CU_RES_VIEW_FORMAT_FLOAT_4X16 = ( cydriver.CUresourceViewFormat_enum.CU_RES_VIEW_FORMAT_FLOAT_4X16, '4 channel 16-bit floating point\n' - ){{endif}} - {{if 'CU_RES_VIEW_FORMAT_FLOAT_1X32' in found_values}} + ) + CU_RES_VIEW_FORMAT_FLOAT_1X32 = ( cydriver.CUresourceViewFormat_enum.CU_RES_VIEW_FORMAT_FLOAT_1X32, '1 channel 32-bit floating point\n' - ){{endif}} - {{if 'CU_RES_VIEW_FORMAT_FLOAT_2X32' in found_values}} + ) + CU_RES_VIEW_FORMAT_FLOAT_2X32 = ( cydriver.CUresourceViewFormat_enum.CU_RES_VIEW_FORMAT_FLOAT_2X32, '2 channel 32-bit floating point\n' - ){{endif}} - {{if 'CU_RES_VIEW_FORMAT_FLOAT_4X32' in found_values}} + ) + CU_RES_VIEW_FORMAT_FLOAT_4X32 = ( cydriver.CUresourceViewFormat_enum.CU_RES_VIEW_FORMAT_FLOAT_4X32, '4 channel 32-bit floating point\n' - ){{endif}} - {{if 'CU_RES_VIEW_FORMAT_UNSIGNED_BC1' in found_values}} + ) + CU_RES_VIEW_FORMAT_UNSIGNED_BC1 = ( cydriver.CUresourceViewFormat_enum.CU_RES_VIEW_FORMAT_UNSIGNED_BC1, 'Block compressed 1\n' - ){{endif}} - {{if 'CU_RES_VIEW_FORMAT_UNSIGNED_BC2' in found_values}} + ) + CU_RES_VIEW_FORMAT_UNSIGNED_BC2 = ( cydriver.CUresourceViewFormat_enum.CU_RES_VIEW_FORMAT_UNSIGNED_BC2, 'Block compressed 2\n' - ){{endif}} - {{if 'CU_RES_VIEW_FORMAT_UNSIGNED_BC3' in found_values}} + ) + CU_RES_VIEW_FORMAT_UNSIGNED_BC3 = ( cydriver.CUresourceViewFormat_enum.CU_RES_VIEW_FORMAT_UNSIGNED_BC3, 'Block compressed 3\n' - ){{endif}} - {{if 'CU_RES_VIEW_FORMAT_UNSIGNED_BC4' in found_values}} + ) + CU_RES_VIEW_FORMAT_UNSIGNED_BC4 = ( cydriver.CUresourceViewFormat_enum.CU_RES_VIEW_FORMAT_UNSIGNED_BC4, 'Block compressed 4 unsigned\n' - ){{endif}} - {{if 'CU_RES_VIEW_FORMAT_SIGNED_BC4' in found_values}} + ) + CU_RES_VIEW_FORMAT_SIGNED_BC4 = ( cydriver.CUresourceViewFormat_enum.CU_RES_VIEW_FORMAT_SIGNED_BC4, 'Block compressed 4 signed\n' - ){{endif}} - {{if 'CU_RES_VIEW_FORMAT_UNSIGNED_BC5' in found_values}} + ) + CU_RES_VIEW_FORMAT_UNSIGNED_BC5 = ( cydriver.CUresourceViewFormat_enum.CU_RES_VIEW_FORMAT_UNSIGNED_BC5, 'Block compressed 5 unsigned\n' - ){{endif}} - {{if 'CU_RES_VIEW_FORMAT_SIGNED_BC5' in found_values}} + ) + CU_RES_VIEW_FORMAT_SIGNED_BC5 = ( cydriver.CUresourceViewFormat_enum.CU_RES_VIEW_FORMAT_SIGNED_BC5, 'Block compressed 5 signed\n' - ){{endif}} - {{if 'CU_RES_VIEW_FORMAT_UNSIGNED_BC6H' in found_values}} + ) + CU_RES_VIEW_FORMAT_UNSIGNED_BC6H = ( cydriver.CUresourceViewFormat_enum.CU_RES_VIEW_FORMAT_UNSIGNED_BC6H, 'Block compressed 6 unsigned half-float\n' - ){{endif}} - {{if 'CU_RES_VIEW_FORMAT_SIGNED_BC6H' in found_values}} + ) + CU_RES_VIEW_FORMAT_SIGNED_BC6H = ( cydriver.CUresourceViewFormat_enum.CU_RES_VIEW_FORMAT_SIGNED_BC6H, 'Block compressed 6 signed half-float\n' - ){{endif}} - {{if 'CU_RES_VIEW_FORMAT_UNSIGNED_BC7' in found_values}} + ) + CU_RES_VIEW_FORMAT_UNSIGNED_BC7 = ( cydriver.CUresourceViewFormat_enum.CU_RES_VIEW_FORMAT_UNSIGNED_BC7, 'Block compressed 7\n' - ){{endif}} - -{{endif}} -{{if 'CUtensorMapDataType_enum' in found_types}} + ) class CUtensorMapDataType(_FastEnum): """ Tensor map data type """ - {{if 'CU_TENSOR_MAP_DATA_TYPE_UINT8' in found_values}} - CU_TENSOR_MAP_DATA_TYPE_UINT8 = cydriver.CUtensorMapDataType_enum.CU_TENSOR_MAP_DATA_TYPE_UINT8{{endif}} - {{if 'CU_TENSOR_MAP_DATA_TYPE_UINT16' in found_values}} - CU_TENSOR_MAP_DATA_TYPE_UINT16 = cydriver.CUtensorMapDataType_enum.CU_TENSOR_MAP_DATA_TYPE_UINT16{{endif}} - {{if 'CU_TENSOR_MAP_DATA_TYPE_UINT32' in found_values}} - CU_TENSOR_MAP_DATA_TYPE_UINT32 = cydriver.CUtensorMapDataType_enum.CU_TENSOR_MAP_DATA_TYPE_UINT32{{endif}} - {{if 'CU_TENSOR_MAP_DATA_TYPE_INT32' in found_values}} - CU_TENSOR_MAP_DATA_TYPE_INT32 = cydriver.CUtensorMapDataType_enum.CU_TENSOR_MAP_DATA_TYPE_INT32{{endif}} - {{if 'CU_TENSOR_MAP_DATA_TYPE_UINT64' in found_values}} - CU_TENSOR_MAP_DATA_TYPE_UINT64 = cydriver.CUtensorMapDataType_enum.CU_TENSOR_MAP_DATA_TYPE_UINT64{{endif}} - {{if 'CU_TENSOR_MAP_DATA_TYPE_INT64' in found_values}} - CU_TENSOR_MAP_DATA_TYPE_INT64 = cydriver.CUtensorMapDataType_enum.CU_TENSOR_MAP_DATA_TYPE_INT64{{endif}} - {{if 'CU_TENSOR_MAP_DATA_TYPE_FLOAT16' in found_values}} - CU_TENSOR_MAP_DATA_TYPE_FLOAT16 = cydriver.CUtensorMapDataType_enum.CU_TENSOR_MAP_DATA_TYPE_FLOAT16{{endif}} - {{if 'CU_TENSOR_MAP_DATA_TYPE_FLOAT32' in found_values}} - CU_TENSOR_MAP_DATA_TYPE_FLOAT32 = cydriver.CUtensorMapDataType_enum.CU_TENSOR_MAP_DATA_TYPE_FLOAT32{{endif}} - {{if 'CU_TENSOR_MAP_DATA_TYPE_FLOAT64' in found_values}} - CU_TENSOR_MAP_DATA_TYPE_FLOAT64 = cydriver.CUtensorMapDataType_enum.CU_TENSOR_MAP_DATA_TYPE_FLOAT64{{endif}} - {{if 'CU_TENSOR_MAP_DATA_TYPE_BFLOAT16' in found_values}} - CU_TENSOR_MAP_DATA_TYPE_BFLOAT16 = cydriver.CUtensorMapDataType_enum.CU_TENSOR_MAP_DATA_TYPE_BFLOAT16{{endif}} - {{if 'CU_TENSOR_MAP_DATA_TYPE_FLOAT32_FTZ' in found_values}} - CU_TENSOR_MAP_DATA_TYPE_FLOAT32_FTZ = cydriver.CUtensorMapDataType_enum.CU_TENSOR_MAP_DATA_TYPE_FLOAT32_FTZ{{endif}} - {{if 'CU_TENSOR_MAP_DATA_TYPE_TFLOAT32' in found_values}} - CU_TENSOR_MAP_DATA_TYPE_TFLOAT32 = cydriver.CUtensorMapDataType_enum.CU_TENSOR_MAP_DATA_TYPE_TFLOAT32{{endif}} - {{if 'CU_TENSOR_MAP_DATA_TYPE_TFLOAT32_FTZ' in found_values}} - CU_TENSOR_MAP_DATA_TYPE_TFLOAT32_FTZ = cydriver.CUtensorMapDataType_enum.CU_TENSOR_MAP_DATA_TYPE_TFLOAT32_FTZ{{endif}} - {{if 'CU_TENSOR_MAP_DATA_TYPE_16U4_ALIGN8B' in found_values}} - CU_TENSOR_MAP_DATA_TYPE_16U4_ALIGN8B = cydriver.CUtensorMapDataType_enum.CU_TENSOR_MAP_DATA_TYPE_16U4_ALIGN8B{{endif}} - {{if 'CU_TENSOR_MAP_DATA_TYPE_16U4_ALIGN16B' in found_values}} - CU_TENSOR_MAP_DATA_TYPE_16U4_ALIGN16B = cydriver.CUtensorMapDataType_enum.CU_TENSOR_MAP_DATA_TYPE_16U4_ALIGN16B{{endif}} - {{if 'CU_TENSOR_MAP_DATA_TYPE_16U6_ALIGN16B' in found_values}} - CU_TENSOR_MAP_DATA_TYPE_16U6_ALIGN16B = cydriver.CUtensorMapDataType_enum.CU_TENSOR_MAP_DATA_TYPE_16U6_ALIGN16B{{endif}} - -{{endif}} -{{if 'CUtensorMapInterleave_enum' in found_types}} + + CU_TENSOR_MAP_DATA_TYPE_UINT8 = cydriver.CUtensorMapDataType_enum.CU_TENSOR_MAP_DATA_TYPE_UINT8 + + CU_TENSOR_MAP_DATA_TYPE_UINT16 = cydriver.CUtensorMapDataType_enum.CU_TENSOR_MAP_DATA_TYPE_UINT16 + + CU_TENSOR_MAP_DATA_TYPE_UINT32 = cydriver.CUtensorMapDataType_enum.CU_TENSOR_MAP_DATA_TYPE_UINT32 + + CU_TENSOR_MAP_DATA_TYPE_INT32 = cydriver.CUtensorMapDataType_enum.CU_TENSOR_MAP_DATA_TYPE_INT32 + + CU_TENSOR_MAP_DATA_TYPE_UINT64 = cydriver.CUtensorMapDataType_enum.CU_TENSOR_MAP_DATA_TYPE_UINT64 + + CU_TENSOR_MAP_DATA_TYPE_INT64 = cydriver.CUtensorMapDataType_enum.CU_TENSOR_MAP_DATA_TYPE_INT64 + + CU_TENSOR_MAP_DATA_TYPE_FLOAT16 = cydriver.CUtensorMapDataType_enum.CU_TENSOR_MAP_DATA_TYPE_FLOAT16 + + CU_TENSOR_MAP_DATA_TYPE_FLOAT32 = cydriver.CUtensorMapDataType_enum.CU_TENSOR_MAP_DATA_TYPE_FLOAT32 + + CU_TENSOR_MAP_DATA_TYPE_FLOAT64 = cydriver.CUtensorMapDataType_enum.CU_TENSOR_MAP_DATA_TYPE_FLOAT64 + + CU_TENSOR_MAP_DATA_TYPE_BFLOAT16 = cydriver.CUtensorMapDataType_enum.CU_TENSOR_MAP_DATA_TYPE_BFLOAT16 + + CU_TENSOR_MAP_DATA_TYPE_FLOAT32_FTZ = cydriver.CUtensorMapDataType_enum.CU_TENSOR_MAP_DATA_TYPE_FLOAT32_FTZ + + CU_TENSOR_MAP_DATA_TYPE_TFLOAT32 = cydriver.CUtensorMapDataType_enum.CU_TENSOR_MAP_DATA_TYPE_TFLOAT32 + + CU_TENSOR_MAP_DATA_TYPE_TFLOAT32_FTZ = cydriver.CUtensorMapDataType_enum.CU_TENSOR_MAP_DATA_TYPE_TFLOAT32_FTZ + + CU_TENSOR_MAP_DATA_TYPE_16U4_ALIGN8B = cydriver.CUtensorMapDataType_enum.CU_TENSOR_MAP_DATA_TYPE_16U4_ALIGN8B + + CU_TENSOR_MAP_DATA_TYPE_16U4_ALIGN16B = cydriver.CUtensorMapDataType_enum.CU_TENSOR_MAP_DATA_TYPE_16U4_ALIGN16B + + CU_TENSOR_MAP_DATA_TYPE_16U6_ALIGN16B = cydriver.CUtensorMapDataType_enum.CU_TENSOR_MAP_DATA_TYPE_16U6_ALIGN16B class CUtensorMapInterleave(_FastEnum): """ Tensor map interleave layout type """ - {{if 'CU_TENSOR_MAP_INTERLEAVE_NONE' in found_values}} - CU_TENSOR_MAP_INTERLEAVE_NONE = cydriver.CUtensorMapInterleave_enum.CU_TENSOR_MAP_INTERLEAVE_NONE{{endif}} - {{if 'CU_TENSOR_MAP_INTERLEAVE_16B' in found_values}} - CU_TENSOR_MAP_INTERLEAVE_16B = cydriver.CUtensorMapInterleave_enum.CU_TENSOR_MAP_INTERLEAVE_16B{{endif}} - {{if 'CU_TENSOR_MAP_INTERLEAVE_32B' in found_values}} - CU_TENSOR_MAP_INTERLEAVE_32B = cydriver.CUtensorMapInterleave_enum.CU_TENSOR_MAP_INTERLEAVE_32B{{endif}} -{{endif}} -{{if 'CUtensorMapSwizzle_enum' in found_types}} + CU_TENSOR_MAP_INTERLEAVE_NONE = cydriver.CUtensorMapInterleave_enum.CU_TENSOR_MAP_INTERLEAVE_NONE + + CU_TENSOR_MAP_INTERLEAVE_16B = cydriver.CUtensorMapInterleave_enum.CU_TENSOR_MAP_INTERLEAVE_16B + + CU_TENSOR_MAP_INTERLEAVE_32B = cydriver.CUtensorMapInterleave_enum.CU_TENSOR_MAP_INTERLEAVE_32B class CUtensorMapSwizzle(_FastEnum): """ Tensor map swizzling mode of shared memory banks """ - {{if 'CU_TENSOR_MAP_SWIZZLE_NONE' in found_values}} - CU_TENSOR_MAP_SWIZZLE_NONE = cydriver.CUtensorMapSwizzle_enum.CU_TENSOR_MAP_SWIZZLE_NONE{{endif}} - {{if 'CU_TENSOR_MAP_SWIZZLE_32B' in found_values}} - CU_TENSOR_MAP_SWIZZLE_32B = cydriver.CUtensorMapSwizzle_enum.CU_TENSOR_MAP_SWIZZLE_32B{{endif}} - {{if 'CU_TENSOR_MAP_SWIZZLE_64B' in found_values}} - CU_TENSOR_MAP_SWIZZLE_64B = cydriver.CUtensorMapSwizzle_enum.CU_TENSOR_MAP_SWIZZLE_64B{{endif}} - {{if 'CU_TENSOR_MAP_SWIZZLE_128B' in found_values}} - CU_TENSOR_MAP_SWIZZLE_128B = cydriver.CUtensorMapSwizzle_enum.CU_TENSOR_MAP_SWIZZLE_128B{{endif}} - {{if 'CU_TENSOR_MAP_SWIZZLE_128B_ATOM_32B' in found_values}} - CU_TENSOR_MAP_SWIZZLE_128B_ATOM_32B = cydriver.CUtensorMapSwizzle_enum.CU_TENSOR_MAP_SWIZZLE_128B_ATOM_32B{{endif}} - {{if 'CU_TENSOR_MAP_SWIZZLE_128B_ATOM_32B_FLIP_8B' in found_values}} - CU_TENSOR_MAP_SWIZZLE_128B_ATOM_32B_FLIP_8B = cydriver.CUtensorMapSwizzle_enum.CU_TENSOR_MAP_SWIZZLE_128B_ATOM_32B_FLIP_8B{{endif}} - {{if 'CU_TENSOR_MAP_SWIZZLE_128B_ATOM_64B' in found_values}} - CU_TENSOR_MAP_SWIZZLE_128B_ATOM_64B = cydriver.CUtensorMapSwizzle_enum.CU_TENSOR_MAP_SWIZZLE_128B_ATOM_64B{{endif}} - -{{endif}} -{{if 'CUtensorMapL2promotion_enum' in found_types}} + + CU_TENSOR_MAP_SWIZZLE_NONE = cydriver.CUtensorMapSwizzle_enum.CU_TENSOR_MAP_SWIZZLE_NONE + + CU_TENSOR_MAP_SWIZZLE_32B = cydriver.CUtensorMapSwizzle_enum.CU_TENSOR_MAP_SWIZZLE_32B + + CU_TENSOR_MAP_SWIZZLE_64B = cydriver.CUtensorMapSwizzle_enum.CU_TENSOR_MAP_SWIZZLE_64B + + CU_TENSOR_MAP_SWIZZLE_128B = cydriver.CUtensorMapSwizzle_enum.CU_TENSOR_MAP_SWIZZLE_128B + + CU_TENSOR_MAP_SWIZZLE_128B_ATOM_32B = cydriver.CUtensorMapSwizzle_enum.CU_TENSOR_MAP_SWIZZLE_128B_ATOM_32B + + CU_TENSOR_MAP_SWIZZLE_128B_ATOM_32B_FLIP_8B = cydriver.CUtensorMapSwizzle_enum.CU_TENSOR_MAP_SWIZZLE_128B_ATOM_32B_FLIP_8B + + CU_TENSOR_MAP_SWIZZLE_128B_ATOM_64B = cydriver.CUtensorMapSwizzle_enum.CU_TENSOR_MAP_SWIZZLE_128B_ATOM_64B class CUtensorMapL2promotion(_FastEnum): """ Tensor map L2 promotion type """ - {{if 'CU_TENSOR_MAP_L2_PROMOTION_NONE' in found_values}} - CU_TENSOR_MAP_L2_PROMOTION_NONE = cydriver.CUtensorMapL2promotion_enum.CU_TENSOR_MAP_L2_PROMOTION_NONE{{endif}} - {{if 'CU_TENSOR_MAP_L2_PROMOTION_L2_64B' in found_values}} - CU_TENSOR_MAP_L2_PROMOTION_L2_64B = cydriver.CUtensorMapL2promotion_enum.CU_TENSOR_MAP_L2_PROMOTION_L2_64B{{endif}} - {{if 'CU_TENSOR_MAP_L2_PROMOTION_L2_128B' in found_values}} - CU_TENSOR_MAP_L2_PROMOTION_L2_128B = cydriver.CUtensorMapL2promotion_enum.CU_TENSOR_MAP_L2_PROMOTION_L2_128B{{endif}} - {{if 'CU_TENSOR_MAP_L2_PROMOTION_L2_256B' in found_values}} - CU_TENSOR_MAP_L2_PROMOTION_L2_256B = cydriver.CUtensorMapL2promotion_enum.CU_TENSOR_MAP_L2_PROMOTION_L2_256B{{endif}} -{{endif}} -{{if 'CUtensorMapFloatOOBfill_enum' in found_types}} + CU_TENSOR_MAP_L2_PROMOTION_NONE = cydriver.CUtensorMapL2promotion_enum.CU_TENSOR_MAP_L2_PROMOTION_NONE + + CU_TENSOR_MAP_L2_PROMOTION_L2_64B = cydriver.CUtensorMapL2promotion_enum.CU_TENSOR_MAP_L2_PROMOTION_L2_64B + + CU_TENSOR_MAP_L2_PROMOTION_L2_128B = cydriver.CUtensorMapL2promotion_enum.CU_TENSOR_MAP_L2_PROMOTION_L2_128B + + CU_TENSOR_MAP_L2_PROMOTION_L2_256B = cydriver.CUtensorMapL2promotion_enum.CU_TENSOR_MAP_L2_PROMOTION_L2_256B class CUtensorMapFloatOOBfill(_FastEnum): """ Tensor map out-of-bounds fill type """ - {{if 'CU_TENSOR_MAP_FLOAT_OOB_FILL_NONE' in found_values}} - CU_TENSOR_MAP_FLOAT_OOB_FILL_NONE = cydriver.CUtensorMapFloatOOBfill_enum.CU_TENSOR_MAP_FLOAT_OOB_FILL_NONE{{endif}} - {{if 'CU_TENSOR_MAP_FLOAT_OOB_FILL_NAN_REQUEST_ZERO_FMA' in found_values}} - CU_TENSOR_MAP_FLOAT_OOB_FILL_NAN_REQUEST_ZERO_FMA = cydriver.CUtensorMapFloatOOBfill_enum.CU_TENSOR_MAP_FLOAT_OOB_FILL_NAN_REQUEST_ZERO_FMA{{endif}} -{{endif}} -{{if 'CUtensorMapIm2ColWideMode_enum' in found_types}} + CU_TENSOR_MAP_FLOAT_OOB_FILL_NONE = cydriver.CUtensorMapFloatOOBfill_enum.CU_TENSOR_MAP_FLOAT_OOB_FILL_NONE + + CU_TENSOR_MAP_FLOAT_OOB_FILL_NAN_REQUEST_ZERO_FMA = cydriver.CUtensorMapFloatOOBfill_enum.CU_TENSOR_MAP_FLOAT_OOB_FILL_NAN_REQUEST_ZERO_FMA class CUtensorMapIm2ColWideMode(_FastEnum): """ Tensor map Im2Col wide mode """ - {{if 'CU_TENSOR_MAP_IM2COL_WIDE_MODE_W' in found_values}} - CU_TENSOR_MAP_IM2COL_WIDE_MODE_W = cydriver.CUtensorMapIm2ColWideMode_enum.CU_TENSOR_MAP_IM2COL_WIDE_MODE_W{{endif}} - {{if 'CU_TENSOR_MAP_IM2COL_WIDE_MODE_W128' in found_values}} - CU_TENSOR_MAP_IM2COL_WIDE_MODE_W128 = cydriver.CUtensorMapIm2ColWideMode_enum.CU_TENSOR_MAP_IM2COL_WIDE_MODE_W128{{endif}} -{{endif}} -{{if 'CUDA_POINTER_ATTRIBUTE_ACCESS_FLAGS_enum' in found_types}} + CU_TENSOR_MAP_IM2COL_WIDE_MODE_W = cydriver.CUtensorMapIm2ColWideMode_enum.CU_TENSOR_MAP_IM2COL_WIDE_MODE_W + + CU_TENSOR_MAP_IM2COL_WIDE_MODE_W128 = cydriver.CUtensorMapIm2ColWideMode_enum.CU_TENSOR_MAP_IM2COL_WIDE_MODE_W128 class CUDA_POINTER_ATTRIBUTE_ACCESS_FLAGS(_FastEnum): """ Access flags that specify the level of access the current context's device has on the memory referenced. """ - {{if 'CU_POINTER_ATTRIBUTE_ACCESS_FLAG_NONE' in found_values}} + CU_POINTER_ATTRIBUTE_ACCESS_FLAG_NONE = ( cydriver.CUDA_POINTER_ATTRIBUTE_ACCESS_FLAGS_enum.CU_POINTER_ATTRIBUTE_ACCESS_FLAG_NONE, 'No access, meaning the device cannot access this memory at all, thus must\n' 'be staged through accessible memory in order to complete certain operations\n' - ){{endif}} - {{if 'CU_POINTER_ATTRIBUTE_ACCESS_FLAG_READ' in found_values}} + ) + CU_POINTER_ATTRIBUTE_ACCESS_FLAG_READ = ( cydriver.CUDA_POINTER_ATTRIBUTE_ACCESS_FLAGS_enum.CU_POINTER_ATTRIBUTE_ACCESS_FLAG_READ, 'Read-only access, meaning writes to this memory are considered invalid\n' 'accesses and thus return error in that case.\n' - ){{endif}} - {{if 'CU_POINTER_ATTRIBUTE_ACCESS_FLAG_READWRITE' in found_values}} + ) + CU_POINTER_ATTRIBUTE_ACCESS_FLAG_READWRITE = ( cydriver.CUDA_POINTER_ATTRIBUTE_ACCESS_FLAGS_enum.CU_POINTER_ATTRIBUTE_ACCESS_FLAG_READWRITE, 'Read-write access, the device has full read-write access to the memory\n' - ){{endif}} - -{{endif}} -{{if 'CUexternalMemoryHandleType_enum' in found_types}} + ) class CUexternalMemoryHandleType(_FastEnum): """ External memory handle types """ - {{if 'CU_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_FD' in found_values}} + CU_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_FD = ( cydriver.CUexternalMemoryHandleType_enum.CU_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_FD, 'Handle is an opaque file descriptor\n' - ){{endif}} - {{if 'CU_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_WIN32' in found_values}} + ) + CU_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_WIN32 = ( cydriver.CUexternalMemoryHandleType_enum.CU_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_WIN32, 'Handle is an opaque shared NT handle\n' - ){{endif}} - {{if 'CU_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_WIN32_KMT' in found_values}} + ) + CU_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_WIN32_KMT = ( cydriver.CUexternalMemoryHandleType_enum.CU_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_WIN32_KMT, 'Handle is an opaque, globally shared handle\n' - ){{endif}} - {{if 'CU_EXTERNAL_MEMORY_HANDLE_TYPE_D3D12_HEAP' in found_values}} + ) + CU_EXTERNAL_MEMORY_HANDLE_TYPE_D3D12_HEAP = ( cydriver.CUexternalMemoryHandleType_enum.CU_EXTERNAL_MEMORY_HANDLE_TYPE_D3D12_HEAP, 'Handle is a D3D12 heap object\n' - ){{endif}} - {{if 'CU_EXTERNAL_MEMORY_HANDLE_TYPE_D3D12_RESOURCE' in found_values}} + ) + CU_EXTERNAL_MEMORY_HANDLE_TYPE_D3D12_RESOURCE = ( cydriver.CUexternalMemoryHandleType_enum.CU_EXTERNAL_MEMORY_HANDLE_TYPE_D3D12_RESOURCE, 'Handle is a D3D12 committed resource\n' - ){{endif}} - {{if 'CU_EXTERNAL_MEMORY_HANDLE_TYPE_D3D11_RESOURCE' in found_values}} + ) + CU_EXTERNAL_MEMORY_HANDLE_TYPE_D3D11_RESOURCE = ( cydriver.CUexternalMemoryHandleType_enum.CU_EXTERNAL_MEMORY_HANDLE_TYPE_D3D11_RESOURCE, 'Handle is a shared NT handle to a D3D11 resource\n' - ){{endif}} - {{if 'CU_EXTERNAL_MEMORY_HANDLE_TYPE_D3D11_RESOURCE_KMT' in found_values}} + ) + CU_EXTERNAL_MEMORY_HANDLE_TYPE_D3D11_RESOURCE_KMT = ( cydriver.CUexternalMemoryHandleType_enum.CU_EXTERNAL_MEMORY_HANDLE_TYPE_D3D11_RESOURCE_KMT, 'Handle is a globally shared handle to a D3D11 resource\n' - ){{endif}} - {{if 'CU_EXTERNAL_MEMORY_HANDLE_TYPE_NVSCIBUF' in found_values}} + ) + CU_EXTERNAL_MEMORY_HANDLE_TYPE_NVSCIBUF = ( cydriver.CUexternalMemoryHandleType_enum.CU_EXTERNAL_MEMORY_HANDLE_TYPE_NVSCIBUF, 'Handle is an NvSciBuf object\n' - ){{endif}} - {{if 'CU_EXTERNAL_MEMORY_HANDLE_TYPE_DMABUF_FD' in found_values}} + ) + CU_EXTERNAL_MEMORY_HANDLE_TYPE_DMABUF_FD = ( cydriver.CUexternalMemoryHandleType_enum.CU_EXTERNAL_MEMORY_HANDLE_TYPE_DMABUF_FD, 'Handle is a dma_buf file descriptor\n' - ){{endif}} - -{{endif}} -{{if 'CUexternalSemaphoreHandleType_enum' in found_types}} + ) class CUexternalSemaphoreHandleType(_FastEnum): """ External semaphore handle types """ - {{if 'CU_EXTERNAL_SEMAPHORE_HANDLE_TYPE_OPAQUE_FD' in found_values}} + CU_EXTERNAL_SEMAPHORE_HANDLE_TYPE_OPAQUE_FD = ( cydriver.CUexternalSemaphoreHandleType_enum.CU_EXTERNAL_SEMAPHORE_HANDLE_TYPE_OPAQUE_FD, 'Handle is an opaque file descriptor\n' - ){{endif}} - {{if 'CU_EXTERNAL_SEMAPHORE_HANDLE_TYPE_OPAQUE_WIN32' in found_values}} + ) + CU_EXTERNAL_SEMAPHORE_HANDLE_TYPE_OPAQUE_WIN32 = ( cydriver.CUexternalSemaphoreHandleType_enum.CU_EXTERNAL_SEMAPHORE_HANDLE_TYPE_OPAQUE_WIN32, 'Handle is an opaque shared NT handle\n' - ){{endif}} - {{if 'CU_EXTERNAL_SEMAPHORE_HANDLE_TYPE_OPAQUE_WIN32_KMT' in found_values}} + ) + CU_EXTERNAL_SEMAPHORE_HANDLE_TYPE_OPAQUE_WIN32_KMT = ( cydriver.CUexternalSemaphoreHandleType_enum.CU_EXTERNAL_SEMAPHORE_HANDLE_TYPE_OPAQUE_WIN32_KMT, 'Handle is an opaque, globally shared handle\n' - ){{endif}} - {{if 'CU_EXTERNAL_SEMAPHORE_HANDLE_TYPE_D3D12_FENCE' in found_values}} + ) + CU_EXTERNAL_SEMAPHORE_HANDLE_TYPE_D3D12_FENCE = ( cydriver.CUexternalSemaphoreHandleType_enum.CU_EXTERNAL_SEMAPHORE_HANDLE_TYPE_D3D12_FENCE, 'Handle is a shared NT handle referencing a D3D12 fence object\n' - ){{endif}} - {{if 'CU_EXTERNAL_SEMAPHORE_HANDLE_TYPE_D3D11_FENCE' in found_values}} + ) + CU_EXTERNAL_SEMAPHORE_HANDLE_TYPE_D3D11_FENCE = ( cydriver.CUexternalSemaphoreHandleType_enum.CU_EXTERNAL_SEMAPHORE_HANDLE_TYPE_D3D11_FENCE, 'Handle is a shared NT handle referencing a D3D11 fence object\n' - ){{endif}} - {{if 'CU_EXTERNAL_SEMAPHORE_HANDLE_TYPE_NVSCISYNC' in found_values}} + ) + CU_EXTERNAL_SEMAPHORE_HANDLE_TYPE_NVSCISYNC = ( cydriver.CUexternalSemaphoreHandleType_enum.CU_EXTERNAL_SEMAPHORE_HANDLE_TYPE_NVSCISYNC, 'Opaque handle to NvSciSync Object\n' - ){{endif}} - {{if 'CU_EXTERNAL_SEMAPHORE_HANDLE_TYPE_D3D11_KEYED_MUTEX' in found_values}} + ) + CU_EXTERNAL_SEMAPHORE_HANDLE_TYPE_D3D11_KEYED_MUTEX = ( cydriver.CUexternalSemaphoreHandleType_enum.CU_EXTERNAL_SEMAPHORE_HANDLE_TYPE_D3D11_KEYED_MUTEX, 'Handle is a shared NT handle referencing a D3D11 keyed mutex object\n' - ){{endif}} - {{if 'CU_EXTERNAL_SEMAPHORE_HANDLE_TYPE_D3D11_KEYED_MUTEX_KMT' in found_values}} + ) + CU_EXTERNAL_SEMAPHORE_HANDLE_TYPE_D3D11_KEYED_MUTEX_KMT = ( cydriver.CUexternalSemaphoreHandleType_enum.CU_EXTERNAL_SEMAPHORE_HANDLE_TYPE_D3D11_KEYED_MUTEX_KMT, 'Handle is a globally shared handle referencing a D3D11 keyed mutex object\n' - ){{endif}} - {{if 'CU_EXTERNAL_SEMAPHORE_HANDLE_TYPE_TIMELINE_SEMAPHORE_FD' in found_values}} + ) + CU_EXTERNAL_SEMAPHORE_HANDLE_TYPE_TIMELINE_SEMAPHORE_FD = ( cydriver.CUexternalSemaphoreHandleType_enum.CU_EXTERNAL_SEMAPHORE_HANDLE_TYPE_TIMELINE_SEMAPHORE_FD, 'Handle is an opaque file descriptor referencing a timeline semaphore\n' - ){{endif}} - {{if 'CU_EXTERNAL_SEMAPHORE_HANDLE_TYPE_TIMELINE_SEMAPHORE_WIN32' in found_values}} + ) + CU_EXTERNAL_SEMAPHORE_HANDLE_TYPE_TIMELINE_SEMAPHORE_WIN32 = ( cydriver.CUexternalSemaphoreHandleType_enum.CU_EXTERNAL_SEMAPHORE_HANDLE_TYPE_TIMELINE_SEMAPHORE_WIN32, 'Handle is an opaque shared NT handle referencing a timeline semaphore\n' - ){{endif}} - -{{endif}} -{{if 'CUmemAllocationHandleType_enum' in found_types}} + ) class CUmemAllocationHandleType(_FastEnum): """ Flags for specifying particular handle types """ - {{if 'CU_MEM_HANDLE_TYPE_NONE' in found_values}} + CU_MEM_HANDLE_TYPE_NONE = ( cydriver.CUmemAllocationHandleType_enum.CU_MEM_HANDLE_TYPE_NONE, 'Does not allow any export mechanism. >\n' - ){{endif}} - {{if 'CU_MEM_HANDLE_TYPE_POSIX_FILE_DESCRIPTOR' in found_values}} + ) + CU_MEM_HANDLE_TYPE_POSIX_FILE_DESCRIPTOR = ( cydriver.CUmemAllocationHandleType_enum.CU_MEM_HANDLE_TYPE_POSIX_FILE_DESCRIPTOR, 'Allows a file descriptor to be used for exporting. Permitted only on POSIX\n' 'systems. (int)\n' - ){{endif}} - {{if 'CU_MEM_HANDLE_TYPE_WIN32' in found_values}} + ) + CU_MEM_HANDLE_TYPE_WIN32 = ( cydriver.CUmemAllocationHandleType_enum.CU_MEM_HANDLE_TYPE_WIN32, 'Allows a Win32 NT handle to be used for exporting. (HANDLE)\n' - ){{endif}} - {{if 'CU_MEM_HANDLE_TYPE_WIN32_KMT' in found_values}} + ) + CU_MEM_HANDLE_TYPE_WIN32_KMT = ( cydriver.CUmemAllocationHandleType_enum.CU_MEM_HANDLE_TYPE_WIN32_KMT, 'Allows a Win32 KMT handle to be used for exporting. (D3DKMT_HANDLE)\n' - ){{endif}} - {{if 'CU_MEM_HANDLE_TYPE_FABRIC' in found_values}} + ) + CU_MEM_HANDLE_TYPE_FABRIC = ( cydriver.CUmemAllocationHandleType_enum.CU_MEM_HANDLE_TYPE_FABRIC, 'Allows a fabric handle to be used for exporting. (CUmemFabricHandle)\n' - ){{endif}} - {{if 'CU_MEM_HANDLE_TYPE_MAX' in found_values}} - CU_MEM_HANDLE_TYPE_MAX = cydriver.CUmemAllocationHandleType_enum.CU_MEM_HANDLE_TYPE_MAX{{endif}} + ) -{{endif}} -{{if 'CUmemAccess_flags_enum' in found_types}} + CU_MEM_HANDLE_TYPE_MAX = cydriver.CUmemAllocationHandleType_enum.CU_MEM_HANDLE_TYPE_MAX class CUmemAccess_flags(_FastEnum): """ Specifies the memory protection flags for mapping. """ - {{if 'CU_MEM_ACCESS_FLAGS_PROT_NONE' in found_values}} + CU_MEM_ACCESS_FLAGS_PROT_NONE = ( cydriver.CUmemAccess_flags_enum.CU_MEM_ACCESS_FLAGS_PROT_NONE, 'Default, make the address range not accessible\n' - ){{endif}} - {{if 'CU_MEM_ACCESS_FLAGS_PROT_READ' in found_values}} + ) + CU_MEM_ACCESS_FLAGS_PROT_READ = ( cydriver.CUmemAccess_flags_enum.CU_MEM_ACCESS_FLAGS_PROT_READ, 'Make the address range read accessible\n' - ){{endif}} - {{if 'CU_MEM_ACCESS_FLAGS_PROT_READWRITE' in found_values}} + ) + CU_MEM_ACCESS_FLAGS_PROT_READWRITE = ( cydriver.CUmemAccess_flags_enum.CU_MEM_ACCESS_FLAGS_PROT_READWRITE, 'Make the address range read-write accessible\n' - ){{endif}} - {{if 'CU_MEM_ACCESS_FLAGS_PROT_MAX' in found_values}} - CU_MEM_ACCESS_FLAGS_PROT_MAX = cydriver.CUmemAccess_flags_enum.CU_MEM_ACCESS_FLAGS_PROT_MAX{{endif}} + ) -{{endif}} -{{if 'CUmemLocationType_enum' in found_types}} + CU_MEM_ACCESS_FLAGS_PROT_MAX = cydriver.CUmemAccess_flags_enum.CU_MEM_ACCESS_FLAGS_PROT_MAX class CUmemLocationType(_FastEnum): """ Specifies the type of location """ - {{if 'CU_MEM_LOCATION_TYPE_INVALID' in found_values}} - CU_MEM_LOCATION_TYPE_INVALID = cydriver.CUmemLocationType_enum.CU_MEM_LOCATION_TYPE_INVALID{{endif}} - {{if 'CU_MEM_LOCATION_TYPE_NONE' in found_values}} + + CU_MEM_LOCATION_TYPE_INVALID = cydriver.CUmemLocationType_enum.CU_MEM_LOCATION_TYPE_INVALID + CU_MEM_LOCATION_TYPE_NONE = ( cydriver.CUmemLocationType_enum.CU_MEM_LOCATION_TYPE_NONE, 'Location is unspecified. This is used when creating a managed memory pool\n' 'to indicate no preferred location for the pool\n' - ){{endif}} - {{if 'CU_MEM_LOCATION_TYPE_DEVICE' in found_values}} + ) + CU_MEM_LOCATION_TYPE_DEVICE = ( cydriver.CUmemLocationType_enum.CU_MEM_LOCATION_TYPE_DEVICE, 'Location is a device location, thus id is a device ordinal\n' - ){{endif}} - {{if 'CU_MEM_LOCATION_TYPE_HOST' in found_values}} + ) + CU_MEM_LOCATION_TYPE_HOST = ( cydriver.CUmemLocationType_enum.CU_MEM_LOCATION_TYPE_HOST, 'Location is host, id is ignored\n' - ){{endif}} - {{if 'CU_MEM_LOCATION_TYPE_HOST_NUMA' in found_values}} + ) + CU_MEM_LOCATION_TYPE_HOST_NUMA = ( cydriver.CUmemLocationType_enum.CU_MEM_LOCATION_TYPE_HOST_NUMA, 'Location is a host NUMA node, thus id is a host NUMA node id\n' - ){{endif}} - {{if 'CU_MEM_LOCATION_TYPE_HOST_NUMA_CURRENT' in found_values}} + ) + CU_MEM_LOCATION_TYPE_HOST_NUMA_CURRENT = ( cydriver.CUmemLocationType_enum.CU_MEM_LOCATION_TYPE_HOST_NUMA_CURRENT, 'Location is a host NUMA node of the current thread, id is ignored\n' - ){{endif}} - {{if 'CU_MEM_LOCATION_TYPE_INVISIBLE' in found_values}} + ) + CU_MEM_LOCATION_TYPE_INVISIBLE = ( cydriver.CUmemLocationType_enum.CU_MEM_LOCATION_TYPE_INVISIBLE, 'Location is not visible but device is accessible, id is always\n' 'CU_DEVICE_INVALID\n' - ){{endif}} - {{if 'CU_MEM_LOCATION_TYPE_MAX' in found_values}} - CU_MEM_LOCATION_TYPE_MAX = cydriver.CUmemLocationType_enum.CU_MEM_LOCATION_TYPE_MAX{{endif}} + ) -{{endif}} -{{if 'CUmemAllocationType_enum' in found_types}} + CU_MEM_LOCATION_TYPE_MAX = cydriver.CUmemLocationType_enum.CU_MEM_LOCATION_TYPE_MAX class CUmemAllocationType(_FastEnum): """ Defines the allocation types available """ - {{if 'CU_MEM_ALLOCATION_TYPE_INVALID' in found_values}} - CU_MEM_ALLOCATION_TYPE_INVALID = cydriver.CUmemAllocationType_enum.CU_MEM_ALLOCATION_TYPE_INVALID{{endif}} - {{if 'CU_MEM_ALLOCATION_TYPE_PINNED' in found_values}} + + CU_MEM_ALLOCATION_TYPE_INVALID = cydriver.CUmemAllocationType_enum.CU_MEM_ALLOCATION_TYPE_INVALID + CU_MEM_ALLOCATION_TYPE_PINNED = ( cydriver.CUmemAllocationType_enum.CU_MEM_ALLOCATION_TYPE_PINNED, "This allocation type is 'pinned', i.e. cannot migrate from its current\n" 'location while the application is actively using it\n' - ){{endif}} - {{if 'CU_MEM_ALLOCATION_TYPE_MANAGED' in found_values}} + ) + CU_MEM_ALLOCATION_TYPE_MANAGED = ( cydriver.CUmemAllocationType_enum.CU_MEM_ALLOCATION_TYPE_MANAGED, 'This allocation type is managed memory\n' - ){{endif}} - {{if 'CU_MEM_ALLOCATION_TYPE_MAX' in found_values}} - CU_MEM_ALLOCATION_TYPE_MAX = cydriver.CUmemAllocationType_enum.CU_MEM_ALLOCATION_TYPE_MAX{{endif}} + ) -{{endif}} -{{if 'CUmemAllocationGranularity_flags_enum' in found_types}} + CU_MEM_ALLOCATION_TYPE_MAX = cydriver.CUmemAllocationType_enum.CU_MEM_ALLOCATION_TYPE_MAX class CUmemAllocationGranularity_flags(_FastEnum): """ Flag for requesting different optimal and required granularities for an allocation. """ - {{if 'CU_MEM_ALLOC_GRANULARITY_MINIMUM' in found_values}} + CU_MEM_ALLOC_GRANULARITY_MINIMUM = ( cydriver.CUmemAllocationGranularity_flags_enum.CU_MEM_ALLOC_GRANULARITY_MINIMUM, 'Minimum required granularity for allocation\n' - ){{endif}} - {{if 'CU_MEM_ALLOC_GRANULARITY_RECOMMENDED' in found_values}} + ) + CU_MEM_ALLOC_GRANULARITY_RECOMMENDED = ( cydriver.CUmemAllocationGranularity_flags_enum.CU_MEM_ALLOC_GRANULARITY_RECOMMENDED, 'Recommended granularity for allocation for best performance\n' - ){{endif}} - -{{endif}} -{{if 'CUmemRangeHandleType_enum' in found_types}} + ) class CUmemRangeHandleType(_FastEnum): """ Specifies the handle type for address range """ - {{if 'CU_MEM_RANGE_HANDLE_TYPE_DMA_BUF_FD' in found_values}} - CU_MEM_RANGE_HANDLE_TYPE_DMA_BUF_FD = cydriver.CUmemRangeHandleType_enum.CU_MEM_RANGE_HANDLE_TYPE_DMA_BUF_FD{{endif}} - {{if 'CU_MEM_RANGE_HANDLE_TYPE_MAX' in found_values}} - CU_MEM_RANGE_HANDLE_TYPE_MAX = cydriver.CUmemRangeHandleType_enum.CU_MEM_RANGE_HANDLE_TYPE_MAX{{endif}} -{{endif}} -{{if 'CUmemRangeFlags_enum' in found_types}} + CU_MEM_RANGE_HANDLE_TYPE_DMA_BUF_FD = cydriver.CUmemRangeHandleType_enum.CU_MEM_RANGE_HANDLE_TYPE_DMA_BUF_FD + + CU_MEM_RANGE_HANDLE_TYPE_MAX = cydriver.CUmemRangeHandleType_enum.CU_MEM_RANGE_HANDLE_TYPE_MAX class CUmemRangeFlags(_FastEnum): """ Flag for requesting handle type for address range. """ - {{if 'CU_MEM_RANGE_FLAG_DMA_BUF_MAPPING_TYPE_PCIE' in found_values}} + CU_MEM_RANGE_FLAG_DMA_BUF_MAPPING_TYPE_PCIE = ( cydriver.CUmemRangeFlags_enum.CU_MEM_RANGE_FLAG_DMA_BUF_MAPPING_TYPE_PCIE, 'Indicates that DMA_BUF handle should be mapped via PCIe BAR1\n' - ){{endif}} - -{{endif}} -{{if 'CUarraySparseSubresourceType_enum' in found_types}} + ) class CUarraySparseSubresourceType(_FastEnum): """ Sparse subresource types """ - {{if 'CU_ARRAY_SPARSE_SUBRESOURCE_TYPE_SPARSE_LEVEL' in found_values}} - CU_ARRAY_SPARSE_SUBRESOURCE_TYPE_SPARSE_LEVEL = cydriver.CUarraySparseSubresourceType_enum.CU_ARRAY_SPARSE_SUBRESOURCE_TYPE_SPARSE_LEVEL{{endif}} - {{if 'CU_ARRAY_SPARSE_SUBRESOURCE_TYPE_MIPTAIL' in found_values}} - CU_ARRAY_SPARSE_SUBRESOURCE_TYPE_MIPTAIL = cydriver.CUarraySparseSubresourceType_enum.CU_ARRAY_SPARSE_SUBRESOURCE_TYPE_MIPTAIL{{endif}} -{{endif}} -{{if 'CUmemOperationType_enum' in found_types}} + CU_ARRAY_SPARSE_SUBRESOURCE_TYPE_SPARSE_LEVEL = cydriver.CUarraySparseSubresourceType_enum.CU_ARRAY_SPARSE_SUBRESOURCE_TYPE_SPARSE_LEVEL + + CU_ARRAY_SPARSE_SUBRESOURCE_TYPE_MIPTAIL = cydriver.CUarraySparseSubresourceType_enum.CU_ARRAY_SPARSE_SUBRESOURCE_TYPE_MIPTAIL class CUmemOperationType(_FastEnum): """ Memory operation types """ - {{if 'CU_MEM_OPERATION_TYPE_MAP' in found_values}} - CU_MEM_OPERATION_TYPE_MAP = cydriver.CUmemOperationType_enum.CU_MEM_OPERATION_TYPE_MAP{{endif}} - {{if 'CU_MEM_OPERATION_TYPE_UNMAP' in found_values}} - CU_MEM_OPERATION_TYPE_UNMAP = cydriver.CUmemOperationType_enum.CU_MEM_OPERATION_TYPE_UNMAP{{endif}} -{{endif}} -{{if 'CUmemHandleType_enum' in found_types}} + CU_MEM_OPERATION_TYPE_MAP = cydriver.CUmemOperationType_enum.CU_MEM_OPERATION_TYPE_MAP + + CU_MEM_OPERATION_TYPE_UNMAP = cydriver.CUmemOperationType_enum.CU_MEM_OPERATION_TYPE_UNMAP class CUmemHandleType(_FastEnum): """ Memory handle types """ - {{if 'CU_MEM_HANDLE_TYPE_GENERIC' in found_values}} - CU_MEM_HANDLE_TYPE_GENERIC = cydriver.CUmemHandleType_enum.CU_MEM_HANDLE_TYPE_GENERIC{{endif}} -{{endif}} -{{if 'CUmemAllocationCompType_enum' in found_types}} + CU_MEM_HANDLE_TYPE_GENERIC = cydriver.CUmemHandleType_enum.CU_MEM_HANDLE_TYPE_GENERIC class CUmemAllocationCompType(_FastEnum): """ Specifies compression attribute for an allocation. """ - {{if 'CU_MEM_ALLOCATION_COMP_NONE' in found_values}} + CU_MEM_ALLOCATION_COMP_NONE = ( cydriver.CUmemAllocationCompType_enum.CU_MEM_ALLOCATION_COMP_NONE, 'Allocating non-compressible memory\n' - ){{endif}} - {{if 'CU_MEM_ALLOCATION_COMP_GENERIC' in found_values}} + ) + CU_MEM_ALLOCATION_COMP_GENERIC = ( cydriver.CUmemAllocationCompType_enum.CU_MEM_ALLOCATION_COMP_GENERIC, 'Allocating compressible memory\n' - ){{endif}} - -{{endif}} -{{if 'CUmulticastGranularity_flags_enum' in found_types}} + ) class CUmulticastGranularity_flags(_FastEnum): """ Flags for querying different granularities for a multicast object """ - {{if 'CU_MULTICAST_GRANULARITY_MINIMUM' in found_values}} + CU_MULTICAST_GRANULARITY_MINIMUM = ( cydriver.CUmulticastGranularity_flags_enum.CU_MULTICAST_GRANULARITY_MINIMUM, 'Minimum required granularity\n' - ){{endif}} - {{if 'CU_MULTICAST_GRANULARITY_RECOMMENDED' in found_values}} + ) + CU_MULTICAST_GRANULARITY_RECOMMENDED = ( cydriver.CUmulticastGranularity_flags_enum.CU_MULTICAST_GRANULARITY_RECOMMENDED, 'Recommended granularity for best performance\n' - ){{endif}} - -{{endif}} -{{if 'CUgraphExecUpdateResult_enum' in found_types}} + ) class CUgraphExecUpdateResult(_FastEnum): """ CUDA Graph Update error types """ - {{if 'CU_GRAPH_EXEC_UPDATE_SUCCESS' in found_values}} + CU_GRAPH_EXEC_UPDATE_SUCCESS = ( cydriver.CUgraphExecUpdateResult_enum.CU_GRAPH_EXEC_UPDATE_SUCCESS, 'The update succeeded\n' - ){{endif}} - {{if 'CU_GRAPH_EXEC_UPDATE_ERROR' in found_values}} + ) + CU_GRAPH_EXEC_UPDATE_ERROR = ( cydriver.CUgraphExecUpdateResult_enum.CU_GRAPH_EXEC_UPDATE_ERROR, 'The update failed for an unexpected reason which is described in the return\n' 'value of the function\n' - ){{endif}} - {{if 'CU_GRAPH_EXEC_UPDATE_ERROR_TOPOLOGY_CHANGED' in found_values}} + ) + CU_GRAPH_EXEC_UPDATE_ERROR_TOPOLOGY_CHANGED = ( cydriver.CUgraphExecUpdateResult_enum.CU_GRAPH_EXEC_UPDATE_ERROR_TOPOLOGY_CHANGED, 'The update failed because the topology changed\n' - ){{endif}} - {{if 'CU_GRAPH_EXEC_UPDATE_ERROR_NODE_TYPE_CHANGED' in found_values}} + ) + CU_GRAPH_EXEC_UPDATE_ERROR_NODE_TYPE_CHANGED = ( cydriver.CUgraphExecUpdateResult_enum.CU_GRAPH_EXEC_UPDATE_ERROR_NODE_TYPE_CHANGED, 'The update failed because a node type changed\n' - ){{endif}} - {{if 'CU_GRAPH_EXEC_UPDATE_ERROR_FUNCTION_CHANGED' in found_values}} + ) + CU_GRAPH_EXEC_UPDATE_ERROR_FUNCTION_CHANGED = ( cydriver.CUgraphExecUpdateResult_enum.CU_GRAPH_EXEC_UPDATE_ERROR_FUNCTION_CHANGED, 'The update failed because the function of a kernel node changed (CUDA\n' 'driver < 11.2)\n' - ){{endif}} - {{if 'CU_GRAPH_EXEC_UPDATE_ERROR_PARAMETERS_CHANGED' in found_values}} + ) + CU_GRAPH_EXEC_UPDATE_ERROR_PARAMETERS_CHANGED = ( cydriver.CUgraphExecUpdateResult_enum.CU_GRAPH_EXEC_UPDATE_ERROR_PARAMETERS_CHANGED, 'The update failed because the parameters changed in a way that is not\n' 'supported\n' - ){{endif}} - {{if 'CU_GRAPH_EXEC_UPDATE_ERROR_NOT_SUPPORTED' in found_values}} + ) + CU_GRAPH_EXEC_UPDATE_ERROR_NOT_SUPPORTED = ( cydriver.CUgraphExecUpdateResult_enum.CU_GRAPH_EXEC_UPDATE_ERROR_NOT_SUPPORTED, 'The update failed because something about the node is not supported\n' - ){{endif}} - {{if 'CU_GRAPH_EXEC_UPDATE_ERROR_UNSUPPORTED_FUNCTION_CHANGE' in found_values}} + ) + CU_GRAPH_EXEC_UPDATE_ERROR_UNSUPPORTED_FUNCTION_CHANGE = ( cydriver.CUgraphExecUpdateResult_enum.CU_GRAPH_EXEC_UPDATE_ERROR_UNSUPPORTED_FUNCTION_CHANGE, 'The update failed because the function of a kernel node changed in an\n' 'unsupported way\n' - ){{endif}} - {{if 'CU_GRAPH_EXEC_UPDATE_ERROR_ATTRIBUTES_CHANGED' in found_values}} + ) + CU_GRAPH_EXEC_UPDATE_ERROR_ATTRIBUTES_CHANGED = ( cydriver.CUgraphExecUpdateResult_enum.CU_GRAPH_EXEC_UPDATE_ERROR_ATTRIBUTES_CHANGED, 'The update failed because the node attributes changed in a way that is not\n' 'supported\n' - ){{endif}} - -{{endif}} -{{if 'CUmemPool_attribute_enum' in found_types}} + ) class CUmemPool_attribute(_FastEnum): """ CUDA memory pool attributes """ - {{if 'CU_MEMPOOL_ATTR_REUSE_FOLLOW_EVENT_DEPENDENCIES' in found_values}} + CU_MEMPOOL_ATTR_REUSE_FOLLOW_EVENT_DEPENDENCIES = ( cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_REUSE_FOLLOW_EVENT_DEPENDENCIES, @@ -6280,23 +6011,23 @@ class CUmemPool_attribute(_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 'CU_MEMPOOL_ATTR_REUSE_ALLOW_OPPORTUNISTIC' in found_values}} + ) + CU_MEMPOOL_ATTR_REUSE_ALLOW_OPPORTUNISTIC = ( cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_REUSE_ALLOW_OPPORTUNISTIC, '(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 'CU_MEMPOOL_ATTR_REUSE_ALLOW_INTERNAL_DEPENDENCIES' in found_values}} + ) + CU_MEMPOOL_ATTR_REUSE_ALLOW_INTERNAL_DEPENDENCIES = ( cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_REUSE_ALLOW_INTERNAL_DEPENDENCIES, '(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 cuMemFreeAsync (default enabled).\n' - ){{endif}} - {{if 'CU_MEMPOOL_ATTR_RELEASE_THRESHOLD' in found_values}} + ) + CU_MEMPOOL_ATTR_RELEASE_THRESHOLD = ( cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_RELEASE_THRESHOLD, @@ -6305,60 +6036,60 @@ class CUmemPool_attribute(_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 'CU_MEMPOOL_ATTR_RESERVED_MEM_CURRENT' in found_values}} + ) + CU_MEMPOOL_ATTR_RESERVED_MEM_CURRENT = ( cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_RESERVED_MEM_CURRENT, '(value type = cuuint64_t) Amount of backing memory currently allocated for\n' 'the mempool.\n' - ){{endif}} - {{if 'CU_MEMPOOL_ATTR_RESERVED_MEM_HIGH' in found_values}} + ) + CU_MEMPOOL_ATTR_RESERVED_MEM_HIGH = ( cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_RESERVED_MEM_HIGH, '(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 'CU_MEMPOOL_ATTR_USED_MEM_CURRENT' in found_values}} + ) + CU_MEMPOOL_ATTR_USED_MEM_CURRENT = ( cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_USED_MEM_CURRENT, '(value type = cuuint64_t) Amount of memory from the pool that is currently\n' 'in use by the application.\n' - ){{endif}} - {{if 'CU_MEMPOOL_ATTR_USED_MEM_HIGH' in found_values}} + ) + CU_MEMPOOL_ATTR_USED_MEM_HIGH = ( cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_USED_MEM_HIGH, '(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 'CU_MEMPOOL_ATTR_ALLOCATION_TYPE' in found_values}} + ) + CU_MEMPOOL_ATTR_ALLOCATION_TYPE = ( cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_ALLOCATION_TYPE, '(value type = CUmemAllocationType) The allocation type of the mempool\n' - ){{endif}} - {{if 'CU_MEMPOOL_ATTR_EXPORT_HANDLE_TYPES' in found_values}} + ) + CU_MEMPOOL_ATTR_EXPORT_HANDLE_TYPES = ( cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_EXPORT_HANDLE_TYPES, '(value type = CUmemAllocationHandleType) Available export handle types for\n' 'the mempool. For imported pools this value is always\n' 'CU_MEM_HANDLE_TYPE_NONE as an imported pool cannot be re-exported\n' - ){{endif}} - {{if 'CU_MEMPOOL_ATTR_LOCATION_ID' in found_values}} + ) + CU_MEMPOOL_ATTR_LOCATION_ID = ( cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_LOCATION_ID, '(value type = int) The location id for the mempool. If the location type\n' 'for this pool is CU_MEM_LOCATION_TYPE_INVISIBLE then ID will be\n' 'CU_DEVICE_INVALID.\n' - ){{endif}} - {{if 'CU_MEMPOOL_ATTR_LOCATION_TYPE' in found_values}} + ) + CU_MEMPOOL_ATTR_LOCATION_TYPE = ( cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_LOCATION_TYPE, @@ -6366,8 +6097,8 @@ class CUmemPool_attribute(_FastEnum): 'imported memory pools where the device is not directly visible to the\n' 'importing process or pools imported via fabric handles across nodes this\n' 'will be CU_MEM_LOCATION_TYPE_INVISIBLE.\n' - ){{endif}} - {{if 'CU_MEMPOOL_ATTR_MAX_POOL_SIZE' in found_values}} + ) + CU_MEMPOOL_ATTR_MAX_POOL_SIZE = ( cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_MAX_POOL_SIZE, @@ -6376,35 +6107,29 @@ class CUmemPool_attribute(_FastEnum): 'alignment requirements. A value of 0 indicates no maximum size. For\n' 'CU_MEM_ALLOCATION_TYPE_MANAGED and IPC imported pools this value will be\n' 'system dependent.\n' - ){{endif}} - {{if 'CU_MEMPOOL_ATTR_HW_DECOMPRESS_ENABLED' in found_values}} + ) + CU_MEMPOOL_ATTR_HW_DECOMPRESS_ENABLED = ( cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_HW_DECOMPRESS_ENABLED, '(value type = int) Indicates whether the pool has hardware compresssion\n' 'enabled\n' - ){{endif}} - -{{endif}} -{{if 'CUmemcpyFlags_enum' in found_types}} + ) class CUmemcpyFlags(_FastEnum): """ Flags to specify for copies within a batch. For more details see :py:obj:`~.cuMemcpyBatchAsync`. """ - {{if 'CU_MEMCPY_FLAG_DEFAULT' in found_values}} - CU_MEMCPY_FLAG_DEFAULT = cydriver.CUmemcpyFlags_enum.CU_MEMCPY_FLAG_DEFAULT{{endif}} - {{if 'CU_MEMCPY_FLAG_PREFER_OVERLAP_WITH_COMPUTE' in found_values}} + + CU_MEMCPY_FLAG_DEFAULT = cydriver.CUmemcpyFlags_enum.CU_MEMCPY_FLAG_DEFAULT + CU_MEMCPY_FLAG_PREFER_OVERLAP_WITH_COMPUTE = ( cydriver.CUmemcpyFlags_enum.CU_MEMCPY_FLAG_PREFER_OVERLAP_WITH_COMPUTE, 'Hint to the driver to try and overlap the copy with compute work on the\n' 'SMs.\n' - ){{endif}} - -{{endif}} -{{if 'CUmemcpySrcAccessOrder_enum' in found_types}} + ) class CUmemcpySrcAccessOrder(_FastEnum): """ @@ -6412,19 +6137,19 @@ class CUmemcpySrcAccessOrder(_FastEnum): CUDA must maintain. The destination will always be accessed in stream order. """ - {{if 'CU_MEMCPY_SRC_ACCESS_ORDER_INVALID' in found_values}} + CU_MEMCPY_SRC_ACCESS_ORDER_INVALID = ( cydriver.CUmemcpySrcAccessOrder_enum.CU_MEMCPY_SRC_ACCESS_ORDER_INVALID, 'Default invalid.\n' - ){{endif}} - {{if 'CU_MEMCPY_SRC_ACCESS_ORDER_STREAM' in found_values}} + ) + CU_MEMCPY_SRC_ACCESS_ORDER_STREAM = ( cydriver.CUmemcpySrcAccessOrder_enum.CU_MEMCPY_SRC_ACCESS_ORDER_STREAM, 'Indicates that access to the source pointer must be in stream order.\n' - ){{endif}} - {{if 'CU_MEMCPY_SRC_ACCESS_ORDER_DURING_API_CALL' in found_values}} + ) + CU_MEMCPY_SRC_ACCESS_ORDER_DURING_API_CALL = ( cydriver.CUmemcpySrcAccessOrder_enum.CU_MEMCPY_SRC_ACCESS_ORDER_DURING_API_CALL, @@ -6436,8 +6161,8 @@ class CUmemcpySrcAccessOrder(_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 'CU_MEMCPY_SRC_ACCESS_ORDER_ANY' in found_values}} + ) + CU_MEMCPY_SRC_ACCESS_ORDER_ANY = ( cydriver.CUmemcpySrcAccessOrder_enum.CU_MEMCPY_SRC_ACCESS_ORDER_ANY, @@ -6447,93 +6172,84 @@ class CUmemcpySrcAccessOrder(_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 'CU_MEMCPY_SRC_ACCESS_ORDER_MAX' in found_values}} - CU_MEMCPY_SRC_ACCESS_ORDER_MAX = cydriver.CUmemcpySrcAccessOrder_enum.CU_MEMCPY_SRC_ACCESS_ORDER_MAX{{endif}} + ) -{{endif}} -{{if 'CUmemcpy3DOperandType_enum' in found_types}} + CU_MEMCPY_SRC_ACCESS_ORDER_MAX = cydriver.CUmemcpySrcAccessOrder_enum.CU_MEMCPY_SRC_ACCESS_ORDER_MAX class CUmemcpy3DOperandType(_FastEnum): """ These flags allow applications to convey the operand type for individual copies specified in :py:obj:`~.cuMemcpy3DBatchAsync`. """ - {{if 'CU_MEMCPY_OPERAND_TYPE_POINTER' in found_values}} + CU_MEMCPY_OPERAND_TYPE_POINTER = ( cydriver.CUmemcpy3DOperandType_enum.CU_MEMCPY_OPERAND_TYPE_POINTER, 'Memcpy operand is a valid pointer.\n' - ){{endif}} - {{if 'CU_MEMCPY_OPERAND_TYPE_ARRAY' in found_values}} + ) + CU_MEMCPY_OPERAND_TYPE_ARRAY = ( cydriver.CUmemcpy3DOperandType_enum.CU_MEMCPY_OPERAND_TYPE_ARRAY, 'Memcpy operand is a CUarray.\n' - ){{endif}} - {{if 'CU_MEMCPY_OPERAND_TYPE_MAX' in found_values}} - CU_MEMCPY_OPERAND_TYPE_MAX = cydriver.CUmemcpy3DOperandType_enum.CU_MEMCPY_OPERAND_TYPE_MAX{{endif}} + ) -{{endif}} -{{if 'CUgraphMem_attribute_enum' in found_types}} + CU_MEMCPY_OPERAND_TYPE_MAX = cydriver.CUmemcpy3DOperandType_enum.CU_MEMCPY_OPERAND_TYPE_MAX class CUgraphMem_attribute(_FastEnum): """ """ - {{if 'CU_GRAPH_MEM_ATTR_USED_MEM_CURRENT' in found_values}} + CU_GRAPH_MEM_ATTR_USED_MEM_CURRENT = ( cydriver.CUgraphMem_attribute_enum.CU_GRAPH_MEM_ATTR_USED_MEM_CURRENT, '(value type = cuuint64_t) Amount of memory, in bytes, currently associated\n' 'with graphs\n' - ){{endif}} - {{if 'CU_GRAPH_MEM_ATTR_USED_MEM_HIGH' in found_values}} + ) + CU_GRAPH_MEM_ATTR_USED_MEM_HIGH = ( cydriver.CUgraphMem_attribute_enum.CU_GRAPH_MEM_ATTR_USED_MEM_HIGH, '(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 'CU_GRAPH_MEM_ATTR_RESERVED_MEM_CURRENT' in found_values}} + ) + CU_GRAPH_MEM_ATTR_RESERVED_MEM_CURRENT = ( cydriver.CUgraphMem_attribute_enum.CU_GRAPH_MEM_ATTR_RESERVED_MEM_CURRENT, '(value type = cuuint64_t) Amount of memory, in bytes, currently allocated\n' 'for use by the CUDA graphs asynchronous allocator.\n' - ){{endif}} - {{if 'CU_GRAPH_MEM_ATTR_RESERVED_MEM_HIGH' in found_values}} + ) + CU_GRAPH_MEM_ATTR_RESERVED_MEM_HIGH = ( cydriver.CUgraphMem_attribute_enum.CU_GRAPH_MEM_ATTR_RESERVED_MEM_HIGH, '(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 'CUgraphChildGraphNodeOwnership_enum' in found_types}} + ) class CUgraphChildGraphNodeOwnership(_FastEnum): """ Child graph node ownership """ - {{if 'CU_GRAPH_CHILD_GRAPH_OWNERSHIP_INVALID' in found_values}} + CU_GRAPH_CHILD_GRAPH_OWNERSHIP_INVALID = ( cydriver.CUgraphChildGraphNodeOwnership_enum.CU_GRAPH_CHILD_GRAPH_OWNERSHIP_INVALID, 'Invalid ownership flag. Set when params are queried to prevent accidentally\n' 'reusing the driver-owned graph object\n' - ){{endif}} - {{if 'CU_GRAPH_CHILD_GRAPH_OWNERSHIP_CLONE' in found_values}} + ) + CU_GRAPH_CHILD_GRAPH_OWNERSHIP_CLONE = ( cydriver.CUgraphChildGraphNodeOwnership_enum.CU_GRAPH_CHILD_GRAPH_OWNERSHIP_CLONE, '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 'CU_GRAPH_CHILD_GRAPH_OWNERSHIP_MOVE' in found_values}} + ) + CU_GRAPH_CHILD_GRAPH_OWNERSHIP_MOVE = ( cydriver.CUgraphChildGraphNodeOwnership_enum.CU_GRAPH_CHILD_GRAPH_OWNERSHIP_MOVE, @@ -6544,578 +6260,506 @@ class CUgraphChildGraphNodeOwnership(_FastEnum): 'as a child graph of a separate parent graph; Cannot be used as an argument\n' 'to cuGraphExecUpdate; Cannot have additional memory allocation or free\n' 'nodes added.\n' - ){{endif}} - -{{endif}} -{{if 'CUflushGPUDirectRDMAWritesOptions_enum' in found_types}} + ) class CUflushGPUDirectRDMAWritesOptions(_FastEnum): """ Bitmasks for :py:obj:`~.CU_DEVICE_ATTRIBUTE_GPU_DIRECT_RDMA_FLUSH_WRITES_OPTIONS` """ - {{if 'CU_FLUSH_GPU_DIRECT_RDMA_WRITES_OPTION_HOST' in found_values}} + CU_FLUSH_GPU_DIRECT_RDMA_WRITES_OPTION_HOST = ( cydriver.CUflushGPUDirectRDMAWritesOptions_enum.CU_FLUSH_GPU_DIRECT_RDMA_WRITES_OPTION_HOST, ':py:obj:`~.cuFlushGPUDirectRDMAWrites()` and its CUDA Runtime API\n' 'counterpart are supported on the device.\n' - ){{endif}} - {{if 'CU_FLUSH_GPU_DIRECT_RDMA_WRITES_OPTION_MEMOPS' in found_values}} + ) + CU_FLUSH_GPU_DIRECT_RDMA_WRITES_OPTION_MEMOPS = ( cydriver.CUflushGPUDirectRDMAWritesOptions_enum.CU_FLUSH_GPU_DIRECT_RDMA_WRITES_OPTION_MEMOPS, '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' 'device.\n' - ){{endif}} - -{{endif}} -{{if 'CUGPUDirectRDMAWritesOrdering_enum' in found_types}} + ) class CUGPUDirectRDMAWritesOrdering(_FastEnum): """ Platform native ordering for GPUDirect RDMA writes """ - {{if 'CU_GPU_DIRECT_RDMA_WRITES_ORDERING_NONE' in found_values}} + CU_GPU_DIRECT_RDMA_WRITES_ORDERING_NONE = ( cydriver.CUGPUDirectRDMAWritesOrdering_enum.CU_GPU_DIRECT_RDMA_WRITES_ORDERING_NONE, 'The device does not natively support ordering of remote writes.\n' ':py:obj:`~.cuFlushGPUDirectRDMAWrites()` can be leveraged if supported.\n' - ){{endif}} - {{if 'CU_GPU_DIRECT_RDMA_WRITES_ORDERING_OWNER' in found_values}} + ) + CU_GPU_DIRECT_RDMA_WRITES_ORDERING_OWNER = ( cydriver.CUGPUDirectRDMAWritesOrdering_enum.CU_GPU_DIRECT_RDMA_WRITES_ORDERING_OWNER, 'Natively, the device can consistently consume remote writes, although other\n' 'CUDA devices may not.\n' - ){{endif}} - {{if 'CU_GPU_DIRECT_RDMA_WRITES_ORDERING_ALL_DEVICES' in found_values}} + ) + CU_GPU_DIRECT_RDMA_WRITES_ORDERING_ALL_DEVICES = ( cydriver.CUGPUDirectRDMAWritesOrdering_enum.CU_GPU_DIRECT_RDMA_WRITES_ORDERING_ALL_DEVICES, 'Any CUDA device in the system can consistently consume remote writes to\n' 'this device.\n' - ){{endif}} - -{{endif}} -{{if 'CUflushGPUDirectRDMAWritesScope_enum' in found_types}} + ) class CUflushGPUDirectRDMAWritesScope(_FastEnum): """ The scopes for :py:obj:`~.cuFlushGPUDirectRDMAWrites` """ - {{if 'CU_FLUSH_GPU_DIRECT_RDMA_WRITES_TO_OWNER' in found_values}} + CU_FLUSH_GPU_DIRECT_RDMA_WRITES_TO_OWNER = ( cydriver.CUflushGPUDirectRDMAWritesScope_enum.CU_FLUSH_GPU_DIRECT_RDMA_WRITES_TO_OWNER, 'Blocks until remote writes are visible to the CUDA device context owning\n' 'the data.\n' - ){{endif}} - {{if 'CU_FLUSH_GPU_DIRECT_RDMA_WRITES_TO_ALL_DEVICES' in found_values}} + ) + CU_FLUSH_GPU_DIRECT_RDMA_WRITES_TO_ALL_DEVICES = ( cydriver.CUflushGPUDirectRDMAWritesScope_enum.CU_FLUSH_GPU_DIRECT_RDMA_WRITES_TO_ALL_DEVICES, 'Blocks until remote writes are visible to all CUDA device contexts.\n' - ){{endif}} - -{{endif}} -{{if 'CUflushGPUDirectRDMAWritesTarget_enum' in found_types}} + ) class CUflushGPUDirectRDMAWritesTarget(_FastEnum): """ The targets for :py:obj:`~.cuFlushGPUDirectRDMAWrites` """ - {{if 'CU_FLUSH_GPU_DIRECT_RDMA_WRITES_TARGET_CURRENT_CTX' in found_values}} + CU_FLUSH_GPU_DIRECT_RDMA_WRITES_TARGET_CURRENT_CTX = ( cydriver.CUflushGPUDirectRDMAWritesTarget_enum.CU_FLUSH_GPU_DIRECT_RDMA_WRITES_TARGET_CURRENT_CTX, 'Sets the target for :py:obj:`~.cuFlushGPUDirectRDMAWrites()` to the\n' 'currently active CUDA device context.\n' - ){{endif}} - -{{endif}} -{{if 'CUgraphDebugDot_flags_enum' in found_types}} + ) class CUgraphDebugDot_flags(_FastEnum): """ The additional write options for :py:obj:`~.cuGraphDebugDotPrint` """ - {{if 'CU_GRAPH_DEBUG_DOT_FLAGS_VERBOSE' in found_values}} + CU_GRAPH_DEBUG_DOT_FLAGS_VERBOSE = ( cydriver.CUgraphDebugDot_flags_enum.CU_GRAPH_DEBUG_DOT_FLAGS_VERBOSE, 'Output all debug data as if every debug flag is enabled\n' - ){{endif}} - {{if 'CU_GRAPH_DEBUG_DOT_FLAGS_RUNTIME_TYPES' in found_values}} + ) + CU_GRAPH_DEBUG_DOT_FLAGS_RUNTIME_TYPES = ( cydriver.CUgraphDebugDot_flags_enum.CU_GRAPH_DEBUG_DOT_FLAGS_RUNTIME_TYPES, 'Use CUDA Runtime structures for output\n' - ){{endif}} - {{if 'CU_GRAPH_DEBUG_DOT_FLAGS_KERNEL_NODE_PARAMS' in found_values}} + ) + CU_GRAPH_DEBUG_DOT_FLAGS_KERNEL_NODE_PARAMS = ( cydriver.CUgraphDebugDot_flags_enum.CU_GRAPH_DEBUG_DOT_FLAGS_KERNEL_NODE_PARAMS, 'Adds CUDA_KERNEL_NODE_PARAMS values to output\n' - ){{endif}} - {{if 'CU_GRAPH_DEBUG_DOT_FLAGS_MEMCPY_NODE_PARAMS' in found_values}} + ) + CU_GRAPH_DEBUG_DOT_FLAGS_MEMCPY_NODE_PARAMS = ( cydriver.CUgraphDebugDot_flags_enum.CU_GRAPH_DEBUG_DOT_FLAGS_MEMCPY_NODE_PARAMS, 'Adds CUDA_MEMCPY3D values to output\n' - ){{endif}} - {{if 'CU_GRAPH_DEBUG_DOT_FLAGS_MEMSET_NODE_PARAMS' in found_values}} + ) + CU_GRAPH_DEBUG_DOT_FLAGS_MEMSET_NODE_PARAMS = ( cydriver.CUgraphDebugDot_flags_enum.CU_GRAPH_DEBUG_DOT_FLAGS_MEMSET_NODE_PARAMS, 'Adds CUDA_MEMSET_NODE_PARAMS values to output\n' - ){{endif}} - {{if 'CU_GRAPH_DEBUG_DOT_FLAGS_HOST_NODE_PARAMS' in found_values}} + ) + CU_GRAPH_DEBUG_DOT_FLAGS_HOST_NODE_PARAMS = ( cydriver.CUgraphDebugDot_flags_enum.CU_GRAPH_DEBUG_DOT_FLAGS_HOST_NODE_PARAMS, 'Adds CUDA_HOST_NODE_PARAMS values to output\n' - ){{endif}} - {{if 'CU_GRAPH_DEBUG_DOT_FLAGS_EVENT_NODE_PARAMS' in found_values}} + ) + CU_GRAPH_DEBUG_DOT_FLAGS_EVENT_NODE_PARAMS = ( cydriver.CUgraphDebugDot_flags_enum.CU_GRAPH_DEBUG_DOT_FLAGS_EVENT_NODE_PARAMS, 'Adds CUevent handle from record and wait nodes to output\n' - ){{endif}} - {{if 'CU_GRAPH_DEBUG_DOT_FLAGS_EXT_SEMAS_SIGNAL_NODE_PARAMS' in found_values}} + ) + CU_GRAPH_DEBUG_DOT_FLAGS_EXT_SEMAS_SIGNAL_NODE_PARAMS = ( cydriver.CUgraphDebugDot_flags_enum.CU_GRAPH_DEBUG_DOT_FLAGS_EXT_SEMAS_SIGNAL_NODE_PARAMS, 'Adds CUDA_EXT_SEM_SIGNAL_NODE_PARAMS values to output\n' - ){{endif}} - {{if 'CU_GRAPH_DEBUG_DOT_FLAGS_EXT_SEMAS_WAIT_NODE_PARAMS' in found_values}} + ) + CU_GRAPH_DEBUG_DOT_FLAGS_EXT_SEMAS_WAIT_NODE_PARAMS = ( cydriver.CUgraphDebugDot_flags_enum.CU_GRAPH_DEBUG_DOT_FLAGS_EXT_SEMAS_WAIT_NODE_PARAMS, 'Adds CUDA_EXT_SEM_WAIT_NODE_PARAMS values to output\n' - ){{endif}} - {{if 'CU_GRAPH_DEBUG_DOT_FLAGS_KERNEL_NODE_ATTRIBUTES' in found_values}} + ) + CU_GRAPH_DEBUG_DOT_FLAGS_KERNEL_NODE_ATTRIBUTES = ( cydriver.CUgraphDebugDot_flags_enum.CU_GRAPH_DEBUG_DOT_FLAGS_KERNEL_NODE_ATTRIBUTES, 'Adds CUkernelNodeAttrValue values to output\n' - ){{endif}} - {{if 'CU_GRAPH_DEBUG_DOT_FLAGS_HANDLES' in found_values}} + ) + CU_GRAPH_DEBUG_DOT_FLAGS_HANDLES = ( cydriver.CUgraphDebugDot_flags_enum.CU_GRAPH_DEBUG_DOT_FLAGS_HANDLES, 'Adds node handles and every kernel function handle to output\n' - ){{endif}} - {{if 'CU_GRAPH_DEBUG_DOT_FLAGS_MEM_ALLOC_NODE_PARAMS' in found_values}} + ) + CU_GRAPH_DEBUG_DOT_FLAGS_MEM_ALLOC_NODE_PARAMS = ( cydriver.CUgraphDebugDot_flags_enum.CU_GRAPH_DEBUG_DOT_FLAGS_MEM_ALLOC_NODE_PARAMS, 'Adds memory alloc node parameters to output\n' - ){{endif}} - {{if 'CU_GRAPH_DEBUG_DOT_FLAGS_MEM_FREE_NODE_PARAMS' in found_values}} + ) + CU_GRAPH_DEBUG_DOT_FLAGS_MEM_FREE_NODE_PARAMS = ( cydriver.CUgraphDebugDot_flags_enum.CU_GRAPH_DEBUG_DOT_FLAGS_MEM_FREE_NODE_PARAMS, 'Adds memory free node parameters to output\n' - ){{endif}} - {{if 'CU_GRAPH_DEBUG_DOT_FLAGS_BATCH_MEM_OP_NODE_PARAMS' in found_values}} + ) + CU_GRAPH_DEBUG_DOT_FLAGS_BATCH_MEM_OP_NODE_PARAMS = ( cydriver.CUgraphDebugDot_flags_enum.CU_GRAPH_DEBUG_DOT_FLAGS_BATCH_MEM_OP_NODE_PARAMS, 'Adds batch mem op node parameters to output\n' - ){{endif}} - {{if 'CU_GRAPH_DEBUG_DOT_FLAGS_EXTRA_TOPO_INFO' in found_values}} + ) + CU_GRAPH_DEBUG_DOT_FLAGS_EXTRA_TOPO_INFO = ( cydriver.CUgraphDebugDot_flags_enum.CU_GRAPH_DEBUG_DOT_FLAGS_EXTRA_TOPO_INFO, 'Adds edge numbering information\n' - ){{endif}} - {{if 'CU_GRAPH_DEBUG_DOT_FLAGS_CONDITIONAL_NODE_PARAMS' in found_values}} + ) + CU_GRAPH_DEBUG_DOT_FLAGS_CONDITIONAL_NODE_PARAMS = ( cydriver.CUgraphDebugDot_flags_enum.CU_GRAPH_DEBUG_DOT_FLAGS_CONDITIONAL_NODE_PARAMS, 'Adds conditional node parameters to output\n' - ){{endif}} - -{{endif}} -{{if 'CUuserObject_flags_enum' in found_types}} + ) class CUuserObject_flags(_FastEnum): """ Flags for user objects for graphs """ - {{if 'CU_USER_OBJECT_NO_DESTRUCTOR_SYNC' in found_values}} + CU_USER_OBJECT_NO_DESTRUCTOR_SYNC = ( cydriver.CUuserObject_flags_enum.CU_USER_OBJECT_NO_DESTRUCTOR_SYNC, 'Indicates the destructor execution is not synchronized by any CUDA handle.\n' - ){{endif}} - -{{endif}} -{{if 'CUuserObjectRetain_flags_enum' in found_types}} + ) class CUuserObjectRetain_flags(_FastEnum): """ Flags for retaining user object references for graphs """ - {{if 'CU_GRAPH_USER_OBJECT_MOVE' in found_values}} + CU_GRAPH_USER_OBJECT_MOVE = ( cydriver.CUuserObjectRetain_flags_enum.CU_GRAPH_USER_OBJECT_MOVE, 'Transfer references from the caller rather than creating new references.\n' - ){{endif}} - -{{endif}} -{{if 'CUgraphInstantiate_flags_enum' in found_types}} + ) class CUgraphInstantiate_flags(_FastEnum): """ Flags for instantiating a graph """ - {{if 'CUDA_GRAPH_INSTANTIATE_FLAG_AUTO_FREE_ON_LAUNCH' in found_values}} + CUDA_GRAPH_INSTANTIATE_FLAG_AUTO_FREE_ON_LAUNCH = ( cydriver.CUgraphInstantiate_flags_enum.CUDA_GRAPH_INSTANTIATE_FLAG_AUTO_FREE_ON_LAUNCH, 'Automatically free memory allocated in a graph before relaunching.\n' - ){{endif}} - {{if 'CUDA_GRAPH_INSTANTIATE_FLAG_UPLOAD' in found_values}} + ) + CUDA_GRAPH_INSTANTIATE_FLAG_UPLOAD = ( cydriver.CUgraphInstantiate_flags_enum.CUDA_GRAPH_INSTANTIATE_FLAG_UPLOAD, 'Automatically upload the graph after instantiation. Only supported by\n' ':py:obj:`~.cuGraphInstantiateWithParams`. The upload will be performed\n' 'using the stream provided in `instantiateParams`.\n' - ){{endif}} - {{if 'CUDA_GRAPH_INSTANTIATE_FLAG_DEVICE_LAUNCH' in found_values}} + ) + CUDA_GRAPH_INSTANTIATE_FLAG_DEVICE_LAUNCH = ( cydriver.CUgraphInstantiate_flags_enum.CUDA_GRAPH_INSTANTIATE_FLAG_DEVICE_LAUNCH, '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 CUDA_GRAPH_INSTANTIATE_FLAG_AUTO_FREE_ON_LAUNCH.\n' - ){{endif}} - {{if 'CUDA_GRAPH_INSTANTIATE_FLAG_USE_NODE_PRIORITY' in found_values}} + ) + CUDA_GRAPH_INSTANTIATE_FLAG_USE_NODE_PRIORITY = ( cydriver.CUgraphInstantiate_flags_enum.CUDA_GRAPH_INSTANTIATE_FLAG_USE_NODE_PRIORITY, '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 'CUdeviceNumaConfig_enum' in found_types}} + ) class CUdeviceNumaConfig(_FastEnum): """ CUDA device NUMA configuration """ - {{if 'CU_DEVICE_NUMA_CONFIG_NONE' in found_values}} + CU_DEVICE_NUMA_CONFIG_NONE = ( cydriver.CUdeviceNumaConfig_enum.CU_DEVICE_NUMA_CONFIG_NONE, 'The GPU is not a NUMA node\n' - ){{endif}} - {{if 'CU_DEVICE_NUMA_CONFIG_NUMA_NODE' in found_values}} + ) + CU_DEVICE_NUMA_CONFIG_NUMA_NODE = ( cydriver.CUdeviceNumaConfig_enum.CU_DEVICE_NUMA_CONFIG_NUMA_NODE, 'The GPU is a NUMA node, CU_DEVICE_ATTRIBUTE_NUMA_ID contains its NUMA ID\n' - ){{endif}} - -{{endif}} -{{if 'CUprocessState_enum' in found_types}} + ) class CUprocessState(_FastEnum): """ CUDA Process States """ - {{if 'CU_PROCESS_STATE_RUNNING' in found_values}} + CU_PROCESS_STATE_RUNNING = ( cydriver.CUprocessState_enum.CU_PROCESS_STATE_RUNNING, 'Default process state\n' - ){{endif}} - {{if 'CU_PROCESS_STATE_LOCKED' in found_values}} + ) + CU_PROCESS_STATE_LOCKED = ( cydriver.CUprocessState_enum.CU_PROCESS_STATE_LOCKED, 'CUDA API locks are taken so further CUDA API calls will block\n' - ){{endif}} - {{if 'CU_PROCESS_STATE_CHECKPOINTED' in found_values}} + ) + CU_PROCESS_STATE_CHECKPOINTED = ( cydriver.CUprocessState_enum.CU_PROCESS_STATE_CHECKPOINTED, 'Application memory contents have been checkpointed and underlying\n' 'allocations and device handles have been released\n' - ){{endif}} - {{if 'CU_PROCESS_STATE_FAILED' in found_values}} + ) + CU_PROCESS_STATE_FAILED = ( cydriver.CUprocessState_enum.CU_PROCESS_STATE_FAILED, 'Application entered an uncorrectable error during the checkpoint/restore\n' 'process\n' - ){{endif}} - -{{endif}} -{{if 'CUmoduleLoadingMode_enum' in found_types}} + ) class CUmoduleLoadingMode(_FastEnum): """ CUDA Lazy Loading status """ - {{if 'CU_MODULE_EAGER_LOADING' in found_values}} + CU_MODULE_EAGER_LOADING = ( cydriver.CUmoduleLoadingMode_enum.CU_MODULE_EAGER_LOADING, 'Lazy Kernel Loading is not enabled\n' - ){{endif}} - {{if 'CU_MODULE_LAZY_LOADING' in found_values}} + ) + CU_MODULE_LAZY_LOADING = ( cydriver.CUmoduleLoadingMode_enum.CU_MODULE_LAZY_LOADING, 'Lazy Kernel Loading is enabled\n' - ){{endif}} - -{{endif}} -{{if 'CUmemDecompressAlgorithm_enum' in found_types}} + ) class CUmemDecompressAlgorithm(_FastEnum): """ Bitmasks for CU_DEVICE_ATTRIBUTE_MEM_DECOMPRESS_ALGORITHM_MASK. """ - {{if 'CU_MEM_DECOMPRESS_UNSUPPORTED' in found_values}} + CU_MEM_DECOMPRESS_UNSUPPORTED = ( cydriver.CUmemDecompressAlgorithm_enum.CU_MEM_DECOMPRESS_UNSUPPORTED, 'Decompression is unsupported.\n' - ){{endif}} - {{if 'CU_MEM_DECOMPRESS_ALGORITHM_DEFLATE' in found_values}} + ) + CU_MEM_DECOMPRESS_ALGORITHM_DEFLATE = ( cydriver.CUmemDecompressAlgorithm_enum.CU_MEM_DECOMPRESS_ALGORITHM_DEFLATE, 'Deflate is supported.\n' - ){{endif}} - {{if 'CU_MEM_DECOMPRESS_ALGORITHM_SNAPPY' in found_values}} + ) + CU_MEM_DECOMPRESS_ALGORITHM_SNAPPY = ( cydriver.CUmemDecompressAlgorithm_enum.CU_MEM_DECOMPRESS_ALGORITHM_SNAPPY, 'Snappy is supported.\n' - ){{endif}} - {{if 'CU_MEM_DECOMPRESS_ALGORITHM_LZ4' in found_values}} + ) + CU_MEM_DECOMPRESS_ALGORITHM_LZ4 = ( cydriver.CUmemDecompressAlgorithm_enum.CU_MEM_DECOMPRESS_ALGORITHM_LZ4, 'LZ4 is supported.\n' - ){{endif}} - -{{endif}} -{{if 'CUfunctionLoadingState_enum' in found_types}} + ) class CUfunctionLoadingState(_FastEnum): """ """ - {{if 'CU_FUNCTION_LOADING_STATE_UNLOADED' in found_values}} - CU_FUNCTION_LOADING_STATE_UNLOADED = cydriver.CUfunctionLoadingState_enum.CU_FUNCTION_LOADING_STATE_UNLOADED{{endif}} - {{if 'CU_FUNCTION_LOADING_STATE_LOADED' in found_values}} - CU_FUNCTION_LOADING_STATE_LOADED = cydriver.CUfunctionLoadingState_enum.CU_FUNCTION_LOADING_STATE_LOADED{{endif}} - {{if 'CU_FUNCTION_LOADING_STATE_MAX' in found_values}} - CU_FUNCTION_LOADING_STATE_MAX = cydriver.CUfunctionLoadingState_enum.CU_FUNCTION_LOADING_STATE_MAX{{endif}} -{{endif}} -{{if 'CUcoredumpSettings_enum' in found_types}} + CU_FUNCTION_LOADING_STATE_UNLOADED = cydriver.CUfunctionLoadingState_enum.CU_FUNCTION_LOADING_STATE_UNLOADED + + CU_FUNCTION_LOADING_STATE_LOADED = cydriver.CUfunctionLoadingState_enum.CU_FUNCTION_LOADING_STATE_LOADED + + CU_FUNCTION_LOADING_STATE_MAX = cydriver.CUfunctionLoadingState_enum.CU_FUNCTION_LOADING_STATE_MAX class CUcoredumpSettings(_FastEnum): """ Flags for choosing a coredump attribute to get/set """ - {{if 'CU_COREDUMP_ENABLE_ON_EXCEPTION' in found_values}} - CU_COREDUMP_ENABLE_ON_EXCEPTION = cydriver.CUcoredumpSettings_enum.CU_COREDUMP_ENABLE_ON_EXCEPTION{{endif}} - {{if 'CU_COREDUMP_TRIGGER_HOST' in found_values}} - CU_COREDUMP_TRIGGER_HOST = cydriver.CUcoredumpSettings_enum.CU_COREDUMP_TRIGGER_HOST{{endif}} - {{if 'CU_COREDUMP_LIGHTWEIGHT' in found_values}} - CU_COREDUMP_LIGHTWEIGHT = cydriver.CUcoredumpSettings_enum.CU_COREDUMP_LIGHTWEIGHT{{endif}} - {{if 'CU_COREDUMP_ENABLE_USER_TRIGGER' in found_values}} - CU_COREDUMP_ENABLE_USER_TRIGGER = cydriver.CUcoredumpSettings_enum.CU_COREDUMP_ENABLE_USER_TRIGGER{{endif}} - {{if 'CU_COREDUMP_FILE' in found_values}} - CU_COREDUMP_FILE = cydriver.CUcoredumpSettings_enum.CU_COREDUMP_FILE{{endif}} - {{if 'CU_COREDUMP_PIPE' in found_values}} - CU_COREDUMP_PIPE = cydriver.CUcoredumpSettings_enum.CU_COREDUMP_PIPE{{endif}} - {{if 'CU_COREDUMP_GENERATION_FLAGS' in found_values}} - CU_COREDUMP_GENERATION_FLAGS = cydriver.CUcoredumpSettings_enum.CU_COREDUMP_GENERATION_FLAGS{{endif}} - {{if 'CU_COREDUMP_MAX' in found_values}} - CU_COREDUMP_MAX = cydriver.CUcoredumpSettings_enum.CU_COREDUMP_MAX{{endif}} - -{{endif}} -{{if 'CUCoredumpGenerationFlags' in found_types}} + + CU_COREDUMP_ENABLE_ON_EXCEPTION = cydriver.CUcoredumpSettings_enum.CU_COREDUMP_ENABLE_ON_EXCEPTION + + CU_COREDUMP_TRIGGER_HOST = cydriver.CUcoredumpSettings_enum.CU_COREDUMP_TRIGGER_HOST + + CU_COREDUMP_LIGHTWEIGHT = cydriver.CUcoredumpSettings_enum.CU_COREDUMP_LIGHTWEIGHT + + CU_COREDUMP_ENABLE_USER_TRIGGER = cydriver.CUcoredumpSettings_enum.CU_COREDUMP_ENABLE_USER_TRIGGER + + CU_COREDUMP_FILE = cydriver.CUcoredumpSettings_enum.CU_COREDUMP_FILE + + CU_COREDUMP_PIPE = cydriver.CUcoredumpSettings_enum.CU_COREDUMP_PIPE + + CU_COREDUMP_GENERATION_FLAGS = cydriver.CUcoredumpSettings_enum.CU_COREDUMP_GENERATION_FLAGS + + CU_COREDUMP_MAX = cydriver.CUcoredumpSettings_enum.CU_COREDUMP_MAX class CUCoredumpGenerationFlags(_FastEnum): """ Flags for controlling coredump contents """ - {{if 'CU_COREDUMP_DEFAULT_FLAGS' in found_values}} - CU_COREDUMP_DEFAULT_FLAGS = cydriver.CUCoredumpGenerationFlags.CU_COREDUMP_DEFAULT_FLAGS{{endif}} - {{if 'CU_COREDUMP_SKIP_NONRELOCATED_ELF_IMAGES' in found_values}} - CU_COREDUMP_SKIP_NONRELOCATED_ELF_IMAGES = cydriver.CUCoredumpGenerationFlags.CU_COREDUMP_SKIP_NONRELOCATED_ELF_IMAGES{{endif}} - {{if 'CU_COREDUMP_SKIP_GLOBAL_MEMORY' in found_values}} - CU_COREDUMP_SKIP_GLOBAL_MEMORY = cydriver.CUCoredumpGenerationFlags.CU_COREDUMP_SKIP_GLOBAL_MEMORY{{endif}} - {{if 'CU_COREDUMP_SKIP_SHARED_MEMORY' in found_values}} - CU_COREDUMP_SKIP_SHARED_MEMORY = cydriver.CUCoredumpGenerationFlags.CU_COREDUMP_SKIP_SHARED_MEMORY{{endif}} - {{if 'CU_COREDUMP_SKIP_LOCAL_MEMORY' in found_values}} - CU_COREDUMP_SKIP_LOCAL_MEMORY = cydriver.CUCoredumpGenerationFlags.CU_COREDUMP_SKIP_LOCAL_MEMORY{{endif}} - {{if 'CU_COREDUMP_SKIP_ABORT' in found_values}} - CU_COREDUMP_SKIP_ABORT = cydriver.CUCoredumpGenerationFlags.CU_COREDUMP_SKIP_ABORT{{endif}} - {{if 'CU_COREDUMP_SKIP_CONSTBANK_MEMORY' in found_values}} - CU_COREDUMP_SKIP_CONSTBANK_MEMORY = cydriver.CUCoredumpGenerationFlags.CU_COREDUMP_SKIP_CONSTBANK_MEMORY{{endif}} - {{if 'CU_COREDUMP_LIGHTWEIGHT_FLAGS' in found_values}} - CU_COREDUMP_LIGHTWEIGHT_FLAGS = cydriver.CUCoredumpGenerationFlags.CU_COREDUMP_LIGHTWEIGHT_FLAGS{{endif}} - {{if 'CU_COREDUMP_GZIP_COMPRESS' in found_values}} - CU_COREDUMP_GZIP_COMPRESS = cydriver.CUCoredumpGenerationFlags.CU_COREDUMP_GZIP_COMPRESS{{endif}} - -{{endif}} -{{if 'CUgreenCtxCreate_flags' in found_types}} + + CU_COREDUMP_DEFAULT_FLAGS = cydriver.CUCoredumpGenerationFlags.CU_COREDUMP_DEFAULT_FLAGS + + CU_COREDUMP_SKIP_NONRELOCATED_ELF_IMAGES = cydriver.CUCoredumpGenerationFlags.CU_COREDUMP_SKIP_NONRELOCATED_ELF_IMAGES + + CU_COREDUMP_SKIP_GLOBAL_MEMORY = cydriver.CUCoredumpGenerationFlags.CU_COREDUMP_SKIP_GLOBAL_MEMORY + + CU_COREDUMP_SKIP_SHARED_MEMORY = cydriver.CUCoredumpGenerationFlags.CU_COREDUMP_SKIP_SHARED_MEMORY + + CU_COREDUMP_SKIP_LOCAL_MEMORY = cydriver.CUCoredumpGenerationFlags.CU_COREDUMP_SKIP_LOCAL_MEMORY + + CU_COREDUMP_SKIP_ABORT = cydriver.CUCoredumpGenerationFlags.CU_COREDUMP_SKIP_ABORT + + CU_COREDUMP_SKIP_CONSTBANK_MEMORY = cydriver.CUCoredumpGenerationFlags.CU_COREDUMP_SKIP_CONSTBANK_MEMORY + + CU_COREDUMP_LIGHTWEIGHT_FLAGS = cydriver.CUCoredumpGenerationFlags.CU_COREDUMP_LIGHTWEIGHT_FLAGS + + CU_COREDUMP_GZIP_COMPRESS = cydriver.CUCoredumpGenerationFlags.CU_COREDUMP_GZIP_COMPRESS class CUgreenCtxCreate_flags(_FastEnum): """ """ - {{if 'CU_GREEN_CTX_DEFAULT_STREAM' in found_values}} + CU_GREEN_CTX_DEFAULT_STREAM = ( cydriver.CUgreenCtxCreate_flags.CU_GREEN_CTX_DEFAULT_STREAM, 'Required. Creates a default stream to use inside the green context\n' - ){{endif}} - -{{endif}} -{{if 'CUdevSmResourceGroup_flags' in found_types}} + ) class CUdevSmResourceGroup_flags(_FastEnum): """ Flags for a :py:obj:`~.CUdevSmResource` group """ - {{if 'CU_DEV_SM_RESOURCE_GROUP_DEFAULT' in found_values}} - CU_DEV_SM_RESOURCE_GROUP_DEFAULT = cydriver.CUdevSmResourceGroup_flags.CU_DEV_SM_RESOURCE_GROUP_DEFAULT{{endif}} - {{if 'CU_DEV_SM_RESOURCE_GROUP_BACKFILL' in found_values}} - CU_DEV_SM_RESOURCE_GROUP_BACKFILL = cydriver.CUdevSmResourceGroup_flags.CU_DEV_SM_RESOURCE_GROUP_BACKFILL{{endif}} -{{endif}} -{{if 'CUdevSmResourceSplitByCount_flags' in found_types}} + CU_DEV_SM_RESOURCE_GROUP_DEFAULT = cydriver.CUdevSmResourceGroup_flags.CU_DEV_SM_RESOURCE_GROUP_DEFAULT + + CU_DEV_SM_RESOURCE_GROUP_BACKFILL = cydriver.CUdevSmResourceGroup_flags.CU_DEV_SM_RESOURCE_GROUP_BACKFILL class CUdevSmResourceSplitByCount_flags(_FastEnum): """ """ - {{if 'CU_DEV_SM_RESOURCE_SPLIT_IGNORE_SM_COSCHEDULING' in found_values}} - CU_DEV_SM_RESOURCE_SPLIT_IGNORE_SM_COSCHEDULING = cydriver.CUdevSmResourceSplitByCount_flags.CU_DEV_SM_RESOURCE_SPLIT_IGNORE_SM_COSCHEDULING{{endif}} - {{if 'CU_DEV_SM_RESOURCE_SPLIT_MAX_POTENTIAL_CLUSTER_SIZE' in found_values}} - CU_DEV_SM_RESOURCE_SPLIT_MAX_POTENTIAL_CLUSTER_SIZE = cydriver.CUdevSmResourceSplitByCount_flags.CU_DEV_SM_RESOURCE_SPLIT_MAX_POTENTIAL_CLUSTER_SIZE{{endif}} -{{endif}} -{{if 'CUdevResourceType' in found_types}} + CU_DEV_SM_RESOURCE_SPLIT_IGNORE_SM_COSCHEDULING = cydriver.CUdevSmResourceSplitByCount_flags.CU_DEV_SM_RESOURCE_SPLIT_IGNORE_SM_COSCHEDULING + + CU_DEV_SM_RESOURCE_SPLIT_MAX_POTENTIAL_CLUSTER_SIZE = cydriver.CUdevSmResourceSplitByCount_flags.CU_DEV_SM_RESOURCE_SPLIT_MAX_POTENTIAL_CLUSTER_SIZE class CUdevResourceType(_FastEnum): """ Type of resource """ - {{if 'CU_DEV_RESOURCE_TYPE_INVALID' in found_values}} - CU_DEV_RESOURCE_TYPE_INVALID = cydriver.CUdevResourceType.CU_DEV_RESOURCE_TYPE_INVALID{{endif}} - {{if 'CU_DEV_RESOURCE_TYPE_SM' in found_values}} + + CU_DEV_RESOURCE_TYPE_INVALID = cydriver.CUdevResourceType.CU_DEV_RESOURCE_TYPE_INVALID + CU_DEV_RESOURCE_TYPE_SM = ( cydriver.CUdevResourceType.CU_DEV_RESOURCE_TYPE_SM, 'Streaming multiprocessors related information\n' - ){{endif}} - {{if 'CU_DEV_RESOURCE_TYPE_WORKQUEUE_CONFIG' in found_values}} + ) + CU_DEV_RESOURCE_TYPE_WORKQUEUE_CONFIG = ( cydriver.CUdevResourceType.CU_DEV_RESOURCE_TYPE_WORKQUEUE_CONFIG, 'Workqueue configuration related information\n' - ){{endif}} - {{if 'CU_DEV_RESOURCE_TYPE_WORKQUEUE' in found_values}} + ) + CU_DEV_RESOURCE_TYPE_WORKQUEUE = ( cydriver.CUdevResourceType.CU_DEV_RESOURCE_TYPE_WORKQUEUE, 'Pre-existing workqueue related information\n' - ){{endif}} - -{{endif}} -{{if 'CUdevWorkqueueConfigScope' in found_types}} + ) class CUdevWorkqueueConfigScope(_FastEnum): """ Sharing scope for workqueues """ - {{if 'CU_WORKQUEUE_SCOPE_DEVICE_CTX' in found_values}} + CU_WORKQUEUE_SCOPE_DEVICE_CTX = ( cydriver.CUdevWorkqueueConfigScope.CU_WORKQUEUE_SCOPE_DEVICE_CTX, 'Use all shared workqueue resources across all contexts. Default driver\n' 'behaviour.\n' - ){{endif}} - {{if 'CU_WORKQUEUE_SCOPE_GREEN_CTX_BALANCED' in found_values}} + ) + CU_WORKQUEUE_SCOPE_GREEN_CTX_BALANCED = ( cydriver.CUdevWorkqueueConfigScope.CU_WORKQUEUE_SCOPE_GREEN_CTX_BALANCED, 'When possible, use non-overlapping workqueue resources with other balanced\n' 'green contexts.\n' - ){{endif}} - -{{endif}} -{{if 'CUlogLevel_enum' in found_types}} + ) class CUlogLevel(_FastEnum): """ """ - {{if 'CU_LOG_LEVEL_ERROR' in found_values}} - CU_LOG_LEVEL_ERROR = cydriver.CUlogLevel_enum.CU_LOG_LEVEL_ERROR{{endif}} - {{if 'CU_LOG_LEVEL_WARNING' in found_values}} - CU_LOG_LEVEL_WARNING = cydriver.CUlogLevel_enum.CU_LOG_LEVEL_WARNING{{endif}} -{{endif}} -{{if 'CUoutput_mode_enum' in found_types}} + CU_LOG_LEVEL_ERROR = cydriver.CUlogLevel_enum.CU_LOG_LEVEL_ERROR + + CU_LOG_LEVEL_WARNING = cydriver.CUlogLevel_enum.CU_LOG_LEVEL_WARNING class CUoutput_mode(_FastEnum): """ Profiler Output Modes """ - {{if 'CU_OUT_KEY_VALUE_PAIR' in found_values}} + CU_OUT_KEY_VALUE_PAIR = ( cydriver.CUoutput_mode_enum.CU_OUT_KEY_VALUE_PAIR, 'Output mode Key-Value pair format.\n' - ){{endif}} - {{if 'CU_OUT_CSV' in found_values}} + ) + CU_OUT_CSV = ( cydriver.CUoutput_mode_enum.CU_OUT_CSV, 'Output mode Comma separated values format.\n' - ){{endif}} - -{{endif}} -{{if True}} + ) class CUeglFrameType(_FastEnum): """ CUDA EglFrame type - array or pointer """ - {{if True}} + CU_EGL_FRAME_TYPE_ARRAY = ( cydriver.CUeglFrameType_enum.CU_EGL_FRAME_TYPE_ARRAY, 'Frame type CUDA array\n' - ){{endif}} - {{if True}} + ) + CU_EGL_FRAME_TYPE_PITCH = ( cydriver.CUeglFrameType_enum.CU_EGL_FRAME_TYPE_PITCH, 'Frame type pointer\n' - ){{endif}} - -{{endif}} -{{if True}} + ) class CUeglResourceLocationFlags(_FastEnum): """ @@ -7131,21 +6775,18 @@ class CUeglResourceLocationFlags(_FastEnum): by 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}} + CU_EGL_RESOURCE_LOCATION_SYSMEM = ( cydriver.CUeglResourceLocationFlags_enum.CU_EGL_RESOURCE_LOCATION_SYSMEM, 'Resource location sysmem\n' - ){{endif}} - {{if True}} + ) + CU_EGL_RESOURCE_LOCATION_VIDMEM = ( cydriver.CUeglResourceLocationFlags_enum.CU_EGL_RESOURCE_LOCATION_VIDMEM, 'Resource location vidmem\n' - ){{endif}} - -{{endif}} -{{if True}} + ) class CUeglColorFormat(_FastEnum): """ @@ -7154,842 +6795,830 @@ class CUeglColorFormat(_FastEnum): formats are currently not supported for :py:obj:`~.CU_EGL_FRAME_TYPE_ARRAY` """ - {{if True}} + CU_EGL_COLOR_FORMAT_YUV420_PLANAR = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUV420_PLANAR, '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}} + ) + CU_EGL_COLOR_FORMAT_YUV420_SEMIPLANAR = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUV420_SEMIPLANAR, 'Y, UV in two surfaces (UV as one surface) with VU byte ordering, width,\n' 'height ratio same as YUV420Planar.\n' - ){{endif}} - {{if True}} + ) + CU_EGL_COLOR_FORMAT_YUV422_PLANAR = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUV422_PLANAR, '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}} + ) + CU_EGL_COLOR_FORMAT_YUV422_SEMIPLANAR = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUV422_SEMIPLANAR, 'Y, UV in two surfaces with VU byte ordering, width, height ratio same as\n' 'YUV422Planar.\n' - ){{endif}} - {{if True}} + ) + CU_EGL_COLOR_FORMAT_RGB = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_RGB, 'R/G/B three channels in one surface with BGR byte ordering. Only pitch\n' 'linear format supported.\n' - ){{endif}} - {{if True}} + ) + CU_EGL_COLOR_FORMAT_BGR = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BGR, 'R/G/B three channels in one surface with RGB byte ordering. Only pitch\n' 'linear format supported.\n' - ){{endif}} - {{if True}} + ) + CU_EGL_COLOR_FORMAT_ARGB = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_ARGB, 'R/G/B/A four channels in one surface with BGRA byte ordering.\n' - ){{endif}} - {{if True}} + ) + CU_EGL_COLOR_FORMAT_RGBA = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_RGBA, 'R/G/B/A four channels in one surface with ABGR byte ordering.\n' - ){{endif}} - {{if True}} + ) + CU_EGL_COLOR_FORMAT_L = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_L, 'single luminance channel in one surface.\n' - ){{endif}} - {{if True}} + ) + CU_EGL_COLOR_FORMAT_R = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_R, 'single color channel in one surface.\n' - ){{endif}} - {{if True}} + ) + CU_EGL_COLOR_FORMAT_YUV444_PLANAR = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUV444_PLANAR, '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}} + ) + CU_EGL_COLOR_FORMAT_YUV444_SEMIPLANAR = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUV444_SEMIPLANAR, 'Y, UV in two surfaces (UV as one surface) with VU byte ordering, width,\n' 'height ratio same as YUV444Planar.\n' - ){{endif}} - {{if True}} + ) + CU_EGL_COLOR_FORMAT_YUYV_422 = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUYV_422, 'Y, U, V in one surface, interleaved as UYVY in one channel.\n' - ){{endif}} - {{if True}} + ) + CU_EGL_COLOR_FORMAT_UYVY_422 = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_UYVY_422, 'Y, U, V in one surface, interleaved as YUYV in one channel.\n' - ){{endif}} - {{if True}} + ) + CU_EGL_COLOR_FORMAT_ABGR = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_ABGR, 'R/G/B/A four channels in one surface with RGBA byte ordering.\n' - ){{endif}} - {{if True}} + ) + CU_EGL_COLOR_FORMAT_BGRA = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BGRA, 'R/G/B/A four channels in one surface with ARGB byte ordering.\n' - ){{endif}} - {{if True}} + ) + CU_EGL_COLOR_FORMAT_A = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_A, 'Alpha color format - one channel in one surface.\n' - ){{endif}} - {{if True}} + ) + CU_EGL_COLOR_FORMAT_RG = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_RG, 'R/G color format - two channels in one surface with GR byte ordering\n' - ){{endif}} - {{if True}} + ) + CU_EGL_COLOR_FORMAT_AYUV = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_AYUV, 'Y, U, V, A four channels in one surface, interleaved as VUYA.\n' - ){{endif}} - {{if True}} + ) + CU_EGL_COLOR_FORMAT_YVU444_SEMIPLANAR = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YVU444_SEMIPLANAR, '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}} + ) + CU_EGL_COLOR_FORMAT_YVU422_SEMIPLANAR = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YVU422_SEMIPLANAR, '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}} + ) + CU_EGL_COLOR_FORMAT_YVU420_SEMIPLANAR = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YVU420_SEMIPLANAR, '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}} + ) + CU_EGL_COLOR_FORMAT_Y10V10U10_444_SEMIPLANAR = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y10V10U10_444_SEMIPLANAR, '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}} + ) + CU_EGL_COLOR_FORMAT_Y10V10U10_420_SEMIPLANAR = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y10V10U10_420_SEMIPLANAR, '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}} + ) + CU_EGL_COLOR_FORMAT_Y12V12U12_444_SEMIPLANAR = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y12V12U12_444_SEMIPLANAR, '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}} + ) + CU_EGL_COLOR_FORMAT_Y12V12U12_420_SEMIPLANAR = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y12V12U12_420_SEMIPLANAR, '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}} + ) + CU_EGL_COLOR_FORMAT_VYUY_ER = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_VYUY_ER, 'Extended Range Y, U, V in one surface, interleaved as YVYU in one channel.\n' - ){{endif}} - {{if True}} + ) + CU_EGL_COLOR_FORMAT_UYVY_ER = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_UYVY_ER, 'Extended Range Y, U, V in one surface, interleaved as YUYV in one channel.\n' - ){{endif}} - {{if True}} + ) + CU_EGL_COLOR_FORMAT_YUYV_ER = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUYV_ER, 'Extended Range Y, U, V in one surface, interleaved as UYVY in one channel.\n' - ){{endif}} - {{if True}} + ) + CU_EGL_COLOR_FORMAT_YVYU_ER = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YVYU_ER, 'Extended Range Y, U, V in one surface, interleaved as VYUY in one channel.\n' - ){{endif}} - {{if True}} + ) + CU_EGL_COLOR_FORMAT_YUV_ER = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUV_ER, 'Extended Range Y, U, V three channels in one surface, interleaved as VUY.\n' 'Only pitch linear format supported.\n' - ){{endif}} - {{if True}} + ) + CU_EGL_COLOR_FORMAT_YUVA_ER = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUVA_ER, 'Extended Range Y, U, V, A four channels in one surface, interleaved as\n' 'AVUY.\n' - ){{endif}} - {{if True}} + ) + CU_EGL_COLOR_FORMAT_AYUV_ER = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_AYUV_ER, 'Extended Range Y, U, V, A four channels in one surface, interleaved as\n' 'VUYA.\n' - ){{endif}} - {{if True}} + ) + CU_EGL_COLOR_FORMAT_YUV444_PLANAR_ER = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUV444_PLANAR_ER, 'Extended Range Y, U, V in three surfaces, U/V width = Y width, U/V height =\n' 'Y height.\n' - ){{endif}} - {{if True}} + ) + CU_EGL_COLOR_FORMAT_YUV422_PLANAR_ER = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUV422_PLANAR_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}} + ) + CU_EGL_COLOR_FORMAT_YUV420_PLANAR_ER = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUV420_PLANAR_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}} + ) + CU_EGL_COLOR_FORMAT_YUV444_SEMIPLANAR_ER = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUV444_SEMIPLANAR_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}} + ) + CU_EGL_COLOR_FORMAT_YUV422_SEMIPLANAR_ER = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUV422_SEMIPLANAR_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}} + ) + CU_EGL_COLOR_FORMAT_YUV420_SEMIPLANAR_ER = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUV420_SEMIPLANAR_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}} + ) + CU_EGL_COLOR_FORMAT_YVU444_PLANAR_ER = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YVU444_PLANAR_ER, 'Extended Range Y, V, U in three surfaces, U/V width = Y width, U/V height =\n' 'Y height.\n' - ){{endif}} - {{if True}} + ) + CU_EGL_COLOR_FORMAT_YVU422_PLANAR_ER = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YVU422_PLANAR_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}} + ) + CU_EGL_COLOR_FORMAT_YVU420_PLANAR_ER = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YVU420_PLANAR_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}} + ) + CU_EGL_COLOR_FORMAT_YVU444_SEMIPLANAR_ER = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YVU444_SEMIPLANAR_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}} + ) + CU_EGL_COLOR_FORMAT_YVU422_SEMIPLANAR_ER = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YVU422_SEMIPLANAR_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}} + ) + CU_EGL_COLOR_FORMAT_YVU420_SEMIPLANAR_ER = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YVU420_SEMIPLANAR_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}} + ) + CU_EGL_COLOR_FORMAT_BAYER_RGGB = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER_RGGB, 'Bayer format - one channel in one surface with interleaved RGGB ordering.\n' - ){{endif}} - {{if True}} + ) + CU_EGL_COLOR_FORMAT_BAYER_BGGR = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER_BGGR, 'Bayer format - one channel in one surface with interleaved BGGR ordering.\n' - ){{endif}} - {{if True}} + ) + CU_EGL_COLOR_FORMAT_BAYER_GRBG = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER_GRBG, 'Bayer format - one channel in one surface with interleaved GRBG ordering.\n' - ){{endif}} - {{if True}} + ) + CU_EGL_COLOR_FORMAT_BAYER_GBRG = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER_GBRG, 'Bayer format - one channel in one surface with interleaved GBRG ordering.\n' - ){{endif}} - {{if True}} + ) + CU_EGL_COLOR_FORMAT_BAYER10_RGGB = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER10_RGGB, '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}} + ) + CU_EGL_COLOR_FORMAT_BAYER10_BGGR = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER10_BGGR, '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}} + ) + CU_EGL_COLOR_FORMAT_BAYER10_GRBG = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER10_GRBG, '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}} + ) + CU_EGL_COLOR_FORMAT_BAYER10_GBRG = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER10_GBRG, '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}} + ) + CU_EGL_COLOR_FORMAT_BAYER12_RGGB = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER12_RGGB, '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}} + ) + CU_EGL_COLOR_FORMAT_BAYER12_BGGR = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER12_BGGR, '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}} + ) + CU_EGL_COLOR_FORMAT_BAYER12_GRBG = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER12_GRBG, '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}} + ) + CU_EGL_COLOR_FORMAT_BAYER12_GBRG = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER12_GBRG, '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}} + ) + CU_EGL_COLOR_FORMAT_BAYER14_RGGB = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER14_RGGB, '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}} + ) + CU_EGL_COLOR_FORMAT_BAYER14_BGGR = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER14_BGGR, '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}} + ) + CU_EGL_COLOR_FORMAT_BAYER14_GRBG = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER14_GRBG, '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}} + ) + CU_EGL_COLOR_FORMAT_BAYER14_GBRG = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER14_GBRG, '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}} + ) + CU_EGL_COLOR_FORMAT_BAYER20_RGGB = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER20_RGGB, '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}} + ) + CU_EGL_COLOR_FORMAT_BAYER20_BGGR = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER20_BGGR, '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}} + ) + CU_EGL_COLOR_FORMAT_BAYER20_GRBG = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER20_GRBG, '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}} + ) + CU_EGL_COLOR_FORMAT_BAYER20_GBRG = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER20_GBRG, '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}} + ) + CU_EGL_COLOR_FORMAT_YVU444_PLANAR = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YVU444_PLANAR, '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}} + ) + CU_EGL_COLOR_FORMAT_YVU422_PLANAR = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YVU422_PLANAR, '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}} + ) + CU_EGL_COLOR_FORMAT_YVU420_PLANAR = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YVU420_PLANAR, '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}} + ) + CU_EGL_COLOR_FORMAT_BAYER_ISP_RGGB = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER_ISP_RGGB, '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}} + ) + CU_EGL_COLOR_FORMAT_BAYER_ISP_BGGR = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER_ISP_BGGR, '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}} + ) + CU_EGL_COLOR_FORMAT_BAYER_ISP_GRBG = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER_ISP_GRBG, '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}} + ) + CU_EGL_COLOR_FORMAT_BAYER_ISP_GBRG = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER_ISP_GBRG, '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}} + ) + CU_EGL_COLOR_FORMAT_BAYER_BCCR = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER_BCCR, 'Bayer format - one channel in one surface with interleaved BCCR ordering.\n' - ){{endif}} - {{if True}} + ) + CU_EGL_COLOR_FORMAT_BAYER_RCCB = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER_RCCB, 'Bayer format - one channel in one surface with interleaved RCCB ordering.\n' - ){{endif}} - {{if True}} + ) + CU_EGL_COLOR_FORMAT_BAYER_CRBC = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER_CRBC, 'Bayer format - one channel in one surface with interleaved CRBC ordering.\n' - ){{endif}} - {{if True}} + ) + CU_EGL_COLOR_FORMAT_BAYER_CBRC = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER_CBRC, 'Bayer format - one channel in one surface with interleaved CBRC ordering.\n' - ){{endif}} - {{if True}} + ) + CU_EGL_COLOR_FORMAT_BAYER10_CCCC = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER10_CCCC, '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}} + ) + CU_EGL_COLOR_FORMAT_BAYER12_BCCR = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER12_BCCR, '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}} + ) + CU_EGL_COLOR_FORMAT_BAYER12_RCCB = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER12_RCCB, '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}} + ) + CU_EGL_COLOR_FORMAT_BAYER12_CRBC = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER12_CRBC, '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}} + ) + CU_EGL_COLOR_FORMAT_BAYER12_CBRC = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER12_CBRC, '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}} + ) + CU_EGL_COLOR_FORMAT_BAYER12_CCCC = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER12_CCCC, '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}} + ) + CU_EGL_COLOR_FORMAT_Y = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y, 'Color format for single Y plane.\n' - ){{endif}} - {{if True}} + ) + CU_EGL_COLOR_FORMAT_YUV420_SEMIPLANAR_2020 = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUV420_SEMIPLANAR_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}} + ) + CU_EGL_COLOR_FORMAT_YVU420_SEMIPLANAR_2020 = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YVU420_SEMIPLANAR_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}} + ) + CU_EGL_COLOR_FORMAT_YUV420_PLANAR_2020 = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUV420_PLANAR_2020, 'Y, U, V each in a separate surface, U/V width = 1/2 Y width, U/V height=\n' '1/2 Y height.\n' - ){{endif}} - {{if True}} + ) + CU_EGL_COLOR_FORMAT_YVU420_PLANAR_2020 = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YVU420_PLANAR_2020, 'Y, V, U each in a separate surface, U/V width = 1/2 Y width, U/V height =\n' '1/2 Y height.\n' - ){{endif}} - {{if True}} + ) + CU_EGL_COLOR_FORMAT_YUV420_SEMIPLANAR_709 = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUV420_SEMIPLANAR_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}} + ) + CU_EGL_COLOR_FORMAT_YVU420_SEMIPLANAR_709 = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YVU420_SEMIPLANAR_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}} + ) + CU_EGL_COLOR_FORMAT_YUV420_PLANAR_709 = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUV420_PLANAR_709, 'Y, U, V each in a separate surface, U/V width = 1/2 Y width, U/V height =\n' '1/2 Y height.\n' - ){{endif}} - {{if True}} + ) + CU_EGL_COLOR_FORMAT_YVU420_PLANAR_709 = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YVU420_PLANAR_709, 'Y, V, U each in a separate surface, U/V width = 1/2 Y width, U/V height =\n' '1/2 Y height.\n' - ){{endif}} - {{if True}} + ) + CU_EGL_COLOR_FORMAT_Y10V10U10_420_SEMIPLANAR_709 = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y10V10U10_420_SEMIPLANAR_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}} + ) + CU_EGL_COLOR_FORMAT_Y10V10U10_420_SEMIPLANAR_2020 = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y10V10U10_420_SEMIPLANAR_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}} + ) + CU_EGL_COLOR_FORMAT_Y10V10U10_422_SEMIPLANAR_2020 = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y10V10U10_422_SEMIPLANAR_2020, 'Y10, V10U10 in two surfaces(VU as one surface) U/V width = 1/2 Y width, U/V\n' 'height = Y height.\n' - ){{endif}} - {{if True}} + ) + CU_EGL_COLOR_FORMAT_Y10V10U10_422_SEMIPLANAR = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y10V10U10_422_SEMIPLANAR, 'Y10, V10U10 in two surfaces(VU as one surface) U/V width = 1/2 Y width, U/V\n' 'height = Y height.\n' - ){{endif}} - {{if True}} + ) + CU_EGL_COLOR_FORMAT_Y10V10U10_422_SEMIPLANAR_709 = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y10V10U10_422_SEMIPLANAR_709, 'Y10, V10U10 in two surfaces(VU as one surface) U/V width = 1/2 Y width, U/V\n' 'height = Y height.\n' - ){{endif}} - {{if True}} + ) + CU_EGL_COLOR_FORMAT_Y_ER = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y_ER, 'Extended Range Color format for single Y plane.\n' - ){{endif}} - {{if True}} + ) + CU_EGL_COLOR_FORMAT_Y_709_ER = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y_709_ER, 'Extended Range Color format for single Y plane.\n' - ){{endif}} - {{if True}} + ) + CU_EGL_COLOR_FORMAT_Y10_ER = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y10_ER, 'Extended Range Color format for single Y10 plane.\n' - ){{endif}} - {{if True}} + ) + CU_EGL_COLOR_FORMAT_Y10_709_ER = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y10_709_ER, 'Extended Range Color format for single Y10 plane.\n' - ){{endif}} - {{if True}} + ) + CU_EGL_COLOR_FORMAT_Y12_ER = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y12_ER, 'Extended Range Color format for single Y12 plane.\n' - ){{endif}} - {{if True}} + ) + CU_EGL_COLOR_FORMAT_Y12_709_ER = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y12_709_ER, 'Extended Range Color format for single Y12 plane.\n' - ){{endif}} - {{if True}} + ) + CU_EGL_COLOR_FORMAT_YUVA = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUVA, 'Y, U, V, A four channels in one surface, interleaved as AVUY.\n' - ){{endif}} - {{if True}} + ) + CU_EGL_COLOR_FORMAT_YUV = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUV, 'Y, U, V three channels in one surface, interleaved as VUY. Only pitch\n' 'linear format supported.\n' - ){{endif}} - {{if True}} + ) + CU_EGL_COLOR_FORMAT_YVYU = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YVYU, 'Y, U, V in one surface, interleaved as YVYU in one channel.\n' - ){{endif}} - {{if True}} + ) + CU_EGL_COLOR_FORMAT_VYUY = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_VYUY, 'Y, U, V in one surface, interleaved as VYUY in one channel.\n' - ){{endif}} - {{if True}} + ) + CU_EGL_COLOR_FORMAT_Y10V10U10_420_SEMIPLANAR_ER = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y10V10U10_420_SEMIPLANAR_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}} + ) + CU_EGL_COLOR_FORMAT_Y10V10U10_420_SEMIPLANAR_709_ER = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y10V10U10_420_SEMIPLANAR_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}} + ) + CU_EGL_COLOR_FORMAT_Y10V10U10_444_SEMIPLANAR_ER = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y10V10U10_444_SEMIPLANAR_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}} + ) + CU_EGL_COLOR_FORMAT_Y10V10U10_444_SEMIPLANAR_709_ER = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y10V10U10_444_SEMIPLANAR_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}} + ) + CU_EGL_COLOR_FORMAT_Y12V12U12_420_SEMIPLANAR_ER = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y12V12U12_420_SEMIPLANAR_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}} + ) + CU_EGL_COLOR_FORMAT_Y12V12U12_420_SEMIPLANAR_709_ER = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y12V12U12_420_SEMIPLANAR_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}} + ) + CU_EGL_COLOR_FORMAT_Y12V12U12_444_SEMIPLANAR_ER = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y12V12U12_444_SEMIPLANAR_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}} + ) + CU_EGL_COLOR_FORMAT_Y12V12U12_444_SEMIPLANAR_709_ER = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y12V12U12_444_SEMIPLANAR_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}} + ) + CU_EGL_COLOR_FORMAT_UYVY_709 = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_UYVY_709, 'Y, U, V in one surface, interleaved as UYVY in one channel.\n' - ){{endif}} - {{if True}} + ) + CU_EGL_COLOR_FORMAT_UYVY_709_ER = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_UYVY_709_ER, 'Extended Range Y, U, V in one surface, interleaved as UYVY in one channel.\n' - ){{endif}} - {{if True}} + ) + CU_EGL_COLOR_FORMAT_UYVY_2020 = ( cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_UYVY_2020, 'Y, U, V in one surface, interleaved as UYVY in one channel.\n' - ){{endif}} - {{if True}} - CU_EGL_COLOR_FORMAT_MAX = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_MAX{{endif}} + ) -{{endif}} -{{if True}} + CU_EGL_COLOR_FORMAT_MAX = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_MAX class CUGLDeviceList(_FastEnum): """ CUDA devices corresponding to an OpenGL device """ - {{if True}} + CU_GL_DEVICE_LIST_ALL = ( cydriver.CUGLDeviceList_enum.CU_GL_DEVICE_LIST_ALL, 'The CUDA devices for all GPUs used by the current OpenGL context\n' - ){{endif}} - {{if True}} + ) + CU_GL_DEVICE_LIST_CURRENT_FRAME = ( cydriver.CUGLDeviceList_enum.CU_GL_DEVICE_LIST_CURRENT_FRAME, 'The CUDA devices for the GPUs used by the current OpenGL context in its\n' 'currently rendering frame\n' - ){{endif}} - {{if True}} + ) + CU_GL_DEVICE_LIST_NEXT_FRAME = ( cydriver.CUGLDeviceList_enum.CU_GL_DEVICE_LIST_NEXT_FRAME, '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 CUGLmap_flags(_FastEnum): """ Flags to map or unmap a resource """ - {{if True}} - CU_GL_MAP_RESOURCE_FLAGS_NONE = cydriver.CUGLmap_flags_enum.CU_GL_MAP_RESOURCE_FLAGS_NONE{{endif}} - {{if True}} - CU_GL_MAP_RESOURCE_FLAGS_READ_ONLY = cydriver.CUGLmap_flags_enum.CU_GL_MAP_RESOURCE_FLAGS_READ_ONLY{{endif}} - {{if True}} - CU_GL_MAP_RESOURCE_FLAGS_WRITE_DISCARD = cydriver.CUGLmap_flags_enum.CU_GL_MAP_RESOURCE_FLAGS_WRITE_DISCARD{{endif}} -{{endif}} + CU_GL_MAP_RESOURCE_FLAGS_NONE = cydriver.CUGLmap_flags_enum.CU_GL_MAP_RESOURCE_FLAGS_NONE -cdef object _CUresult = CUresult -cdef object _CUresult_SUCCESS = CUresult.CUDA_SUCCESS + CU_GL_MAP_RESOURCE_FLAGS_READ_ONLY = cydriver.CUGLmap_flags_enum.CU_GL_MAP_RESOURCE_FLAGS_READ_ONLY + CU_GL_MAP_RESOURCE_FLAGS_WRITE_DISCARD = cydriver.CUGLmap_flags_enum.CU_GL_MAP_RESOURCE_FLAGS_WRITE_DISCARD - -{{if 'CUdeviceptr' in found_types}} +cdef object _CUresult = CUresult +cdef object _CUresult_SUCCESS = CUresult.CUDA_SUCCESS cdef class CUdeviceptr: """ @@ -8017,9 +7646,6 @@ cdef class CUdeviceptr: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if 'CUdevice' in found_types}} cdef class CUdevice: """ @@ -8047,9 +7673,6 @@ cdef class CUdevice: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if 'CUtexObject' in found_types}} cdef class CUtexObject: """ @@ -8077,9 +7700,6 @@ cdef class CUtexObject: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if 'CUsurfObject' in found_types}} cdef class CUsurfObject: """ @@ -8107,9 +7727,6 @@ cdef class CUsurfObject: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if 'CUgraphConditionalHandle' in found_types}} cdef class CUgraphConditionalHandle: """ @@ -8135,304 +7752,53 @@ cdef class CUgraphConditionalHandle: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if 'CUlaunchAttributeID_enum' in found_types}} class CUkernelNodeAttrID(_FastEnum): """ Launch attributes enum; used as id field of :py:obj:`~.CUlaunchAttribute` """ - {{if 'CU_LAUNCH_ATTRIBUTE_IGNORE' in found_values}} - - CU_LAUNCH_ATTRIBUTE_IGNORE = ( - cydriver.CUlaunchAttributeID_enum.CU_LAUNCH_ATTRIBUTE_IGNORE, - 'Ignored entry, for convenient composition\n' - ){{endif}} - {{if 'CU_LAUNCH_ATTRIBUTE_ACCESS_POLICY_WINDOW' in found_values}} - - CU_LAUNCH_ATTRIBUTE_ACCESS_POLICY_WINDOW = ( - cydriver.CUlaunchAttributeID_enum.CU_LAUNCH_ATTRIBUTE_ACCESS_POLICY_WINDOW, - 'Valid for streams, graph nodes, launches. See\n' - ':py:obj:`~.CUlaunchAttributeValue.accessPolicyWindow`.\n' - ){{endif}} - {{if 'CU_LAUNCH_ATTRIBUTE_COOPERATIVE' in found_values}} - - CU_LAUNCH_ATTRIBUTE_COOPERATIVE = ( - cydriver.CUlaunchAttributeID_enum.CU_LAUNCH_ATTRIBUTE_COOPERATIVE, - 'Valid for graph nodes, launches. See\n' - ':py:obj:`~.CUlaunchAttributeValue.cooperative`.\n' - ){{endif}} - {{if 'CU_LAUNCH_ATTRIBUTE_SYNCHRONIZATION_POLICY' in found_values}} - - CU_LAUNCH_ATTRIBUTE_SYNCHRONIZATION_POLICY = ( - cydriver.CUlaunchAttributeID_enum.CU_LAUNCH_ATTRIBUTE_SYNCHRONIZATION_POLICY, - 'Valid for streams. See :py:obj:`~.CUlaunchAttributeValue.syncPolicy`.\n' - ){{endif}} - {{if 'CU_LAUNCH_ATTRIBUTE_CLUSTER_DIMENSION' in found_values}} - - CU_LAUNCH_ATTRIBUTE_CLUSTER_DIMENSION = ( - cydriver.CUlaunchAttributeID_enum.CU_LAUNCH_ATTRIBUTE_CLUSTER_DIMENSION, - 'Valid for graph nodes, launches. See\n' - ':py:obj:`~.CUlaunchAttributeValue.clusterDim`.\n' - ){{endif}} - {{if 'CU_LAUNCH_ATTRIBUTE_CLUSTER_SCHEDULING_POLICY_PREFERENCE' in found_values}} - - CU_LAUNCH_ATTRIBUTE_CLUSTER_SCHEDULING_POLICY_PREFERENCE = ( - cydriver.CUlaunchAttributeID_enum.CU_LAUNCH_ATTRIBUTE_CLUSTER_SCHEDULING_POLICY_PREFERENCE, - 'Valid for graph nodes, launches. See\n' - ':py:obj:`~.CUlaunchAttributeValue.clusterSchedulingPolicyPreference`.\n' - ){{endif}} - {{if 'CU_LAUNCH_ATTRIBUTE_PROGRAMMATIC_STREAM_SERIALIZATION' in found_values}} - CU_LAUNCH_ATTRIBUTE_PROGRAMMATIC_STREAM_SERIALIZATION = ( - cydriver.CUlaunchAttributeID_enum.CU_LAUNCH_ATTRIBUTE_PROGRAMMATIC_STREAM_SERIALIZATION, - 'Valid for launches. Setting\n' - ':py:obj:`~.CUlaunchAttributeValue.programmaticStreamSerializationAllowed`\n' - 'to non-0 signals that the kernel will use programmatic means to resolve its\n' - 'stream dependency, so that the CUDA runtime should opportunistically allow\n' - "the grid's execution to overlap with the previous kernel in the stream, if\n" - '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 'CU_LAUNCH_ATTRIBUTE_PROGRAMMATIC_EVENT' in found_values}} - - CU_LAUNCH_ATTRIBUTE_PROGRAMMATIC_EVENT = ( - cydriver.CUlaunchAttributeID_enum.CU_LAUNCH_ATTRIBUTE_PROGRAMMATIC_EVENT, - 'Valid for launches. Set\n' - ':py:obj:`~.CUlaunchAttributeValue.programmaticEvent` to record the event.\n' - 'Event recorded through this launch attribute is guaranteed to only trigger\n' - 'after all block in the associated kernel trigger the event. A block can\n' - 'trigger the event through PTX launchdep.release or CUDA builtin function\n' - 'cudaTriggerProgrammaticLaunchCompletion(). A trigger can also be inserted\n' - "at the beginning of each block's execution if triggerAtBlockStart is set to\n" - 'non-0. The dependent launches can choose to wait on the dependency using\n' - 'the programmatic sync (cudaGridDependencySynchronize() or equivalent PTX\n' - 'instructions). Note that dependents (including the CPU thread calling\n' - ':py:obj:`~.cuEventSynchronize()`) are not guaranteed to observe the release\n' - 'precisely when it is released. For example,\n' - ':py:obj:`~.cuEventSynchronize()` may only observe the event trigger long\n' - 'after the associated kernel has completed. This recording type is primarily\n' - 'meant for establishing programmatic dependency between device tasks. Note\n' - 'also this type of dependency allows, but does not guarantee, concurrent\n' - 'execution of tasks.\n' - ' 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:`~.CU_EVENT_DISABLE_TIMING` flag set).\n' - ){{endif}} - {{if 'CU_LAUNCH_ATTRIBUTE_PRIORITY' in found_values}} - - CU_LAUNCH_ATTRIBUTE_PRIORITY = ( - cydriver.CUlaunchAttributeID_enum.CU_LAUNCH_ATTRIBUTE_PRIORITY, - 'Valid for streams, graph nodes, launches. See\n' - ':py:obj:`~.CUlaunchAttributeValue.priority`.\n' - ){{endif}} - {{if 'CU_LAUNCH_ATTRIBUTE_MEM_SYNC_DOMAIN_MAP' in found_values}} - - CU_LAUNCH_ATTRIBUTE_MEM_SYNC_DOMAIN_MAP = ( - cydriver.CUlaunchAttributeID_enum.CU_LAUNCH_ATTRIBUTE_MEM_SYNC_DOMAIN_MAP, - 'Valid for streams, graph nodes, launches. See\n' - ':py:obj:`~.CUlaunchAttributeValue.memSyncDomainMap`.\n' - ){{endif}} - {{if 'CU_LAUNCH_ATTRIBUTE_MEM_SYNC_DOMAIN' in found_values}} - - CU_LAUNCH_ATTRIBUTE_MEM_SYNC_DOMAIN = ( - cydriver.CUlaunchAttributeID_enum.CU_LAUNCH_ATTRIBUTE_MEM_SYNC_DOMAIN, - 'Valid for streams, graph nodes, launches. See\n' - ':py:obj:`~.CUlaunchAttributeValue.memSyncDomain`.\n' - ){{endif}} - {{if 'CU_LAUNCH_ATTRIBUTE_PREFERRED_CLUSTER_DIMENSION' in found_values}} - - CU_LAUNCH_ATTRIBUTE_PREFERRED_CLUSTER_DIMENSION = ( - cydriver.CUlaunchAttributeID_enum.CU_LAUNCH_ATTRIBUTE_PREFERRED_CLUSTER_DIMENSION, - 'Valid for graph nodes, launches. Set\n' - ':py:obj:`~.CUlaunchAttributeValue.preferredClusterDim` to allow the kernel\n' - 'launch to specify a preferred substitute cluster dimension. Blocks may be\n' - 'grouped according to either the dimensions specified with this attribute\n' - '(grouped into a "preferred substitute cluster"), or the one specified with\n' - ':py:obj:`~.CU_LAUNCH_ATTRIBUTE_CLUSTER_DIMENSION` attribute (grouped into a\n' - '"regular cluster"). The cluster dimensions of a "preferred substitute\n' - 'cluster" shall be an integer multiple greater than zero of the regular\n' - 'cluster dimensions. The device will attempt - on a best-effort basis - to\n' - 'group thread blocks into preferred clusters over grouping them into regular\n' - 'clusters. When it deems necessary (primarily when the device temporarily\n' - 'runs out of physical resources to launch the larger preferred clusters),\n' - 'the device may switch to launch the regular clusters instead to attempt to\n' - 'utilize as much of the physical device resources as possible.\n' - ' Each type of cluster will have its enumeration / coordinate setup as if\n' - 'the grid consists solely of its type of cluster. For example, if the\n' - 'preferred substitute cluster dimensions double the regular cluster\n' - 'dimensions, there might be simultaneously a regular cluster indexed at\n' - '(1,0,0), and a preferred cluster indexed at (1,0,0). In this example, the\n' - 'preferred substitute cluster (1,0,0) replaces regular clusters (2,0,0) and\n' - '(3,0,0) and groups their blocks.\n' - ' This attribute will only take effect when a regular cluster dimension has\n' - 'been specified. The preferred substitute cluster dimension must be an\n' - 'integer multiple greater than zero of the regular cluster dimension and\n' - 'must divide the grid. It must also be no more than `maxBlocksPerCluster`,\n' - "if it is set in the kernel's `__launch_bounds__`. Otherwise it must be less\n" - '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 'CU_LAUNCH_ATTRIBUTE_LAUNCH_COMPLETION_EVENT' in found_values}} - - CU_LAUNCH_ATTRIBUTE_LAUNCH_COMPLETION_EVENT = ( - cydriver.CUlaunchAttributeID_enum.CU_LAUNCH_ATTRIBUTE_LAUNCH_COMPLETION_EVENT, - 'Valid for launches. Set\n' - ':py:obj:`~.CUlaunchAttributeValue.launchCompletionEvent` to record the\n' - 'event.\n' - ' Nominally, the event is triggered once all blocks of the kernel have begun\n' - 'execution. Currently this is a best effort. If a kernel B has a launch\n' - 'completion dependency on a kernel A, B may wait until A is complete.\n' - 'Alternatively, blocks of B may begin before all blocks of A have begun, for\n' - 'example if B can claim execution resources unavailable to A (e.g. they run\n' - 'on different GPUs) or if B is a higher priority than A. Exercise caution if\n' - 'such an ordering inversion could lead to deadlock.\n' - ' A launch completion event is nominally similar to a programmatic event\n' - 'with `triggerAtBlockStart` set except that it is not visible to\n' - '`cudaGridDependencySynchronize()` and can be used with compute capability\n' - 'less than 9.0.\n' - ' 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:`~.CU_EVENT_DISABLE_TIMING` flag set).\n' - ){{endif}} - {{if 'CU_LAUNCH_ATTRIBUTE_DEVICE_UPDATABLE_KERNEL_NODE' in found_values}} - - CU_LAUNCH_ATTRIBUTE_DEVICE_UPDATABLE_KERNEL_NODE = ( - cydriver.CUlaunchAttributeID_enum.CU_LAUNCH_ATTRIBUTE_DEVICE_UPDATABLE_KERNEL_NODE, - 'Valid for graph nodes, launches. This attribute is graphs-only, and passing\n' - 'it to a launch in a non-capturing stream will result in an error.\n' - ':py:obj:`~.CUlaunchAttributeValue.deviceUpdatableKernelNode.deviceUpdatable`\n' - 'can only be set to 0 or 1. Setting the field to 1 indicates that the\n' - 'corresponding kernel node should be device-updatable. On success, a handle\n' - 'will be returned via\n' - ':py:obj:`~.CUlaunchAttributeValue.deviceUpdatableKernelNode.devNode` which\n' - 'can be passed to the various device-side update functions to update the\n' - "node's kernel parameters from within another kernel. For more information\n" - 'on the types of device updates that can be made, as well as the relevant\n' - 'limitations thereof, see :py:obj:`~.cudaGraphKernelNodeUpdatesApply`.\n' - ' Nodes which are device-updatable have additional restrictions compared to\n' - 'regular kernel nodes. Firstly, device-updatable nodes cannot be removed\n' - 'from their graph via :py:obj:`~.cuGraphDestroyNode`. Additionally, once\n' - 'opted-in to this functionality, a node cannot opt out, and any attempt to\n' - 'set the deviceUpdatable attribute to 0 will result in an error. Device-\n' - 'updatable kernel nodes also cannot have their attributes copied to/from\n' - 'another kernel node via :py:obj:`~.cuGraphKernelNodeCopyAttributes`. Graphs\n' - 'containing one or more device-updatable nodes also do not allow multiple\n' - 'instantiation, and neither the graph nor its instantiated version can be\n' - 'passed to :py:obj:`~.cuGraphExecUpdate`.\n' - ' If a graph contains device-updatable nodes and updates those nodes from\n' - 'the device from within the graph, the graph must be uploaded with\n' - ':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 'CU_LAUNCH_ATTRIBUTE_PREFERRED_SHARED_MEMORY_CARVEOUT' in found_values}} - - CU_LAUNCH_ATTRIBUTE_PREFERRED_SHARED_MEMORY_CARVEOUT = ( - cydriver.CUlaunchAttributeID_enum.CU_LAUNCH_ATTRIBUTE_PREFERRED_SHARED_MEMORY_CARVEOUT, - 'Valid for launches. On devices where the L1 cache and shared memory use the\n' - 'same hardware resources, setting\n' - ':py:obj:`~.CUlaunchAttributeValue.sharedMemCarveout` to a percentage\n' - 'between 0-100 signals the CUDA driver to set the shared memory carveout\n' - 'preference, in percent of the total shared memory for that kernel launch.\n' - 'This attribute takes precedence over\n' - ':py:obj:`~.CU_FUNC_ATTRIBUTE_PREFERRED_SHARED_MEMORY_CARVEOUT`. This is\n' - 'only a hint, and the CUDA driver can choose a different configuration if\n' - 'required for the launch.\n' - ){{endif}} - {{if 'CU_LAUNCH_ATTRIBUTE_NVLINK_UTIL_CENTRIC_SCHEDULING' in found_values}} - - CU_LAUNCH_ATTRIBUTE_NVLINK_UTIL_CENTRIC_SCHEDULING = ( - cydriver.CUlaunchAttributeID_enum.CU_LAUNCH_ATTRIBUTE_NVLINK_UTIL_CENTRIC_SCHEDULING, - 'Valid for streams, graph nodes, launches. This attribute is a hint to the\n' - 'CUDA runtime that the launch should attempt to make the kernel maximize its\n' - 'NVLINK utilization.\n' - ' When possible to honor this hint, CUDA will assume each block in the grid\n' - 'launch will carry out an even amount of NVLINK traffic, and make a best-\n' - 'effort attempt to adjust the kernel launch based on that assumption.\n' - ' This attribute is a hint only. CUDA makes no functional or performance\n' - 'guarantee. Its applicability can be affected by many different factors,\n' - "including driver version (i.e. CUDA doesn't guarantee the performance\n" - 'characteristics will be maintained between driver versions or a driver\n' - 'update could alter or regress previously observed perf characteristics.) It\n' - "also doesn't guarantee a successful result, i.e. applying the attribute may\n" - 'not improve the performance of either the targeted kernel or the\n' - 'encapsulating application.\n' - ' Valid values for\n' - ':py:obj:`~.CUlaunchAttributeValue.nvlinkUtilCentricScheduling` are 0\n' - '(disabled) and 1 (enabled).\n' - ){{endif}} - {{if 'CU_LAUNCH_ATTRIBUTE_PORTABLE_CLUSTER_SIZE_MODE' in found_values}} - - CU_LAUNCH_ATTRIBUTE_PORTABLE_CLUSTER_SIZE_MODE = ( - cydriver.CUlaunchAttributeID_enum.CU_LAUNCH_ATTRIBUTE_PORTABLE_CLUSTER_SIZE_MODE, - 'Valid for graph nodes, launches. This controls whether the kernel launch is\n' - 'allowed to use a non-portable cluster size. Valid values for\n' - ':py:obj:`~.CUlaunchAttributeValue.portableClusterSizeMode` are described in\n' - ':py:obj:`~.CUlaunchAttributePortableClusterMode`. Any other value will\n' - 'return :py:obj:`~.CUDA_ERROR_INVALID_VALUE`\n' - ){{endif}} - {{if 'CU_LAUNCH_ATTRIBUTE_SHARED_MEMORY_MODE' in found_values}} - - CU_LAUNCH_ATTRIBUTE_SHARED_MEMORY_MODE = ( - cydriver.CUlaunchAttributeID_enum.CU_LAUNCH_ATTRIBUTE_SHARED_MEMORY_MODE, - 'Valid for graph nodes, launches. This indicates if the kernel is allowed to\n' - 'use a non-portable dynamic shared memory mode.\n' - ){{endif}} - -{{endif}} -{{if 'CUlaunchAttributeID_enum' in found_types}} - -class CUstreamAttrID(_FastEnum): - """ - Launch attributes enum; used as id field of - :py:obj:`~.CUlaunchAttribute` - """ - {{if 'CU_LAUNCH_ATTRIBUTE_IGNORE' in found_values}} CU_LAUNCH_ATTRIBUTE_IGNORE = ( cydriver.CUlaunchAttributeID_enum.CU_LAUNCH_ATTRIBUTE_IGNORE, 'Ignored entry, for convenient composition\n' - ){{endif}} - {{if 'CU_LAUNCH_ATTRIBUTE_ACCESS_POLICY_WINDOW' in found_values}} + ) + CU_LAUNCH_ATTRIBUTE_ACCESS_POLICY_WINDOW = ( cydriver.CUlaunchAttributeID_enum.CU_LAUNCH_ATTRIBUTE_ACCESS_POLICY_WINDOW, 'Valid for streams, graph nodes, launches. See\n' ':py:obj:`~.CUlaunchAttributeValue.accessPolicyWindow`.\n' - ){{endif}} - {{if 'CU_LAUNCH_ATTRIBUTE_COOPERATIVE' in found_values}} + ) + CU_LAUNCH_ATTRIBUTE_COOPERATIVE = ( cydriver.CUlaunchAttributeID_enum.CU_LAUNCH_ATTRIBUTE_COOPERATIVE, 'Valid for graph nodes, launches. See\n' ':py:obj:`~.CUlaunchAttributeValue.cooperative`.\n' - ){{endif}} - {{if 'CU_LAUNCH_ATTRIBUTE_SYNCHRONIZATION_POLICY' in found_values}} + ) + CU_LAUNCH_ATTRIBUTE_SYNCHRONIZATION_POLICY = ( cydriver.CUlaunchAttributeID_enum.CU_LAUNCH_ATTRIBUTE_SYNCHRONIZATION_POLICY, 'Valid for streams. See :py:obj:`~.CUlaunchAttributeValue.syncPolicy`.\n' - ){{endif}} - {{if 'CU_LAUNCH_ATTRIBUTE_CLUSTER_DIMENSION' in found_values}} + ) + CU_LAUNCH_ATTRIBUTE_CLUSTER_DIMENSION = ( cydriver.CUlaunchAttributeID_enum.CU_LAUNCH_ATTRIBUTE_CLUSTER_DIMENSION, 'Valid for graph nodes, launches. See\n' ':py:obj:`~.CUlaunchAttributeValue.clusterDim`.\n' - ){{endif}} - {{if 'CU_LAUNCH_ATTRIBUTE_CLUSTER_SCHEDULING_POLICY_PREFERENCE' in found_values}} + ) + CU_LAUNCH_ATTRIBUTE_CLUSTER_SCHEDULING_POLICY_PREFERENCE = ( cydriver.CUlaunchAttributeID_enum.CU_LAUNCH_ATTRIBUTE_CLUSTER_SCHEDULING_POLICY_PREFERENCE, 'Valid for graph nodes, launches. See\n' ':py:obj:`~.CUlaunchAttributeValue.clusterSchedulingPolicyPreference`.\n' - ){{endif}} - {{if 'CU_LAUNCH_ATTRIBUTE_PROGRAMMATIC_STREAM_SERIALIZATION' in found_values}} + ) + CU_LAUNCH_ATTRIBUTE_PROGRAMMATIC_STREAM_SERIALIZATION = ( cydriver.CUlaunchAttributeID_enum.CU_LAUNCH_ATTRIBUTE_PROGRAMMATIC_STREAM_SERIALIZATION, @@ -8444,8 +7810,8 @@ class CUstreamAttrID(_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 'CU_LAUNCH_ATTRIBUTE_PROGRAMMATIC_EVENT' in found_values}} + ) + CU_LAUNCH_ATTRIBUTE_PROGRAMMATIC_EVENT = ( cydriver.CUlaunchAttributeID_enum.CU_LAUNCH_ATTRIBUTE_PROGRAMMATIC_EVENT, @@ -8469,29 +7835,29 @@ class CUstreamAttrID(_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:`~.CU_EVENT_DISABLE_TIMING` flag set).\n' - ){{endif}} - {{if 'CU_LAUNCH_ATTRIBUTE_PRIORITY' in found_values}} + ) + CU_LAUNCH_ATTRIBUTE_PRIORITY = ( cydriver.CUlaunchAttributeID_enum.CU_LAUNCH_ATTRIBUTE_PRIORITY, 'Valid for streams, graph nodes, launches. See\n' ':py:obj:`~.CUlaunchAttributeValue.priority`.\n' - ){{endif}} - {{if 'CU_LAUNCH_ATTRIBUTE_MEM_SYNC_DOMAIN_MAP' in found_values}} + ) + CU_LAUNCH_ATTRIBUTE_MEM_SYNC_DOMAIN_MAP = ( cydriver.CUlaunchAttributeID_enum.CU_LAUNCH_ATTRIBUTE_MEM_SYNC_DOMAIN_MAP, 'Valid for streams, graph nodes, launches. See\n' ':py:obj:`~.CUlaunchAttributeValue.memSyncDomainMap`.\n' - ){{endif}} - {{if 'CU_LAUNCH_ATTRIBUTE_MEM_SYNC_DOMAIN' in found_values}} + ) + CU_LAUNCH_ATTRIBUTE_MEM_SYNC_DOMAIN = ( cydriver.CUlaunchAttributeID_enum.CU_LAUNCH_ATTRIBUTE_MEM_SYNC_DOMAIN, 'Valid for streams, graph nodes, launches. See\n' ':py:obj:`~.CUlaunchAttributeValue.memSyncDomain`.\n' - ){{endif}} - {{if 'CU_LAUNCH_ATTRIBUTE_PREFERRED_CLUSTER_DIMENSION' in found_values}} + ) + CU_LAUNCH_ATTRIBUTE_PREFERRED_CLUSTER_DIMENSION = ( cydriver.CUlaunchAttributeID_enum.CU_LAUNCH_ATTRIBUTE_PREFERRED_CLUSTER_DIMENSION, @@ -8524,8 +7890,8 @@ class CUstreamAttrID(_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 'CU_LAUNCH_ATTRIBUTE_LAUNCH_COMPLETION_EVENT' in found_values}} + ) + CU_LAUNCH_ATTRIBUTE_LAUNCH_COMPLETION_EVENT = ( cydriver.CUlaunchAttributeID_enum.CU_LAUNCH_ATTRIBUTE_LAUNCH_COMPLETION_EVENT, @@ -8546,8 +7912,8 @@ class CUstreamAttrID(_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:`~.CU_EVENT_DISABLE_TIMING` flag set).\n' - ){{endif}} - {{if 'CU_LAUNCH_ATTRIBUTE_DEVICE_UPDATABLE_KERNEL_NODE' in found_values}} + ) + CU_LAUNCH_ATTRIBUTE_DEVICE_UPDATABLE_KERNEL_NODE = ( cydriver.CUlaunchAttributeID_enum.CU_LAUNCH_ATTRIBUTE_DEVICE_UPDATABLE_KERNEL_NODE, @@ -8577,8 +7943,8 @@ class CUstreamAttrID(_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 'CU_LAUNCH_ATTRIBUTE_PREFERRED_SHARED_MEMORY_CARVEOUT' in found_values}} + ) + CU_LAUNCH_ATTRIBUTE_PREFERRED_SHARED_MEMORY_CARVEOUT = ( cydriver.CUlaunchAttributeID_enum.CU_LAUNCH_ATTRIBUTE_PREFERRED_SHARED_MEMORY_CARVEOUT, @@ -8591,8 +7957,8 @@ class CUstreamAttrID(_FastEnum): ':py:obj:`~.CU_FUNC_ATTRIBUTE_PREFERRED_SHARED_MEMORY_CARVEOUT`. This is\n' 'only a hint, and the CUDA driver can choose a different configuration if\n' 'required for the launch.\n' - ){{endif}} - {{if 'CU_LAUNCH_ATTRIBUTE_NVLINK_UTIL_CENTRIC_SCHEDULING' in found_values}} + ) + CU_LAUNCH_ATTRIBUTE_NVLINK_UTIL_CENTRIC_SCHEDULING = ( cydriver.CUlaunchAttributeID_enum.CU_LAUNCH_ATTRIBUTE_NVLINK_UTIL_CENTRIC_SCHEDULING, @@ -8613,8 +7979,8 @@ class CUstreamAttrID(_FastEnum): ' Valid values for\n' ':py:obj:`~.CUlaunchAttributeValue.nvlinkUtilCentricScheduling` are 0\n' '(disabled) and 1 (enabled).\n' - ){{endif}} - {{if 'CU_LAUNCH_ATTRIBUTE_PORTABLE_CLUSTER_SIZE_MODE' in found_values}} + ) + CU_LAUNCH_ATTRIBUTE_PORTABLE_CLUSTER_SIZE_MODE = ( cydriver.CUlaunchAttributeID_enum.CU_LAUNCH_ATTRIBUTE_PORTABLE_CLUSTER_SIZE_MODE, @@ -8623,17 +7989,259 @@ class CUstreamAttrID(_FastEnum): ':py:obj:`~.CUlaunchAttributeValue.portableClusterSizeMode` are described in\n' ':py:obj:`~.CUlaunchAttributePortableClusterMode`. Any other value will\n' 'return :py:obj:`~.CUDA_ERROR_INVALID_VALUE`\n' - ){{endif}} - {{if 'CU_LAUNCH_ATTRIBUTE_SHARED_MEMORY_MODE' in found_values}} + ) + CU_LAUNCH_ATTRIBUTE_SHARED_MEMORY_MODE = ( cydriver.CUlaunchAttributeID_enum.CU_LAUNCH_ATTRIBUTE_SHARED_MEMORY_MODE, 'Valid for graph nodes, launches. This indicates if the kernel is allowed to\n' 'use a non-portable dynamic shared memory mode.\n' - ){{endif}} + ) + +class CUstreamAttrID(_FastEnum): + """ + Launch attributes enum; used as id field of + :py:obj:`~.CUlaunchAttribute` + """ + + + CU_LAUNCH_ATTRIBUTE_IGNORE = ( + cydriver.CUlaunchAttributeID_enum.CU_LAUNCH_ATTRIBUTE_IGNORE, + 'Ignored entry, for convenient composition\n' + ) + + + CU_LAUNCH_ATTRIBUTE_ACCESS_POLICY_WINDOW = ( + cydriver.CUlaunchAttributeID_enum.CU_LAUNCH_ATTRIBUTE_ACCESS_POLICY_WINDOW, + 'Valid for streams, graph nodes, launches. See\n' + ':py:obj:`~.CUlaunchAttributeValue.accessPolicyWindow`.\n' + ) + + + CU_LAUNCH_ATTRIBUTE_COOPERATIVE = ( + cydriver.CUlaunchAttributeID_enum.CU_LAUNCH_ATTRIBUTE_COOPERATIVE, + 'Valid for graph nodes, launches. See\n' + ':py:obj:`~.CUlaunchAttributeValue.cooperative`.\n' + ) -{{endif}} -{{if 'CUmemGenericAllocationHandle' in found_types}} + + CU_LAUNCH_ATTRIBUTE_SYNCHRONIZATION_POLICY = ( + cydriver.CUlaunchAttributeID_enum.CU_LAUNCH_ATTRIBUTE_SYNCHRONIZATION_POLICY, + 'Valid for streams. See :py:obj:`~.CUlaunchAttributeValue.syncPolicy`.\n' + ) + + + CU_LAUNCH_ATTRIBUTE_CLUSTER_DIMENSION = ( + cydriver.CUlaunchAttributeID_enum.CU_LAUNCH_ATTRIBUTE_CLUSTER_DIMENSION, + 'Valid for graph nodes, launches. See\n' + ':py:obj:`~.CUlaunchAttributeValue.clusterDim`.\n' + ) + + + CU_LAUNCH_ATTRIBUTE_CLUSTER_SCHEDULING_POLICY_PREFERENCE = ( + cydriver.CUlaunchAttributeID_enum.CU_LAUNCH_ATTRIBUTE_CLUSTER_SCHEDULING_POLICY_PREFERENCE, + 'Valid for graph nodes, launches. See\n' + ':py:obj:`~.CUlaunchAttributeValue.clusterSchedulingPolicyPreference`.\n' + ) + + + CU_LAUNCH_ATTRIBUTE_PROGRAMMATIC_STREAM_SERIALIZATION = ( + cydriver.CUlaunchAttributeID_enum.CU_LAUNCH_ATTRIBUTE_PROGRAMMATIC_STREAM_SERIALIZATION, + 'Valid for launches. Setting\n' + ':py:obj:`~.CUlaunchAttributeValue.programmaticStreamSerializationAllowed`\n' + 'to non-0 signals that the kernel will use programmatic means to resolve its\n' + 'stream dependency, so that the CUDA runtime should opportunistically allow\n' + "the grid's execution to overlap with the previous kernel in the stream, if\n" + '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' + ) + + + CU_LAUNCH_ATTRIBUTE_PROGRAMMATIC_EVENT = ( + cydriver.CUlaunchAttributeID_enum.CU_LAUNCH_ATTRIBUTE_PROGRAMMATIC_EVENT, + 'Valid for launches. Set\n' + ':py:obj:`~.CUlaunchAttributeValue.programmaticEvent` to record the event.\n' + 'Event recorded through this launch attribute is guaranteed to only trigger\n' + 'after all block in the associated kernel trigger the event. A block can\n' + 'trigger the event through PTX launchdep.release or CUDA builtin function\n' + 'cudaTriggerProgrammaticLaunchCompletion(). A trigger can also be inserted\n' + "at the beginning of each block's execution if triggerAtBlockStart is set to\n" + 'non-0. The dependent launches can choose to wait on the dependency using\n' + 'the programmatic sync (cudaGridDependencySynchronize() or equivalent PTX\n' + 'instructions). Note that dependents (including the CPU thread calling\n' + ':py:obj:`~.cuEventSynchronize()`) are not guaranteed to observe the release\n' + 'precisely when it is released. For example,\n' + ':py:obj:`~.cuEventSynchronize()` may only observe the event trigger long\n' + 'after the associated kernel has completed. This recording type is primarily\n' + 'meant for establishing programmatic dependency between device tasks. Note\n' + 'also this type of dependency allows, but does not guarantee, concurrent\n' + 'execution of tasks.\n' + ' 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:`~.CU_EVENT_DISABLE_TIMING` flag set).\n' + ) + + + CU_LAUNCH_ATTRIBUTE_PRIORITY = ( + cydriver.CUlaunchAttributeID_enum.CU_LAUNCH_ATTRIBUTE_PRIORITY, + 'Valid for streams, graph nodes, launches. See\n' + ':py:obj:`~.CUlaunchAttributeValue.priority`.\n' + ) + + + CU_LAUNCH_ATTRIBUTE_MEM_SYNC_DOMAIN_MAP = ( + cydriver.CUlaunchAttributeID_enum.CU_LAUNCH_ATTRIBUTE_MEM_SYNC_DOMAIN_MAP, + 'Valid for streams, graph nodes, launches. See\n' + ':py:obj:`~.CUlaunchAttributeValue.memSyncDomainMap`.\n' + ) + + + CU_LAUNCH_ATTRIBUTE_MEM_SYNC_DOMAIN = ( + cydriver.CUlaunchAttributeID_enum.CU_LAUNCH_ATTRIBUTE_MEM_SYNC_DOMAIN, + 'Valid for streams, graph nodes, launches. See\n' + ':py:obj:`~.CUlaunchAttributeValue.memSyncDomain`.\n' + ) + + + CU_LAUNCH_ATTRIBUTE_PREFERRED_CLUSTER_DIMENSION = ( + cydriver.CUlaunchAttributeID_enum.CU_LAUNCH_ATTRIBUTE_PREFERRED_CLUSTER_DIMENSION, + 'Valid for graph nodes, launches. Set\n' + ':py:obj:`~.CUlaunchAttributeValue.preferredClusterDim` to allow the kernel\n' + 'launch to specify a preferred substitute cluster dimension. Blocks may be\n' + 'grouped according to either the dimensions specified with this attribute\n' + '(grouped into a "preferred substitute cluster"), or the one specified with\n' + ':py:obj:`~.CU_LAUNCH_ATTRIBUTE_CLUSTER_DIMENSION` attribute (grouped into a\n' + '"regular cluster"). The cluster dimensions of a "preferred substitute\n' + 'cluster" shall be an integer multiple greater than zero of the regular\n' + 'cluster dimensions. The device will attempt - on a best-effort basis - to\n' + 'group thread blocks into preferred clusters over grouping them into regular\n' + 'clusters. When it deems necessary (primarily when the device temporarily\n' + 'runs out of physical resources to launch the larger preferred clusters),\n' + 'the device may switch to launch the regular clusters instead to attempt to\n' + 'utilize as much of the physical device resources as possible.\n' + ' Each type of cluster will have its enumeration / coordinate setup as if\n' + 'the grid consists solely of its type of cluster. For example, if the\n' + 'preferred substitute cluster dimensions double the regular cluster\n' + 'dimensions, there might be simultaneously a regular cluster indexed at\n' + '(1,0,0), and a preferred cluster indexed at (1,0,0). In this example, the\n' + 'preferred substitute cluster (1,0,0) replaces regular clusters (2,0,0) and\n' + '(3,0,0) and groups their blocks.\n' + ' This attribute will only take effect when a regular cluster dimension has\n' + 'been specified. The preferred substitute cluster dimension must be an\n' + 'integer multiple greater than zero of the regular cluster dimension and\n' + 'must divide the grid. It must also be no more than `maxBlocksPerCluster`,\n' + "if it is set in the kernel's `__launch_bounds__`. Otherwise it must be less\n" + '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' + ) + + + CU_LAUNCH_ATTRIBUTE_LAUNCH_COMPLETION_EVENT = ( + cydriver.CUlaunchAttributeID_enum.CU_LAUNCH_ATTRIBUTE_LAUNCH_COMPLETION_EVENT, + 'Valid for launches. Set\n' + ':py:obj:`~.CUlaunchAttributeValue.launchCompletionEvent` to record the\n' + 'event.\n' + ' Nominally, the event is triggered once all blocks of the kernel have begun\n' + 'execution. Currently this is a best effort. If a kernel B has a launch\n' + 'completion dependency on a kernel A, B may wait until A is complete.\n' + 'Alternatively, blocks of B may begin before all blocks of A have begun, for\n' + 'example if B can claim execution resources unavailable to A (e.g. they run\n' + 'on different GPUs) or if B is a higher priority than A. Exercise caution if\n' + 'such an ordering inversion could lead to deadlock.\n' + ' A launch completion event is nominally similar to a programmatic event\n' + 'with `triggerAtBlockStart` set except that it is not visible to\n' + '`cudaGridDependencySynchronize()` and can be used with compute capability\n' + 'less than 9.0.\n' + ' 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:`~.CU_EVENT_DISABLE_TIMING` flag set).\n' + ) + + + CU_LAUNCH_ATTRIBUTE_DEVICE_UPDATABLE_KERNEL_NODE = ( + cydriver.CUlaunchAttributeID_enum.CU_LAUNCH_ATTRIBUTE_DEVICE_UPDATABLE_KERNEL_NODE, + 'Valid for graph nodes, launches. This attribute is graphs-only, and passing\n' + 'it to a launch in a non-capturing stream will result in an error.\n' + ':py:obj:`~.CUlaunchAttributeValue.deviceUpdatableKernelNode.deviceUpdatable`\n' + 'can only be set to 0 or 1. Setting the field to 1 indicates that the\n' + 'corresponding kernel node should be device-updatable. On success, a handle\n' + 'will be returned via\n' + ':py:obj:`~.CUlaunchAttributeValue.deviceUpdatableKernelNode.devNode` which\n' + 'can be passed to the various device-side update functions to update the\n' + "node's kernel parameters from within another kernel. For more information\n" + 'on the types of device updates that can be made, as well as the relevant\n' + 'limitations thereof, see :py:obj:`~.cudaGraphKernelNodeUpdatesApply`.\n' + ' Nodes which are device-updatable have additional restrictions compared to\n' + 'regular kernel nodes. Firstly, device-updatable nodes cannot be removed\n' + 'from their graph via :py:obj:`~.cuGraphDestroyNode`. Additionally, once\n' + 'opted-in to this functionality, a node cannot opt out, and any attempt to\n' + 'set the deviceUpdatable attribute to 0 will result in an error. Device-\n' + 'updatable kernel nodes also cannot have their attributes copied to/from\n' + 'another kernel node via :py:obj:`~.cuGraphKernelNodeCopyAttributes`. Graphs\n' + 'containing one or more device-updatable nodes also do not allow multiple\n' + 'instantiation, and neither the graph nor its instantiated version can be\n' + 'passed to :py:obj:`~.cuGraphExecUpdate`.\n' + ' If a graph contains device-updatable nodes and updates those nodes from\n' + 'the device from within the graph, the graph must be uploaded with\n' + ':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' + ) + + + CU_LAUNCH_ATTRIBUTE_PREFERRED_SHARED_MEMORY_CARVEOUT = ( + cydriver.CUlaunchAttributeID_enum.CU_LAUNCH_ATTRIBUTE_PREFERRED_SHARED_MEMORY_CARVEOUT, + 'Valid for launches. On devices where the L1 cache and shared memory use the\n' + 'same hardware resources, setting\n' + ':py:obj:`~.CUlaunchAttributeValue.sharedMemCarveout` to a percentage\n' + 'between 0-100 signals the CUDA driver to set the shared memory carveout\n' + 'preference, in percent of the total shared memory for that kernel launch.\n' + 'This attribute takes precedence over\n' + ':py:obj:`~.CU_FUNC_ATTRIBUTE_PREFERRED_SHARED_MEMORY_CARVEOUT`. This is\n' + 'only a hint, and the CUDA driver can choose a different configuration if\n' + 'required for the launch.\n' + ) + + + CU_LAUNCH_ATTRIBUTE_NVLINK_UTIL_CENTRIC_SCHEDULING = ( + cydriver.CUlaunchAttributeID_enum.CU_LAUNCH_ATTRIBUTE_NVLINK_UTIL_CENTRIC_SCHEDULING, + 'Valid for streams, graph nodes, launches. This attribute is a hint to the\n' + 'CUDA runtime that the launch should attempt to make the kernel maximize its\n' + 'NVLINK utilization.\n' + ' When possible to honor this hint, CUDA will assume each block in the grid\n' + 'launch will carry out an even amount of NVLINK traffic, and make a best-\n' + 'effort attempt to adjust the kernel launch based on that assumption.\n' + ' This attribute is a hint only. CUDA makes no functional or performance\n' + 'guarantee. Its applicability can be affected by many different factors,\n' + "including driver version (i.e. CUDA doesn't guarantee the performance\n" + 'characteristics will be maintained between driver versions or a driver\n' + 'update could alter or regress previously observed perf characteristics.) It\n' + "also doesn't guarantee a successful result, i.e. applying the attribute may\n" + 'not improve the performance of either the targeted kernel or the\n' + 'encapsulating application.\n' + ' Valid values for\n' + ':py:obj:`~.CUlaunchAttributeValue.nvlinkUtilCentricScheduling` are 0\n' + '(disabled) and 1 (enabled).\n' + ) + + + CU_LAUNCH_ATTRIBUTE_PORTABLE_CLUSTER_SIZE_MODE = ( + cydriver.CUlaunchAttributeID_enum.CU_LAUNCH_ATTRIBUTE_PORTABLE_CLUSTER_SIZE_MODE, + 'Valid for graph nodes, launches. This controls whether the kernel launch is\n' + 'allowed to use a non-portable cluster size. Valid values for\n' + ':py:obj:`~.CUlaunchAttributeValue.portableClusterSizeMode` are described in\n' + ':py:obj:`~.CUlaunchAttributePortableClusterMode`. Any other value will\n' + 'return :py:obj:`~.CUDA_ERROR_INVALID_VALUE`\n' + ) + + + CU_LAUNCH_ATTRIBUTE_SHARED_MEMORY_MODE = ( + cydriver.CUlaunchAttributeID_enum.CU_LAUNCH_ATTRIBUTE_SHARED_MEMORY_MODE, + 'Valid for graph nodes, launches. This indicates if the kernel is allowed to\n' + 'use a non-portable dynamic shared memory mode.\n' + ) cdef class CUmemGenericAllocationHandle: """ @@ -8659,9 +8267,6 @@ cdef class CUmemGenericAllocationHandle: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if 'CUcontext' in found_types}} cdef class CUcontext: """ @@ -8696,9 +8301,6 @@ cdef class CUcontext: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if 'CUmodule' in found_types}} cdef class CUmodule: """ @@ -8733,9 +8335,6 @@ cdef class CUmodule: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if 'CUfunction' in found_types}} cdef class CUfunction: """ @@ -8770,9 +8369,6 @@ cdef class CUfunction: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if 'CUlibrary' in found_types}} cdef class CUlibrary: """ @@ -8807,9 +8403,6 @@ cdef class CUlibrary: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if 'CUkernel' in found_types}} cdef class CUkernel: """ @@ -8844,9 +8437,6 @@ cdef class CUkernel: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if 'CUarray' in found_types}} cdef class CUarray: """ @@ -8881,9 +8471,6 @@ cdef class CUarray: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if 'CUmipmappedArray' in found_types}} cdef class CUmipmappedArray: """ @@ -8918,9 +8505,6 @@ cdef class CUmipmappedArray: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if 'CUtexref' in found_types}} cdef class CUtexref: """ @@ -8955,9 +8539,6 @@ cdef class CUtexref: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if 'CUsurfref' in found_types}} cdef class CUsurfref: """ @@ -8992,9 +8573,6 @@ cdef class CUsurfref: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if 'CUevent' in found_types}} cdef class CUevent: """ @@ -9029,9 +8607,6 @@ cdef class CUevent: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if 'CUstream' in found_types}} cdef class CUstream: """ @@ -9068,10 +8643,6 @@ cdef class CUstream: return self._pvt_ptr def __cuda_stream__(self): return (0, (self._pvt_ptr[0])) -{{endif}} - - -{{if 'CUgraphicsResource' in found_types}} cdef class CUgraphicsResource: """ @@ -9106,9 +8677,6 @@ cdef class CUgraphicsResource: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if 'CUexternalMemory' in found_types}} cdef class CUexternalMemory: """ @@ -9143,9 +8711,6 @@ cdef class CUexternalMemory: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if 'CUexternalSemaphore' in found_types}} cdef class CUexternalSemaphore: """ @@ -9180,9 +8745,6 @@ cdef class CUexternalSemaphore: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if 'CUgraph' in found_types}} cdef class CUgraph: """ @@ -9217,9 +8779,6 @@ cdef class CUgraph: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if 'CUgraphNode' in found_types}} cdef class CUgraphNode: """ @@ -9254,9 +8813,6 @@ cdef class CUgraphNode: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if 'CUgraphExec' in found_types}} cdef class CUgraphExec: """ @@ -9291,9 +8847,6 @@ cdef class CUgraphExec: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if 'CUmemoryPool' in found_types}} cdef class CUmemoryPool: """ @@ -9328,9 +8881,6 @@ cdef class CUmemoryPool: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if 'CUuserObject' in found_types}} cdef class CUuserObject: """ @@ -9365,9 +8915,6 @@ cdef class CUuserObject: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if 'CUgraphDeviceNode' in found_types}} cdef class CUgraphDeviceNode: """ @@ -9402,9 +8949,6 @@ cdef class CUgraphDeviceNode: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if 'CUasyncCallbackHandle' in found_types}} cdef class CUasyncCallbackHandle: """ @@ -9439,9 +8983,6 @@ cdef class CUasyncCallbackHandle: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if 'CUgreenCtx' in found_types}} cdef class CUgreenCtx: """ @@ -9476,9 +9017,6 @@ cdef class CUgreenCtx: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if 'CUlinkState' in found_types}} cdef class CUlinkState: """ @@ -9511,9 +9049,6 @@ cdef class CUlinkState: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if 'CUcoredumpCallbackHandle' in found_types}} cdef class CUcoredumpCallbackHandle: """ Opaque handle representing a registered coredump status callback. @@ -9548,9 +9083,6 @@ cdef class CUcoredumpCallbackHandle: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if 'CUdevResourceDesc' in found_types}} cdef class CUdevResourceDesc: """ @@ -9585,9 +9117,6 @@ cdef class CUdevResourceDesc: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if 'CUlogsCallbackHandle' in found_types}} cdef class CUlogsCallbackHandle: """ @@ -9620,9 +9149,6 @@ cdef class CUlogsCallbackHandle: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if True}} cdef class CUeglStreamConnection: """ @@ -9657,9 +9183,6 @@ cdef class CUeglStreamConnection: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if True}} cdef class EGLImageKHR: """ @@ -9692,9 +9215,6 @@ cdef class EGLImageKHR: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if True}} cdef class EGLStreamKHR: """ @@ -9727,9 +9247,6 @@ cdef class EGLStreamKHR: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if True}} cdef class EGLSyncKHR: """ @@ -9762,9 +9279,6 @@ cdef class EGLSyncKHR: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if 'CUasyncCallback' in found_types}} cdef class CUasyncCallback: """ @@ -9791,9 +9305,6 @@ cdef class CUasyncCallback: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if 'CUhostFn' in found_types}} cdef class CUhostFn: """ @@ -9820,9 +9331,6 @@ cdef class CUhostFn: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if 'CUstreamCallback' in found_types}} cdef class CUstreamCallback: """ @@ -9849,9 +9357,6 @@ cdef class CUstreamCallback: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if 'CUoccupancyB2DSize' in found_types}} cdef class CUoccupancyB2DSize: """ @@ -9878,9 +9383,6 @@ cdef class CUoccupancyB2DSize: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if 'CUcoredumpStatusCallback' in found_types}} cdef class CUcoredumpStatusCallback: """ @@ -9907,9 +9409,6 @@ cdef class CUcoredumpStatusCallback: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if 'CUlogsCallback' in found_types}} cdef class CUlogsCallback: """ @@ -9936,18 +9435,15 @@ cdef class CUlogsCallback: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{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 ------- @@ -9968,22 +9464,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 'CUmemFabricHandle_st' in found_struct}} + cdef class CUmemFabricHandle_st: """ @@ -9994,10 +9488,10 @@ cdef class CUmemFabricHandle_st: Attributes ---------- - {{if 'CUmemFabricHandle_st.data' in found_struct}} + data : bytes - {{endif}} + Methods ------- @@ -10018,16 +9512,16 @@ cdef class CUmemFabricHandle_st: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUmemFabricHandle_st.data' in found_struct}} + try: str_list += ['data : ' + str(self.data)] except ValueError: str_list += ['data : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'CUmemFabricHandle_st.data' in found_struct}} + @property def data(self): return PyBytes_FromStringAndSize(self._pvt_ptr[0].data, 64) @@ -10037,9 +9531,7 @@ cdef class CUmemFabricHandle_st: raise ValueError("data length must be 64, is " + str(len(data))) for i, b in enumerate(data): self._pvt_ptr[0].data[i] = b - {{endif}} -{{endif}} -{{if 'CUipcEventHandle_st' in found_struct}} + cdef class CUipcEventHandle_st: """ @@ -10047,10 +9539,10 @@ cdef class CUipcEventHandle_st: Attributes ---------- - {{if 'CUipcEventHandle_st.reserved' in found_struct}} + reserved : bytes - {{endif}} + Methods ------- @@ -10071,16 +9563,16 @@ cdef class CUipcEventHandle_st: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUipcEventHandle_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 'CUipcEventHandle_st.reserved' in found_struct}} + @property def reserved(self): return PyBytes_FromStringAndSize(self._pvt_ptr[0].reserved, 64) @@ -10098,9 +9590,7 @@ cdef class CUipcEventHandle_st: if b > 127 and b < 256: b = b - 256 self._pvt_ptr[0].reserved[i] = b - {{endif}} -{{endif}} -{{if 'CUipcMemHandle_st' in found_struct}} + cdef class CUipcMemHandle_st: """ @@ -10108,10 +9598,10 @@ cdef class CUipcMemHandle_st: Attributes ---------- - {{if 'CUipcMemHandle_st.reserved' in found_struct}} + reserved : bytes - {{endif}} + Methods ------- @@ -10132,16 +9622,16 @@ cdef class CUipcMemHandle_st: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUipcMemHandle_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 'CUipcMemHandle_st.reserved' in found_struct}} + @property def reserved(self): return PyBytes_FromStringAndSize(self._pvt_ptr[0].reserved, 64) @@ -10159,38 +9649,36 @@ cdef class CUipcMemHandle_st: if b > 127 and b < 256: b = b - 256 self._pvt_ptr[0].reserved[i] = b - {{endif}} -{{endif}} -{{if 'CUstreamBatchMemOpParams_union.waitValue' in found_struct}} + cdef class CUstreamMemOpWaitValueParams_st: """ Attributes ---------- - {{if 'CUstreamBatchMemOpParams_union.waitValue.operation' in found_struct}} + operation : CUstreamBatchMemOpType - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.waitValue.address' in found_struct}} + + address : CUdeviceptr - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.waitValue.value' in found_struct}} + + value : cuuint32_t - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.waitValue.value64' in found_struct}} + + value64 : cuuint64_t - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.waitValue.flags' in found_struct}} + + flags : unsigned int See CUstreamWaitValue_flags. - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.waitValue.alias' in found_struct}} + + alias : CUdeviceptr For driver internal use. Initial value is unimportant. - {{endif}} + Methods ------- @@ -10202,18 +9690,18 @@ cdef class CUstreamMemOpWaitValueParams_st: def __init__(self, void_ptr _ptr): pass - {{if 'CUstreamBatchMemOpParams_union.waitValue.address' in found_struct}} + self._address = CUdeviceptr(_ptr=&self._pvt_ptr[0].waitValue.address) - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.waitValue.value' in found_struct}} + + self._value = cuuint32_t(_ptr=&self._pvt_ptr[0].waitValue.value) - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.waitValue.value64' in found_struct}} + + self._value64 = cuuint64_t(_ptr=&self._pvt_ptr[0].waitValue.value64) - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.waitValue.alias' in found_struct}} + + self._alias = CUdeviceptr(_ptr=&self._pvt_ptr[0].waitValue.alias) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -10221,54 +9709,54 @@ cdef class CUstreamMemOpWaitValueParams_st: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUstreamBatchMemOpParams_union.waitValue.operation' in found_struct}} + try: str_list += ['operation : ' + str(self.operation)] except ValueError: str_list += ['operation : '] - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.waitValue.address' in found_struct}} + + try: str_list += ['address : ' + str(self.address)] except ValueError: str_list += ['address : '] - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.waitValue.value' in found_struct}} + + try: str_list += ['value : ' + str(self.value)] except ValueError: str_list += ['value : '] - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.waitValue.value64' in found_struct}} + + try: str_list += ['value64 : ' + str(self.value64)] except ValueError: str_list += ['value64 : '] - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.waitValue.flags' in found_struct}} + + try: str_list += ['flags : ' + str(self.flags)] except ValueError: str_list += ['flags : '] - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.waitValue.alias' in found_struct}} + + try: str_list += ['alias : ' + str(self.alias)] except ValueError: str_list += ['alias : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'CUstreamBatchMemOpParams_union.waitValue.operation' in found_struct}} + @property def operation(self): 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) - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.waitValue.address' in found_struct}} + + @property def address(self): return self._address @@ -10285,8 +9773,8 @@ cdef class CUstreamMemOpWaitValueParams_st: cyaddress = paddress self._address._pvt_ptr[0] = cyaddress - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.waitValue.value' in found_struct}} + + @property def value(self): return self._value @@ -10303,8 +9791,8 @@ cdef class CUstreamMemOpWaitValueParams_st: cyvalue = pvalue self._value._pvt_ptr[0] = cyvalue - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.waitValue.value64' in found_struct}} + + @property def value64(self): return self._value64 @@ -10321,16 +9809,16 @@ cdef class CUstreamMemOpWaitValueParams_st: cyvalue64 = pvalue64 self._value64._pvt_ptr[0] = cyvalue64 - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.waitValue.flags' in found_struct}} + + @property def flags(self): return self._pvt_ptr[0].waitValue.flags @flags.setter def flags(self, unsigned int flags): self._pvt_ptr[0].waitValue.flags = flags - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.waitValue.alias' in found_struct}} + + @property def alias(self): return self._alias @@ -10347,38 +9835,36 @@ cdef class CUstreamMemOpWaitValueParams_st: cyalias = palias self._alias._pvt_ptr[0] = cyalias - {{endif}} -{{endif}} -{{if 'CUstreamBatchMemOpParams_union.writeValue' in found_struct}} + cdef class CUstreamMemOpWriteValueParams_st: """ Attributes ---------- - {{if 'CUstreamBatchMemOpParams_union.writeValue.operation' in found_struct}} + operation : CUstreamBatchMemOpType - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.writeValue.address' in found_struct}} + + address : CUdeviceptr - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.writeValue.value' in found_struct}} + + value : cuuint32_t - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.writeValue.value64' in found_struct}} + + value64 : cuuint64_t - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.writeValue.flags' in found_struct}} + + flags : unsigned int See CUstreamWriteValue_flags. - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.writeValue.alias' in found_struct}} + + alias : CUdeviceptr For driver internal use. Initial value is unimportant. - {{endif}} + Methods ------- @@ -10390,18 +9876,18 @@ cdef class CUstreamMemOpWriteValueParams_st: def __init__(self, void_ptr _ptr): pass - {{if 'CUstreamBatchMemOpParams_union.writeValue.address' in found_struct}} + self._address = CUdeviceptr(_ptr=&self._pvt_ptr[0].writeValue.address) - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.writeValue.value' in found_struct}} + + self._value = cuuint32_t(_ptr=&self._pvt_ptr[0].writeValue.value) - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.writeValue.value64' in found_struct}} + + self._value64 = cuuint64_t(_ptr=&self._pvt_ptr[0].writeValue.value64) - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.writeValue.alias' in found_struct}} + + self._alias = CUdeviceptr(_ptr=&self._pvt_ptr[0].writeValue.alias) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -10409,54 +9895,54 @@ cdef class CUstreamMemOpWriteValueParams_st: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUstreamBatchMemOpParams_union.writeValue.operation' in found_struct}} + try: str_list += ['operation : ' + str(self.operation)] except ValueError: str_list += ['operation : '] - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.writeValue.address' in found_struct}} + + try: str_list += ['address : ' + str(self.address)] except ValueError: str_list += ['address : '] - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.writeValue.value' in found_struct}} + + try: str_list += ['value : ' + str(self.value)] except ValueError: str_list += ['value : '] - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.writeValue.value64' in found_struct}} + + try: str_list += ['value64 : ' + str(self.value64)] except ValueError: str_list += ['value64 : '] - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.writeValue.flags' in found_struct}} + + try: str_list += ['flags : ' + str(self.flags)] except ValueError: str_list += ['flags : '] - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.writeValue.alias' in found_struct}} + + try: str_list += ['alias : ' + str(self.alias)] except ValueError: str_list += ['alias : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'CUstreamBatchMemOpParams_union.writeValue.operation' in found_struct}} + @property def operation(self): 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) - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.writeValue.address' in found_struct}} + + @property def address(self): return self._address @@ -10473,8 +9959,8 @@ cdef class CUstreamMemOpWriteValueParams_st: cyaddress = paddress self._address._pvt_ptr[0] = cyaddress - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.writeValue.value' in found_struct}} + + @property def value(self): return self._value @@ -10491,8 +9977,8 @@ cdef class CUstreamMemOpWriteValueParams_st: cyvalue = pvalue self._value._pvt_ptr[0] = cyvalue - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.writeValue.value64' in found_struct}} + + @property def value64(self): return self._value64 @@ -10509,16 +9995,16 @@ cdef class CUstreamMemOpWriteValueParams_st: cyvalue64 = pvalue64 self._value64._pvt_ptr[0] = cyvalue64 - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.writeValue.flags' in found_struct}} + + @property def flags(self): return self._pvt_ptr[0].writeValue.flags @flags.setter def flags(self, unsigned int flags): self._pvt_ptr[0].writeValue.flags = flags - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.writeValue.alias' in found_struct}} + + @property def alias(self): return self._alias @@ -10535,22 +10021,20 @@ cdef class CUstreamMemOpWriteValueParams_st: cyalias = palias self._alias._pvt_ptr[0] = cyalias - {{endif}} -{{endif}} -{{if 'CUstreamBatchMemOpParams_union.flushRemoteWrites' in found_struct}} + cdef class CUstreamMemOpFlushRemoteWritesParams_st: """ Attributes ---------- - {{if 'CUstreamBatchMemOpParams_union.flushRemoteWrites.operation' in found_struct}} + operation : CUstreamBatchMemOpType - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.flushRemoteWrites.flags' in found_struct}} + + flags : unsigned int Must be 0. - {{endif}} + Methods ------- @@ -10569,52 +10053,50 @@ cdef class CUstreamMemOpFlushRemoteWritesParams_st: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUstreamBatchMemOpParams_union.flushRemoteWrites.operation' in found_struct}} + try: str_list += ['operation : ' + str(self.operation)] except ValueError: str_list += ['operation : '] - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.flushRemoteWrites.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 'CUstreamBatchMemOpParams_union.flushRemoteWrites.operation' in found_struct}} + @property def operation(self): 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) - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.flushRemoteWrites.flags' in found_struct}} + + @property def flags(self): return self._pvt_ptr[0].flushRemoteWrites.flags @flags.setter def flags(self, unsigned int flags): self._pvt_ptr[0].flushRemoteWrites.flags = flags - {{endif}} -{{endif}} -{{if 'CUstreamBatchMemOpParams_union.memoryBarrier' in found_struct}} + cdef class CUstreamMemOpMemoryBarrierParams_st: """ Attributes ---------- - {{if 'CUstreamBatchMemOpParams_union.memoryBarrier.operation' in found_struct}} + operation : CUstreamBatchMemOpType < Only supported in the _v2 API - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.memoryBarrier.flags' in found_struct}} + + flags : unsigned int See CUstreamMemoryBarrier_flags - {{endif}} + Methods ------- @@ -10633,72 +10115,70 @@ cdef class CUstreamMemOpMemoryBarrierParams_st: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUstreamBatchMemOpParams_union.memoryBarrier.operation' in found_struct}} + try: str_list += ['operation : ' + str(self.operation)] except ValueError: str_list += ['operation : '] - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.memoryBarrier.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 'CUstreamBatchMemOpParams_union.memoryBarrier.operation' in found_struct}} + @property def operation(self): 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) - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.memoryBarrier.flags' in found_struct}} + + @property def flags(self): return self._pvt_ptr[0].memoryBarrier.flags @flags.setter def flags(self, unsigned int flags): self._pvt_ptr[0].memoryBarrier.flags = flags - {{endif}} -{{endif}} -{{if 'CUstreamBatchMemOpParams_union.atomicReduction' in found_struct}} + cdef class CUstreamMemOpAtomicReductionParams_st: """ Attributes ---------- - {{if 'CUstreamBatchMemOpParams_union.atomicReduction.operation' in found_struct}} + operation : CUstreamBatchMemOpType - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.atomicReduction.flags' in found_struct}} + + flags : unsigned int Must be 0 - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.atomicReduction.reductionOp' in found_struct}} + + reductionOp : CUstreamAtomicReductionOpType See CUstreamAtomicReductionOpType - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.atomicReduction.dataType' in found_struct}} + + dataType : CUstreamAtomicReductionDataType See CUstreamAtomicReductionDataType - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.atomicReduction.address' in found_struct}} + + address : CUdeviceptr The address the atomic operation will be operated on - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.atomicReduction.value' in found_struct}} + + value : cuuint64_t The operand value the atomic operation will operate with - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.atomicReduction.alias' in found_struct}} + + alias : CUdeviceptr For driver internal use. Initial value is unimportant. - {{endif}} + Methods ------- @@ -10710,15 +10190,15 @@ cdef class CUstreamMemOpAtomicReductionParams_st: def __init__(self, void_ptr _ptr): pass - {{if 'CUstreamBatchMemOpParams_union.atomicReduction.address' in found_struct}} + self._address = CUdeviceptr(_ptr=&self._pvt_ptr[0].atomicReduction.address) - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.atomicReduction.value' in found_struct}} + + self._value = cuuint64_t(_ptr=&self._pvt_ptr[0].atomicReduction.value) - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.atomicReduction.alias' in found_struct}} + + self._alias = CUdeviceptr(_ptr=&self._pvt_ptr[0].atomicReduction.alias) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -10726,84 +10206,84 @@ cdef class CUstreamMemOpAtomicReductionParams_st: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUstreamBatchMemOpParams_union.atomicReduction.operation' in found_struct}} + try: str_list += ['operation : ' + str(self.operation)] except ValueError: str_list += ['operation : '] - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.atomicReduction.flags' in found_struct}} + + try: str_list += ['flags : ' + str(self.flags)] except ValueError: str_list += ['flags : '] - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.atomicReduction.reductionOp' in found_struct}} + + try: str_list += ['reductionOp : ' + str(self.reductionOp)] except ValueError: str_list += ['reductionOp : '] - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.atomicReduction.dataType' in found_struct}} + + try: str_list += ['dataType : ' + str(self.dataType)] except ValueError: str_list += ['dataType : '] - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.atomicReduction.address' in found_struct}} + + try: str_list += ['address : ' + str(self.address)] except ValueError: str_list += ['address : '] - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.atomicReduction.value' in found_struct}} + + try: str_list += ['value : ' + str(self.value)] except ValueError: str_list += ['value : '] - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.atomicReduction.alias' in found_struct}} + + try: str_list += ['alias : ' + str(self.alias)] except ValueError: str_list += ['alias : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'CUstreamBatchMemOpParams_union.atomicReduction.operation' in found_struct}} + @property def operation(self): 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) - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.atomicReduction.flags' in found_struct}} + + @property def flags(self): return self._pvt_ptr[0].atomicReduction.flags @flags.setter def flags(self, unsigned int flags): self._pvt_ptr[0].atomicReduction.flags = flags - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.atomicReduction.reductionOp' in found_struct}} + + @property def reductionOp(self): 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) - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.atomicReduction.dataType' in found_struct}} + + @property def dataType(self): 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) - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.atomicReduction.address' in found_struct}} + + @property def address(self): return self._address @@ -10820,8 +10300,8 @@ cdef class CUstreamMemOpAtomicReductionParams_st: cyaddress = paddress self._address._pvt_ptr[0] = cyaddress - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.atomicReduction.value' in found_struct}} + + @property def value(self): return self._value @@ -10838,8 +10318,8 @@ cdef class CUstreamMemOpAtomicReductionParams_st: cyvalue = pvalue self._value._pvt_ptr[0] = cyvalue - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.atomicReduction.alias' in found_struct}} + + @property def alias(self): return self._alias @@ -10856,9 +10336,7 @@ cdef class CUstreamMemOpAtomicReductionParams_st: cyalias = palias self._alias._pvt_ptr[0] = cyalias - {{endif}} -{{endif}} -{{if 'CUstreamBatchMemOpParams_union' in found_struct}} + cdef class CUstreamBatchMemOpParams_union: """ @@ -10866,37 +10344,37 @@ cdef class CUstreamBatchMemOpParams_union: Attributes ---------- - {{if 'CUstreamBatchMemOpParams_union.operation' in found_struct}} + operation : CUstreamBatchMemOpType Operation. This is the first field of all the union elemets and acts as a TAG to determine which union member is valid. - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.waitValue' in found_struct}} + + waitValue : CUstreamMemOpWaitValueParams_st Params for CU_STREAM_MEM_OP_WAIT_VALUE_32 and CU_STREAM_MEM_OP_WAIT_VALUE_64 operations. - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.writeValue' in found_struct}} + + writeValue : CUstreamMemOpWriteValueParams_st Params for CU_STREAM_MEM_OP_WRITE_VALUE_32 and CU_STREAM_MEM_OP_WRITE_VALUE_64 operations. - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.flushRemoteWrites' in found_struct}} + + flushRemoteWrites : CUstreamMemOpFlushRemoteWritesParams_st Params for CU_STREAM_MEM_OP_FLUSH_REMOTE_WRITES operations. - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.memoryBarrier' in found_struct}} + + memoryBarrier : CUstreamMemOpMemoryBarrierParams_st Params for CU_STREAM_MEM_OP_BARRIER operations. - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.atomicReduction' in found_struct}} + + atomicReduction : CUstreamMemOpAtomicReductionParams_st - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.pad' in found_struct}} + + pad : list[cuuint64_t] - {{endif}} + Methods ------- @@ -10910,21 +10388,21 @@ cdef class CUstreamBatchMemOpParams_union: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): pass - {{if 'CUstreamBatchMemOpParams_union.waitValue' in found_struct}} + self._waitValue = CUstreamMemOpWaitValueParams_st(_ptr=self._pvt_ptr) - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.writeValue' in found_struct}} + + self._writeValue = CUstreamMemOpWriteValueParams_st(_ptr=self._pvt_ptr) - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.flushRemoteWrites' in found_struct}} + + self._flushRemoteWrites = CUstreamMemOpFlushRemoteWritesParams_st(_ptr=self._pvt_ptr) - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.memoryBarrier' in found_struct}} + + self._memoryBarrier = CUstreamMemOpMemoryBarrierParams_st(_ptr=self._pvt_ptr) - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.atomicReduction' in found_struct}} + + self._atomicReduction = CUstreamMemOpAtomicReductionParams_st(_ptr=self._pvt_ptr) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -10932,100 +10410,100 @@ cdef class CUstreamBatchMemOpParams_union: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUstreamBatchMemOpParams_union.operation' in found_struct}} + try: str_list += ['operation : ' + str(self.operation)] except ValueError: str_list += ['operation : '] - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.waitValue' in found_struct}} + + try: str_list += ['waitValue :\n' + '\n'.join([' ' + line for line in str(self.waitValue).splitlines()])] except ValueError: str_list += ['waitValue : '] - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.writeValue' in found_struct}} + + try: str_list += ['writeValue :\n' + '\n'.join([' ' + line for line in str(self.writeValue).splitlines()])] except ValueError: str_list += ['writeValue : '] - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.flushRemoteWrites' in found_struct}} + + try: str_list += ['flushRemoteWrites :\n' + '\n'.join([' ' + line for line in str(self.flushRemoteWrites).splitlines()])] except ValueError: str_list += ['flushRemoteWrites : '] - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.memoryBarrier' in found_struct}} + + try: str_list += ['memoryBarrier :\n' + '\n'.join([' ' + line for line in str(self.memoryBarrier).splitlines()])] except ValueError: str_list += ['memoryBarrier : '] - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.atomicReduction' in found_struct}} + + try: str_list += ['atomicReduction :\n' + '\n'.join([' ' + line for line in str(self.atomicReduction).splitlines()])] except ValueError: str_list += ['atomicReduction : '] - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.pad' in found_struct}} + + try: str_list += ['pad : ' + str(self.pad)] except ValueError: str_list += ['pad : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'CUstreamBatchMemOpParams_union.operation' in found_struct}} + @property def operation(self): return CUstreamBatchMemOpType(self._pvt_ptr[0].operation) @operation.setter def operation(self, operation not None : CUstreamBatchMemOpType): self._pvt_ptr[0].operation = int(operation) - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.waitValue' in found_struct}} + + @property def waitValue(self): return self._waitValue @waitValue.setter def waitValue(self, waitValue not None : CUstreamMemOpWaitValueParams_st): - string.memcpy(&self._pvt_ptr[0].waitValue, waitValue.getPtr(), sizeof(self._pvt_ptr[0].waitValue)) - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.writeValue' in found_struct}} + string.memcpy(&self._pvt_ptr[0].waitValue, waitValue.getPtr(), sizeof(self._pvt_ptr[0].waitValue)) + + @property def writeValue(self): return self._writeValue @writeValue.setter def writeValue(self, writeValue not None : CUstreamMemOpWriteValueParams_st): - string.memcpy(&self._pvt_ptr[0].writeValue, writeValue.getPtr(), sizeof(self._pvt_ptr[0].writeValue)) - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.flushRemoteWrites' in found_struct}} + string.memcpy(&self._pvt_ptr[0].writeValue, writeValue.getPtr(), sizeof(self._pvt_ptr[0].writeValue)) + + @property def flushRemoteWrites(self): return self._flushRemoteWrites @flushRemoteWrites.setter def flushRemoteWrites(self, flushRemoteWrites not None : CUstreamMemOpFlushRemoteWritesParams_st): - string.memcpy(&self._pvt_ptr[0].flushRemoteWrites, flushRemoteWrites.getPtr(), sizeof(self._pvt_ptr[0].flushRemoteWrites)) - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.memoryBarrier' in found_struct}} + string.memcpy(&self._pvt_ptr[0].flushRemoteWrites, flushRemoteWrites.getPtr(), sizeof(self._pvt_ptr[0].flushRemoteWrites)) + + @property def memoryBarrier(self): return self._memoryBarrier @memoryBarrier.setter def memoryBarrier(self, memoryBarrier not None : CUstreamMemOpMemoryBarrierParams_st): - string.memcpy(&self._pvt_ptr[0].memoryBarrier, memoryBarrier.getPtr(), sizeof(self._pvt_ptr[0].memoryBarrier)) - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.atomicReduction' in found_struct}} + string.memcpy(&self._pvt_ptr[0].memoryBarrier, memoryBarrier.getPtr(), sizeof(self._pvt_ptr[0].memoryBarrier)) + + @property def atomicReduction(self): return self._atomicReduction @atomicReduction.setter def atomicReduction(self, atomicReduction not None : CUstreamMemOpAtomicReductionParams_st): - string.memcpy(&self._pvt_ptr[0].atomicReduction, atomicReduction.getPtr(), sizeof(self._pvt_ptr[0].atomicReduction)) - {{endif}} - {{if 'CUstreamBatchMemOpParams_union.pad' in found_struct}} + string.memcpy(&self._pvt_ptr[0].atomicReduction, atomicReduction.getPtr(), sizeof(self._pvt_ptr[0].atomicReduction)) + + @property def pad(self): return [cuuint64_t(init_value=_pad) for _pad in self._pvt_ptr[0].pad] @@ -11033,9 +10511,7 @@ cdef class CUstreamBatchMemOpParams_union: def pad(self, pad): self._pvt_ptr[0].pad = pad - {{endif}} -{{endif}} -{{if 'CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st' in found_struct}} + cdef class CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st: """ @@ -11044,22 +10520,22 @@ cdef class CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st: Attributes ---------- - {{if 'CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st.ctx' in found_struct}} + ctx : CUcontext - {{endif}} - {{if 'CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st.count' in found_struct}} + + count : unsigned int - {{endif}} - {{if 'CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st.paramArray' in found_struct}} + + paramArray : CUstreamBatchMemOpParams - {{endif}} - {{if 'CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st.flags' in found_struct}} + + flags : unsigned int - {{endif}} + Methods ------- @@ -11073,48 +10549,48 @@ cdef class CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): pass - {{if 'CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st.ctx' in found_struct}} + self._ctx = CUcontext(_ptr=&self._pvt_ptr[0].ctx) - {{endif}} + def __dealloc__(self): pass - {{if 'CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st.paramArray' in found_struct}} + if self._paramArray is not NULL: free(self._paramArray) - {{endif}} + def getPtr(self): return self._pvt_ptr def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st.ctx' in found_struct}} + try: str_list += ['ctx : ' + str(self.ctx)] except ValueError: str_list += ['ctx : '] - {{endif}} - {{if 'CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st.count' in found_struct}} + + try: str_list += ['count : ' + str(self.count)] except ValueError: str_list += ['count : '] - {{endif}} - {{if 'CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st.paramArray' in found_struct}} + + try: str_list += ['paramArray : ' + str(self.paramArray)] except ValueError: str_list += ['paramArray : '] - {{endif}} - {{if 'CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st.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 'CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st.ctx' in found_struct}} + @property def ctx(self): return self._ctx @@ -11130,16 +10606,16 @@ cdef class CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st: pctx = int(CUcontext(ctx)) cyctx = pctx self._ctx._pvt_ptr[0] = cyctx - {{endif}} - {{if 'CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st.count' in found_struct}} + + @property def count(self): return self._pvt_ptr[0].count @count.setter def count(self, unsigned int count): self._pvt_ptr[0].count = count - {{endif}} - {{if 'CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st.paramArray' in found_struct}} + + @property def paramArray(self): arrs = [self._pvt_ptr[0].paramArray + x*sizeof(cydriver.CUstreamBatchMemOpParams) for x in range(self._paramArray_length)] @@ -11161,17 +10637,15 @@ cdef class CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st: for idx in range(len(val)): string.memcpy(&self._paramArray[idx], (val[idx])._pvt_ptr, sizeof(cydriver.CUstreamBatchMemOpParams)) - {{endif}} - {{if 'CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_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}} -{{endif}} -{{if 'CUDA_BATCH_MEM_OP_NODE_PARAMS_v2_st' in found_struct}} + cdef class CUDA_BATCH_MEM_OP_NODE_PARAMS_v2_st: """ @@ -11179,22 +10653,22 @@ cdef class CUDA_BATCH_MEM_OP_NODE_PARAMS_v2_st: Attributes ---------- - {{if 'CUDA_BATCH_MEM_OP_NODE_PARAMS_v2_st.ctx' in found_struct}} + ctx : CUcontext Context to use for the operations. - {{endif}} - {{if 'CUDA_BATCH_MEM_OP_NODE_PARAMS_v2_st.count' in found_struct}} + + count : unsigned int Number of operations in paramArray. - {{endif}} - {{if 'CUDA_BATCH_MEM_OP_NODE_PARAMS_v2_st.paramArray' in found_struct}} + + paramArray : CUstreamBatchMemOpParams Array of batch memory operations. - {{endif}} - {{if 'CUDA_BATCH_MEM_OP_NODE_PARAMS_v2_st.flags' in found_struct}} + + flags : unsigned int Flags to control the node. - {{endif}} + Methods ------- @@ -11208,48 +10682,48 @@ cdef class CUDA_BATCH_MEM_OP_NODE_PARAMS_v2_st: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): pass - {{if 'CUDA_BATCH_MEM_OP_NODE_PARAMS_v2_st.ctx' in found_struct}} + self._ctx = CUcontext(_ptr=&self._pvt_ptr[0].ctx) - {{endif}} + def __dealloc__(self): pass - {{if 'CUDA_BATCH_MEM_OP_NODE_PARAMS_v2_st.paramArray' in found_struct}} + if self._paramArray is not NULL: free(self._paramArray) - {{endif}} + def getPtr(self): return self._pvt_ptr def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUDA_BATCH_MEM_OP_NODE_PARAMS_v2_st.ctx' in found_struct}} + try: str_list += ['ctx : ' + str(self.ctx)] except ValueError: str_list += ['ctx : '] - {{endif}} - {{if 'CUDA_BATCH_MEM_OP_NODE_PARAMS_v2_st.count' in found_struct}} + + try: str_list += ['count : ' + str(self.count)] except ValueError: str_list += ['count : '] - {{endif}} - {{if 'CUDA_BATCH_MEM_OP_NODE_PARAMS_v2_st.paramArray' in found_struct}} + + try: str_list += ['paramArray : ' + str(self.paramArray)] except ValueError: str_list += ['paramArray : '] - {{endif}} - {{if 'CUDA_BATCH_MEM_OP_NODE_PARAMS_v2_st.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 'CUDA_BATCH_MEM_OP_NODE_PARAMS_v2_st.ctx' in found_struct}} + @property def ctx(self): return self._ctx @@ -11265,16 +10739,16 @@ cdef class CUDA_BATCH_MEM_OP_NODE_PARAMS_v2_st: pctx = int(CUcontext(ctx)) cyctx = pctx self._ctx._pvt_ptr[0] = cyctx - {{endif}} - {{if 'CUDA_BATCH_MEM_OP_NODE_PARAMS_v2_st.count' in found_struct}} + + @property def count(self): return self._pvt_ptr[0].count @count.setter def count(self, unsigned int count): self._pvt_ptr[0].count = count - {{endif}} - {{if 'CUDA_BATCH_MEM_OP_NODE_PARAMS_v2_st.paramArray' in found_struct}} + + @property def paramArray(self): arrs = [self._pvt_ptr[0].paramArray + x*sizeof(cydriver.CUstreamBatchMemOpParams) for x in range(self._paramArray_length)] @@ -11296,26 +10770,24 @@ cdef class CUDA_BATCH_MEM_OP_NODE_PARAMS_v2_st: for idx in range(len(val)): string.memcpy(&self._paramArray[idx], (val[idx])._pvt_ptr, sizeof(cydriver.CUstreamBatchMemOpParams)) - {{endif}} - {{if 'CUDA_BATCH_MEM_OP_NODE_PARAMS_v2_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}} -{{endif}} -{{if 'CUasyncNotificationInfo_st.info.overBudget' in found_struct}} + cdef class anon_struct0: """ Attributes ---------- - {{if 'CUasyncNotificationInfo_st.info.overBudget.bytesOverBudget' in found_struct}} + bytesOverBudget : unsigned long long - {{endif}} + Methods ------- @@ -11334,34 +10806,32 @@ cdef class anon_struct0: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUasyncNotificationInfo_st.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 'CUasyncNotificationInfo_st.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 'CUasyncNotificationInfo_st.info' in found_struct}} + cdef class anon_union2: """ Attributes ---------- - {{if 'CUasyncNotificationInfo_st.info.overBudget' in found_struct}} + overBudget : anon_struct0 - {{endif}} + Methods ------- @@ -11373,9 +10843,9 @@ cdef class anon_union2: def __init__(self, void_ptr _ptr): pass - {{if 'CUasyncNotificationInfo_st.info.overBudget' in found_struct}} + self._overBudget = anon_struct0(_ptr=self._pvt_ptr) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -11383,25 +10853,23 @@ cdef class anon_union2: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUasyncNotificationInfo_st.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 'CUasyncNotificationInfo_st.info.overBudget' in found_struct}} + @property def overBudget(self): return self._overBudget @overBudget.setter def overBudget(self, overBudget not None : anon_struct0): - string.memcpy(&self._pvt_ptr[0].info.overBudget, overBudget.getPtr(), sizeof(self._pvt_ptr[0].info.overBudget)) - {{endif}} -{{endif}} -{{if 'CUasyncNotificationInfo_st' in found_struct}} + string.memcpy(&self._pvt_ptr[0].info.overBudget, overBudget.getPtr(), sizeof(self._pvt_ptr[0].info.overBudget)) + cdef class CUasyncNotificationInfo_st: """ @@ -11409,15 +10877,15 @@ cdef class CUasyncNotificationInfo_st: Attributes ---------- - {{if 'CUasyncNotificationInfo_st.type' in found_struct}} + type : CUasyncNotificationType The type of notification being sent - {{endif}} - {{if 'CUasyncNotificationInfo_st.info' in found_struct}} + + info : anon_union2 Information about the notification. `typename` must be checked in order to interpret this field. - {{endif}} + Methods ------- @@ -11432,9 +10900,9 @@ cdef class CUasyncNotificationInfo_st: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): pass - {{if 'CUasyncNotificationInfo_st.info' in found_struct}} + self._info = anon_union2(_ptr=self._pvt_ptr) - {{endif}} + def __dealloc__(self): if self._val_ptr is not NULL: free(self._val_ptr) @@ -11443,39 +10911,37 @@ cdef class CUasyncNotificationInfo_st: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUasyncNotificationInfo_st.type' in found_struct}} + try: str_list += ['type : ' + str(self.type)] except ValueError: str_list += ['type : '] - {{endif}} - {{if 'CUasyncNotificationInfo_st.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 'CUasyncNotificationInfo_st.type' in found_struct}} + @property def type(self): return CUasyncNotificationType(self._pvt_ptr[0].type) @type.setter def type(self, type not None : CUasyncNotificationType): self._pvt_ptr[0].type = int(type) - {{endif}} - {{if 'CUasyncNotificationInfo_st.info' in found_struct}} + + @property def info(self): return self._info @info.setter def info(self, info not None : anon_union2): - string.memcpy(&self._pvt_ptr[0].info, info.getPtr(), sizeof(self._pvt_ptr[0].info)) - {{endif}} -{{endif}} -{{if 'CUdevprop_st' in found_struct}} + string.memcpy(&self._pvt_ptr[0].info, info.getPtr(), sizeof(self._pvt_ptr[0].info)) + cdef class CUdevprop_st: """ @@ -11483,46 +10949,46 @@ cdef class CUdevprop_st: Attributes ---------- - {{if 'CUdevprop_st.maxThreadsPerBlock' in found_struct}} + maxThreadsPerBlock : int Maximum number of threads per block - {{endif}} - {{if 'CUdevprop_st.maxThreadsDim' in found_struct}} + + maxThreadsDim : list[int] Maximum size of each dimension of a block - {{endif}} - {{if 'CUdevprop_st.maxGridSize' in found_struct}} + + maxGridSize : list[int] Maximum size of each dimension of a grid - {{endif}} - {{if 'CUdevprop_st.sharedMemPerBlock' in found_struct}} + + sharedMemPerBlock : int Shared memory available per block in bytes - {{endif}} - {{if 'CUdevprop_st.totalConstantMemory' in found_struct}} + + totalConstantMemory : int Constant memory available on device in bytes - {{endif}} - {{if 'CUdevprop_st.SIMDWidth' in found_struct}} + + SIMDWidth : int Warp size in threads - {{endif}} - {{if 'CUdevprop_st.memPitch' in found_struct}} + + memPitch : int Maximum pitch in bytes allowed by memory copies - {{endif}} - {{if 'CUdevprop_st.regsPerBlock' in found_struct}} + + regsPerBlock : int 32-bit registers available per block - {{endif}} - {{if 'CUdevprop_st.clockRate' in found_struct}} + + clockRate : int Clock frequency in kilohertz - {{endif}} - {{if 'CUdevprop_st.textureAlign' in found_struct}} + + textureAlign : int Alignment requirement for textures - {{endif}} + Methods ------- @@ -11543,151 +11009,149 @@ cdef class CUdevprop_st: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUdevprop_st.maxThreadsPerBlock' in found_struct}} + try: str_list += ['maxThreadsPerBlock : ' + str(self.maxThreadsPerBlock)] except ValueError: str_list += ['maxThreadsPerBlock : '] - {{endif}} - {{if 'CUdevprop_st.maxThreadsDim' in found_struct}} + + try: str_list += ['maxThreadsDim : ' + str(self.maxThreadsDim)] except ValueError: str_list += ['maxThreadsDim : '] - {{endif}} - {{if 'CUdevprop_st.maxGridSize' in found_struct}} + + try: str_list += ['maxGridSize : ' + str(self.maxGridSize)] except ValueError: str_list += ['maxGridSize : '] - {{endif}} - {{if 'CUdevprop_st.sharedMemPerBlock' in found_struct}} + + try: str_list += ['sharedMemPerBlock : ' + str(self.sharedMemPerBlock)] except ValueError: str_list += ['sharedMemPerBlock : '] - {{endif}} - {{if 'CUdevprop_st.totalConstantMemory' in found_struct}} + + try: str_list += ['totalConstantMemory : ' + str(self.totalConstantMemory)] except ValueError: str_list += ['totalConstantMemory : '] - {{endif}} - {{if 'CUdevprop_st.SIMDWidth' in found_struct}} + + try: str_list += ['SIMDWidth : ' + str(self.SIMDWidth)] except ValueError: str_list += ['SIMDWidth : '] - {{endif}} - {{if 'CUdevprop_st.memPitch' in found_struct}} + + try: str_list += ['memPitch : ' + str(self.memPitch)] except ValueError: str_list += ['memPitch : '] - {{endif}} - {{if 'CUdevprop_st.regsPerBlock' in found_struct}} + + try: str_list += ['regsPerBlock : ' + str(self.regsPerBlock)] except ValueError: str_list += ['regsPerBlock : '] - {{endif}} - {{if 'CUdevprop_st.clockRate' in found_struct}} + + try: str_list += ['clockRate : ' + str(self.clockRate)] except ValueError: str_list += ['clockRate : '] - {{endif}} - {{if 'CUdevprop_st.textureAlign' in found_struct}} + + try: str_list += ['textureAlign : ' + str(self.textureAlign)] except ValueError: str_list += ['textureAlign : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'CUdevprop_st.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 'CUdevprop_st.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 'CUdevprop_st.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 'CUdevprop_st.sharedMemPerBlock' in found_struct}} + + @property def sharedMemPerBlock(self): return self._pvt_ptr[0].sharedMemPerBlock @sharedMemPerBlock.setter def sharedMemPerBlock(self, int sharedMemPerBlock): self._pvt_ptr[0].sharedMemPerBlock = sharedMemPerBlock - {{endif}} - {{if 'CUdevprop_st.totalConstantMemory' in found_struct}} + + @property def totalConstantMemory(self): return self._pvt_ptr[0].totalConstantMemory @totalConstantMemory.setter def totalConstantMemory(self, int totalConstantMemory): self._pvt_ptr[0].totalConstantMemory = totalConstantMemory - {{endif}} - {{if 'CUdevprop_st.SIMDWidth' in found_struct}} + + @property def SIMDWidth(self): return self._pvt_ptr[0].SIMDWidth @SIMDWidth.setter def SIMDWidth(self, int SIMDWidth): self._pvt_ptr[0].SIMDWidth = SIMDWidth - {{endif}} - {{if 'CUdevprop_st.memPitch' in found_struct}} + + @property def memPitch(self): return self._pvt_ptr[0].memPitch @memPitch.setter def memPitch(self, int memPitch): self._pvt_ptr[0].memPitch = memPitch - {{endif}} - {{if 'CUdevprop_st.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 'CUdevprop_st.clockRate' in found_struct}} + + @property def clockRate(self): return self._pvt_ptr[0].clockRate @clockRate.setter def clockRate(self, int clockRate): self._pvt_ptr[0].clockRate = clockRate - {{endif}} - {{if 'CUdevprop_st.textureAlign' in found_struct}} + + @property def textureAlign(self): return self._pvt_ptr[0].textureAlign @textureAlign.setter def textureAlign(self, int textureAlign): self._pvt_ptr[0].textureAlign = textureAlign - {{endif}} -{{endif}} -{{if 'CUaccessPolicyWindow_st' in found_struct}} + cdef class CUaccessPolicyWindow_st: """ @@ -11704,29 +11168,29 @@ cdef class CUaccessPolicyWindow_st: Attributes ---------- - {{if 'CUaccessPolicyWindow_st.base_ptr' in found_struct}} + base_ptr : Any Starting address of the access policy window. CUDA driver may align it. - {{endif}} - {{if 'CUaccessPolicyWindow_st.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 'CUaccessPolicyWindow_st.hitRatio' in found_struct}} + + hitRatio : float hitRatio specifies percentage of lines assigned hitProp, rest are assigned missProp. - {{endif}} - {{if 'CUaccessPolicyWindow_st.hitProp' in found_struct}} + + hitProp : CUaccessProperty CUaccessProperty set for hit. - {{endif}} - {{if 'CUaccessPolicyWindow_st.missProp' in found_struct}} + + missProp : CUaccessProperty CUaccessProperty set for miss. Must be either NORMAL or STREAMING - {{endif}} + Methods ------- @@ -11747,40 +11211,40 @@ cdef class CUaccessPolicyWindow_st: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUaccessPolicyWindow_st.base_ptr' in found_struct}} + try: str_list += ['base_ptr : ' + hex(self.base_ptr)] except ValueError: str_list += ['base_ptr : '] - {{endif}} - {{if 'CUaccessPolicyWindow_st.num_bytes' in found_struct}} + + try: str_list += ['num_bytes : ' + str(self.num_bytes)] except ValueError: str_list += ['num_bytes : '] - {{endif}} - {{if 'CUaccessPolicyWindow_st.hitRatio' in found_struct}} + + try: str_list += ['hitRatio : ' + str(self.hitRatio)] except ValueError: str_list += ['hitRatio : '] - {{endif}} - {{if 'CUaccessPolicyWindow_st.hitProp' in found_struct}} + + try: str_list += ['hitProp : ' + str(self.hitProp)] except ValueError: str_list += ['hitProp : '] - {{endif}} - {{if 'CUaccessPolicyWindow_st.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 'CUaccessPolicyWindow_st.base_ptr' in found_struct}} + @property def base_ptr(self): return self._pvt_ptr[0].base_ptr @@ -11788,41 +11252,39 @@ cdef class CUaccessPolicyWindow_st: def base_ptr(self, base_ptr): self._cybase_ptr = _HelperInputVoidPtr(base_ptr) self._pvt_ptr[0].base_ptr = self._cybase_ptr.cptr - {{endif}} - {{if 'CUaccessPolicyWindow_st.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 'CUaccessPolicyWindow_st.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 'CUaccessPolicyWindow_st.hitProp' in found_struct}} + + @property def hitProp(self): return CUaccessProperty(self._pvt_ptr[0].hitProp) @hitProp.setter def hitProp(self, hitProp not None : CUaccessProperty): self._pvt_ptr[0].hitProp = int(hitProp) - {{endif}} - {{if 'CUaccessPolicyWindow_st.missProp' in found_struct}} + + @property def missProp(self): return CUaccessProperty(self._pvt_ptr[0].missProp) @missProp.setter def missProp(self, missProp not None : CUaccessProperty): self._pvt_ptr[0].missProp = int(missProp) - {{endif}} -{{endif}} -{{if 'CUDA_KERNEL_NODE_PARAMS_st' in found_struct}} + cdef class CUDA_KERNEL_NODE_PARAMS_st: """ @@ -11830,46 +11292,46 @@ cdef class CUDA_KERNEL_NODE_PARAMS_st: Attributes ---------- - {{if 'CUDA_KERNEL_NODE_PARAMS_st.func' in found_struct}} + func : CUfunction Kernel to launch - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_st.gridDimX' in found_struct}} + + gridDimX : unsigned int Width of grid in blocks - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_st.gridDimY' in found_struct}} + + gridDimY : unsigned int Height of grid in blocks - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_st.gridDimZ' in found_struct}} + + gridDimZ : unsigned int Depth of grid in blocks - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_st.blockDimX' in found_struct}} + + blockDimX : unsigned int X dimension of each thread block - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_st.blockDimY' in found_struct}} + + blockDimY : unsigned int Y dimension of each thread block - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_st.blockDimZ' in found_struct}} + + blockDimZ : unsigned int Z dimension of each thread block - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_st.sharedMemBytes' in found_struct}} + + sharedMemBytes : unsigned int Dynamic shared-memory size per thread block in bytes - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_st.kernelParams' in found_struct}} + + kernelParams : Any Array of pointers to kernel parameters - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_st.extra' in found_struct}} + + extra : Any Extra options - {{endif}} + Methods ------- @@ -11883,9 +11345,9 @@ cdef class CUDA_KERNEL_NODE_PARAMS_st: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): pass - {{if 'CUDA_KERNEL_NODE_PARAMS_st.func' in found_struct}} + self._func = CUfunction(_ptr=&self._pvt_ptr[0].func) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -11893,70 +11355,70 @@ cdef class CUDA_KERNEL_NODE_PARAMS_st: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUDA_KERNEL_NODE_PARAMS_st.func' in found_struct}} + try: str_list += ['func : ' + str(self.func)] except ValueError: str_list += ['func : '] - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_st.gridDimX' in found_struct}} + + try: str_list += ['gridDimX : ' + str(self.gridDimX)] except ValueError: str_list += ['gridDimX : '] - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_st.gridDimY' in found_struct}} + + try: str_list += ['gridDimY : ' + str(self.gridDimY)] except ValueError: str_list += ['gridDimY : '] - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_st.gridDimZ' in found_struct}} + + try: str_list += ['gridDimZ : ' + str(self.gridDimZ)] except ValueError: str_list += ['gridDimZ : '] - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_st.blockDimX' in found_struct}} + + try: str_list += ['blockDimX : ' + str(self.blockDimX)] except ValueError: str_list += ['blockDimX : '] - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_st.blockDimY' in found_struct}} + + try: str_list += ['blockDimY : ' + str(self.blockDimY)] except ValueError: str_list += ['blockDimY : '] - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_st.blockDimZ' in found_struct}} + + try: str_list += ['blockDimZ : ' + str(self.blockDimZ)] except ValueError: str_list += ['blockDimZ : '] - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_st.sharedMemBytes' in found_struct}} + + try: str_list += ['sharedMemBytes : ' + str(self.sharedMemBytes)] except ValueError: str_list += ['sharedMemBytes : '] - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_st.kernelParams' in found_struct}} + + try: str_list += ['kernelParams : ' + str(self.kernelParams)] except ValueError: str_list += ['kernelParams : '] - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_st.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 'CUDA_KERNEL_NODE_PARAMS_st.func' in found_struct}} + @property def func(self): return self._func @@ -11972,64 +11434,64 @@ cdef class CUDA_KERNEL_NODE_PARAMS_st: pfunc = int(CUfunction(func)) cyfunc = pfunc self._func._pvt_ptr[0] = cyfunc - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_st.gridDimX' in found_struct}} + + @property def gridDimX(self): return self._pvt_ptr[0].gridDimX @gridDimX.setter def gridDimX(self, unsigned int gridDimX): self._pvt_ptr[0].gridDimX = gridDimX - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_st.gridDimY' in found_struct}} + + @property def gridDimY(self): return self._pvt_ptr[0].gridDimY @gridDimY.setter def gridDimY(self, unsigned int gridDimY): self._pvt_ptr[0].gridDimY = gridDimY - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_st.gridDimZ' in found_struct}} + + @property def gridDimZ(self): return self._pvt_ptr[0].gridDimZ @gridDimZ.setter def gridDimZ(self, unsigned int gridDimZ): self._pvt_ptr[0].gridDimZ = gridDimZ - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_st.blockDimX' in found_struct}} + + @property def blockDimX(self): return self._pvt_ptr[0].blockDimX @blockDimX.setter def blockDimX(self, unsigned int blockDimX): self._pvt_ptr[0].blockDimX = blockDimX - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_st.blockDimY' in found_struct}} + + @property def blockDimY(self): return self._pvt_ptr[0].blockDimY @blockDimY.setter def blockDimY(self, unsigned int blockDimY): self._pvt_ptr[0].blockDimY = blockDimY - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_st.blockDimZ' in found_struct}} + + @property def blockDimZ(self): return self._pvt_ptr[0].blockDimZ @blockDimZ.setter def blockDimZ(self, unsigned int blockDimZ): self._pvt_ptr[0].blockDimZ = blockDimZ - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_st.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 'CUDA_KERNEL_NODE_PARAMS_st.kernelParams' in found_struct}} + + @property def kernelParams(self): return self._pvt_ptr[0].kernelParams @@ -12037,17 +11499,15 @@ cdef class CUDA_KERNEL_NODE_PARAMS_st: def kernelParams(self, kernelParams): self._cykernelParams = _HelperKernelParams(kernelParams) self._pvt_ptr[0].kernelParams = self._cykernelParams.ckernelParams - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_st.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 'CUDA_KERNEL_NODE_PARAMS_v2_st' in found_struct}} + cdef class CUDA_KERNEL_NODE_PARAMS_v2_st: """ @@ -12055,56 +11515,56 @@ cdef class CUDA_KERNEL_NODE_PARAMS_v2_st: Attributes ---------- - {{if 'CUDA_KERNEL_NODE_PARAMS_v2_st.func' in found_struct}} + func : CUfunction Kernel to launch - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v2_st.gridDimX' in found_struct}} + + gridDimX : unsigned int Width of grid in blocks - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v2_st.gridDimY' in found_struct}} + + gridDimY : unsigned int Height of grid in blocks - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v2_st.gridDimZ' in found_struct}} + + gridDimZ : unsigned int Depth of grid in blocks - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v2_st.blockDimX' in found_struct}} + + blockDimX : unsigned int X dimension of each thread block - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v2_st.blockDimY' in found_struct}} + + blockDimY : unsigned int Y dimension of each thread block - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v2_st.blockDimZ' in found_struct}} + + blockDimZ : unsigned int Z dimension of each thread block - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v2_st.sharedMemBytes' in found_struct}} + + sharedMemBytes : unsigned int Dynamic shared-memory size per thread block in bytes - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v2_st.kernelParams' in found_struct}} + + kernelParams : Any Array of pointers to kernel parameters - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v2_st.extra' in found_struct}} + + extra : Any Extra options - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v2_st.kern' in found_struct}} + + kern : CUkernel Kernel to launch, will only be referenced if func is NULL - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v2_st.ctx' in found_struct}} + + ctx : CUcontext Context for the kernel task to run in. The value NULL will indicate the current context should be used by the api. This field is ignored if func is set. - {{endif}} + Methods ------- @@ -12118,15 +11578,15 @@ cdef class CUDA_KERNEL_NODE_PARAMS_v2_st: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): pass - {{if 'CUDA_KERNEL_NODE_PARAMS_v2_st.func' in found_struct}} + self._func = CUfunction(_ptr=&self._pvt_ptr[0].func) - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v2_st.kern' in found_struct}} + + self._kern = CUkernel(_ptr=&self._pvt_ptr[0].kern) - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v2_st.ctx' in found_struct}} + + self._ctx = CUcontext(_ptr=&self._pvt_ptr[0].ctx) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -12134,82 +11594,82 @@ cdef class CUDA_KERNEL_NODE_PARAMS_v2_st: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUDA_KERNEL_NODE_PARAMS_v2_st.func' in found_struct}} + try: str_list += ['func : ' + str(self.func)] except ValueError: str_list += ['func : '] - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v2_st.gridDimX' in found_struct}} + + try: str_list += ['gridDimX : ' + str(self.gridDimX)] except ValueError: str_list += ['gridDimX : '] - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v2_st.gridDimY' in found_struct}} + + try: str_list += ['gridDimY : ' + str(self.gridDimY)] except ValueError: str_list += ['gridDimY : '] - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v2_st.gridDimZ' in found_struct}} + + try: str_list += ['gridDimZ : ' + str(self.gridDimZ)] except ValueError: str_list += ['gridDimZ : '] - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v2_st.blockDimX' in found_struct}} + + try: str_list += ['blockDimX : ' + str(self.blockDimX)] except ValueError: str_list += ['blockDimX : '] - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v2_st.blockDimY' in found_struct}} + + try: str_list += ['blockDimY : ' + str(self.blockDimY)] except ValueError: str_list += ['blockDimY : '] - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v2_st.blockDimZ' in found_struct}} + + try: str_list += ['blockDimZ : ' + str(self.blockDimZ)] except ValueError: str_list += ['blockDimZ : '] - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v2_st.sharedMemBytes' in found_struct}} + + try: str_list += ['sharedMemBytes : ' + str(self.sharedMemBytes)] except ValueError: str_list += ['sharedMemBytes : '] - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v2_st.kernelParams' in found_struct}} + + try: str_list += ['kernelParams : ' + str(self.kernelParams)] except ValueError: str_list += ['kernelParams : '] - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v2_st.extra' in found_struct}} + + try: str_list += ['extra : ' + str(self.extra)] except ValueError: str_list += ['extra : '] - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v2_st.kern' in found_struct}} + + try: str_list += ['kern : ' + str(self.kern)] except ValueError: str_list += ['kern : '] - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v2_st.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 'CUDA_KERNEL_NODE_PARAMS_v2_st.func' in found_struct}} + @property def func(self): return self._func @@ -12225,64 +11685,64 @@ cdef class CUDA_KERNEL_NODE_PARAMS_v2_st: pfunc = int(CUfunction(func)) cyfunc = pfunc self._func._pvt_ptr[0] = cyfunc - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v2_st.gridDimX' in found_struct}} + + @property def gridDimX(self): return self._pvt_ptr[0].gridDimX @gridDimX.setter def gridDimX(self, unsigned int gridDimX): self._pvt_ptr[0].gridDimX = gridDimX - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v2_st.gridDimY' in found_struct}} + + @property def gridDimY(self): return self._pvt_ptr[0].gridDimY @gridDimY.setter def gridDimY(self, unsigned int gridDimY): self._pvt_ptr[0].gridDimY = gridDimY - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v2_st.gridDimZ' in found_struct}} + + @property def gridDimZ(self): return self._pvt_ptr[0].gridDimZ @gridDimZ.setter def gridDimZ(self, unsigned int gridDimZ): self._pvt_ptr[0].gridDimZ = gridDimZ - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v2_st.blockDimX' in found_struct}} + + @property def blockDimX(self): return self._pvt_ptr[0].blockDimX @blockDimX.setter def blockDimX(self, unsigned int blockDimX): self._pvt_ptr[0].blockDimX = blockDimX - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v2_st.blockDimY' in found_struct}} + + @property def blockDimY(self): return self._pvt_ptr[0].blockDimY @blockDimY.setter def blockDimY(self, unsigned int blockDimY): self._pvt_ptr[0].blockDimY = blockDimY - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v2_st.blockDimZ' in found_struct}} + + @property def blockDimZ(self): return self._pvt_ptr[0].blockDimZ @blockDimZ.setter def blockDimZ(self, unsigned int blockDimZ): self._pvt_ptr[0].blockDimZ = blockDimZ - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v2_st.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 'CUDA_KERNEL_NODE_PARAMS_v2_st.kernelParams' in found_struct}} + + @property def kernelParams(self): return self._pvt_ptr[0].kernelParams @@ -12290,16 +11750,16 @@ cdef class CUDA_KERNEL_NODE_PARAMS_v2_st: def kernelParams(self, kernelParams): self._cykernelParams = _HelperKernelParams(kernelParams) self._pvt_ptr[0].kernelParams = self._cykernelParams.ckernelParams - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v2_st.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 'CUDA_KERNEL_NODE_PARAMS_v2_st.kern' in found_struct}} + + @property def kern(self): return self._kern @@ -12315,8 +11775,8 @@ cdef class CUDA_KERNEL_NODE_PARAMS_v2_st: pkern = int(CUkernel(kern)) cykern = pkern self._kern._pvt_ptr[0] = cykern - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v2_st.ctx' in found_struct}} + + @property def ctx(self): return self._ctx @@ -12332,9 +11792,7 @@ cdef class CUDA_KERNEL_NODE_PARAMS_v2_st: pctx = int(CUcontext(ctx)) cyctx = pctx self._ctx._pvt_ptr[0] = cyctx - {{endif}} -{{endif}} -{{if 'CUDA_KERNEL_NODE_PARAMS_v3_st' in found_struct}} + cdef class CUDA_KERNEL_NODE_PARAMS_v3_st: """ @@ -12342,56 +11800,56 @@ cdef class CUDA_KERNEL_NODE_PARAMS_v3_st: Attributes ---------- - {{if 'CUDA_KERNEL_NODE_PARAMS_v3_st.func' in found_struct}} + func : CUfunction Kernel to launch - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v3_st.gridDimX' in found_struct}} + + gridDimX : unsigned int Width of grid in blocks - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v3_st.gridDimY' in found_struct}} + + gridDimY : unsigned int Height of grid in blocks - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v3_st.gridDimZ' in found_struct}} + + gridDimZ : unsigned int Depth of grid in blocks - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v3_st.blockDimX' in found_struct}} + + blockDimX : unsigned int X dimension of each thread block - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v3_st.blockDimY' in found_struct}} + + blockDimY : unsigned int Y dimension of each thread block - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v3_st.blockDimZ' in found_struct}} + + blockDimZ : unsigned int Z dimension of each thread block - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v3_st.sharedMemBytes' in found_struct}} + + sharedMemBytes : unsigned int Dynamic shared-memory size per thread block in bytes - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v3_st.kernelParams' in found_struct}} + + kernelParams : Any Array of pointers to kernel parameters - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v3_st.extra' in found_struct}} + + extra : Any Extra options - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v3_st.kern' in found_struct}} + + kern : CUkernel Kernel to launch, will only be referenced if func is NULL - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v3_st.ctx' in found_struct}} + + ctx : CUcontext Context for the kernel task to run in. The value NULL will indicate the current context should be used by the api. This field is ignored if func is set. - {{endif}} + Methods ------- @@ -12405,15 +11863,15 @@ cdef class CUDA_KERNEL_NODE_PARAMS_v3_st: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): pass - {{if 'CUDA_KERNEL_NODE_PARAMS_v3_st.func' in found_struct}} + self._func = CUfunction(_ptr=&self._pvt_ptr[0].func) - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v3_st.kern' in found_struct}} + + self._kern = CUkernel(_ptr=&self._pvt_ptr[0].kern) - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v3_st.ctx' in found_struct}} + + self._ctx = CUcontext(_ptr=&self._pvt_ptr[0].ctx) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -12421,82 +11879,82 @@ cdef class CUDA_KERNEL_NODE_PARAMS_v3_st: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUDA_KERNEL_NODE_PARAMS_v3_st.func' in found_struct}} + try: str_list += ['func : ' + str(self.func)] except ValueError: str_list += ['func : '] - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v3_st.gridDimX' in found_struct}} + + try: str_list += ['gridDimX : ' + str(self.gridDimX)] except ValueError: str_list += ['gridDimX : '] - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v3_st.gridDimY' in found_struct}} + + try: str_list += ['gridDimY : ' + str(self.gridDimY)] except ValueError: str_list += ['gridDimY : '] - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v3_st.gridDimZ' in found_struct}} + + try: str_list += ['gridDimZ : ' + str(self.gridDimZ)] except ValueError: str_list += ['gridDimZ : '] - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v3_st.blockDimX' in found_struct}} + + try: str_list += ['blockDimX : ' + str(self.blockDimX)] except ValueError: str_list += ['blockDimX : '] - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v3_st.blockDimY' in found_struct}} + + try: str_list += ['blockDimY : ' + str(self.blockDimY)] except ValueError: str_list += ['blockDimY : '] - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v3_st.blockDimZ' in found_struct}} + + try: str_list += ['blockDimZ : ' + str(self.blockDimZ)] except ValueError: str_list += ['blockDimZ : '] - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v3_st.sharedMemBytes' in found_struct}} + + try: str_list += ['sharedMemBytes : ' + str(self.sharedMemBytes)] except ValueError: str_list += ['sharedMemBytes : '] - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v3_st.kernelParams' in found_struct}} + + try: str_list += ['kernelParams : ' + str(self.kernelParams)] except ValueError: str_list += ['kernelParams : '] - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v3_st.extra' in found_struct}} + + try: str_list += ['extra : ' + str(self.extra)] except ValueError: str_list += ['extra : '] - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v3_st.kern' in found_struct}} + + try: str_list += ['kern : ' + str(self.kern)] except ValueError: str_list += ['kern : '] - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v3_st.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 'CUDA_KERNEL_NODE_PARAMS_v3_st.func' in found_struct}} + @property def func(self): return self._func @@ -12512,64 +11970,64 @@ cdef class CUDA_KERNEL_NODE_PARAMS_v3_st: pfunc = int(CUfunction(func)) cyfunc = pfunc self._func._pvt_ptr[0] = cyfunc - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v3_st.gridDimX' in found_struct}} + + @property def gridDimX(self): return self._pvt_ptr[0].gridDimX @gridDimX.setter def gridDimX(self, unsigned int gridDimX): self._pvt_ptr[0].gridDimX = gridDimX - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v3_st.gridDimY' in found_struct}} + + @property def gridDimY(self): return self._pvt_ptr[0].gridDimY @gridDimY.setter def gridDimY(self, unsigned int gridDimY): self._pvt_ptr[0].gridDimY = gridDimY - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v3_st.gridDimZ' in found_struct}} + + @property def gridDimZ(self): return self._pvt_ptr[0].gridDimZ @gridDimZ.setter def gridDimZ(self, unsigned int gridDimZ): self._pvt_ptr[0].gridDimZ = gridDimZ - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v3_st.blockDimX' in found_struct}} + + @property def blockDimX(self): return self._pvt_ptr[0].blockDimX @blockDimX.setter def blockDimX(self, unsigned int blockDimX): self._pvt_ptr[0].blockDimX = blockDimX - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v3_st.blockDimY' in found_struct}} + + @property def blockDimY(self): return self._pvt_ptr[0].blockDimY @blockDimY.setter def blockDimY(self, unsigned int blockDimY): self._pvt_ptr[0].blockDimY = blockDimY - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v3_st.blockDimZ' in found_struct}} + + @property def blockDimZ(self): return self._pvt_ptr[0].blockDimZ @blockDimZ.setter def blockDimZ(self, unsigned int blockDimZ): self._pvt_ptr[0].blockDimZ = blockDimZ - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v3_st.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 'CUDA_KERNEL_NODE_PARAMS_v3_st.kernelParams' in found_struct}} + + @property def kernelParams(self): return self._pvt_ptr[0].kernelParams @@ -12577,16 +12035,16 @@ cdef class CUDA_KERNEL_NODE_PARAMS_v3_st: def kernelParams(self, kernelParams): self._cykernelParams = _HelperKernelParams(kernelParams) self._pvt_ptr[0].kernelParams = self._cykernelParams.ckernelParams - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v3_st.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 'CUDA_KERNEL_NODE_PARAMS_v3_st.kern' in found_struct}} + + @property def kern(self): return self._kern @@ -12602,8 +12060,8 @@ cdef class CUDA_KERNEL_NODE_PARAMS_v3_st: pkern = int(CUkernel(kern)) cykern = pkern self._kern._pvt_ptr[0] = cykern - {{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v3_st.ctx' in found_struct}} + + @property def ctx(self): return self._ctx @@ -12619,9 +12077,7 @@ cdef class CUDA_KERNEL_NODE_PARAMS_v3_st: pctx = int(CUcontext(ctx)) cyctx = pctx self._ctx._pvt_ptr[0] = cyctx - {{endif}} -{{endif}} -{{if 'CUDA_MEMSET_NODE_PARAMS_st' in found_struct}} + cdef class CUDA_MEMSET_NODE_PARAMS_st: """ @@ -12629,30 +12085,30 @@ cdef class CUDA_MEMSET_NODE_PARAMS_st: Attributes ---------- - {{if 'CUDA_MEMSET_NODE_PARAMS_st.dst' in found_struct}} + dst : CUdeviceptr Destination device pointer - {{endif}} - {{if 'CUDA_MEMSET_NODE_PARAMS_st.pitch' in found_struct}} + + pitch : size_t Pitch of destination device pointer. Unused if height is 1 - {{endif}} - {{if 'CUDA_MEMSET_NODE_PARAMS_st.value' in found_struct}} + + value : unsigned int Value to be set - {{endif}} - {{if 'CUDA_MEMSET_NODE_PARAMS_st.elementSize' in found_struct}} + + elementSize : unsigned int Size of each element in bytes. Must be 1, 2, or 4. - {{endif}} - {{if 'CUDA_MEMSET_NODE_PARAMS_st.width' in found_struct}} + + width : size_t Width of the row in elements - {{endif}} - {{if 'CUDA_MEMSET_NODE_PARAMS_st.height' in found_struct}} + + height : size_t Number of rows - {{endif}} + Methods ------- @@ -12666,9 +12122,9 @@ cdef class CUDA_MEMSET_NODE_PARAMS_st: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): pass - {{if 'CUDA_MEMSET_NODE_PARAMS_st.dst' in found_struct}} + self._dst = CUdeviceptr(_ptr=&self._pvt_ptr[0].dst) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -12676,46 +12132,46 @@ cdef class CUDA_MEMSET_NODE_PARAMS_st: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUDA_MEMSET_NODE_PARAMS_st.dst' in found_struct}} + try: str_list += ['dst : ' + str(self.dst)] except ValueError: str_list += ['dst : '] - {{endif}} - {{if 'CUDA_MEMSET_NODE_PARAMS_st.pitch' in found_struct}} + + try: str_list += ['pitch : ' + str(self.pitch)] except ValueError: str_list += ['pitch : '] - {{endif}} - {{if 'CUDA_MEMSET_NODE_PARAMS_st.value' in found_struct}} + + try: str_list += ['value : ' + str(self.value)] except ValueError: str_list += ['value : '] - {{endif}} - {{if 'CUDA_MEMSET_NODE_PARAMS_st.elementSize' in found_struct}} + + try: str_list += ['elementSize : ' + str(self.elementSize)] except ValueError: str_list += ['elementSize : '] - {{endif}} - {{if 'CUDA_MEMSET_NODE_PARAMS_st.width' in found_struct}} + + try: str_list += ['width : ' + str(self.width)] except ValueError: str_list += ['width : '] - {{endif}} - {{if 'CUDA_MEMSET_NODE_PARAMS_st.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 'CUDA_MEMSET_NODE_PARAMS_st.dst' in found_struct}} + @property def dst(self): return self._dst @@ -12732,49 +12188,47 @@ cdef class CUDA_MEMSET_NODE_PARAMS_st: cydst = pdst self._dst._pvt_ptr[0] = cydst - {{endif}} - {{if 'CUDA_MEMSET_NODE_PARAMS_st.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 'CUDA_MEMSET_NODE_PARAMS_st.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 'CUDA_MEMSET_NODE_PARAMS_st.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 'CUDA_MEMSET_NODE_PARAMS_st.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 'CUDA_MEMSET_NODE_PARAMS_st.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 'CUDA_MEMSET_NODE_PARAMS_v2_st' in found_struct}} + cdef class CUDA_MEMSET_NODE_PARAMS_v2_st: """ @@ -12782,34 +12236,34 @@ cdef class CUDA_MEMSET_NODE_PARAMS_v2_st: Attributes ---------- - {{if 'CUDA_MEMSET_NODE_PARAMS_v2_st.dst' in found_struct}} + dst : CUdeviceptr Destination device pointer - {{endif}} - {{if 'CUDA_MEMSET_NODE_PARAMS_v2_st.pitch' in found_struct}} + + pitch : size_t Pitch of destination device pointer. Unused if height is 1 - {{endif}} - {{if 'CUDA_MEMSET_NODE_PARAMS_v2_st.value' in found_struct}} + + value : unsigned int Value to be set - {{endif}} - {{if 'CUDA_MEMSET_NODE_PARAMS_v2_st.elementSize' in found_struct}} + + elementSize : unsigned int Size of each element in bytes. Must be 1, 2, or 4. - {{endif}} - {{if 'CUDA_MEMSET_NODE_PARAMS_v2_st.width' in found_struct}} + + width : size_t Width of the row in elements - {{endif}} - {{if 'CUDA_MEMSET_NODE_PARAMS_v2_st.height' in found_struct}} + + height : size_t Number of rows - {{endif}} - {{if 'CUDA_MEMSET_NODE_PARAMS_v2_st.ctx' in found_struct}} + + ctx : CUcontext Context on which to run the node - {{endif}} + Methods ------- @@ -12823,12 +12277,12 @@ cdef class CUDA_MEMSET_NODE_PARAMS_v2_st: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): pass - {{if 'CUDA_MEMSET_NODE_PARAMS_v2_st.dst' in found_struct}} + self._dst = CUdeviceptr(_ptr=&self._pvt_ptr[0].dst) - {{endif}} - {{if 'CUDA_MEMSET_NODE_PARAMS_v2_st.ctx' in found_struct}} + + self._ctx = CUcontext(_ptr=&self._pvt_ptr[0].ctx) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -12836,52 +12290,52 @@ cdef class CUDA_MEMSET_NODE_PARAMS_v2_st: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUDA_MEMSET_NODE_PARAMS_v2_st.dst' in found_struct}} + try: str_list += ['dst : ' + str(self.dst)] except ValueError: str_list += ['dst : '] - {{endif}} - {{if 'CUDA_MEMSET_NODE_PARAMS_v2_st.pitch' in found_struct}} + + try: str_list += ['pitch : ' + str(self.pitch)] except ValueError: str_list += ['pitch : '] - {{endif}} - {{if 'CUDA_MEMSET_NODE_PARAMS_v2_st.value' in found_struct}} + + try: str_list += ['value : ' + str(self.value)] except ValueError: str_list += ['value : '] - {{endif}} - {{if 'CUDA_MEMSET_NODE_PARAMS_v2_st.elementSize' in found_struct}} + + try: str_list += ['elementSize : ' + str(self.elementSize)] except ValueError: str_list += ['elementSize : '] - {{endif}} - {{if 'CUDA_MEMSET_NODE_PARAMS_v2_st.width' in found_struct}} + + try: str_list += ['width : ' + str(self.width)] except ValueError: str_list += ['width : '] - {{endif}} - {{if 'CUDA_MEMSET_NODE_PARAMS_v2_st.height' in found_struct}} + + try: str_list += ['height : ' + str(self.height)] except ValueError: str_list += ['height : '] - {{endif}} - {{if 'CUDA_MEMSET_NODE_PARAMS_v2_st.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 'CUDA_MEMSET_NODE_PARAMS_v2_st.dst' in found_struct}} + @property def dst(self): return self._dst @@ -12898,48 +12352,48 @@ cdef class CUDA_MEMSET_NODE_PARAMS_v2_st: cydst = pdst self._dst._pvt_ptr[0] = cydst - {{endif}} - {{if 'CUDA_MEMSET_NODE_PARAMS_v2_st.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 'CUDA_MEMSET_NODE_PARAMS_v2_st.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 'CUDA_MEMSET_NODE_PARAMS_v2_st.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 'CUDA_MEMSET_NODE_PARAMS_v2_st.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 'CUDA_MEMSET_NODE_PARAMS_v2_st.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 'CUDA_MEMSET_NODE_PARAMS_v2_st.ctx' in found_struct}} + + @property def ctx(self): return self._ctx @@ -12955,9 +12409,7 @@ cdef class CUDA_MEMSET_NODE_PARAMS_v2_st: pctx = int(CUcontext(ctx)) cyctx = pctx self._ctx._pvt_ptr[0] = cyctx - {{endif}} -{{endif}} -{{if 'CUDA_HOST_NODE_PARAMS_st' in found_struct}} + cdef class CUDA_HOST_NODE_PARAMS_st: """ @@ -12965,14 +12417,14 @@ cdef class CUDA_HOST_NODE_PARAMS_st: Attributes ---------- - {{if 'CUDA_HOST_NODE_PARAMS_st.fn' in found_struct}} + fn : CUhostFn The function to call when the node executes - {{endif}} - {{if 'CUDA_HOST_NODE_PARAMS_st.userData' in found_struct}} + + userData : Any Argument to pass to the function - {{endif}} + Methods ------- @@ -12986,9 +12438,9 @@ cdef class CUDA_HOST_NODE_PARAMS_st: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): pass - {{if 'CUDA_HOST_NODE_PARAMS_st.fn' in found_struct}} + self._fn = CUhostFn(_ptr=&self._pvt_ptr[0].fn) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -12996,22 +12448,22 @@ cdef class CUDA_HOST_NODE_PARAMS_st: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUDA_HOST_NODE_PARAMS_st.fn' in found_struct}} + try: str_list += ['fn : ' + str(self.fn)] except ValueError: str_list += ['fn : '] - {{endif}} - {{if 'CUDA_HOST_NODE_PARAMS_st.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 'CUDA_HOST_NODE_PARAMS_st.fn' in found_struct}} + @property def fn(self): return self._fn @@ -13027,8 +12479,8 @@ cdef class CUDA_HOST_NODE_PARAMS_st: pfn = int(CUhostFn(fn)) cyfn = pfn self._fn._pvt_ptr[0] = cyfn - {{endif}} - {{if 'CUDA_HOST_NODE_PARAMS_st.userData' in found_struct}} + + @property def userData(self): return self._pvt_ptr[0].userData @@ -13036,9 +12488,7 @@ cdef class CUDA_HOST_NODE_PARAMS_st: def userData(self, userData): self._cyuserData = _HelperInputVoidPtr(userData) self._pvt_ptr[0].userData = self._cyuserData.cptr - {{endif}} -{{endif}} -{{if 'CUDA_HOST_NODE_PARAMS_v2_st' in found_struct}} + cdef class CUDA_HOST_NODE_PARAMS_v2_st: """ @@ -13046,18 +12496,18 @@ cdef class CUDA_HOST_NODE_PARAMS_v2_st: Attributes ---------- - {{if 'CUDA_HOST_NODE_PARAMS_v2_st.fn' in found_struct}} + fn : CUhostFn The function to call when the node executes - {{endif}} - {{if 'CUDA_HOST_NODE_PARAMS_v2_st.userData' in found_struct}} + + userData : Any Argument to pass to the function - {{endif}} - {{if 'CUDA_HOST_NODE_PARAMS_v2_st.syncMode' in found_struct}} + + syncMode : unsigned int The sync mode to use for the host task - {{endif}} + Methods ------- @@ -13071,9 +12521,9 @@ cdef class CUDA_HOST_NODE_PARAMS_v2_st: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): pass - {{if 'CUDA_HOST_NODE_PARAMS_v2_st.fn' in found_struct}} + self._fn = CUhostFn(_ptr=&self._pvt_ptr[0].fn) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -13081,28 +12531,28 @@ cdef class CUDA_HOST_NODE_PARAMS_v2_st: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUDA_HOST_NODE_PARAMS_v2_st.fn' in found_struct}} + try: str_list += ['fn : ' + str(self.fn)] except ValueError: str_list += ['fn : '] - {{endif}} - {{if 'CUDA_HOST_NODE_PARAMS_v2_st.userData' in found_struct}} + + try: str_list += ['userData : ' + hex(self.userData)] except ValueError: str_list += ['userData : '] - {{endif}} - {{if 'CUDA_HOST_NODE_PARAMS_v2_st.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 'CUDA_HOST_NODE_PARAMS_v2_st.fn' in found_struct}} + @property def fn(self): return self._fn @@ -13118,8 +12568,8 @@ cdef class CUDA_HOST_NODE_PARAMS_v2_st: pfn = int(CUhostFn(fn)) cyfn = pfn self._fn._pvt_ptr[0] = cyfn - {{endif}} - {{if 'CUDA_HOST_NODE_PARAMS_v2_st.userData' in found_struct}} + + @property def userData(self): return self._pvt_ptr[0].userData @@ -13127,17 +12577,15 @@ cdef class CUDA_HOST_NODE_PARAMS_v2_st: def userData(self, userData): self._cyuserData = _HelperInputVoidPtr(userData) self._pvt_ptr[0].userData = self._cyuserData.cptr - {{endif}} - {{if 'CUDA_HOST_NODE_PARAMS_v2_st.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 'CUDA_CONDITIONAL_NODE_PARAMS' in found_struct}} + cdef class CUDA_CONDITIONAL_NODE_PARAMS: """ @@ -13145,22 +12593,22 @@ cdef class CUDA_CONDITIONAL_NODE_PARAMS: Attributes ---------- - {{if 'CUDA_CONDITIONAL_NODE_PARAMS.handle' in found_struct}} + handle : CUgraphConditionalHandle Conditional node handle. Handles must be created in advance of creating the node using cuGraphConditionalHandleCreate. - {{endif}} - {{if 'CUDA_CONDITIONAL_NODE_PARAMS.type' in found_struct}} + + type : CUgraphConditionalNodeType Type of conditional node. - {{endif}} - {{if 'CUDA_CONDITIONAL_NODE_PARAMS.size' in found_struct}} + + size : unsigned int Size of graph output array. Allowed values are 1 for CU_GRAPH_COND_TYPE_WHILE, 1 or 2 for CU_GRAPH_COND_TYPE_IF, or any value greater than zero for CU_GRAPH_COND_TYPE_SWITCH. - {{endif}} - {{if 'CUDA_CONDITIONAL_NODE_PARAMS.phGraph_out' in found_struct}} + + phGraph_out : CUgraph CUDA-owned array populated with conditional node child graphs during creation of the node. Valid for the lifetime of the @@ -13178,12 +12626,12 @@ cdef class CUDA_CONDITIONAL_NODE_PARAMS: condition is non-zero. CU_GRAPH_COND_TYPE_SWITCH: phGraph_out[n] is executed when the condition is equal to n. If the condition >= `size`, no body graph is executed. - {{endif}} - {{if 'CUDA_CONDITIONAL_NODE_PARAMS.ctx' in found_struct}} + + ctx : CUcontext Context on which to run the node. Must match context used to create the handle and all body nodes. - {{endif}} + Methods ------- @@ -13197,12 +12645,12 @@ cdef class CUDA_CONDITIONAL_NODE_PARAMS: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): pass - {{if 'CUDA_CONDITIONAL_NODE_PARAMS.handle' in found_struct}} + self._handle = CUgraphConditionalHandle(_ptr=&self._pvt_ptr[0].handle) - {{endif}} - {{if 'CUDA_CONDITIONAL_NODE_PARAMS.ctx' in found_struct}} + + self._ctx = CUcontext(_ptr=&self._pvt_ptr[0].ctx) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -13210,40 +12658,40 @@ cdef class CUDA_CONDITIONAL_NODE_PARAMS: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUDA_CONDITIONAL_NODE_PARAMS.handle' in found_struct}} + try: str_list += ['handle : ' + str(self.handle)] except ValueError: str_list += ['handle : '] - {{endif}} - {{if 'CUDA_CONDITIONAL_NODE_PARAMS.type' in found_struct}} + + try: str_list += ['type : ' + str(self.type)] except ValueError: str_list += ['type : '] - {{endif}} - {{if 'CUDA_CONDITIONAL_NODE_PARAMS.size' in found_struct}} + + try: str_list += ['size : ' + str(self.size)] except ValueError: str_list += ['size : '] - {{endif}} - {{if 'CUDA_CONDITIONAL_NODE_PARAMS.phGraph_out' in found_struct}} + + try: str_list += ['phGraph_out : ' + str(self.phGraph_out)] except ValueError: str_list += ['phGraph_out : '] - {{endif}} - {{if 'CUDA_CONDITIONAL_NODE_PARAMS.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 'CUDA_CONDITIONAL_NODE_PARAMS.handle' in found_struct}} + @property def handle(self): return self._handle @@ -13260,30 +12708,30 @@ cdef class CUDA_CONDITIONAL_NODE_PARAMS: cyhandle = phandle self._handle._pvt_ptr[0] = cyhandle - {{endif}} - {{if 'CUDA_CONDITIONAL_NODE_PARAMS.type' in found_struct}} + + @property def type(self): return CUgraphConditionalNodeType(self._pvt_ptr[0].type) @type.setter def type(self, type not None : CUgraphConditionalNodeType): self._pvt_ptr[0].type = int(type) - {{endif}} - {{if 'CUDA_CONDITIONAL_NODE_PARAMS.size' in found_struct}} + + @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 'CUDA_CONDITIONAL_NODE_PARAMS.phGraph_out' in found_struct}} + + @property def phGraph_out(self): arrs = [self._pvt_ptr[0].phGraph_out + x*sizeof(cydriver.CUgraph) for x in range(self.size)] return [CUgraph(_ptr=arr) for arr in arrs] - {{endif}} - {{if 'CUDA_CONDITIONAL_NODE_PARAMS.ctx' in found_struct}} + + @property def ctx(self): return self._ctx @@ -13299,9 +12747,7 @@ cdef class CUDA_CONDITIONAL_NODE_PARAMS: pctx = int(CUcontext(ctx)) cyctx = pctx self._ctx._pvt_ptr[0] = cyctx - {{endif}} -{{endif}} -{{if 'CUgraphEdgeData_st' in found_struct}} + cdef class CUgraphEdgeData_st: """ @@ -13312,7 +12758,7 @@ cdef class CUgraphEdgeData_st: Attributes ---------- - {{if 'CUgraphEdgeData_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 @@ -13323,8 +12769,8 @@ cdef class CUgraphEdgeData_st: CU_GRAPH_KERNEL_NODE_PORT_DEFAULT, CU_GRAPH_KERNEL_NODE_PORT_PROGRAMMATIC, or CU_GRAPH_KERNEL_NODE_PORT_LAUNCH_ORDER. - {{endif}} - {{if 'CUgraphEdgeData_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`). @@ -13332,18 +12778,18 @@ cdef class CUgraphEdgeData_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 'CUgraphEdgeData_st.type' in found_struct}} + + type : bytes This should be populated with a value from CUgraphDependencyType. (It is typed as char due to compiler-specific layout of bitfields.) See CUgraphDependencyType. - {{endif}} - {{if 'CUgraphEdgeData_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 ------- @@ -13364,58 +12810,58 @@ cdef class CUgraphEdgeData_st: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUgraphEdgeData_st.from_port' in found_struct}} + try: str_list += ['from_port : ' + str(self.from_port)] except ValueError: str_list += ['from_port : '] - {{endif}} - {{if 'CUgraphEdgeData_st.to_port' in found_struct}} + + try: str_list += ['to_port : ' + str(self.to_port)] except ValueError: str_list += ['to_port : '] - {{endif}} - {{if 'CUgraphEdgeData_st.type' in found_struct}} + + try: str_list += ['type : ' + str(self.type)] except ValueError: str_list += ['type : '] - {{endif}} - {{if 'CUgraphEdgeData_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 'CUgraphEdgeData_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 'CUgraphEdgeData_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 'CUgraphEdgeData_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 'CUgraphEdgeData_st.reserved' in found_struct}} + + @property def reserved(self): return PyBytes_FromStringAndSize(self._pvt_ptr[0].reserved, 5) @@ -13425,9 +12871,7 @@ cdef class CUgraphEdgeData_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 'CUDA_GRAPH_INSTANTIATE_PARAMS_st' in found_struct}} + cdef class CUDA_GRAPH_INSTANTIATE_PARAMS_st: """ @@ -13435,22 +12879,22 @@ cdef class CUDA_GRAPH_INSTANTIATE_PARAMS_st: Attributes ---------- - {{if 'CUDA_GRAPH_INSTANTIATE_PARAMS_st.flags' in found_struct}} + flags : cuuint64_t Instantiation flags - {{endif}} - {{if 'CUDA_GRAPH_INSTANTIATE_PARAMS_st.hUploadStream' in found_struct}} + + hUploadStream : CUstream Upload stream - {{endif}} - {{if 'CUDA_GRAPH_INSTANTIATE_PARAMS_st.hErrNode_out' in found_struct}} + + hErrNode_out : CUgraphNode The node which caused instantiation to fail, if any - {{endif}} - {{if 'CUDA_GRAPH_INSTANTIATE_PARAMS_st.result_out' in found_struct}} + + result_out : CUgraphInstantiateResult Whether instantiation was successful. If it failed, the reason why - {{endif}} + Methods ------- @@ -13464,15 +12908,15 @@ cdef class CUDA_GRAPH_INSTANTIATE_PARAMS_st: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): pass - {{if 'CUDA_GRAPH_INSTANTIATE_PARAMS_st.flags' in found_struct}} + self._flags = cuuint64_t(_ptr=&self._pvt_ptr[0].flags) - {{endif}} - {{if 'CUDA_GRAPH_INSTANTIATE_PARAMS_st.hUploadStream' in found_struct}} + + self._hUploadStream = CUstream(_ptr=&self._pvt_ptr[0].hUploadStream) - {{endif}} - {{if 'CUDA_GRAPH_INSTANTIATE_PARAMS_st.hErrNode_out' in found_struct}} + + self._hErrNode_out = CUgraphNode(_ptr=&self._pvt_ptr[0].hErrNode_out) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -13480,34 +12924,34 @@ cdef class CUDA_GRAPH_INSTANTIATE_PARAMS_st: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUDA_GRAPH_INSTANTIATE_PARAMS_st.flags' in found_struct}} + try: str_list += ['flags : ' + str(self.flags)] except ValueError: str_list += ['flags : '] - {{endif}} - {{if 'CUDA_GRAPH_INSTANTIATE_PARAMS_st.hUploadStream' in found_struct}} + + try: str_list += ['hUploadStream : ' + str(self.hUploadStream)] except ValueError: str_list += ['hUploadStream : '] - {{endif}} - {{if 'CUDA_GRAPH_INSTANTIATE_PARAMS_st.hErrNode_out' in found_struct}} + + try: str_list += ['hErrNode_out : ' + str(self.hErrNode_out)] except ValueError: str_list += ['hErrNode_out : '] - {{endif}} - {{if 'CUDA_GRAPH_INSTANTIATE_PARAMS_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 'CUDA_GRAPH_INSTANTIATE_PARAMS_st.flags' in found_struct}} + @property def flags(self): return self._flags @@ -13524,8 +12968,8 @@ cdef class CUDA_GRAPH_INSTANTIATE_PARAMS_st: cyflags = pflags self._flags._pvt_ptr[0] = cyflags - {{endif}} - {{if 'CUDA_GRAPH_INSTANTIATE_PARAMS_st.hUploadStream' in found_struct}} + + @property def hUploadStream(self): return self._hUploadStream @@ -13541,8 +12985,8 @@ cdef class CUDA_GRAPH_INSTANTIATE_PARAMS_st: phUploadStream = int(CUstream(hUploadStream)) cyhUploadStream = phUploadStream self._hUploadStream._pvt_ptr[0] = cyhUploadStream - {{endif}} - {{if 'CUDA_GRAPH_INSTANTIATE_PARAMS_st.hErrNode_out' in found_struct}} + + @property def hErrNode_out(self): return self._hErrNode_out @@ -13558,17 +13002,15 @@ cdef class CUDA_GRAPH_INSTANTIATE_PARAMS_st: phErrNode_out = int(CUgraphNode(hErrNode_out)) cyhErrNode_out = phErrNode_out self._hErrNode_out._pvt_ptr[0] = cyhErrNode_out - {{endif}} - {{if 'CUDA_GRAPH_INSTANTIATE_PARAMS_st.result_out' in found_struct}} + + @property def result_out(self): 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) - {{endif}} -{{endif}} -{{if 'CUlaunchMemSyncDomainMap_st' in found_struct}} + cdef class CUlaunchMemSyncDomainMap_st: """ @@ -13582,14 +13024,14 @@ cdef class CUlaunchMemSyncDomainMap_st: Attributes ---------- - {{if 'CUlaunchMemSyncDomainMap_st.default_' in found_struct}} + default_ : bytes The default domain ID to use for designated kernels - {{endif}} - {{if 'CUlaunchMemSyncDomainMap_st.remote' in found_struct}} + + remote : bytes The remote domain ID to use for designated kernels - {{endif}} + Methods ------- @@ -13610,56 +13052,54 @@ cdef class CUlaunchMemSyncDomainMap_st: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUlaunchMemSyncDomainMap_st.default_' in found_struct}} + try: str_list += ['default_ : ' + str(self.default_)] except ValueError: str_list += ['default_ : '] - {{endif}} - {{if 'CUlaunchMemSyncDomainMap_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 'CUlaunchMemSyncDomainMap_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 'CUlaunchMemSyncDomainMap_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 'CUlaunchAttributeValue_union.clusterDim' in found_struct}} + cdef class anon_struct1: """ Attributes ---------- - {{if 'CUlaunchAttributeValue_union.clusterDim.x' in found_struct}} + x : unsigned int - {{endif}} - {{if 'CUlaunchAttributeValue_union.clusterDim.y' in found_struct}} + + y : unsigned int - {{endif}} - {{if 'CUlaunchAttributeValue_union.clusterDim.z' in found_struct}} + + z : unsigned int - {{endif}} + Methods ------- @@ -13678,70 +13118,68 @@ cdef class anon_struct1: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUlaunchAttributeValue_union.clusterDim.x' in found_struct}} + try: str_list += ['x : ' + str(self.x)] except ValueError: str_list += ['x : '] - {{endif}} - {{if 'CUlaunchAttributeValue_union.clusterDim.y' in found_struct}} + + try: str_list += ['y : ' + str(self.y)] except ValueError: str_list += ['y : '] - {{endif}} - {{if 'CUlaunchAttributeValue_union.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 'CUlaunchAttributeValue_union.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 'CUlaunchAttributeValue_union.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 'CUlaunchAttributeValue_union.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 'CUlaunchAttributeValue_union.programmaticEvent' in found_struct}} + cdef class anon_struct2: """ Attributes ---------- - {{if 'CUlaunchAttributeValue_union.programmaticEvent.event' in found_struct}} + event : CUevent - {{endif}} - {{if 'CUlaunchAttributeValue_union.programmaticEvent.flags' in found_struct}} + + flags : int - {{endif}} - {{if 'CUlaunchAttributeValue_union.programmaticEvent.triggerAtBlockStart' in found_struct}} + + triggerAtBlockStart : int - {{endif}} + Methods ------- @@ -13753,9 +13191,9 @@ cdef class anon_struct2: def __init__(self, void_ptr _ptr): pass - {{if 'CUlaunchAttributeValue_union.programmaticEvent.event' in found_struct}} + self._event = CUevent(_ptr=&self._pvt_ptr[0].programmaticEvent.event) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -13763,28 +13201,28 @@ cdef class anon_struct2: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUlaunchAttributeValue_union.programmaticEvent.event' in found_struct}} + try: str_list += ['event : ' + str(self.event)] except ValueError: str_list += ['event : '] - {{endif}} - {{if 'CUlaunchAttributeValue_union.programmaticEvent.flags' in found_struct}} + + try: str_list += ['flags : ' + str(self.flags)] except ValueError: str_list += ['flags : '] - {{endif}} - {{if 'CUlaunchAttributeValue_union.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 'CUlaunchAttributeValue_union.programmaticEvent.event' in found_struct}} + @property def event(self): return self._event @@ -13800,38 +13238,36 @@ cdef class anon_struct2: pevent = int(CUevent(event)) cyevent = pevent self._event._pvt_ptr[0] = cyevent - {{endif}} - {{if 'CUlaunchAttributeValue_union.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 'CUlaunchAttributeValue_union.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 'CUlaunchAttributeValue_union.launchCompletionEvent' in found_struct}} + cdef class anon_struct3: """ Attributes ---------- - {{if 'CUlaunchAttributeValue_union.launchCompletionEvent.event' in found_struct}} + event : CUevent - {{endif}} - {{if 'CUlaunchAttributeValue_union.launchCompletionEvent.flags' in found_struct}} + + flags : int - {{endif}} + Methods ------- @@ -13843,9 +13279,9 @@ cdef class anon_struct3: def __init__(self, void_ptr _ptr): pass - {{if 'CUlaunchAttributeValue_union.launchCompletionEvent.event' in found_struct}} + self._event = CUevent(_ptr=&self._pvt_ptr[0].launchCompletionEvent.event) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -13853,22 +13289,22 @@ cdef class anon_struct3: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUlaunchAttributeValue_union.launchCompletionEvent.event' in found_struct}} + try: str_list += ['event : ' + str(self.event)] except ValueError: str_list += ['event : '] - {{endif}} - {{if 'CUlaunchAttributeValue_union.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 'CUlaunchAttributeValue_union.launchCompletionEvent.event' in found_struct}} + @property def event(self): return self._event @@ -13884,34 +13320,32 @@ cdef class anon_struct3: pevent = int(CUevent(event)) cyevent = pevent self._event._pvt_ptr[0] = cyevent - {{endif}} - {{if 'CUlaunchAttributeValue_union.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 'CUlaunchAttributeValue_union.preferredClusterDim' in found_struct}} + cdef class anon_struct4: """ Attributes ---------- - {{if 'CUlaunchAttributeValue_union.preferredClusterDim.x' in found_struct}} + x : unsigned int - {{endif}} - {{if 'CUlaunchAttributeValue_union.preferredClusterDim.y' in found_struct}} + + y : unsigned int - {{endif}} - {{if 'CUlaunchAttributeValue_union.preferredClusterDim.z' in found_struct}} + + z : unsigned int - {{endif}} + Methods ------- @@ -13930,66 +13364,64 @@ cdef class anon_struct4: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUlaunchAttributeValue_union.preferredClusterDim.x' in found_struct}} + try: str_list += ['x : ' + str(self.x)] except ValueError: str_list += ['x : '] - {{endif}} - {{if 'CUlaunchAttributeValue_union.preferredClusterDim.y' in found_struct}} + + try: str_list += ['y : ' + str(self.y)] except ValueError: str_list += ['y : '] - {{endif}} - {{if 'CUlaunchAttributeValue_union.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 'CUlaunchAttributeValue_union.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 'CUlaunchAttributeValue_union.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 'CUlaunchAttributeValue_union.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 'CUlaunchAttributeValue_union.deviceUpdatableKernelNode' in found_struct}} + cdef class anon_struct5: """ Attributes ---------- - {{if 'CUlaunchAttributeValue_union.deviceUpdatableKernelNode.deviceUpdatable' in found_struct}} + deviceUpdatable : int - {{endif}} - {{if 'CUlaunchAttributeValue_union.deviceUpdatableKernelNode.devNode' in found_struct}} + + devNode : CUgraphDeviceNode - {{endif}} + Methods ------- @@ -14001,9 +13433,9 @@ cdef class anon_struct5: def __init__(self, void_ptr _ptr): pass - {{if 'CUlaunchAttributeValue_union.deviceUpdatableKernelNode.devNode' in found_struct}} + self._devNode = CUgraphDeviceNode(_ptr=&self._pvt_ptr[0].deviceUpdatableKernelNode.devNode) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -14011,30 +13443,30 @@ cdef class anon_struct5: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUlaunchAttributeValue_union.deviceUpdatableKernelNode.deviceUpdatable' in found_struct}} + try: str_list += ['deviceUpdatable : ' + str(self.deviceUpdatable)] except ValueError: str_list += ['deviceUpdatable : '] - {{endif}} - {{if 'CUlaunchAttributeValue_union.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 'CUlaunchAttributeValue_union.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 'CUlaunchAttributeValue_union.deviceUpdatableKernelNode.devNode' in found_struct}} + + @property def devNode(self): return self._devNode @@ -14050,9 +13482,7 @@ cdef class anon_struct5: pdevNode = int(CUgraphDeviceNode(devNode)) cydevNode = pdevNode self._devNode._pvt_ptr[0] = cydevNode - {{endif}} -{{endif}} -{{if 'CUlaunchAttributeValue_union' in found_struct}} + cdef class CUlaunchAttributeValue_union: """ @@ -14060,26 +13490,26 @@ cdef class CUlaunchAttributeValue_union: Attributes ---------- - {{if 'CUlaunchAttributeValue_union.pad' in found_struct}} + pad : bytes - {{endif}} - {{if 'CUlaunchAttributeValue_union.accessPolicyWindow' in found_struct}} + + accessPolicyWindow : CUaccessPolicyWindow Value of launch attribute CU_LAUNCH_ATTRIBUTE_ACCESS_POLICY_WINDOW. - {{endif}} - {{if 'CUlaunchAttributeValue_union.cooperative' in found_struct}} + + cooperative : int Value of launch attribute CU_LAUNCH_ATTRIBUTE_COOPERATIVE. Nonzero indicates a cooperative kernel (see cuLaunchCooperativeKernel). - {{endif}} - {{if 'CUlaunchAttributeValue_union.syncPolicy' in found_struct}} + + syncPolicy : CUsynchronizationPolicy Value of launch attribute CU_LAUNCH_ATTRIBUTE_SYNCHRONIZATION_POLICY. CUsynchronizationPolicy for work queued up in this stream - {{endif}} - {{if 'CUlaunchAttributeValue_union.clusterDim' in found_struct}} + + clusterDim : anon_struct1 Value of launch attribute CU_LAUNCH_ATTRIBUTE_CLUSTER_DIMENSION that represents the desired cluster dimensions for the kernel. @@ -14088,19 +13518,19 @@ cdef class CUlaunchAttributeValue_union: - `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 'CUlaunchAttributeValue_union.clusterSchedulingPolicyPreference' in found_struct}} + + clusterSchedulingPolicyPreference : CUclusterSchedulingPolicy Value of launch attribute CU_LAUNCH_ATTRIBUTE_CLUSTER_SCHEDULING_POLICY_PREFERENCE. Cluster scheduling policy preference for the kernel. - {{endif}} - {{if 'CUlaunchAttributeValue_union.programmaticStreamSerializationAllowed' in found_struct}} + + programmaticStreamSerializationAllowed : int Value of launch attribute CU_LAUNCH_ATTRIBUTE_PROGRAMMATIC_STREAM_SERIALIZATION. - {{endif}} - {{if 'CUlaunchAttributeValue_union.programmaticEvent' in found_struct}} + + programmaticEvent : anon_struct2 Value of launch attribute CU_LAUNCH_ATTRIBUTE_PROGRAMMATIC_EVENT with the following fields: - `CUevent` event - Event to fire when @@ -14108,31 +13538,31 @@ cdef class CUlaunchAttributeValue_union: cuEventRecordWithFlags. Does not accept :CU_EVENT_RECORD_EXTERNAL. - `triggerAtBlockStart` - If this is set to non-0, each block launch will automatically trigger the event. - {{endif}} - {{if 'CUlaunchAttributeValue_union.launchCompletionEvent' in found_struct}} + + launchCompletionEvent : anon_struct3 Value of launch attribute CU_LAUNCH_ATTRIBUTE_LAUNCH_COMPLETION_EVENT with the following fields: - `CUevent` event - Event to fire when the last block launches - `int` flags; - Event record flags, see cuEventRecordWithFlags. Does not accept CU_EVENT_RECORD_EXTERNAL. - {{endif}} - {{if 'CUlaunchAttributeValue_union.priority' in found_struct}} + + priority : int Value of launch attribute CU_LAUNCH_ATTRIBUTE_PRIORITY. Execution priority of the kernel. - {{endif}} - {{if 'CUlaunchAttributeValue_union.memSyncDomainMap' in found_struct}} + + memSyncDomainMap : CUlaunchMemSyncDomainMap Value of launch attribute CU_LAUNCH_ATTRIBUTE_MEM_SYNC_DOMAIN_MAP. See CUlaunchMemSyncDomainMap. - {{endif}} - {{if 'CUlaunchAttributeValue_union.memSyncDomain' in found_struct}} + + memSyncDomain : CUlaunchMemSyncDomain Value of launch attribute CU_LAUNCH_ATTRIBUTE_MEM_SYNC_DOMAIN. See::CUlaunchMemSyncDomain - {{endif}} - {{if 'CUlaunchAttributeValue_union.preferredClusterDim' in found_struct}} + + preferredClusterDim : anon_struct4 Value of launch attribute CU_LAUNCH_ATTRIBUTE_PREFERRED_CLUSTER_DIMENSION that represents the @@ -14146,8 +13576,8 @@ cdef class CUlaunchAttributeValue_union: CUlaunchAttributeValue::clusterDim. - `z` - The Z dimension of the preferred cluster, in blocks. Must be equal to the `z` field of CUlaunchAttributeValue::clusterDim. - {{endif}} - {{if 'CUlaunchAttributeValue_union.deviceUpdatableKernelNode' in found_struct}} + + deviceUpdatableKernelNode : anon_struct5 Value of launch attribute CU_LAUNCH_ATTRIBUTE_DEVICE_UPDATABLE_KERNEL_NODE. with the @@ -14155,26 +13585,26 @@ cdef class CUlaunchAttributeValue_union: resulting kernel node should be device-updatable. - `CUgraphDeviceNode` devNode - Returns a handle to pass to the various device-side update functions. - {{endif}} - {{if 'CUlaunchAttributeValue_union.sharedMemCarveout' in found_struct}} + + sharedMemCarveout : unsigned int Value of launch attribute CU_LAUNCH_ATTRIBUTE_PREFERRED_SHARED_MEMORY_CARVEOUT. - {{endif}} - {{if 'CUlaunchAttributeValue_union.nvlinkUtilCentricScheduling' in found_struct}} + + nvlinkUtilCentricScheduling : unsigned int - {{endif}} - {{if 'CUlaunchAttributeValue_union.portableClusterSizeMode' in found_struct}} + + portableClusterSizeMode : CUlaunchAttributePortableClusterMode Value of launch attribute CU_LAUNCH_ATTRIBUTE_PORTABLE_CLUSTER_SIZE_MODE. - {{endif}} - {{if 'CUlaunchAttributeValue_union.sharedMemoryMode' in found_struct}} + + sharedMemoryMode : CUsharedMemoryMode Value of launch attribute CU_LAUNCH_ATTRIBUTE_SHARED_MEMORY_MODE. See CUsharedMemoryMode for acceptable values. - {{endif}} + Methods ------- @@ -14188,27 +13618,27 @@ cdef class CUlaunchAttributeValue_union: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): pass - {{if 'CUlaunchAttributeValue_union.accessPolicyWindow' in found_struct}} + self._accessPolicyWindow = CUaccessPolicyWindow(_ptr=&self._pvt_ptr[0].accessPolicyWindow) - {{endif}} - {{if 'CUlaunchAttributeValue_union.clusterDim' in found_struct}} + + self._clusterDim = anon_struct1(_ptr=self._pvt_ptr) - {{endif}} - {{if 'CUlaunchAttributeValue_union.programmaticEvent' in found_struct}} + + self._programmaticEvent = anon_struct2(_ptr=self._pvt_ptr) - {{endif}} - {{if 'CUlaunchAttributeValue_union.launchCompletionEvent' in found_struct}} + + self._launchCompletionEvent = anon_struct3(_ptr=self._pvt_ptr) - {{endif}} - {{if 'CUlaunchAttributeValue_union.memSyncDomainMap' in found_struct}} + + self._memSyncDomainMap = CUlaunchMemSyncDomainMap(_ptr=&self._pvt_ptr[0].memSyncDomainMap) - {{endif}} - {{if 'CUlaunchAttributeValue_union.preferredClusterDim' in found_struct}} + + self._preferredClusterDim = anon_struct4(_ptr=self._pvt_ptr) - {{endif}} - {{if 'CUlaunchAttributeValue_union.deviceUpdatableKernelNode' in found_struct}} + + self._deviceUpdatableKernelNode = anon_struct5(_ptr=self._pvt_ptr) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -14216,118 +13646,118 @@ cdef class CUlaunchAttributeValue_union: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUlaunchAttributeValue_union.pad' in found_struct}} + try: str_list += ['pad : ' + str(self.pad)] except ValueError: str_list += ['pad : '] - {{endif}} - {{if 'CUlaunchAttributeValue_union.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 'CUlaunchAttributeValue_union.cooperative' in found_struct}} + + try: str_list += ['cooperative : ' + str(self.cooperative)] except ValueError: str_list += ['cooperative : '] - {{endif}} - {{if 'CUlaunchAttributeValue_union.syncPolicy' in found_struct}} + + try: str_list += ['syncPolicy : ' + str(self.syncPolicy)] except ValueError: str_list += ['syncPolicy : '] - {{endif}} - {{if 'CUlaunchAttributeValue_union.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 'CUlaunchAttributeValue_union.clusterSchedulingPolicyPreference' in found_struct}} + + try: str_list += ['clusterSchedulingPolicyPreference : ' + str(self.clusterSchedulingPolicyPreference)] except ValueError: str_list += ['clusterSchedulingPolicyPreference : '] - {{endif}} - {{if 'CUlaunchAttributeValue_union.programmaticStreamSerializationAllowed' in found_struct}} + + try: str_list += ['programmaticStreamSerializationAllowed : ' + str(self.programmaticStreamSerializationAllowed)] except ValueError: str_list += ['programmaticStreamSerializationAllowed : '] - {{endif}} - {{if 'CUlaunchAttributeValue_union.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 'CUlaunchAttributeValue_union.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 'CUlaunchAttributeValue_union.priority' in found_struct}} + + try: str_list += ['priority : ' + str(self.priority)] except ValueError: str_list += ['priority : '] - {{endif}} - {{if 'CUlaunchAttributeValue_union.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 'CUlaunchAttributeValue_union.memSyncDomain' in found_struct}} + + try: str_list += ['memSyncDomain : ' + str(self.memSyncDomain)] except ValueError: str_list += ['memSyncDomain : '] - {{endif}} - {{if 'CUlaunchAttributeValue_union.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 'CUlaunchAttributeValue_union.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 'CUlaunchAttributeValue_union.sharedMemCarveout' in found_struct}} + + try: str_list += ['sharedMemCarveout : ' + str(self.sharedMemCarveout)] except ValueError: str_list += ['sharedMemCarveout : '] - {{endif}} - {{if 'CUlaunchAttributeValue_union.nvlinkUtilCentricScheduling' in found_struct}} + + try: str_list += ['nvlinkUtilCentricScheduling : ' + str(self.nvlinkUtilCentricScheduling)] except ValueError: str_list += ['nvlinkUtilCentricScheduling : '] - {{endif}} - {{if 'CUlaunchAttributeValue_union.portableClusterSizeMode' in found_struct}} + + try: str_list += ['portableClusterSizeMode : ' + str(self.portableClusterSizeMode)] except ValueError: str_list += ['portableClusterSizeMode : '] - {{endif}} - {{if 'CUlaunchAttributeValue_union.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 'CUlaunchAttributeValue_union.pad' in found_struct}} + @property def pad(self): return PyBytes_FromStringAndSize(self._pvt_ptr[0].pad, 64) @@ -14345,145 +13775,143 @@ cdef class CUlaunchAttributeValue_union: if b > 127 and b < 256: b = b - 256 self._pvt_ptr[0].pad[i] = b - {{endif}} - {{if 'CUlaunchAttributeValue_union.accessPolicyWindow' in found_struct}} + + @property def accessPolicyWindow(self): return self._accessPolicyWindow @accessPolicyWindow.setter def accessPolicyWindow(self, accessPolicyWindow not None : CUaccessPolicyWindow): - string.memcpy(&self._pvt_ptr[0].accessPolicyWindow, accessPolicyWindow.getPtr(), sizeof(self._pvt_ptr[0].accessPolicyWindow)) - {{endif}} - {{if 'CUlaunchAttributeValue_union.cooperative' in found_struct}} + string.memcpy(&self._pvt_ptr[0].accessPolicyWindow, accessPolicyWindow.getPtr(), sizeof(self._pvt_ptr[0].accessPolicyWindow)) + + @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 'CUlaunchAttributeValue_union.syncPolicy' in found_struct}} + + @property def syncPolicy(self): return CUsynchronizationPolicy(self._pvt_ptr[0].syncPolicy) @syncPolicy.setter def syncPolicy(self, syncPolicy not None : CUsynchronizationPolicy): self._pvt_ptr[0].syncPolicy = int(syncPolicy) - {{endif}} - {{if 'CUlaunchAttributeValue_union.clusterDim' in found_struct}} + + @property def clusterDim(self): return self._clusterDim @clusterDim.setter def clusterDim(self, clusterDim not None : anon_struct1): - string.memcpy(&self._pvt_ptr[0].clusterDim, clusterDim.getPtr(), sizeof(self._pvt_ptr[0].clusterDim)) - {{endif}} - {{if 'CUlaunchAttributeValue_union.clusterSchedulingPolicyPreference' in found_struct}} + string.memcpy(&self._pvt_ptr[0].clusterDim, clusterDim.getPtr(), sizeof(self._pvt_ptr[0].clusterDim)) + + @property def clusterSchedulingPolicyPreference(self): return CUclusterSchedulingPolicy(self._pvt_ptr[0].clusterSchedulingPolicyPreference) @clusterSchedulingPolicyPreference.setter def clusterSchedulingPolicyPreference(self, clusterSchedulingPolicyPreference not None : CUclusterSchedulingPolicy): self._pvt_ptr[0].clusterSchedulingPolicyPreference = int(clusterSchedulingPolicyPreference) - {{endif}} - {{if 'CUlaunchAttributeValue_union.programmaticStreamSerializationAllowed' in found_struct}} + + @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 'CUlaunchAttributeValue_union.programmaticEvent' in found_struct}} + + @property def programmaticEvent(self): return self._programmaticEvent @programmaticEvent.setter def programmaticEvent(self, programmaticEvent not None : anon_struct2): - string.memcpy(&self._pvt_ptr[0].programmaticEvent, programmaticEvent.getPtr(), sizeof(self._pvt_ptr[0].programmaticEvent)) - {{endif}} - {{if 'CUlaunchAttributeValue_union.launchCompletionEvent' in found_struct}} + string.memcpy(&self._pvt_ptr[0].programmaticEvent, programmaticEvent.getPtr(), sizeof(self._pvt_ptr[0].programmaticEvent)) + + @property def launchCompletionEvent(self): return self._launchCompletionEvent @launchCompletionEvent.setter def launchCompletionEvent(self, launchCompletionEvent not None : anon_struct3): - string.memcpy(&self._pvt_ptr[0].launchCompletionEvent, launchCompletionEvent.getPtr(), sizeof(self._pvt_ptr[0].launchCompletionEvent)) - {{endif}} - {{if 'CUlaunchAttributeValue_union.priority' in found_struct}} + string.memcpy(&self._pvt_ptr[0].launchCompletionEvent, launchCompletionEvent.getPtr(), sizeof(self._pvt_ptr[0].launchCompletionEvent)) + + @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 'CUlaunchAttributeValue_union.memSyncDomainMap' in found_struct}} + + @property def memSyncDomainMap(self): return self._memSyncDomainMap @memSyncDomainMap.setter def memSyncDomainMap(self, memSyncDomainMap not None : CUlaunchMemSyncDomainMap): - string.memcpy(&self._pvt_ptr[0].memSyncDomainMap, memSyncDomainMap.getPtr(), sizeof(self._pvt_ptr[0].memSyncDomainMap)) - {{endif}} - {{if 'CUlaunchAttributeValue_union.memSyncDomain' in found_struct}} + string.memcpy(&self._pvt_ptr[0].memSyncDomainMap, memSyncDomainMap.getPtr(), sizeof(self._pvt_ptr[0].memSyncDomainMap)) + + @property def memSyncDomain(self): return CUlaunchMemSyncDomain(self._pvt_ptr[0].memSyncDomain) @memSyncDomain.setter def memSyncDomain(self, memSyncDomain not None : CUlaunchMemSyncDomain): self._pvt_ptr[0].memSyncDomain = int(memSyncDomain) - {{endif}} - {{if 'CUlaunchAttributeValue_union.preferredClusterDim' in found_struct}} + + @property def preferredClusterDim(self): return self._preferredClusterDim @preferredClusterDim.setter def preferredClusterDim(self, preferredClusterDim not None : anon_struct4): - string.memcpy(&self._pvt_ptr[0].preferredClusterDim, preferredClusterDim.getPtr(), sizeof(self._pvt_ptr[0].preferredClusterDim)) - {{endif}} - {{if 'CUlaunchAttributeValue_union.deviceUpdatableKernelNode' in found_struct}} + string.memcpy(&self._pvt_ptr[0].preferredClusterDim, preferredClusterDim.getPtr(), sizeof(self._pvt_ptr[0].preferredClusterDim)) + + @property def deviceUpdatableKernelNode(self): return self._deviceUpdatableKernelNode @deviceUpdatableKernelNode.setter def deviceUpdatableKernelNode(self, deviceUpdatableKernelNode not None : anon_struct5): - string.memcpy(&self._pvt_ptr[0].deviceUpdatableKernelNode, deviceUpdatableKernelNode.getPtr(), sizeof(self._pvt_ptr[0].deviceUpdatableKernelNode)) - {{endif}} - {{if 'CUlaunchAttributeValue_union.sharedMemCarveout' in found_struct}} + string.memcpy(&self._pvt_ptr[0].deviceUpdatableKernelNode, deviceUpdatableKernelNode.getPtr(), sizeof(self._pvt_ptr[0].deviceUpdatableKernelNode)) + + @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 'CUlaunchAttributeValue_union.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 'CUlaunchAttributeValue_union.portableClusterSizeMode' in found_struct}} + + @property def portableClusterSizeMode(self): return CUlaunchAttributePortableClusterMode(self._pvt_ptr[0].portableClusterSizeMode) @portableClusterSizeMode.setter def portableClusterSizeMode(self, portableClusterSizeMode not None : CUlaunchAttributePortableClusterMode): self._pvt_ptr[0].portableClusterSizeMode = int(portableClusterSizeMode) - {{endif}} - {{if 'CUlaunchAttributeValue_union.sharedMemoryMode' in found_struct}} + + @property def sharedMemoryMode(self): return CUsharedMemoryMode(self._pvt_ptr[0].sharedMemoryMode) @sharedMemoryMode.setter def sharedMemoryMode(self, sharedMemoryMode not None : CUsharedMemoryMode): self._pvt_ptr[0].sharedMemoryMode = int(sharedMemoryMode) - {{endif}} -{{endif}} -{{if 'CUlaunchAttribute_st' in found_struct}} + cdef class CUlaunchAttribute_st: """ @@ -14491,14 +13919,14 @@ cdef class CUlaunchAttribute_st: Attributes ---------- - {{if 'CUlaunchAttribute_st.id' in found_struct}} + id : CUlaunchAttributeID Attribute to set - {{endif}} - {{if 'CUlaunchAttribute_st.value' in found_struct}} + + value : CUlaunchAttributeValue Value of the attribute - {{endif}} + Methods ------- @@ -14512,9 +13940,9 @@ cdef class CUlaunchAttribute_st: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): pass - {{if 'CUlaunchAttribute_st.value' in found_struct}} + self._value = CUlaunchAttributeValue(_ptr=&self._pvt_ptr[0].value) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -14522,39 +13950,37 @@ cdef class CUlaunchAttribute_st: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUlaunchAttribute_st.id' in found_struct}} + try: str_list += ['id : ' + str(self.id)] except ValueError: str_list += ['id : '] - {{endif}} - {{if 'CUlaunchAttribute_st.value' in found_struct}} + + try: str_list += ['value :\n' + '\n'.join([' ' + line for line in str(self.value).splitlines()])] except ValueError: str_list += ['value : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'CUlaunchAttribute_st.id' in found_struct}} + @property def id(self): return CUlaunchAttributeID(self._pvt_ptr[0].id) @id.setter def id(self, id not None : CUlaunchAttributeID): self._pvt_ptr[0].id = int(id) - {{endif}} - {{if 'CUlaunchAttribute_st.value' in found_struct}} + + @property def value(self): return self._value @value.setter def value(self, value not None : CUlaunchAttributeValue): - string.memcpy(&self._pvt_ptr[0].value, value.getPtr(), sizeof(self._pvt_ptr[0].value)) - {{endif}} -{{endif}} -{{if 'CUlaunchConfig_st' in found_struct}} + string.memcpy(&self._pvt_ptr[0].value, value.getPtr(), sizeof(self._pvt_ptr[0].value)) + cdef class CUlaunchConfig_st: """ @@ -14562,46 +13988,46 @@ cdef class CUlaunchConfig_st: Attributes ---------- - {{if 'CUlaunchConfig_st.gridDimX' in found_struct}} + gridDimX : unsigned int Width of grid in blocks - {{endif}} - {{if 'CUlaunchConfig_st.gridDimY' in found_struct}} + + gridDimY : unsigned int Height of grid in blocks - {{endif}} - {{if 'CUlaunchConfig_st.gridDimZ' in found_struct}} + + gridDimZ : unsigned int Depth of grid in blocks - {{endif}} - {{if 'CUlaunchConfig_st.blockDimX' in found_struct}} + + blockDimX : unsigned int X dimension of each thread block - {{endif}} - {{if 'CUlaunchConfig_st.blockDimY' in found_struct}} + + blockDimY : unsigned int Y dimension of each thread block - {{endif}} - {{if 'CUlaunchConfig_st.blockDimZ' in found_struct}} + + blockDimZ : unsigned int Z dimension of each thread block - {{endif}} - {{if 'CUlaunchConfig_st.sharedMemBytes' in found_struct}} + + sharedMemBytes : unsigned int Dynamic shared-memory size per thread block in bytes - {{endif}} - {{if 'CUlaunchConfig_st.hStream' in found_struct}} + + hStream : CUstream Stream identifier - {{endif}} - {{if 'CUlaunchConfig_st.attrs' in found_struct}} + + attrs : CUlaunchAttribute List of attributes; nullable if CUlaunchConfig::numAttrs == 0 - {{endif}} - {{if 'CUlaunchConfig_st.numAttrs' in found_struct}} + + numAttrs : unsigned int Number of attributes populated in CUlaunchConfig::attrs - {{endif}} + Methods ------- @@ -14615,140 +14041,140 @@ cdef class CUlaunchConfig_st: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): pass - {{if 'CUlaunchConfig_st.hStream' in found_struct}} + self._hStream = CUstream(_ptr=&self._pvt_ptr[0].hStream) - {{endif}} + def __dealloc__(self): pass - {{if 'CUlaunchConfig_st.attrs' in found_struct}} + if self._attrs is not NULL: free(self._attrs) - {{endif}} + def getPtr(self): return self._pvt_ptr def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUlaunchConfig_st.gridDimX' in found_struct}} + try: str_list += ['gridDimX : ' + str(self.gridDimX)] except ValueError: str_list += ['gridDimX : '] - {{endif}} - {{if 'CUlaunchConfig_st.gridDimY' in found_struct}} + + try: str_list += ['gridDimY : ' + str(self.gridDimY)] except ValueError: str_list += ['gridDimY : '] - {{endif}} - {{if 'CUlaunchConfig_st.gridDimZ' in found_struct}} + + try: str_list += ['gridDimZ : ' + str(self.gridDimZ)] except ValueError: str_list += ['gridDimZ : '] - {{endif}} - {{if 'CUlaunchConfig_st.blockDimX' in found_struct}} + + try: str_list += ['blockDimX : ' + str(self.blockDimX)] except ValueError: str_list += ['blockDimX : '] - {{endif}} - {{if 'CUlaunchConfig_st.blockDimY' in found_struct}} + + try: str_list += ['blockDimY : ' + str(self.blockDimY)] except ValueError: str_list += ['blockDimY : '] - {{endif}} - {{if 'CUlaunchConfig_st.blockDimZ' in found_struct}} + + try: str_list += ['blockDimZ : ' + str(self.blockDimZ)] except ValueError: str_list += ['blockDimZ : '] - {{endif}} - {{if 'CUlaunchConfig_st.sharedMemBytes' in found_struct}} + + try: str_list += ['sharedMemBytes : ' + str(self.sharedMemBytes)] except ValueError: str_list += ['sharedMemBytes : '] - {{endif}} - {{if 'CUlaunchConfig_st.hStream' in found_struct}} + + try: str_list += ['hStream : ' + str(self.hStream)] except ValueError: str_list += ['hStream : '] - {{endif}} - {{if 'CUlaunchConfig_st.attrs' in found_struct}} + + try: str_list += ['attrs : ' + str(self.attrs)] except ValueError: str_list += ['attrs : '] - {{endif}} - {{if 'CUlaunchConfig_st.numAttrs' in found_struct}} + + try: str_list += ['numAttrs : ' + str(self.numAttrs)] except ValueError: str_list += ['numAttrs : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'CUlaunchConfig_st.gridDimX' in found_struct}} + @property def gridDimX(self): return self._pvt_ptr[0].gridDimX @gridDimX.setter def gridDimX(self, unsigned int gridDimX): self._pvt_ptr[0].gridDimX = gridDimX - {{endif}} - {{if 'CUlaunchConfig_st.gridDimY' in found_struct}} + + @property def gridDimY(self): return self._pvt_ptr[0].gridDimY @gridDimY.setter def gridDimY(self, unsigned int gridDimY): self._pvt_ptr[0].gridDimY = gridDimY - {{endif}} - {{if 'CUlaunchConfig_st.gridDimZ' in found_struct}} + + @property def gridDimZ(self): return self._pvt_ptr[0].gridDimZ @gridDimZ.setter def gridDimZ(self, unsigned int gridDimZ): self._pvt_ptr[0].gridDimZ = gridDimZ - {{endif}} - {{if 'CUlaunchConfig_st.blockDimX' in found_struct}} + + @property def blockDimX(self): return self._pvt_ptr[0].blockDimX @blockDimX.setter def blockDimX(self, unsigned int blockDimX): self._pvt_ptr[0].blockDimX = blockDimX - {{endif}} - {{if 'CUlaunchConfig_st.blockDimY' in found_struct}} + + @property def blockDimY(self): return self._pvt_ptr[0].blockDimY @blockDimY.setter def blockDimY(self, unsigned int blockDimY): self._pvt_ptr[0].blockDimY = blockDimY - {{endif}} - {{if 'CUlaunchConfig_st.blockDimZ' in found_struct}} + + @property def blockDimZ(self): return self._pvt_ptr[0].blockDimZ @blockDimZ.setter def blockDimZ(self, unsigned int blockDimZ): self._pvt_ptr[0].blockDimZ = blockDimZ - {{endif}} - {{if 'CUlaunchConfig_st.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 'CUlaunchConfig_st.hStream' in found_struct}} + + @property def hStream(self): return self._hStream @@ -14764,8 +14190,8 @@ cdef class CUlaunchConfig_st: phStream = int(CUstream(hStream)) cyhStream = phStream self._hStream._pvt_ptr[0] = cyhStream - {{endif}} - {{if 'CUlaunchConfig_st.attrs' in found_struct}} + + @property def attrs(self): arrs = [self._pvt_ptr[0].attrs + x*sizeof(cydriver.CUlaunchAttribute) for x in range(self._attrs_length)] @@ -14787,17 +14213,15 @@ cdef class CUlaunchConfig_st: for idx in range(len(val)): string.memcpy(&self._attrs[idx], (val[idx])._pvt_ptr, sizeof(cydriver.CUlaunchAttribute)) - {{endif}} - {{if 'CUlaunchConfig_st.numAttrs' in found_struct}} + + @property def numAttrs(self): return self._pvt_ptr[0].numAttrs @numAttrs.setter def numAttrs(self, unsigned int numAttrs): self._pvt_ptr[0].numAttrs = numAttrs - {{endif}} -{{endif}} -{{if 'CUexecAffinitySmCount_st' in found_struct}} + cdef class CUexecAffinitySmCount_st: """ @@ -14805,10 +14229,10 @@ cdef class CUexecAffinitySmCount_st: Attributes ---------- - {{if 'CUexecAffinitySmCount_st.val' in found_struct}} + val : unsigned int The number of SMs the context is limited to use. - {{endif}} + Methods ------- @@ -14829,34 +14253,32 @@ cdef class CUexecAffinitySmCount_st: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUexecAffinitySmCount_st.val' in found_struct}} + try: str_list += ['val : ' + str(self.val)] except ValueError: str_list += ['val : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'CUexecAffinitySmCount_st.val' in found_struct}} + @property def val(self): return self._pvt_ptr[0].val @val.setter def val(self, unsigned int val): self._pvt_ptr[0].val = val - {{endif}} -{{endif}} -{{if 'CUexecAffinityParam_st.param' in found_struct}} + cdef class anon_union3: """ Attributes ---------- - {{if 'CUexecAffinityParam_st.param.smCount' in found_struct}} + smCount : CUexecAffinitySmCount - {{endif}} + Methods ------- @@ -14868,9 +14290,9 @@ cdef class anon_union3: def __init__(self, void_ptr _ptr): pass - {{if 'CUexecAffinityParam_st.param.smCount' in found_struct}} + self._smCount = CUexecAffinitySmCount(_ptr=&self._pvt_ptr[0].param.smCount) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -14878,25 +14300,23 @@ cdef class anon_union3: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUexecAffinityParam_st.param.smCount' in found_struct}} + try: str_list += ['smCount :\n' + '\n'.join([' ' + line for line in str(self.smCount).splitlines()])] except ValueError: str_list += ['smCount : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'CUexecAffinityParam_st.param.smCount' in found_struct}} + @property def smCount(self): return self._smCount @smCount.setter def smCount(self, smCount not None : CUexecAffinitySmCount): - string.memcpy(&self._pvt_ptr[0].param.smCount, smCount.getPtr(), sizeof(self._pvt_ptr[0].param.smCount)) - {{endif}} -{{endif}} -{{if 'CUexecAffinityParam_st' in found_struct}} + string.memcpy(&self._pvt_ptr[0].param.smCount, smCount.getPtr(), sizeof(self._pvt_ptr[0].param.smCount)) + cdef class CUexecAffinityParam_st: """ @@ -14904,14 +14324,14 @@ cdef class CUexecAffinityParam_st: Attributes ---------- - {{if 'CUexecAffinityParam_st.type' in found_struct}} + type : CUexecAffinityType Type of execution affinity. - {{endif}} - {{if 'CUexecAffinityParam_st.param' in found_struct}} + + param : anon_union3 - {{endif}} + Methods ------- @@ -14926,9 +14346,9 @@ cdef class CUexecAffinityParam_st: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): pass - {{if 'CUexecAffinityParam_st.param' in found_struct}} + self._param = anon_union3(_ptr=self._pvt_ptr) - {{endif}} + def __dealloc__(self): if self._val_ptr is not NULL: free(self._val_ptr) @@ -14937,39 +14357,37 @@ cdef class CUexecAffinityParam_st: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUexecAffinityParam_st.type' in found_struct}} + try: str_list += ['type : ' + str(self.type)] except ValueError: str_list += ['type : '] - {{endif}} - {{if 'CUexecAffinityParam_st.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}} + return '\n'.join(str_list) else: return '' - {{if 'CUexecAffinityParam_st.type' in found_struct}} + @property def type(self): return CUexecAffinityType(self._pvt_ptr[0].type) @type.setter def type(self, type not None : CUexecAffinityType): self._pvt_ptr[0].type = int(type) - {{endif}} - {{if 'CUexecAffinityParam_st.param' in found_struct}} + + @property def param(self): return self._param @param.setter def param(self, param not None : anon_union3): - string.memcpy(&self._pvt_ptr[0].param, param.getPtr(), sizeof(self._pvt_ptr[0].param)) - {{endif}} -{{endif}} -{{if 'CUctxCigParam_st' in found_struct}} + string.memcpy(&self._pvt_ptr[0].param, param.getPtr(), sizeof(self._pvt_ptr[0].param)) + cdef class CUctxCigParam_st: """ @@ -14977,15 +14395,15 @@ cdef class CUctxCigParam_st: Attributes ---------- - {{if 'CUctxCigParam_st.sharedDataType' in found_struct}} + sharedDataType : CUcigDataType Type of shared data from graphics client (D3D12 or Vulkan). - {{endif}} - {{if 'CUctxCigParam_st.sharedData' in found_struct}} + + sharedData : Any Graphics client data handle (ID3D12CommandQueue or Nvidia specific data blob). - {{endif}} + Methods ------- @@ -15006,30 +14424,30 @@ cdef class CUctxCigParam_st: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUctxCigParam_st.sharedDataType' in found_struct}} + try: str_list += ['sharedDataType : ' + str(self.sharedDataType)] except ValueError: str_list += ['sharedDataType : '] - {{endif}} - {{if 'CUctxCigParam_st.sharedData' in found_struct}} + + try: str_list += ['sharedData : ' + hex(self.sharedData)] except ValueError: str_list += ['sharedData : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'CUctxCigParam_st.sharedDataType' in found_struct}} + @property def sharedDataType(self): return CUcigDataType(self._pvt_ptr[0].sharedDataType) @sharedDataType.setter def sharedDataType(self, sharedDataType not None : CUcigDataType): self._pvt_ptr[0].sharedDataType = int(sharedDataType) - {{endif}} - {{if 'CUctxCigParam_st.sharedData' in found_struct}} + + @property def sharedData(self): return self._pvt_ptr[0].sharedData @@ -15037,9 +14455,7 @@ cdef class CUctxCigParam_st: def sharedData(self, sharedData): self._cysharedData = _HelperInputVoidPtr(sharedData) self._pvt_ptr[0].sharedData = self._cysharedData.cptr - {{endif}} -{{endif}} -{{if 'CUctxCreateParams_st' in found_struct}} + cdef class CUctxCreateParams_st: """ @@ -15049,23 +14465,23 @@ cdef class CUctxCreateParams_st: Attributes ---------- - {{if 'CUctxCreateParams_st.execAffinityParams' in found_struct}} + execAffinityParams : CUexecAffinityParam Array of execution affinity parameters to limit context resources (e.g., SM count). Only supported Volta+ MPS. Mutually exclusive with cigParams. - {{endif}} - {{if 'CUctxCreateParams_st.numExecAffinityParams' in found_struct}} + + numExecAffinityParams : int Number of elements in execAffinityParams array. Must be 0 if execAffinityParams is NULL. - {{endif}} - {{if 'CUctxCreateParams_st.cigParams' in found_struct}} + + cigParams : CUctxCigParam CIG (CUDA in Graphics) parameters for sharing data from D3D12/Vulkan graphics clients. Mutually exclusive with execAffinityParams. - {{endif}} + Methods ------- @@ -15081,41 +14497,41 @@ cdef class CUctxCreateParams_st: pass def __dealloc__(self): pass - {{if 'CUctxCreateParams_st.execAffinityParams' in found_struct}} + if self._execAffinityParams is not NULL: free(self._execAffinityParams) - {{endif}} - {{if 'CUctxCreateParams_st.cigParams' in found_struct}} + + if self._cigParams is not NULL: free(self._cigParams) - {{endif}} + def getPtr(self): return self._pvt_ptr def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUctxCreateParams_st.execAffinityParams' in found_struct}} + try: str_list += ['execAffinityParams : ' + str(self.execAffinityParams)] except ValueError: str_list += ['execAffinityParams : '] - {{endif}} - {{if 'CUctxCreateParams_st.numExecAffinityParams' in found_struct}} + + try: str_list += ['numExecAffinityParams : ' + str(self.numExecAffinityParams)] except ValueError: str_list += ['numExecAffinityParams : '] - {{endif}} - {{if 'CUctxCreateParams_st.cigParams' in found_struct}} + + try: str_list += ['cigParams : ' + str(self.cigParams)] except ValueError: str_list += ['cigParams : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'CUctxCreateParams_st.execAffinityParams' in found_struct}} + @property def execAffinityParams(self): arrs = [self._pvt_ptr[0].execAffinityParams + x*sizeof(cydriver.CUexecAffinityParam) for x in range(self._execAffinityParams_length)] @@ -15137,16 +14553,16 @@ cdef class CUctxCreateParams_st: for idx in range(len(val)): string.memcpy(&self._execAffinityParams[idx], (val[idx])._pvt_ptr, sizeof(cydriver.CUexecAffinityParam)) - {{endif}} - {{if 'CUctxCreateParams_st.numExecAffinityParams' in found_struct}} + + @property def numExecAffinityParams(self): return self._pvt_ptr[0].numExecAffinityParams @numExecAffinityParams.setter def numExecAffinityParams(self, int numExecAffinityParams): self._pvt_ptr[0].numExecAffinityParams = numExecAffinityParams - {{endif}} - {{if 'CUctxCreateParams_st.cigParams' in found_struct}} + + @property def cigParams(self): arrs = [self._pvt_ptr[0].cigParams + x*sizeof(cydriver.CUctxCigParam) for x in range(self._cigParams_length)] @@ -15168,9 +14584,7 @@ cdef class CUctxCreateParams_st: for idx in range(len(val)): string.memcpy(&self._cigParams[idx], (val[idx])._pvt_ptr, sizeof(cydriver.CUctxCigParam)) - {{endif}} -{{endif}} -{{if 'CUstreamCigParam_st' in found_struct}} + cdef class CUstreamCigParam_st: """ @@ -15178,15 +14592,15 @@ cdef class CUstreamCigParam_st: Attributes ---------- - {{if 'CUstreamCigParam_st.streamSharedDataType' in found_struct}} + streamSharedDataType : CUstreamCigDataType Type of shared data from graphics client (D3D12). - {{endif}} - {{if 'CUstreamCigParam_st.streamSharedData' in found_struct}} + + streamSharedData : Any Graphics client data handle (ID3D12CommandList/ID3D12GraphicsCommandList). - {{endif}} + Methods ------- @@ -15207,30 +14621,30 @@ cdef class CUstreamCigParam_st: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUstreamCigParam_st.streamSharedDataType' in found_struct}} + try: str_list += ['streamSharedDataType : ' + str(self.streamSharedDataType)] except ValueError: str_list += ['streamSharedDataType : '] - {{endif}} - {{if 'CUstreamCigParam_st.streamSharedData' in found_struct}} + + try: str_list += ['streamSharedData : ' + hex(self.streamSharedData)] except ValueError: str_list += ['streamSharedData : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'CUstreamCigParam_st.streamSharedDataType' in found_struct}} + @property def streamSharedDataType(self): return CUstreamCigDataType(self._pvt_ptr[0].streamSharedDataType) @streamSharedDataType.setter def streamSharedDataType(self, streamSharedDataType not None : CUstreamCigDataType): self._pvt_ptr[0].streamSharedDataType = int(streamSharedDataType) - {{endif}} - {{if 'CUstreamCigParam_st.streamSharedData' in found_struct}} + + @property def streamSharedData(self): return self._pvt_ptr[0].streamSharedData @@ -15238,9 +14652,7 @@ cdef class CUstreamCigParam_st: def streamSharedData(self, streamSharedData): self._cystreamSharedData = _HelperInputVoidPtr(streamSharedData) self._pvt_ptr[0].streamSharedData = self._cystreamSharedData.cptr - {{endif}} -{{endif}} -{{if 'CUstreamCigCaptureParams_st' in found_struct}} + cdef class CUstreamCigCaptureParams_st: """ @@ -15249,11 +14661,11 @@ cdef class CUstreamCigCaptureParams_st: Attributes ---------- - {{if 'CUstreamCigCaptureParams_st.streamCigParams' in found_struct}} + streamCigParams : CUstreamCigParam CIG (CUDA in Graphics) parameters for sharing command list data from D3D12 graphics clients. - {{endif}} + Methods ------- @@ -15269,25 +14681,25 @@ cdef class CUstreamCigCaptureParams_st: pass def __dealloc__(self): pass - {{if 'CUstreamCigCaptureParams_st.streamCigParams' in found_struct}} + if self._streamCigParams is not NULL: free(self._streamCigParams) - {{endif}} + def getPtr(self): return self._pvt_ptr def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUstreamCigCaptureParams_st.streamCigParams' in found_struct}} + try: str_list += ['streamCigParams : ' + str(self.streamCigParams)] except ValueError: str_list += ['streamCigParams : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'CUstreamCigCaptureParams_st.streamCigParams' in found_struct}} + @property def streamCigParams(self): arrs = [self._pvt_ptr[0].streamCigParams + x*sizeof(cydriver.CUstreamCigParam) for x in range(self._streamCigParams_length)] @@ -15309,30 +14721,28 @@ cdef class CUstreamCigCaptureParams_st: for idx in range(len(val)): string.memcpy(&self._streamCigParams[idx], (val[idx])._pvt_ptr, sizeof(cydriver.CUstreamCigParam)) - {{endif}} -{{endif}} -{{if 'CUlibraryHostUniversalFunctionAndDataTable_st' in found_struct}} + cdef class CUlibraryHostUniversalFunctionAndDataTable_st: """ Attributes ---------- - {{if 'CUlibraryHostUniversalFunctionAndDataTable_st.functionTable' in found_struct}} + functionTable : Any - {{endif}} - {{if 'CUlibraryHostUniversalFunctionAndDataTable_st.functionWindowSize' in found_struct}} + + functionWindowSize : size_t - {{endif}} - {{if 'CUlibraryHostUniversalFunctionAndDataTable_st.dataTable' in found_struct}} + + dataTable : Any - {{endif}} - {{if 'CUlibraryHostUniversalFunctionAndDataTable_st.dataWindowSize' in found_struct}} + + dataWindowSize : size_t - {{endif}} + Methods ------- @@ -15353,34 +14763,34 @@ cdef class CUlibraryHostUniversalFunctionAndDataTable_st: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUlibraryHostUniversalFunctionAndDataTable_st.functionTable' in found_struct}} + try: str_list += ['functionTable : ' + hex(self.functionTable)] except ValueError: str_list += ['functionTable : '] - {{endif}} - {{if 'CUlibraryHostUniversalFunctionAndDataTable_st.functionWindowSize' in found_struct}} + + try: str_list += ['functionWindowSize : ' + str(self.functionWindowSize)] except ValueError: str_list += ['functionWindowSize : '] - {{endif}} - {{if 'CUlibraryHostUniversalFunctionAndDataTable_st.dataTable' in found_struct}} + + try: str_list += ['dataTable : ' + hex(self.dataTable)] except ValueError: str_list += ['dataTable : '] - {{endif}} - {{if 'CUlibraryHostUniversalFunctionAndDataTable_st.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 'CUlibraryHostUniversalFunctionAndDataTable_st.functionTable' in found_struct}} + @property def functionTable(self): return self._pvt_ptr[0].functionTable @@ -15388,16 +14798,16 @@ cdef class CUlibraryHostUniversalFunctionAndDataTable_st: def functionTable(self, functionTable): self._cyfunctionTable = _HelperInputVoidPtr(functionTable) self._pvt_ptr[0].functionTable = self._cyfunctionTable.cptr - {{endif}} - {{if 'CUlibraryHostUniversalFunctionAndDataTable_st.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 'CUlibraryHostUniversalFunctionAndDataTable_st.dataTable' in found_struct}} + + @property def dataTable(self): return self._pvt_ptr[0].dataTable @@ -15405,17 +14815,15 @@ cdef class CUlibraryHostUniversalFunctionAndDataTable_st: def dataTable(self, dataTable): self._cydataTable = _HelperInputVoidPtr(dataTable) self._pvt_ptr[0].dataTable = self._cydataTable.cptr - {{endif}} - {{if 'CUlibraryHostUniversalFunctionAndDataTable_st.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 'CUDA_MEMCPY2D_st' in found_struct}} + cdef class CUDA_MEMCPY2D_st: """ @@ -15423,70 +14831,70 @@ cdef class CUDA_MEMCPY2D_st: Attributes ---------- - {{if 'CUDA_MEMCPY2D_st.srcXInBytes' in found_struct}} + srcXInBytes : size_t Source X in bytes - {{endif}} - {{if 'CUDA_MEMCPY2D_st.srcY' in found_struct}} + + srcY : size_t Source Y - {{endif}} - {{if 'CUDA_MEMCPY2D_st.srcMemoryType' in found_struct}} + + srcMemoryType : CUmemorytype Source memory type (host, device, array) - {{endif}} - {{if 'CUDA_MEMCPY2D_st.srcHost' in found_struct}} + + srcHost : Any Source host pointer - {{endif}} - {{if 'CUDA_MEMCPY2D_st.srcDevice' in found_struct}} + + srcDevice : CUdeviceptr Source device pointer - {{endif}} - {{if 'CUDA_MEMCPY2D_st.srcArray' in found_struct}} + + srcArray : CUarray Source array reference - {{endif}} - {{if 'CUDA_MEMCPY2D_st.srcPitch' in found_struct}} + + srcPitch : size_t Source pitch (ignored when src is array) - {{endif}} - {{if 'CUDA_MEMCPY2D_st.dstXInBytes' in found_struct}} + + dstXInBytes : size_t Destination X in bytes - {{endif}} - {{if 'CUDA_MEMCPY2D_st.dstY' in found_struct}} + + dstY : size_t Destination Y - {{endif}} - {{if 'CUDA_MEMCPY2D_st.dstMemoryType' in found_struct}} + + dstMemoryType : CUmemorytype Destination memory type (host, device, array) - {{endif}} - {{if 'CUDA_MEMCPY2D_st.dstHost' in found_struct}} + + dstHost : Any Destination host pointer - {{endif}} - {{if 'CUDA_MEMCPY2D_st.dstDevice' in found_struct}} + + dstDevice : CUdeviceptr Destination device pointer - {{endif}} - {{if 'CUDA_MEMCPY2D_st.dstArray' in found_struct}} + + dstArray : CUarray Destination array reference - {{endif}} - {{if 'CUDA_MEMCPY2D_st.dstPitch' in found_struct}} + + dstPitch : size_t Destination pitch (ignored when dst is array) - {{endif}} - {{if 'CUDA_MEMCPY2D_st.WidthInBytes' in found_struct}} + + WidthInBytes : size_t Width of 2D memory copy in bytes - {{endif}} - {{if 'CUDA_MEMCPY2D_st.Height' in found_struct}} + + Height : size_t Height of 2D memory copy - {{endif}} + Methods ------- @@ -15500,18 +14908,18 @@ cdef class CUDA_MEMCPY2D_st: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): pass - {{if 'CUDA_MEMCPY2D_st.srcDevice' in found_struct}} + self._srcDevice = CUdeviceptr(_ptr=&self._pvt_ptr[0].srcDevice) - {{endif}} - {{if 'CUDA_MEMCPY2D_st.srcArray' in found_struct}} + + self._srcArray = CUarray(_ptr=&self._pvt_ptr[0].srcArray) - {{endif}} - {{if 'CUDA_MEMCPY2D_st.dstDevice' in found_struct}} + + self._dstDevice = CUdeviceptr(_ptr=&self._pvt_ptr[0].dstDevice) - {{endif}} - {{if 'CUDA_MEMCPY2D_st.dstArray' in found_struct}} + + self._dstArray = CUarray(_ptr=&self._pvt_ptr[0].dstArray) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -15519,130 +14927,130 @@ cdef class CUDA_MEMCPY2D_st: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUDA_MEMCPY2D_st.srcXInBytes' in found_struct}} + try: str_list += ['srcXInBytes : ' + str(self.srcXInBytes)] except ValueError: str_list += ['srcXInBytes : '] - {{endif}} - {{if 'CUDA_MEMCPY2D_st.srcY' in found_struct}} + + try: str_list += ['srcY : ' + str(self.srcY)] except ValueError: str_list += ['srcY : '] - {{endif}} - {{if 'CUDA_MEMCPY2D_st.srcMemoryType' in found_struct}} + + try: str_list += ['srcMemoryType : ' + str(self.srcMemoryType)] except ValueError: str_list += ['srcMemoryType : '] - {{endif}} - {{if 'CUDA_MEMCPY2D_st.srcHost' in found_struct}} + + try: str_list += ['srcHost : ' + hex(self.srcHost)] except ValueError: str_list += ['srcHost : '] - {{endif}} - {{if 'CUDA_MEMCPY2D_st.srcDevice' in found_struct}} + + try: str_list += ['srcDevice : ' + str(self.srcDevice)] except ValueError: str_list += ['srcDevice : '] - {{endif}} - {{if 'CUDA_MEMCPY2D_st.srcArray' in found_struct}} + + try: str_list += ['srcArray : ' + str(self.srcArray)] except ValueError: str_list += ['srcArray : '] - {{endif}} - {{if 'CUDA_MEMCPY2D_st.srcPitch' in found_struct}} + + try: str_list += ['srcPitch : ' + str(self.srcPitch)] except ValueError: str_list += ['srcPitch : '] - {{endif}} - {{if 'CUDA_MEMCPY2D_st.dstXInBytes' in found_struct}} + + try: str_list += ['dstXInBytes : ' + str(self.dstXInBytes)] except ValueError: str_list += ['dstXInBytes : '] - {{endif}} - {{if 'CUDA_MEMCPY2D_st.dstY' in found_struct}} + + try: str_list += ['dstY : ' + str(self.dstY)] except ValueError: str_list += ['dstY : '] - {{endif}} - {{if 'CUDA_MEMCPY2D_st.dstMemoryType' in found_struct}} + + try: str_list += ['dstMemoryType : ' + str(self.dstMemoryType)] except ValueError: str_list += ['dstMemoryType : '] - {{endif}} - {{if 'CUDA_MEMCPY2D_st.dstHost' in found_struct}} + + try: str_list += ['dstHost : ' + hex(self.dstHost)] except ValueError: str_list += ['dstHost : '] - {{endif}} - {{if 'CUDA_MEMCPY2D_st.dstDevice' in found_struct}} + + try: str_list += ['dstDevice : ' + str(self.dstDevice)] except ValueError: str_list += ['dstDevice : '] - {{endif}} - {{if 'CUDA_MEMCPY2D_st.dstArray' in found_struct}} + + try: str_list += ['dstArray : ' + str(self.dstArray)] except ValueError: str_list += ['dstArray : '] - {{endif}} - {{if 'CUDA_MEMCPY2D_st.dstPitch' in found_struct}} + + try: str_list += ['dstPitch : ' + str(self.dstPitch)] except ValueError: str_list += ['dstPitch : '] - {{endif}} - {{if 'CUDA_MEMCPY2D_st.WidthInBytes' in found_struct}} + + try: str_list += ['WidthInBytes : ' + str(self.WidthInBytes)] except ValueError: str_list += ['WidthInBytes : '] - {{endif}} - {{if 'CUDA_MEMCPY2D_st.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 'CUDA_MEMCPY2D_st.srcXInBytes' in found_struct}} + @property def srcXInBytes(self): return self._pvt_ptr[0].srcXInBytes @srcXInBytes.setter def srcXInBytes(self, size_t srcXInBytes): self._pvt_ptr[0].srcXInBytes = srcXInBytes - {{endif}} - {{if 'CUDA_MEMCPY2D_st.srcY' in found_struct}} + + @property def srcY(self): return self._pvt_ptr[0].srcY @srcY.setter def srcY(self, size_t srcY): self._pvt_ptr[0].srcY = srcY - {{endif}} - {{if 'CUDA_MEMCPY2D_st.srcMemoryType' in found_struct}} + + @property def srcMemoryType(self): return CUmemorytype(self._pvt_ptr[0].srcMemoryType) @srcMemoryType.setter def srcMemoryType(self, srcMemoryType not None : CUmemorytype): self._pvt_ptr[0].srcMemoryType = int(srcMemoryType) - {{endif}} - {{if 'CUDA_MEMCPY2D_st.srcHost' in found_struct}} + + @property def srcHost(self): return self._pvt_ptr[0].srcHost @@ -15650,8 +15058,8 @@ cdef class CUDA_MEMCPY2D_st: def srcHost(self, srcHost): self._cysrcHost = _HelperInputVoidPtr(srcHost) self._pvt_ptr[0].srcHost = self._cysrcHost.cptr - {{endif}} - {{if 'CUDA_MEMCPY2D_st.srcDevice' in found_struct}} + + @property def srcDevice(self): return self._srcDevice @@ -15668,8 +15076,8 @@ cdef class CUDA_MEMCPY2D_st: cysrcDevice = psrcDevice self._srcDevice._pvt_ptr[0] = cysrcDevice - {{endif}} - {{if 'CUDA_MEMCPY2D_st.srcArray' in found_struct}} + + @property def srcArray(self): return self._srcArray @@ -15685,40 +15093,40 @@ cdef class CUDA_MEMCPY2D_st: psrcArray = int(CUarray(srcArray)) cysrcArray = psrcArray self._srcArray._pvt_ptr[0] = cysrcArray - {{endif}} - {{if 'CUDA_MEMCPY2D_st.srcPitch' in found_struct}} + + @property def srcPitch(self): return self._pvt_ptr[0].srcPitch @srcPitch.setter def srcPitch(self, size_t srcPitch): self._pvt_ptr[0].srcPitch = srcPitch - {{endif}} - {{if 'CUDA_MEMCPY2D_st.dstXInBytes' in found_struct}} + + @property def dstXInBytes(self): return self._pvt_ptr[0].dstXInBytes @dstXInBytes.setter def dstXInBytes(self, size_t dstXInBytes): self._pvt_ptr[0].dstXInBytes = dstXInBytes - {{endif}} - {{if 'CUDA_MEMCPY2D_st.dstY' in found_struct}} + + @property def dstY(self): return self._pvt_ptr[0].dstY @dstY.setter def dstY(self, size_t dstY): self._pvt_ptr[0].dstY = dstY - {{endif}} - {{if 'CUDA_MEMCPY2D_st.dstMemoryType' in found_struct}} + + @property def dstMemoryType(self): return CUmemorytype(self._pvt_ptr[0].dstMemoryType) @dstMemoryType.setter def dstMemoryType(self, dstMemoryType not None : CUmemorytype): self._pvt_ptr[0].dstMemoryType = int(dstMemoryType) - {{endif}} - {{if 'CUDA_MEMCPY2D_st.dstHost' in found_struct}} + + @property def dstHost(self): return self._pvt_ptr[0].dstHost @@ -15726,8 +15134,8 @@ cdef class CUDA_MEMCPY2D_st: def dstHost(self, dstHost): self._cydstHost = _HelperInputVoidPtr(dstHost) self._pvt_ptr[0].dstHost = self._cydstHost.cptr - {{endif}} - {{if 'CUDA_MEMCPY2D_st.dstDevice' in found_struct}} + + @property def dstDevice(self): return self._dstDevice @@ -15744,8 +15152,8 @@ cdef class CUDA_MEMCPY2D_st: cydstDevice = pdstDevice self._dstDevice._pvt_ptr[0] = cydstDevice - {{endif}} - {{if 'CUDA_MEMCPY2D_st.dstArray' in found_struct}} + + @property def dstArray(self): return self._dstArray @@ -15761,33 +15169,31 @@ cdef class CUDA_MEMCPY2D_st: pdstArray = int(CUarray(dstArray)) cydstArray = pdstArray self._dstArray._pvt_ptr[0] = cydstArray - {{endif}} - {{if 'CUDA_MEMCPY2D_st.dstPitch' in found_struct}} + + @property def dstPitch(self): return self._pvt_ptr[0].dstPitch @dstPitch.setter def dstPitch(self, size_t dstPitch): self._pvt_ptr[0].dstPitch = dstPitch - {{endif}} - {{if 'CUDA_MEMCPY2D_st.WidthInBytes' in found_struct}} + + @property def WidthInBytes(self): return self._pvt_ptr[0].WidthInBytes @WidthInBytes.setter def WidthInBytes(self, size_t WidthInBytes): self._pvt_ptr[0].WidthInBytes = WidthInBytes - {{endif}} - {{if 'CUDA_MEMCPY2D_st.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 'CUDA_MEMCPY3D_st' in found_struct}} + cdef class CUDA_MEMCPY3D_st: """ @@ -15795,107 +15201,107 @@ cdef class CUDA_MEMCPY3D_st: Attributes ---------- - {{if 'CUDA_MEMCPY3D_st.srcXInBytes' in found_struct}} + srcXInBytes : size_t Source X in bytes - {{endif}} - {{if 'CUDA_MEMCPY3D_st.srcY' in found_struct}} + + srcY : size_t Source Y - {{endif}} - {{if 'CUDA_MEMCPY3D_st.srcZ' in found_struct}} + + srcZ : size_t Source Z - {{endif}} - {{if 'CUDA_MEMCPY3D_st.srcLOD' in found_struct}} + + srcLOD : size_t Source LOD - {{endif}} - {{if 'CUDA_MEMCPY3D_st.srcMemoryType' in found_struct}} + + srcMemoryType : CUmemorytype Source memory type (host, device, array) - {{endif}} - {{if 'CUDA_MEMCPY3D_st.srcHost' in found_struct}} + + srcHost : Any Source host pointer - {{endif}} - {{if 'CUDA_MEMCPY3D_st.srcDevice' in found_struct}} + + srcDevice : CUdeviceptr Source device pointer - {{endif}} - {{if 'CUDA_MEMCPY3D_st.srcArray' in found_struct}} + + srcArray : CUarray Source array reference - {{endif}} - {{if 'CUDA_MEMCPY3D_st.reserved0' in found_struct}} + + reserved0 : Any Must be NULL - {{endif}} - {{if 'CUDA_MEMCPY3D_st.srcPitch' in found_struct}} + + srcPitch : size_t Source pitch (ignored when src is array) - {{endif}} - {{if 'CUDA_MEMCPY3D_st.srcHeight' in found_struct}} + + srcHeight : size_t Source height (ignored when src is array; may be 0 if Depth==1) - {{endif}} - {{if 'CUDA_MEMCPY3D_st.dstXInBytes' in found_struct}} + + dstXInBytes : size_t Destination X in bytes - {{endif}} - {{if 'CUDA_MEMCPY3D_st.dstY' in found_struct}} + + dstY : size_t Destination Y - {{endif}} - {{if 'CUDA_MEMCPY3D_st.dstZ' in found_struct}} + + dstZ : size_t Destination Z - {{endif}} - {{if 'CUDA_MEMCPY3D_st.dstLOD' in found_struct}} + + dstLOD : size_t Destination LOD - {{endif}} - {{if 'CUDA_MEMCPY3D_st.dstMemoryType' in found_struct}} + + dstMemoryType : CUmemorytype Destination memory type (host, device, array) - {{endif}} - {{if 'CUDA_MEMCPY3D_st.dstHost' in found_struct}} + + dstHost : Any Destination host pointer - {{endif}} - {{if 'CUDA_MEMCPY3D_st.dstDevice' in found_struct}} + + dstDevice : CUdeviceptr Destination device pointer - {{endif}} - {{if 'CUDA_MEMCPY3D_st.dstArray' in found_struct}} + + dstArray : CUarray Destination array reference - {{endif}} - {{if 'CUDA_MEMCPY3D_st.reserved1' in found_struct}} + + reserved1 : Any Must be NULL - {{endif}} - {{if 'CUDA_MEMCPY3D_st.dstPitch' in found_struct}} + + dstPitch : size_t Destination pitch (ignored when dst is array) - {{endif}} - {{if 'CUDA_MEMCPY3D_st.dstHeight' in found_struct}} + + dstHeight : size_t Destination height (ignored when dst is array; may be 0 if Depth==1) - {{endif}} - {{if 'CUDA_MEMCPY3D_st.WidthInBytes' in found_struct}} + + WidthInBytes : size_t Width of 3D memory copy in bytes - {{endif}} - {{if 'CUDA_MEMCPY3D_st.Height' in found_struct}} + + Height : size_t Height of 3D memory copy - {{endif}} - {{if 'CUDA_MEMCPY3D_st.Depth' in found_struct}} + + Depth : size_t Depth of 3D memory copy - {{endif}} + Methods ------- @@ -15909,18 +15315,18 @@ cdef class CUDA_MEMCPY3D_st: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): pass - {{if 'CUDA_MEMCPY3D_st.srcDevice' in found_struct}} + self._srcDevice = CUdeviceptr(_ptr=&self._pvt_ptr[0].srcDevice) - {{endif}} - {{if 'CUDA_MEMCPY3D_st.srcArray' in found_struct}} + + self._srcArray = CUarray(_ptr=&self._pvt_ptr[0].srcArray) - {{endif}} - {{if 'CUDA_MEMCPY3D_st.dstDevice' in found_struct}} + + self._dstDevice = CUdeviceptr(_ptr=&self._pvt_ptr[0].dstDevice) - {{endif}} - {{if 'CUDA_MEMCPY3D_st.dstArray' in found_struct}} + + self._dstArray = CUarray(_ptr=&self._pvt_ptr[0].dstArray) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -15928,200 +15334,200 @@ cdef class CUDA_MEMCPY3D_st: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUDA_MEMCPY3D_st.srcXInBytes' in found_struct}} + try: str_list += ['srcXInBytes : ' + str(self.srcXInBytes)] except ValueError: str_list += ['srcXInBytes : '] - {{endif}} - {{if 'CUDA_MEMCPY3D_st.srcY' in found_struct}} + + try: str_list += ['srcY : ' + str(self.srcY)] except ValueError: str_list += ['srcY : '] - {{endif}} - {{if 'CUDA_MEMCPY3D_st.srcZ' in found_struct}} + + try: str_list += ['srcZ : ' + str(self.srcZ)] except ValueError: str_list += ['srcZ : '] - {{endif}} - {{if 'CUDA_MEMCPY3D_st.srcLOD' in found_struct}} + + try: str_list += ['srcLOD : ' + str(self.srcLOD)] except ValueError: str_list += ['srcLOD : '] - {{endif}} - {{if 'CUDA_MEMCPY3D_st.srcMemoryType' in found_struct}} + + try: str_list += ['srcMemoryType : ' + str(self.srcMemoryType)] except ValueError: str_list += ['srcMemoryType : '] - {{endif}} - {{if 'CUDA_MEMCPY3D_st.srcHost' in found_struct}} + + try: str_list += ['srcHost : ' + hex(self.srcHost)] except ValueError: str_list += ['srcHost : '] - {{endif}} - {{if 'CUDA_MEMCPY3D_st.srcDevice' in found_struct}} + + try: str_list += ['srcDevice : ' + str(self.srcDevice)] except ValueError: str_list += ['srcDevice : '] - {{endif}} - {{if 'CUDA_MEMCPY3D_st.srcArray' in found_struct}} + + try: str_list += ['srcArray : ' + str(self.srcArray)] except ValueError: str_list += ['srcArray : '] - {{endif}} - {{if 'CUDA_MEMCPY3D_st.reserved0' in found_struct}} + + try: str_list += ['reserved0 : ' + hex(self.reserved0)] except ValueError: str_list += ['reserved0 : '] - {{endif}} - {{if 'CUDA_MEMCPY3D_st.srcPitch' in found_struct}} + + try: str_list += ['srcPitch : ' + str(self.srcPitch)] except ValueError: str_list += ['srcPitch : '] - {{endif}} - {{if 'CUDA_MEMCPY3D_st.srcHeight' in found_struct}} + + try: str_list += ['srcHeight : ' + str(self.srcHeight)] except ValueError: str_list += ['srcHeight : '] - {{endif}} - {{if 'CUDA_MEMCPY3D_st.dstXInBytes' in found_struct}} + + try: str_list += ['dstXInBytes : ' + str(self.dstXInBytes)] except ValueError: str_list += ['dstXInBytes : '] - {{endif}} - {{if 'CUDA_MEMCPY3D_st.dstY' in found_struct}} + + try: str_list += ['dstY : ' + str(self.dstY)] except ValueError: str_list += ['dstY : '] - {{endif}} - {{if 'CUDA_MEMCPY3D_st.dstZ' in found_struct}} + + try: str_list += ['dstZ : ' + str(self.dstZ)] except ValueError: str_list += ['dstZ : '] - {{endif}} - {{if 'CUDA_MEMCPY3D_st.dstLOD' in found_struct}} + + try: str_list += ['dstLOD : ' + str(self.dstLOD)] except ValueError: str_list += ['dstLOD : '] - {{endif}} - {{if 'CUDA_MEMCPY3D_st.dstMemoryType' in found_struct}} + + try: str_list += ['dstMemoryType : ' + str(self.dstMemoryType)] except ValueError: str_list += ['dstMemoryType : '] - {{endif}} - {{if 'CUDA_MEMCPY3D_st.dstHost' in found_struct}} + + try: str_list += ['dstHost : ' + hex(self.dstHost)] except ValueError: str_list += ['dstHost : '] - {{endif}} - {{if 'CUDA_MEMCPY3D_st.dstDevice' in found_struct}} + + try: str_list += ['dstDevice : ' + str(self.dstDevice)] except ValueError: str_list += ['dstDevice : '] - {{endif}} - {{if 'CUDA_MEMCPY3D_st.dstArray' in found_struct}} + + try: str_list += ['dstArray : ' + str(self.dstArray)] except ValueError: str_list += ['dstArray : '] - {{endif}} - {{if 'CUDA_MEMCPY3D_st.reserved1' in found_struct}} + + try: str_list += ['reserved1 : ' + hex(self.reserved1)] except ValueError: str_list += ['reserved1 : '] - {{endif}} - {{if 'CUDA_MEMCPY3D_st.dstPitch' in found_struct}} + + try: str_list += ['dstPitch : ' + str(self.dstPitch)] except ValueError: str_list += ['dstPitch : '] - {{endif}} - {{if 'CUDA_MEMCPY3D_st.dstHeight' in found_struct}} + + try: str_list += ['dstHeight : ' + str(self.dstHeight)] except ValueError: str_list += ['dstHeight : '] - {{endif}} - {{if 'CUDA_MEMCPY3D_st.WidthInBytes' in found_struct}} + + try: str_list += ['WidthInBytes : ' + str(self.WidthInBytes)] except ValueError: str_list += ['WidthInBytes : '] - {{endif}} - {{if 'CUDA_MEMCPY3D_st.Height' in found_struct}} + + try: str_list += ['Height : ' + str(self.Height)] except ValueError: str_list += ['Height : '] - {{endif}} - {{if 'CUDA_MEMCPY3D_st.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 'CUDA_MEMCPY3D_st.srcXInBytes' in found_struct}} + @property def srcXInBytes(self): return self._pvt_ptr[0].srcXInBytes @srcXInBytes.setter def srcXInBytes(self, size_t srcXInBytes): self._pvt_ptr[0].srcXInBytes = srcXInBytes - {{endif}} - {{if 'CUDA_MEMCPY3D_st.srcY' in found_struct}} + + @property def srcY(self): return self._pvt_ptr[0].srcY @srcY.setter def srcY(self, size_t srcY): self._pvt_ptr[0].srcY = srcY - {{endif}} - {{if 'CUDA_MEMCPY3D_st.srcZ' in found_struct}} + + @property def srcZ(self): return self._pvt_ptr[0].srcZ @srcZ.setter def srcZ(self, size_t srcZ): self._pvt_ptr[0].srcZ = srcZ - {{endif}} - {{if 'CUDA_MEMCPY3D_st.srcLOD' in found_struct}} + + @property def srcLOD(self): return self._pvt_ptr[0].srcLOD @srcLOD.setter def srcLOD(self, size_t srcLOD): self._pvt_ptr[0].srcLOD = srcLOD - {{endif}} - {{if 'CUDA_MEMCPY3D_st.srcMemoryType' in found_struct}} + + @property def srcMemoryType(self): return CUmemorytype(self._pvt_ptr[0].srcMemoryType) @srcMemoryType.setter def srcMemoryType(self, srcMemoryType not None : CUmemorytype): self._pvt_ptr[0].srcMemoryType = int(srcMemoryType) - {{endif}} - {{if 'CUDA_MEMCPY3D_st.srcHost' in found_struct}} + + @property def srcHost(self): return self._pvt_ptr[0].srcHost @@ -16129,8 +15535,8 @@ cdef class CUDA_MEMCPY3D_st: def srcHost(self, srcHost): self._cysrcHost = _HelperInputVoidPtr(srcHost) self._pvt_ptr[0].srcHost = self._cysrcHost.cptr - {{endif}} - {{if 'CUDA_MEMCPY3D_st.srcDevice' in found_struct}} + + @property def srcDevice(self): return self._srcDevice @@ -16147,8 +15553,8 @@ cdef class CUDA_MEMCPY3D_st: cysrcDevice = psrcDevice self._srcDevice._pvt_ptr[0] = cysrcDevice - {{endif}} - {{if 'CUDA_MEMCPY3D_st.srcArray' in found_struct}} + + @property def srcArray(self): return self._srcArray @@ -16164,8 +15570,8 @@ cdef class CUDA_MEMCPY3D_st: psrcArray = int(CUarray(srcArray)) cysrcArray = psrcArray self._srcArray._pvt_ptr[0] = cysrcArray - {{endif}} - {{if 'CUDA_MEMCPY3D_st.reserved0' in found_struct}} + + @property def reserved0(self): return self._pvt_ptr[0].reserved0 @@ -16173,64 +15579,64 @@ cdef class CUDA_MEMCPY3D_st: def reserved0(self, reserved0): self._cyreserved0 = _HelperInputVoidPtr(reserved0) self._pvt_ptr[0].reserved0 = self._cyreserved0.cptr - {{endif}} - {{if 'CUDA_MEMCPY3D_st.srcPitch' in found_struct}} + + @property def srcPitch(self): return self._pvt_ptr[0].srcPitch @srcPitch.setter def srcPitch(self, size_t srcPitch): self._pvt_ptr[0].srcPitch = srcPitch - {{endif}} - {{if 'CUDA_MEMCPY3D_st.srcHeight' in found_struct}} + + @property def srcHeight(self): return self._pvt_ptr[0].srcHeight @srcHeight.setter def srcHeight(self, size_t srcHeight): self._pvt_ptr[0].srcHeight = srcHeight - {{endif}} - {{if 'CUDA_MEMCPY3D_st.dstXInBytes' in found_struct}} + + @property def dstXInBytes(self): return self._pvt_ptr[0].dstXInBytes @dstXInBytes.setter def dstXInBytes(self, size_t dstXInBytes): self._pvt_ptr[0].dstXInBytes = dstXInBytes - {{endif}} - {{if 'CUDA_MEMCPY3D_st.dstY' in found_struct}} + + @property def dstY(self): return self._pvt_ptr[0].dstY @dstY.setter def dstY(self, size_t dstY): self._pvt_ptr[0].dstY = dstY - {{endif}} - {{if 'CUDA_MEMCPY3D_st.dstZ' in found_struct}} + + @property def dstZ(self): return self._pvt_ptr[0].dstZ @dstZ.setter def dstZ(self, size_t dstZ): self._pvt_ptr[0].dstZ = dstZ - {{endif}} - {{if 'CUDA_MEMCPY3D_st.dstLOD' in found_struct}} + + @property def dstLOD(self): return self._pvt_ptr[0].dstLOD @dstLOD.setter def dstLOD(self, size_t dstLOD): self._pvt_ptr[0].dstLOD = dstLOD - {{endif}} - {{if 'CUDA_MEMCPY3D_st.dstMemoryType' in found_struct}} + + @property def dstMemoryType(self): return CUmemorytype(self._pvt_ptr[0].dstMemoryType) @dstMemoryType.setter def dstMemoryType(self, dstMemoryType not None : CUmemorytype): self._pvt_ptr[0].dstMemoryType = int(dstMemoryType) - {{endif}} - {{if 'CUDA_MEMCPY3D_st.dstHost' in found_struct}} + + @property def dstHost(self): return self._pvt_ptr[0].dstHost @@ -16238,8 +15644,8 @@ cdef class CUDA_MEMCPY3D_st: def dstHost(self, dstHost): self._cydstHost = _HelperInputVoidPtr(dstHost) self._pvt_ptr[0].dstHost = self._cydstHost.cptr - {{endif}} - {{if 'CUDA_MEMCPY3D_st.dstDevice' in found_struct}} + + @property def dstDevice(self): return self._dstDevice @@ -16256,8 +15662,8 @@ cdef class CUDA_MEMCPY3D_st: cydstDevice = pdstDevice self._dstDevice._pvt_ptr[0] = cydstDevice - {{endif}} - {{if 'CUDA_MEMCPY3D_st.dstArray' in found_struct}} + + @property def dstArray(self): return self._dstArray @@ -16273,8 +15679,8 @@ cdef class CUDA_MEMCPY3D_st: pdstArray = int(CUarray(dstArray)) cydstArray = pdstArray self._dstArray._pvt_ptr[0] = cydstArray - {{endif}} - {{if 'CUDA_MEMCPY3D_st.reserved1' in found_struct}} + + @property def reserved1(self): return self._pvt_ptr[0].reserved1 @@ -16282,49 +15688,47 @@ cdef class CUDA_MEMCPY3D_st: def reserved1(self, reserved1): self._cyreserved1 = _HelperInputVoidPtr(reserved1) self._pvt_ptr[0].reserved1 = self._cyreserved1.cptr - {{endif}} - {{if 'CUDA_MEMCPY3D_st.dstPitch' in found_struct}} + + @property def dstPitch(self): return self._pvt_ptr[0].dstPitch @dstPitch.setter def dstPitch(self, size_t dstPitch): self._pvt_ptr[0].dstPitch = dstPitch - {{endif}} - {{if 'CUDA_MEMCPY3D_st.dstHeight' in found_struct}} + + @property def dstHeight(self): return self._pvt_ptr[0].dstHeight @dstHeight.setter def dstHeight(self, size_t dstHeight): self._pvt_ptr[0].dstHeight = dstHeight - {{endif}} - {{if 'CUDA_MEMCPY3D_st.WidthInBytes' in found_struct}} + + @property def WidthInBytes(self): return self._pvt_ptr[0].WidthInBytes @WidthInBytes.setter def WidthInBytes(self, size_t WidthInBytes): self._pvt_ptr[0].WidthInBytes = WidthInBytes - {{endif}} - {{if 'CUDA_MEMCPY3D_st.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 'CUDA_MEMCPY3D_st.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 'CUDA_MEMCPY3D_PEER_st' in found_struct}} + cdef class CUDA_MEMCPY3D_PEER_st: """ @@ -16332,108 +15736,108 @@ cdef class CUDA_MEMCPY3D_PEER_st: Attributes ---------- - {{if 'CUDA_MEMCPY3D_PEER_st.srcXInBytes' in found_struct}} + srcXInBytes : size_t Source X in bytes - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.srcY' in found_struct}} + + srcY : size_t Source Y - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.srcZ' in found_struct}} + + srcZ : size_t Source Z - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.srcLOD' in found_struct}} + + srcLOD : size_t Source LOD - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.srcMemoryType' in found_struct}} + + srcMemoryType : CUmemorytype Source memory type (host, device, array) - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.srcHost' in found_struct}} + + srcHost : Any Source host pointer - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.srcDevice' in found_struct}} + + srcDevice : CUdeviceptr Source device pointer - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.srcArray' in found_struct}} + + srcArray : CUarray Source array reference - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.srcContext' in found_struct}} + + srcContext : CUcontext Source context (ignored with srcMemoryType is CU_MEMORYTYPE_ARRAY) - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.srcPitch' in found_struct}} + + srcPitch : size_t Source pitch (ignored when src is array) - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.srcHeight' in found_struct}} + + srcHeight : size_t Source height (ignored when src is array; may be 0 if Depth==1) - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.dstXInBytes' in found_struct}} + + dstXInBytes : size_t Destination X in bytes - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.dstY' in found_struct}} + + dstY : size_t Destination Y - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.dstZ' in found_struct}} + + dstZ : size_t Destination Z - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.dstLOD' in found_struct}} + + dstLOD : size_t Destination LOD - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.dstMemoryType' in found_struct}} + + dstMemoryType : CUmemorytype Destination memory type (host, device, array) - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.dstHost' in found_struct}} + + dstHost : Any Destination host pointer - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.dstDevice' in found_struct}} + + dstDevice : CUdeviceptr Destination device pointer - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.dstArray' in found_struct}} + + dstArray : CUarray Destination array reference - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.dstContext' in found_struct}} + + dstContext : CUcontext Destination context (ignored with dstMemoryType is CU_MEMORYTYPE_ARRAY) - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.dstPitch' in found_struct}} + + dstPitch : size_t Destination pitch (ignored when dst is array) - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.dstHeight' in found_struct}} + + dstHeight : size_t Destination height (ignored when dst is array; may be 0 if Depth==1) - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.WidthInBytes' in found_struct}} + + WidthInBytes : size_t Width of 3D memory copy in bytes - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.Height' in found_struct}} + + Height : size_t Height of 3D memory copy - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.Depth' in found_struct}} + + Depth : size_t Depth of 3D memory copy - {{endif}} + Methods ------- @@ -16447,24 +15851,24 @@ cdef class CUDA_MEMCPY3D_PEER_st: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): pass - {{if 'CUDA_MEMCPY3D_PEER_st.srcDevice' in found_struct}} + self._srcDevice = CUdeviceptr(_ptr=&self._pvt_ptr[0].srcDevice) - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.srcArray' in found_struct}} + + self._srcArray = CUarray(_ptr=&self._pvt_ptr[0].srcArray) - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.srcContext' in found_struct}} + + self._srcContext = CUcontext(_ptr=&self._pvt_ptr[0].srcContext) - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.dstDevice' in found_struct}} + + self._dstDevice = CUdeviceptr(_ptr=&self._pvt_ptr[0].dstDevice) - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.dstArray' in found_struct}} + + self._dstArray = CUarray(_ptr=&self._pvt_ptr[0].dstArray) - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.dstContext' in found_struct}} + + self._dstContext = CUcontext(_ptr=&self._pvt_ptr[0].dstContext) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -16472,200 +15876,200 @@ cdef class CUDA_MEMCPY3D_PEER_st: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUDA_MEMCPY3D_PEER_st.srcXInBytes' in found_struct}} + try: str_list += ['srcXInBytes : ' + str(self.srcXInBytes)] except ValueError: str_list += ['srcXInBytes : '] - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.srcY' in found_struct}} + + try: str_list += ['srcY : ' + str(self.srcY)] except ValueError: str_list += ['srcY : '] - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.srcZ' in found_struct}} + + try: str_list += ['srcZ : ' + str(self.srcZ)] except ValueError: str_list += ['srcZ : '] - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.srcLOD' in found_struct}} + + try: str_list += ['srcLOD : ' + str(self.srcLOD)] except ValueError: str_list += ['srcLOD : '] - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.srcMemoryType' in found_struct}} + + try: str_list += ['srcMemoryType : ' + str(self.srcMemoryType)] except ValueError: str_list += ['srcMemoryType : '] - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.srcHost' in found_struct}} + + try: str_list += ['srcHost : ' + hex(self.srcHost)] except ValueError: str_list += ['srcHost : '] - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.srcDevice' in found_struct}} + + try: str_list += ['srcDevice : ' + str(self.srcDevice)] except ValueError: str_list += ['srcDevice : '] - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.srcArray' in found_struct}} + + try: str_list += ['srcArray : ' + str(self.srcArray)] except ValueError: str_list += ['srcArray : '] - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.srcContext' in found_struct}} + + try: str_list += ['srcContext : ' + str(self.srcContext)] except ValueError: str_list += ['srcContext : '] - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.srcPitch' in found_struct}} + + try: str_list += ['srcPitch : ' + str(self.srcPitch)] except ValueError: str_list += ['srcPitch : '] - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.srcHeight' in found_struct}} + + try: str_list += ['srcHeight : ' + str(self.srcHeight)] except ValueError: str_list += ['srcHeight : '] - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.dstXInBytes' in found_struct}} + + try: str_list += ['dstXInBytes : ' + str(self.dstXInBytes)] except ValueError: str_list += ['dstXInBytes : '] - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.dstY' in found_struct}} + + try: str_list += ['dstY : ' + str(self.dstY)] except ValueError: str_list += ['dstY : '] - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.dstZ' in found_struct}} + + try: str_list += ['dstZ : ' + str(self.dstZ)] except ValueError: str_list += ['dstZ : '] - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.dstLOD' in found_struct}} + + try: str_list += ['dstLOD : ' + str(self.dstLOD)] except ValueError: str_list += ['dstLOD : '] - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.dstMemoryType' in found_struct}} + + try: str_list += ['dstMemoryType : ' + str(self.dstMemoryType)] except ValueError: str_list += ['dstMemoryType : '] - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.dstHost' in found_struct}} + + try: str_list += ['dstHost : ' + hex(self.dstHost)] except ValueError: str_list += ['dstHost : '] - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.dstDevice' in found_struct}} + + try: str_list += ['dstDevice : ' + str(self.dstDevice)] except ValueError: str_list += ['dstDevice : '] - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.dstArray' in found_struct}} + + try: str_list += ['dstArray : ' + str(self.dstArray)] except ValueError: str_list += ['dstArray : '] - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.dstContext' in found_struct}} + + try: str_list += ['dstContext : ' + str(self.dstContext)] except ValueError: str_list += ['dstContext : '] - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.dstPitch' in found_struct}} + + try: str_list += ['dstPitch : ' + str(self.dstPitch)] except ValueError: str_list += ['dstPitch : '] - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.dstHeight' in found_struct}} + + try: str_list += ['dstHeight : ' + str(self.dstHeight)] except ValueError: str_list += ['dstHeight : '] - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.WidthInBytes' in found_struct}} + + try: str_list += ['WidthInBytes : ' + str(self.WidthInBytes)] except ValueError: str_list += ['WidthInBytes : '] - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.Height' in found_struct}} + + try: str_list += ['Height : ' + str(self.Height)] except ValueError: str_list += ['Height : '] - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.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 'CUDA_MEMCPY3D_PEER_st.srcXInBytes' in found_struct}} + @property def srcXInBytes(self): return self._pvt_ptr[0].srcXInBytes @srcXInBytes.setter def srcXInBytes(self, size_t srcXInBytes): self._pvt_ptr[0].srcXInBytes = srcXInBytes - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.srcY' in found_struct}} + + @property def srcY(self): return self._pvt_ptr[0].srcY @srcY.setter def srcY(self, size_t srcY): self._pvt_ptr[0].srcY = srcY - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.srcZ' in found_struct}} + + @property def srcZ(self): return self._pvt_ptr[0].srcZ @srcZ.setter def srcZ(self, size_t srcZ): self._pvt_ptr[0].srcZ = srcZ - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.srcLOD' in found_struct}} + + @property def srcLOD(self): return self._pvt_ptr[0].srcLOD @srcLOD.setter def srcLOD(self, size_t srcLOD): self._pvt_ptr[0].srcLOD = srcLOD - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.srcMemoryType' in found_struct}} + + @property def srcMemoryType(self): return CUmemorytype(self._pvt_ptr[0].srcMemoryType) @srcMemoryType.setter def srcMemoryType(self, srcMemoryType not None : CUmemorytype): self._pvt_ptr[0].srcMemoryType = int(srcMemoryType) - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.srcHost' in found_struct}} + + @property def srcHost(self): return self._pvt_ptr[0].srcHost @@ -16673,8 +16077,8 @@ cdef class CUDA_MEMCPY3D_PEER_st: def srcHost(self, srcHost): self._cysrcHost = _HelperInputVoidPtr(srcHost) self._pvt_ptr[0].srcHost = self._cysrcHost.cptr - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.srcDevice' in found_struct}} + + @property def srcDevice(self): return self._srcDevice @@ -16691,8 +16095,8 @@ cdef class CUDA_MEMCPY3D_PEER_st: cysrcDevice = psrcDevice self._srcDevice._pvt_ptr[0] = cysrcDevice - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.srcArray' in found_struct}} + + @property def srcArray(self): return self._srcArray @@ -16708,8 +16112,8 @@ cdef class CUDA_MEMCPY3D_PEER_st: psrcArray = int(CUarray(srcArray)) cysrcArray = psrcArray self._srcArray._pvt_ptr[0] = cysrcArray - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.srcContext' in found_struct}} + + @property def srcContext(self): return self._srcContext @@ -16725,64 +16129,64 @@ cdef class CUDA_MEMCPY3D_PEER_st: psrcContext = int(CUcontext(srcContext)) cysrcContext = psrcContext self._srcContext._pvt_ptr[0] = cysrcContext - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.srcPitch' in found_struct}} + + @property def srcPitch(self): return self._pvt_ptr[0].srcPitch @srcPitch.setter def srcPitch(self, size_t srcPitch): self._pvt_ptr[0].srcPitch = srcPitch - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.srcHeight' in found_struct}} + + @property def srcHeight(self): return self._pvt_ptr[0].srcHeight @srcHeight.setter def srcHeight(self, size_t srcHeight): self._pvt_ptr[0].srcHeight = srcHeight - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.dstXInBytes' in found_struct}} + + @property def dstXInBytes(self): return self._pvt_ptr[0].dstXInBytes @dstXInBytes.setter def dstXInBytes(self, size_t dstXInBytes): self._pvt_ptr[0].dstXInBytes = dstXInBytes - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.dstY' in found_struct}} + + @property def dstY(self): return self._pvt_ptr[0].dstY @dstY.setter def dstY(self, size_t dstY): self._pvt_ptr[0].dstY = dstY - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.dstZ' in found_struct}} + + @property def dstZ(self): return self._pvt_ptr[0].dstZ @dstZ.setter def dstZ(self, size_t dstZ): self._pvt_ptr[0].dstZ = dstZ - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.dstLOD' in found_struct}} + + @property def dstLOD(self): return self._pvt_ptr[0].dstLOD @dstLOD.setter def dstLOD(self, size_t dstLOD): self._pvt_ptr[0].dstLOD = dstLOD - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.dstMemoryType' in found_struct}} + + @property def dstMemoryType(self): return CUmemorytype(self._pvt_ptr[0].dstMemoryType) @dstMemoryType.setter def dstMemoryType(self, dstMemoryType not None : CUmemorytype): self._pvt_ptr[0].dstMemoryType = int(dstMemoryType) - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.dstHost' in found_struct}} + + @property def dstHost(self): return self._pvt_ptr[0].dstHost @@ -16790,8 +16194,8 @@ cdef class CUDA_MEMCPY3D_PEER_st: def dstHost(self, dstHost): self._cydstHost = _HelperInputVoidPtr(dstHost) self._pvt_ptr[0].dstHost = self._cydstHost.cptr - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.dstDevice' in found_struct}} + + @property def dstDevice(self): return self._dstDevice @@ -16808,8 +16212,8 @@ cdef class CUDA_MEMCPY3D_PEER_st: cydstDevice = pdstDevice self._dstDevice._pvt_ptr[0] = cydstDevice - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.dstArray' in found_struct}} + + @property def dstArray(self): return self._dstArray @@ -16825,8 +16229,8 @@ cdef class CUDA_MEMCPY3D_PEER_st: pdstArray = int(CUarray(dstArray)) cydstArray = pdstArray self._dstArray._pvt_ptr[0] = cydstArray - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.dstContext' in found_struct}} + + @property def dstContext(self): return self._dstContext @@ -16842,49 +16246,47 @@ cdef class CUDA_MEMCPY3D_PEER_st: pdstContext = int(CUcontext(dstContext)) cydstContext = pdstContext self._dstContext._pvt_ptr[0] = cydstContext - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.dstPitch' in found_struct}} + + @property def dstPitch(self): return self._pvt_ptr[0].dstPitch @dstPitch.setter def dstPitch(self, size_t dstPitch): self._pvt_ptr[0].dstPitch = dstPitch - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.dstHeight' in found_struct}} + + @property def dstHeight(self): return self._pvt_ptr[0].dstHeight @dstHeight.setter def dstHeight(self, size_t dstHeight): self._pvt_ptr[0].dstHeight = dstHeight - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.WidthInBytes' in found_struct}} + + @property def WidthInBytes(self): return self._pvt_ptr[0].WidthInBytes @WidthInBytes.setter def WidthInBytes(self, size_t WidthInBytes): self._pvt_ptr[0].WidthInBytes = WidthInBytes - {{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st.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 'CUDA_MEMCPY3D_PEER_st.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 'CUDA_MEMCPY_NODE_PARAMS_st' in found_struct}} + cdef class CUDA_MEMCPY_NODE_PARAMS_st: """ @@ -16892,22 +16294,22 @@ cdef class CUDA_MEMCPY_NODE_PARAMS_st: Attributes ---------- - {{if 'CUDA_MEMCPY_NODE_PARAMS_st.flags' in found_struct}} + flags : int Must be zero - {{endif}} - {{if 'CUDA_MEMCPY_NODE_PARAMS_st.reserved' in found_struct}} + + reserved : int Must be zero - {{endif}} - {{if 'CUDA_MEMCPY_NODE_PARAMS_st.copyCtx' in found_struct}} + + copyCtx : CUcontext Context on which to run the node - {{endif}} - {{if 'CUDA_MEMCPY_NODE_PARAMS_st.copyParams' in found_struct}} + + copyParams : CUDA_MEMCPY3D Parameters for the memory copy - {{endif}} + Methods ------- @@ -16921,12 +16323,12 @@ cdef class CUDA_MEMCPY_NODE_PARAMS_st: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): pass - {{if 'CUDA_MEMCPY_NODE_PARAMS_st.copyCtx' in found_struct}} + self._copyCtx = CUcontext(_ptr=&self._pvt_ptr[0].copyCtx) - {{endif}} - {{if 'CUDA_MEMCPY_NODE_PARAMS_st.copyParams' in found_struct}} + + self._copyParams = CUDA_MEMCPY3D(_ptr=&self._pvt_ptr[0].copyParams) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -16934,50 +16336,50 @@ cdef class CUDA_MEMCPY_NODE_PARAMS_st: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUDA_MEMCPY_NODE_PARAMS_st.flags' in found_struct}} + try: str_list += ['flags : ' + str(self.flags)] except ValueError: str_list += ['flags : '] - {{endif}} - {{if 'CUDA_MEMCPY_NODE_PARAMS_st.reserved' in found_struct}} + + try: str_list += ['reserved : ' + str(self.reserved)] except ValueError: str_list += ['reserved : '] - {{endif}} - {{if 'CUDA_MEMCPY_NODE_PARAMS_st.copyCtx' in found_struct}} + + try: str_list += ['copyCtx : ' + str(self.copyCtx)] except ValueError: str_list += ['copyCtx : '] - {{endif}} - {{if 'CUDA_MEMCPY_NODE_PARAMS_st.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 'CUDA_MEMCPY_NODE_PARAMS_st.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 'CUDA_MEMCPY_NODE_PARAMS_st.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 'CUDA_MEMCPY_NODE_PARAMS_st.copyCtx' in found_struct}} + + @property def copyCtx(self): return self._copyCtx @@ -16993,17 +16395,15 @@ cdef class CUDA_MEMCPY_NODE_PARAMS_st: pcopyCtx = int(CUcontext(copyCtx)) cycopyCtx = pcopyCtx self._copyCtx._pvt_ptr[0] = cycopyCtx - {{endif}} - {{if 'CUDA_MEMCPY_NODE_PARAMS_st.copyParams' in found_struct}} + + @property def copyParams(self): return self._copyParams @copyParams.setter def copyParams(self, copyParams not None : CUDA_MEMCPY3D): - string.memcpy(&self._pvt_ptr[0].copyParams, copyParams.getPtr(), sizeof(self._pvt_ptr[0].copyParams)) - {{endif}} -{{endif}} -{{if 'CUDA_ARRAY_DESCRIPTOR_st' in found_struct}} + string.memcpy(&self._pvt_ptr[0].copyParams, copyParams.getPtr(), sizeof(self._pvt_ptr[0].copyParams)) + cdef class CUDA_ARRAY_DESCRIPTOR_st: """ @@ -17011,22 +16411,22 @@ cdef class CUDA_ARRAY_DESCRIPTOR_st: Attributes ---------- - {{if 'CUDA_ARRAY_DESCRIPTOR_st.Width' in found_struct}} + Width : size_t Width of array - {{endif}} - {{if 'CUDA_ARRAY_DESCRIPTOR_st.Height' in found_struct}} + + Height : size_t Height of array - {{endif}} - {{if 'CUDA_ARRAY_DESCRIPTOR_st.Format' in found_struct}} + + Format : CUarray_format Array format - {{endif}} - {{if 'CUDA_ARRAY_DESCRIPTOR_st.NumChannels' in found_struct}} + + NumChannels : unsigned int Channels per array element - {{endif}} + Methods ------- @@ -17047,67 +16447,65 @@ cdef class CUDA_ARRAY_DESCRIPTOR_st: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUDA_ARRAY_DESCRIPTOR_st.Width' in found_struct}} + try: str_list += ['Width : ' + str(self.Width)] except ValueError: str_list += ['Width : '] - {{endif}} - {{if 'CUDA_ARRAY_DESCRIPTOR_st.Height' in found_struct}} + + try: str_list += ['Height : ' + str(self.Height)] except ValueError: str_list += ['Height : '] - {{endif}} - {{if 'CUDA_ARRAY_DESCRIPTOR_st.Format' in found_struct}} + + try: str_list += ['Format : ' + str(self.Format)] except ValueError: str_list += ['Format : '] - {{endif}} - {{if 'CUDA_ARRAY_DESCRIPTOR_st.NumChannels' in found_struct}} + + try: str_list += ['NumChannels : ' + str(self.NumChannels)] except ValueError: str_list += ['NumChannels : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'CUDA_ARRAY_DESCRIPTOR_st.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 'CUDA_ARRAY_DESCRIPTOR_st.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 'CUDA_ARRAY_DESCRIPTOR_st.Format' in found_struct}} + + @property def Format(self): 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) - {{endif}} - {{if 'CUDA_ARRAY_DESCRIPTOR_st.NumChannels' in found_struct}} + + @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}} -{{endif}} -{{if 'CUDA_ARRAY3D_DESCRIPTOR_st' in found_struct}} + cdef class CUDA_ARRAY3D_DESCRIPTOR_st: """ @@ -17115,30 +16513,30 @@ cdef class CUDA_ARRAY3D_DESCRIPTOR_st: Attributes ---------- - {{if 'CUDA_ARRAY3D_DESCRIPTOR_st.Width' in found_struct}} + Width : size_t Width of 3D array - {{endif}} - {{if 'CUDA_ARRAY3D_DESCRIPTOR_st.Height' in found_struct}} + + Height : size_t Height of 3D array - {{endif}} - {{if 'CUDA_ARRAY3D_DESCRIPTOR_st.Depth' in found_struct}} + + Depth : size_t Depth of 3D array - {{endif}} - {{if 'CUDA_ARRAY3D_DESCRIPTOR_st.Format' in found_struct}} + + Format : CUarray_format Array format - {{endif}} - {{if 'CUDA_ARRAY3D_DESCRIPTOR_st.NumChannels' in found_struct}} + + NumChannels : unsigned int Channels per array element - {{endif}} - {{if 'CUDA_ARRAY3D_DESCRIPTOR_st.Flags' in found_struct}} + + Flags : unsigned int Flags - {{endif}} + Methods ------- @@ -17159,112 +16557,110 @@ cdef class CUDA_ARRAY3D_DESCRIPTOR_st: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUDA_ARRAY3D_DESCRIPTOR_st.Width' in found_struct}} + try: str_list += ['Width : ' + str(self.Width)] except ValueError: str_list += ['Width : '] - {{endif}} - {{if 'CUDA_ARRAY3D_DESCRIPTOR_st.Height' in found_struct}} + + try: str_list += ['Height : ' + str(self.Height)] except ValueError: str_list += ['Height : '] - {{endif}} - {{if 'CUDA_ARRAY3D_DESCRIPTOR_st.Depth' in found_struct}} + + try: str_list += ['Depth : ' + str(self.Depth)] except ValueError: str_list += ['Depth : '] - {{endif}} - {{if 'CUDA_ARRAY3D_DESCRIPTOR_st.Format' in found_struct}} + + try: str_list += ['Format : ' + str(self.Format)] except ValueError: str_list += ['Format : '] - {{endif}} - {{if 'CUDA_ARRAY3D_DESCRIPTOR_st.NumChannels' in found_struct}} + + try: str_list += ['NumChannels : ' + str(self.NumChannels)] except ValueError: str_list += ['NumChannels : '] - {{endif}} - {{if 'CUDA_ARRAY3D_DESCRIPTOR_st.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 'CUDA_ARRAY3D_DESCRIPTOR_st.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 'CUDA_ARRAY3D_DESCRIPTOR_st.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 'CUDA_ARRAY3D_DESCRIPTOR_st.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 'CUDA_ARRAY3D_DESCRIPTOR_st.Format' in found_struct}} + + @property def Format(self): 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) - {{endif}} - {{if 'CUDA_ARRAY3D_DESCRIPTOR_st.NumChannels' in found_struct}} + + @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 'CUDA_ARRAY3D_DESCRIPTOR_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}} -{{endif}} -{{if 'CUDA_ARRAY_SPARSE_PROPERTIES_st.tileExtent' in found_struct}} + cdef class anon_struct6: """ Attributes ---------- - {{if 'CUDA_ARRAY_SPARSE_PROPERTIES_st.tileExtent.width' in found_struct}} + width : unsigned int - {{endif}} - {{if 'CUDA_ARRAY_SPARSE_PROPERTIES_st.tileExtent.height' in found_struct}} + + height : unsigned int - {{endif}} - {{if 'CUDA_ARRAY_SPARSE_PROPERTIES_st.tileExtent.depth' in found_struct}} + + depth : unsigned int - {{endif}} + Methods ------- @@ -17283,53 +16679,51 @@ cdef class anon_struct6: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUDA_ARRAY_SPARSE_PROPERTIES_st.tileExtent.width' in found_struct}} + try: str_list += ['width : ' + str(self.width)] except ValueError: str_list += ['width : '] - {{endif}} - {{if 'CUDA_ARRAY_SPARSE_PROPERTIES_st.tileExtent.height' in found_struct}} + + try: str_list += ['height : ' + str(self.height)] except ValueError: str_list += ['height : '] - {{endif}} - {{if 'CUDA_ARRAY_SPARSE_PROPERTIES_st.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 'CUDA_ARRAY_SPARSE_PROPERTIES_st.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 'CUDA_ARRAY_SPARSE_PROPERTIES_st.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 'CUDA_ARRAY_SPARSE_PROPERTIES_st.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 'CUDA_ARRAY_SPARSE_PROPERTIES_st' in found_struct}} + cdef class CUDA_ARRAY_SPARSE_PROPERTIES_st: """ @@ -17337,27 +16731,27 @@ cdef class CUDA_ARRAY_SPARSE_PROPERTIES_st: Attributes ---------- - {{if 'CUDA_ARRAY_SPARSE_PROPERTIES_st.tileExtent' in found_struct}} + tileExtent : anon_struct6 - {{endif}} - {{if 'CUDA_ARRAY_SPARSE_PROPERTIES_st.miptailFirstLevel' in found_struct}} + + miptailFirstLevel : unsigned int First mip level at which the mip tail begins. - {{endif}} - {{if 'CUDA_ARRAY_SPARSE_PROPERTIES_st.miptailSize' in found_struct}} + + miptailSize : unsigned long long Total size of the mip tail. - {{endif}} - {{if 'CUDA_ARRAY_SPARSE_PROPERTIES_st.flags' in found_struct}} + + flags : unsigned int Flags will either be zero or CU_ARRAY_SPARSE_PROPERTIES_SINGLE_MIPTAIL - {{endif}} - {{if 'CUDA_ARRAY_SPARSE_PROPERTIES_st.reserved' in found_struct}} + + reserved : list[unsigned int] - {{endif}} + Methods ------- @@ -17371,9 +16765,9 @@ cdef class CUDA_ARRAY_SPARSE_PROPERTIES_st: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): pass - {{if 'CUDA_ARRAY_SPARSE_PROPERTIES_st.tileExtent' in found_struct}} + self._tileExtent = anon_struct6(_ptr=self._pvt_ptr) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -17381,81 +16775,79 @@ cdef class CUDA_ARRAY_SPARSE_PROPERTIES_st: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUDA_ARRAY_SPARSE_PROPERTIES_st.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 'CUDA_ARRAY_SPARSE_PROPERTIES_st.miptailFirstLevel' in found_struct}} + + try: str_list += ['miptailFirstLevel : ' + str(self.miptailFirstLevel)] except ValueError: str_list += ['miptailFirstLevel : '] - {{endif}} - {{if 'CUDA_ARRAY_SPARSE_PROPERTIES_st.miptailSize' in found_struct}} + + try: str_list += ['miptailSize : ' + str(self.miptailSize)] except ValueError: str_list += ['miptailSize : '] - {{endif}} - {{if 'CUDA_ARRAY_SPARSE_PROPERTIES_st.flags' in found_struct}} + + try: str_list += ['flags : ' + str(self.flags)] except ValueError: str_list += ['flags : '] - {{endif}} - {{if 'CUDA_ARRAY_SPARSE_PROPERTIES_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 'CUDA_ARRAY_SPARSE_PROPERTIES_st.tileExtent' in found_struct}} + @property def tileExtent(self): return self._tileExtent @tileExtent.setter def tileExtent(self, tileExtent not None : anon_struct6): - string.memcpy(&self._pvt_ptr[0].tileExtent, tileExtent.getPtr(), sizeof(self._pvt_ptr[0].tileExtent)) - {{endif}} - {{if 'CUDA_ARRAY_SPARSE_PROPERTIES_st.miptailFirstLevel' in found_struct}} + string.memcpy(&self._pvt_ptr[0].tileExtent, tileExtent.getPtr(), sizeof(self._pvt_ptr[0].tileExtent)) + + @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 'CUDA_ARRAY_SPARSE_PROPERTIES_st.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 'CUDA_ARRAY_SPARSE_PROPERTIES_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 'CUDA_ARRAY_SPARSE_PROPERTIES_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 'CUDA_ARRAY_MEMORY_REQUIREMENTS_st' in found_struct}} + cdef class CUDA_ARRAY_MEMORY_REQUIREMENTS_st: """ @@ -17463,18 +16855,18 @@ cdef class CUDA_ARRAY_MEMORY_REQUIREMENTS_st: Attributes ---------- - {{if 'CUDA_ARRAY_MEMORY_REQUIREMENTS_st.size' in found_struct}} + size : size_t Total required memory size - {{endif}} - {{if 'CUDA_ARRAY_MEMORY_REQUIREMENTS_st.alignment' in found_struct}} + + alignment : size_t alignment requirement - {{endif}} - {{if 'CUDA_ARRAY_MEMORY_REQUIREMENTS_st.reserved' in found_struct}} + + reserved : list[unsigned int] - {{endif}} + Methods ------- @@ -17495,62 +16887,60 @@ cdef class CUDA_ARRAY_MEMORY_REQUIREMENTS_st: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUDA_ARRAY_MEMORY_REQUIREMENTS_st.size' in found_struct}} + try: str_list += ['size : ' + str(self.size)] except ValueError: str_list += ['size : '] - {{endif}} - {{if 'CUDA_ARRAY_MEMORY_REQUIREMENTS_st.alignment' in found_struct}} + + try: str_list += ['alignment : ' + str(self.alignment)] except ValueError: str_list += ['alignment : '] - {{endif}} - {{if 'CUDA_ARRAY_MEMORY_REQUIREMENTS_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 'CUDA_ARRAY_MEMORY_REQUIREMENTS_st.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 'CUDA_ARRAY_MEMORY_REQUIREMENTS_st.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 'CUDA_ARRAY_MEMORY_REQUIREMENTS_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 'CUDA_RESOURCE_DESC_st.res.array' in found_struct}} + cdef class anon_struct7: """ Attributes ---------- - {{if 'CUDA_RESOURCE_DESC_st.res.array.hArray' in found_struct}} + hArray : CUarray - {{endif}} + Methods ------- @@ -17562,9 +16952,9 @@ cdef class anon_struct7: def __init__(self, void_ptr _ptr): pass - {{if 'CUDA_RESOURCE_DESC_st.res.array.hArray' in found_struct}} + self._hArray = CUarray(_ptr=&self._pvt_ptr[0].res.array.hArray) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -17572,16 +16962,16 @@ cdef class anon_struct7: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUDA_RESOURCE_DESC_st.res.array.hArray' in found_struct}} + try: str_list += ['hArray : ' + str(self.hArray)] except ValueError: str_list += ['hArray : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'CUDA_RESOURCE_DESC_st.res.array.hArray' in found_struct}} + @property def hArray(self): return self._hArray @@ -17597,18 +16987,16 @@ cdef class anon_struct7: phArray = int(CUarray(hArray)) cyhArray = phArray self._hArray._pvt_ptr[0] = cyhArray - {{endif}} -{{endif}} -{{if 'CUDA_RESOURCE_DESC_st.res.mipmap' in found_struct}} + cdef class anon_struct8: """ Attributes ---------- - {{if 'CUDA_RESOURCE_DESC_st.res.mipmap.hMipmappedArray' in found_struct}} + hMipmappedArray : CUmipmappedArray - {{endif}} + Methods ------- @@ -17620,9 +17008,9 @@ cdef class anon_struct8: def __init__(self, void_ptr _ptr): pass - {{if 'CUDA_RESOURCE_DESC_st.res.mipmap.hMipmappedArray' in found_struct}} + self._hMipmappedArray = CUmipmappedArray(_ptr=&self._pvt_ptr[0].res.mipmap.hMipmappedArray) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -17630,16 +17018,16 @@ cdef class anon_struct8: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUDA_RESOURCE_DESC_st.res.mipmap.hMipmappedArray' in found_struct}} + try: str_list += ['hMipmappedArray : ' + str(self.hMipmappedArray)] except ValueError: str_list += ['hMipmappedArray : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'CUDA_RESOURCE_DESC_st.res.mipmap.hMipmappedArray' in found_struct}} + @property def hMipmappedArray(self): return self._hMipmappedArray @@ -17655,30 +17043,28 @@ cdef class anon_struct8: phMipmappedArray = int(CUmipmappedArray(hMipmappedArray)) cyhMipmappedArray = phMipmappedArray self._hMipmappedArray._pvt_ptr[0] = cyhMipmappedArray - {{endif}} -{{endif}} -{{if 'CUDA_RESOURCE_DESC_st.res.linear' in found_struct}} + cdef class anon_struct9: """ Attributes ---------- - {{if 'CUDA_RESOURCE_DESC_st.res.linear.devPtr' in found_struct}} + devPtr : CUdeviceptr - {{endif}} - {{if 'CUDA_RESOURCE_DESC_st.res.linear.format' in found_struct}} + + format : CUarray_format - {{endif}} - {{if 'CUDA_RESOURCE_DESC_st.res.linear.numChannels' in found_struct}} + + numChannels : unsigned int - {{endif}} - {{if 'CUDA_RESOURCE_DESC_st.res.linear.sizeInBytes' in found_struct}} + + sizeInBytes : size_t - {{endif}} + Methods ------- @@ -17690,9 +17076,9 @@ cdef class anon_struct9: def __init__(self, void_ptr _ptr): pass - {{if 'CUDA_RESOURCE_DESC_st.res.linear.devPtr' in found_struct}} + self._devPtr = CUdeviceptr(_ptr=&self._pvt_ptr[0].res.linear.devPtr) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -17700,34 +17086,34 @@ cdef class anon_struct9: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUDA_RESOURCE_DESC_st.res.linear.devPtr' in found_struct}} + try: str_list += ['devPtr : ' + str(self.devPtr)] except ValueError: str_list += ['devPtr : '] - {{endif}} - {{if 'CUDA_RESOURCE_DESC_st.res.linear.format' in found_struct}} + + try: str_list += ['format : ' + str(self.format)] except ValueError: str_list += ['format : '] - {{endif}} - {{if 'CUDA_RESOURCE_DESC_st.res.linear.numChannels' in found_struct}} + + try: str_list += ['numChannels : ' + str(self.numChannels)] except ValueError: str_list += ['numChannels : '] - {{endif}} - {{if 'CUDA_RESOURCE_DESC_st.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 'CUDA_RESOURCE_DESC_st.res.linear.devPtr' in found_struct}} + @property def devPtr(self): return self._devPtr @@ -17744,62 +17130,60 @@ cdef class anon_struct9: cydevPtr = pdevPtr self._devPtr._pvt_ptr[0] = cydevPtr - {{endif}} - {{if 'CUDA_RESOURCE_DESC_st.res.linear.format' in found_struct}} + + @property def format(self): 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) - {{endif}} - {{if 'CUDA_RESOURCE_DESC_st.res.linear.numChannels' in found_struct}} + + @property def numChannels(self): return self._pvt_ptr[0].res.linear.numChannels @numChannels.setter def numChannels(self, unsigned int numChannels): self._pvt_ptr[0].res.linear.numChannels = numChannels - {{endif}} - {{if 'CUDA_RESOURCE_DESC_st.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 'CUDA_RESOURCE_DESC_st.res.pitch2D' in found_struct}} + cdef class anon_struct10: """ Attributes ---------- - {{if 'CUDA_RESOURCE_DESC_st.res.pitch2D.devPtr' in found_struct}} + devPtr : CUdeviceptr - {{endif}} - {{if 'CUDA_RESOURCE_DESC_st.res.pitch2D.format' in found_struct}} + + format : CUarray_format - {{endif}} - {{if 'CUDA_RESOURCE_DESC_st.res.pitch2D.numChannels' in found_struct}} + + numChannels : unsigned int - {{endif}} - {{if 'CUDA_RESOURCE_DESC_st.res.pitch2D.width' in found_struct}} + + width : size_t - {{endif}} - {{if 'CUDA_RESOURCE_DESC_st.res.pitch2D.height' in found_struct}} + + height : size_t - {{endif}} - {{if 'CUDA_RESOURCE_DESC_st.res.pitch2D.pitchInBytes' in found_struct}} + + pitchInBytes : size_t - {{endif}} + Methods ------- @@ -17811,9 +17195,9 @@ cdef class anon_struct10: def __init__(self, void_ptr _ptr): pass - {{if 'CUDA_RESOURCE_DESC_st.res.pitch2D.devPtr' in found_struct}} + self._devPtr = CUdeviceptr(_ptr=&self._pvt_ptr[0].res.pitch2D.devPtr) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -17821,46 +17205,46 @@ cdef class anon_struct10: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUDA_RESOURCE_DESC_st.res.pitch2D.devPtr' in found_struct}} + try: str_list += ['devPtr : ' + str(self.devPtr)] except ValueError: str_list += ['devPtr : '] - {{endif}} - {{if 'CUDA_RESOURCE_DESC_st.res.pitch2D.format' in found_struct}} + + try: str_list += ['format : ' + str(self.format)] except ValueError: str_list += ['format : '] - {{endif}} - {{if 'CUDA_RESOURCE_DESC_st.res.pitch2D.numChannels' in found_struct}} + + try: str_list += ['numChannels : ' + str(self.numChannels)] except ValueError: str_list += ['numChannels : '] - {{endif}} - {{if 'CUDA_RESOURCE_DESC_st.res.pitch2D.width' in found_struct}} + + try: str_list += ['width : ' + str(self.width)] except ValueError: str_list += ['width : '] - {{endif}} - {{if 'CUDA_RESOURCE_DESC_st.res.pitch2D.height' in found_struct}} + + try: str_list += ['height : ' + str(self.height)] except ValueError: str_list += ['height : '] - {{endif}} - {{if 'CUDA_RESOURCE_DESC_st.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 'CUDA_RESOURCE_DESC_st.res.pitch2D.devPtr' in found_struct}} + @property def devPtr(self): return self._devPtr @@ -17877,58 +17261,56 @@ cdef class anon_struct10: cydevPtr = pdevPtr self._devPtr._pvt_ptr[0] = cydevPtr - {{endif}} - {{if 'CUDA_RESOURCE_DESC_st.res.pitch2D.format' in found_struct}} + + @property def format(self): 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) - {{endif}} - {{if 'CUDA_RESOURCE_DESC_st.res.pitch2D.numChannels' in found_struct}} + + @property def numChannels(self): return self._pvt_ptr[0].res.pitch2D.numChannels @numChannels.setter def numChannels(self, unsigned int numChannels): self._pvt_ptr[0].res.pitch2D.numChannels = numChannels - {{endif}} - {{if 'CUDA_RESOURCE_DESC_st.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 'CUDA_RESOURCE_DESC_st.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 'CUDA_RESOURCE_DESC_st.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 'CUDA_RESOURCE_DESC_st.res.reserved' in found_struct}} + cdef class anon_struct11: """ Attributes ---------- - {{if 'CUDA_RESOURCE_DESC_st.res.reserved.reserved' in found_struct}} + reserved : list[int] - {{endif}} + Methods ------- @@ -17947,50 +17329,48 @@ cdef class anon_struct11: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUDA_RESOURCE_DESC_st.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 'CUDA_RESOURCE_DESC_st.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 'CUDA_RESOURCE_DESC_st.res' in found_struct}} + cdef class anon_union4: """ Attributes ---------- - {{if 'CUDA_RESOURCE_DESC_st.res.array' in found_struct}} + array : anon_struct7 - {{endif}} - {{if 'CUDA_RESOURCE_DESC_st.res.mipmap' in found_struct}} + + mipmap : anon_struct8 - {{endif}} - {{if 'CUDA_RESOURCE_DESC_st.res.linear' in found_struct}} + + linear : anon_struct9 - {{endif}} - {{if 'CUDA_RESOURCE_DESC_st.res.pitch2D' in found_struct}} + + pitch2D : anon_struct10 - {{endif}} - {{if 'CUDA_RESOURCE_DESC_st.res.reserved' in found_struct}} + + reserved : anon_struct11 - {{endif}} + Methods ------- @@ -18002,21 +17382,21 @@ cdef class anon_union4: def __init__(self, void_ptr _ptr): pass - {{if 'CUDA_RESOURCE_DESC_st.res.array' in found_struct}} + self._array = anon_struct7(_ptr=self._pvt_ptr) - {{endif}} - {{if 'CUDA_RESOURCE_DESC_st.res.mipmap' in found_struct}} + + self._mipmap = anon_struct8(_ptr=self._pvt_ptr) - {{endif}} - {{if 'CUDA_RESOURCE_DESC_st.res.linear' in found_struct}} + + self._linear = anon_struct9(_ptr=self._pvt_ptr) - {{endif}} - {{if 'CUDA_RESOURCE_DESC_st.res.pitch2D' in found_struct}} + + self._pitch2D = anon_struct10(_ptr=self._pvt_ptr) - {{endif}} - {{if 'CUDA_RESOURCE_DESC_st.res.reserved' in found_struct}} + + self._reserved = anon_struct11(_ptr=self._pvt_ptr) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -18024,81 +17404,79 @@ cdef class anon_union4: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUDA_RESOURCE_DESC_st.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 'CUDA_RESOURCE_DESC_st.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 'CUDA_RESOURCE_DESC_st.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 'CUDA_RESOURCE_DESC_st.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 'CUDA_RESOURCE_DESC_st.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 'CUDA_RESOURCE_DESC_st.res.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].res.array, array.getPtr(), sizeof(self._pvt_ptr[0].res.array)) - {{endif}} - {{if 'CUDA_RESOURCE_DESC_st.res.mipmap' in found_struct}} + string.memcpy(&self._pvt_ptr[0].res.array, array.getPtr(), sizeof(self._pvt_ptr[0].res.array)) + + @property def mipmap(self): return self._mipmap @mipmap.setter def mipmap(self, mipmap not None : anon_struct8): - string.memcpy(&self._pvt_ptr[0].res.mipmap, mipmap.getPtr(), sizeof(self._pvt_ptr[0].res.mipmap)) - {{endif}} - {{if 'CUDA_RESOURCE_DESC_st.res.linear' in found_struct}} + string.memcpy(&self._pvt_ptr[0].res.mipmap, mipmap.getPtr(), sizeof(self._pvt_ptr[0].res.mipmap)) + + @property def linear(self): return self._linear @linear.setter def linear(self, linear not None : anon_struct9): - string.memcpy(&self._pvt_ptr[0].res.linear, linear.getPtr(), sizeof(self._pvt_ptr[0].res.linear)) - {{endif}} - {{if 'CUDA_RESOURCE_DESC_st.res.pitch2D' in found_struct}} + string.memcpy(&self._pvt_ptr[0].res.linear, linear.getPtr(), sizeof(self._pvt_ptr[0].res.linear)) + + @property def pitch2D(self): return self._pitch2D @pitch2D.setter def pitch2D(self, pitch2D not None : anon_struct10): - string.memcpy(&self._pvt_ptr[0].res.pitch2D, pitch2D.getPtr(), sizeof(self._pvt_ptr[0].res.pitch2D)) - {{endif}} - {{if 'CUDA_RESOURCE_DESC_st.res.reserved' in found_struct}} + string.memcpy(&self._pvt_ptr[0].res.pitch2D, pitch2D.getPtr(), sizeof(self._pvt_ptr[0].res.pitch2D)) + + @property def reserved(self): return self._reserved @reserved.setter def reserved(self, reserved not None : anon_struct11): - string.memcpy(&self._pvt_ptr[0].res.reserved, reserved.getPtr(), sizeof(self._pvt_ptr[0].res.reserved)) - {{endif}} -{{endif}} -{{if 'CUDA_RESOURCE_DESC_st' in found_struct}} + string.memcpy(&self._pvt_ptr[0].res.reserved, reserved.getPtr(), sizeof(self._pvt_ptr[0].res.reserved)) + cdef class CUDA_RESOURCE_DESC_st: """ @@ -18106,18 +17484,18 @@ cdef class CUDA_RESOURCE_DESC_st: Attributes ---------- - {{if 'CUDA_RESOURCE_DESC_st.resType' in found_struct}} + resType : CUresourcetype Resource type - {{endif}} - {{if 'CUDA_RESOURCE_DESC_st.res' in found_struct}} + + res : anon_union4 - {{endif}} - {{if 'CUDA_RESOURCE_DESC_st.flags' in found_struct}} + + flags : unsigned int Flags (must be zero) - {{endif}} + Methods ------- @@ -18132,9 +17510,9 @@ cdef class CUDA_RESOURCE_DESC_st: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): pass - {{if 'CUDA_RESOURCE_DESC_st.res' in found_struct}} + self._res = anon_union4(_ptr=self._pvt_ptr) - {{endif}} + def __dealloc__(self): if self._val_ptr is not NULL: free(self._val_ptr) @@ -18143,53 +17521,51 @@ cdef class CUDA_RESOURCE_DESC_st: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUDA_RESOURCE_DESC_st.resType' in found_struct}} + try: str_list += ['resType : ' + str(self.resType)] except ValueError: str_list += ['resType : '] - {{endif}} - {{if 'CUDA_RESOURCE_DESC_st.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 'CUDA_RESOURCE_DESC_st.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 'CUDA_RESOURCE_DESC_st.resType' in found_struct}} + @property def resType(self): return CUresourcetype(self._pvt_ptr[0].resType) @resType.setter def resType(self, resType not None : CUresourcetype): self._pvt_ptr[0].resType = int(resType) - {{endif}} - {{if 'CUDA_RESOURCE_DESC_st.res' in found_struct}} + + @property def res(self): return self._res @res.setter def res(self, res not None : anon_union4): - string.memcpy(&self._pvt_ptr[0].res, res.getPtr(), sizeof(self._pvt_ptr[0].res)) - {{endif}} - {{if 'CUDA_RESOURCE_DESC_st.flags' in found_struct}} + string.memcpy(&self._pvt_ptr[0].res, res.getPtr(), sizeof(self._pvt_ptr[0].res)) + + @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 'CUDA_TEXTURE_DESC_st' in found_struct}} + cdef class CUDA_TEXTURE_DESC_st: """ @@ -18197,46 +17573,46 @@ cdef class CUDA_TEXTURE_DESC_st: Attributes ---------- - {{if 'CUDA_TEXTURE_DESC_st.addressMode' in found_struct}} + addressMode : list[CUaddress_mode] Address modes - {{endif}} - {{if 'CUDA_TEXTURE_DESC_st.filterMode' in found_struct}} + + filterMode : CUfilter_mode Filter mode - {{endif}} - {{if 'CUDA_TEXTURE_DESC_st.flags' in found_struct}} + + flags : unsigned int Flags - {{endif}} - {{if 'CUDA_TEXTURE_DESC_st.maxAnisotropy' in found_struct}} + + maxAnisotropy : unsigned int Maximum anisotropy ratio - {{endif}} - {{if 'CUDA_TEXTURE_DESC_st.mipmapFilterMode' in found_struct}} + + mipmapFilterMode : CUfilter_mode Mipmap filter mode - {{endif}} - {{if 'CUDA_TEXTURE_DESC_st.mipmapLevelBias' in found_struct}} + + mipmapLevelBias : float Mipmap level bias - {{endif}} - {{if 'CUDA_TEXTURE_DESC_st.minMipmapLevelClamp' in found_struct}} + + minMipmapLevelClamp : float Mipmap minimum level clamp - {{endif}} - {{if 'CUDA_TEXTURE_DESC_st.maxMipmapLevelClamp' in found_struct}} + + maxMipmapLevelClamp : float Mipmap maximum level clamp - {{endif}} - {{if 'CUDA_TEXTURE_DESC_st.borderColor' in found_struct}} + + borderColor : list[float] Border Color - {{endif}} - {{if 'CUDA_TEXTURE_DESC_st.reserved' in found_struct}} + + reserved : list[int] - {{endif}} + Methods ------- @@ -18257,151 +17633,149 @@ cdef class CUDA_TEXTURE_DESC_st: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUDA_TEXTURE_DESC_st.addressMode' in found_struct}} + try: str_list += ['addressMode : ' + str(self.addressMode)] except ValueError: str_list += ['addressMode : '] - {{endif}} - {{if 'CUDA_TEXTURE_DESC_st.filterMode' in found_struct}} + + try: str_list += ['filterMode : ' + str(self.filterMode)] except ValueError: str_list += ['filterMode : '] - {{endif}} - {{if 'CUDA_TEXTURE_DESC_st.flags' in found_struct}} + + try: str_list += ['flags : ' + str(self.flags)] except ValueError: str_list += ['flags : '] - {{endif}} - {{if 'CUDA_TEXTURE_DESC_st.maxAnisotropy' in found_struct}} + + try: str_list += ['maxAnisotropy : ' + str(self.maxAnisotropy)] except ValueError: str_list += ['maxAnisotropy : '] - {{endif}} - {{if 'CUDA_TEXTURE_DESC_st.mipmapFilterMode' in found_struct}} + + try: str_list += ['mipmapFilterMode : ' + str(self.mipmapFilterMode)] except ValueError: str_list += ['mipmapFilterMode : '] - {{endif}} - {{if 'CUDA_TEXTURE_DESC_st.mipmapLevelBias' in found_struct}} + + try: str_list += ['mipmapLevelBias : ' + str(self.mipmapLevelBias)] except ValueError: str_list += ['mipmapLevelBias : '] - {{endif}} - {{if 'CUDA_TEXTURE_DESC_st.minMipmapLevelClamp' in found_struct}} + + try: str_list += ['minMipmapLevelClamp : ' + str(self.minMipmapLevelClamp)] except ValueError: str_list += ['minMipmapLevelClamp : '] - {{endif}} - {{if 'CUDA_TEXTURE_DESC_st.maxMipmapLevelClamp' in found_struct}} + + try: str_list += ['maxMipmapLevelClamp : ' + str(self.maxMipmapLevelClamp)] except ValueError: str_list += ['maxMipmapLevelClamp : '] - {{endif}} - {{if 'CUDA_TEXTURE_DESC_st.borderColor' in found_struct}} + + try: str_list += ['borderColor : ' + str(self.borderColor)] except ValueError: str_list += ['borderColor : '] - {{endif}} - {{if 'CUDA_TEXTURE_DESC_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 'CUDA_TEXTURE_DESC_st.addressMode' in found_struct}} + @property def addressMode(self): return [CUaddress_mode(_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 'CUDA_TEXTURE_DESC_st.filterMode' in found_struct}} + + @property def filterMode(self): 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) - {{endif}} - {{if 'CUDA_TEXTURE_DESC_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 'CUDA_TEXTURE_DESC_st.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 'CUDA_TEXTURE_DESC_st.mipmapFilterMode' in found_struct}} + + @property def mipmapFilterMode(self): 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) - {{endif}} - {{if 'CUDA_TEXTURE_DESC_st.mipmapLevelBias' in found_struct}} + + @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 'CUDA_TEXTURE_DESC_st.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 'CUDA_TEXTURE_DESC_st.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 'CUDA_TEXTURE_DESC_st.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 'CUDA_TEXTURE_DESC_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 'CUDA_RESOURCE_VIEW_DESC_st' in found_struct}} + cdef class CUDA_RESOURCE_VIEW_DESC_st: """ @@ -18409,42 +17783,42 @@ cdef class CUDA_RESOURCE_VIEW_DESC_st: Attributes ---------- - {{if 'CUDA_RESOURCE_VIEW_DESC_st.format' in found_struct}} + format : CUresourceViewFormat Resource view format - {{endif}} - {{if 'CUDA_RESOURCE_VIEW_DESC_st.width' in found_struct}} + + width : size_t Width of the resource view - {{endif}} - {{if 'CUDA_RESOURCE_VIEW_DESC_st.height' in found_struct}} + + height : size_t Height of the resource view - {{endif}} - {{if 'CUDA_RESOURCE_VIEW_DESC_st.depth' in found_struct}} + + depth : size_t Depth of the resource view - {{endif}} - {{if 'CUDA_RESOURCE_VIEW_DESC_st.firstMipmapLevel' in found_struct}} + + firstMipmapLevel : unsigned int First defined mipmap level - {{endif}} - {{if 'CUDA_RESOURCE_VIEW_DESC_st.lastMipmapLevel' in found_struct}} + + lastMipmapLevel : unsigned int Last defined mipmap level - {{endif}} - {{if 'CUDA_RESOURCE_VIEW_DESC_st.firstLayer' in found_struct}} + + firstLayer : unsigned int First layer index - {{endif}} - {{if 'CUDA_RESOURCE_VIEW_DESC_st.lastLayer' in found_struct}} + + lastLayer : unsigned int Last layer index - {{endif}} - {{if 'CUDA_RESOURCE_VIEW_DESC_st.reserved' in found_struct}} + + reserved : list[unsigned int] - {{endif}} + Methods ------- @@ -18465,137 +17839,135 @@ cdef class CUDA_RESOURCE_VIEW_DESC_st: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUDA_RESOURCE_VIEW_DESC_st.format' in found_struct}} + try: str_list += ['format : ' + str(self.format)] except ValueError: str_list += ['format : '] - {{endif}} - {{if 'CUDA_RESOURCE_VIEW_DESC_st.width' in found_struct}} + + try: str_list += ['width : ' + str(self.width)] except ValueError: str_list += ['width : '] - {{endif}} - {{if 'CUDA_RESOURCE_VIEW_DESC_st.height' in found_struct}} + + try: str_list += ['height : ' + str(self.height)] except ValueError: str_list += ['height : '] - {{endif}} - {{if 'CUDA_RESOURCE_VIEW_DESC_st.depth' in found_struct}} + + try: str_list += ['depth : ' + str(self.depth)] except ValueError: str_list += ['depth : '] - {{endif}} - {{if 'CUDA_RESOURCE_VIEW_DESC_st.firstMipmapLevel' in found_struct}} + + try: str_list += ['firstMipmapLevel : ' + str(self.firstMipmapLevel)] except ValueError: str_list += ['firstMipmapLevel : '] - {{endif}} - {{if 'CUDA_RESOURCE_VIEW_DESC_st.lastMipmapLevel' in found_struct}} + + try: str_list += ['lastMipmapLevel : ' + str(self.lastMipmapLevel)] except ValueError: str_list += ['lastMipmapLevel : '] - {{endif}} - {{if 'CUDA_RESOURCE_VIEW_DESC_st.firstLayer' in found_struct}} + + try: str_list += ['firstLayer : ' + str(self.firstLayer)] except ValueError: str_list += ['firstLayer : '] - {{endif}} - {{if 'CUDA_RESOURCE_VIEW_DESC_st.lastLayer' in found_struct}} + + try: str_list += ['lastLayer : ' + str(self.lastLayer)] except ValueError: str_list += ['lastLayer : '] - {{endif}} - {{if 'CUDA_RESOURCE_VIEW_DESC_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 'CUDA_RESOURCE_VIEW_DESC_st.format' in found_struct}} + @property def format(self): return CUresourceViewFormat(self._pvt_ptr[0].format) @format.setter def format(self, format not None : CUresourceViewFormat): self._pvt_ptr[0].format = int(format) - {{endif}} - {{if 'CUDA_RESOURCE_VIEW_DESC_st.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 'CUDA_RESOURCE_VIEW_DESC_st.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 'CUDA_RESOURCE_VIEW_DESC_st.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 'CUDA_RESOURCE_VIEW_DESC_st.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 'CUDA_RESOURCE_VIEW_DESC_st.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 'CUDA_RESOURCE_VIEW_DESC_st.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 'CUDA_RESOURCE_VIEW_DESC_st.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 'CUDA_RESOURCE_VIEW_DESC_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 'CUtensorMap_st' in found_struct}} + cdef class CUtensorMap_st: """ @@ -18604,10 +17976,10 @@ cdef class CUtensorMap_st: Attributes ---------- - {{if 'CUtensorMap_st.opaque' in found_struct}} + opaque : list[cuuint64_t] - {{endif}} + Methods ------- @@ -18628,16 +18000,16 @@ cdef class CUtensorMap_st: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUtensorMap_st.opaque' in found_struct}} + try: str_list += ['opaque : ' + str(self.opaque)] except ValueError: str_list += ['opaque : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'CUtensorMap_st.opaque' in found_struct}} + @property def opaque(self): return [cuuint64_t(init_value=_opaque) for _opaque in self._pvt_ptr[0].opaque] @@ -18645,9 +18017,7 @@ cdef class CUtensorMap_st: def opaque(self, opaque): self._pvt_ptr[0].opaque = opaque - {{endif}} -{{endif}} -{{if 'CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_st' in found_struct}} + cdef class CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_st: """ @@ -18655,14 +18025,14 @@ cdef class CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_st: Attributes ---------- - {{if 'CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_st.p2pToken' in found_struct}} + p2pToken : unsigned long long - {{endif}} - {{if 'CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_st.vaSpaceToken' in found_struct}} + + vaSpaceToken : unsigned int - {{endif}} + Methods ------- @@ -18683,39 +18053,37 @@ cdef class CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_st: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_st.p2pToken' in found_struct}} + try: str_list += ['p2pToken : ' + str(self.p2pToken)] except ValueError: str_list += ['p2pToken : '] - {{endif}} - {{if 'CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_st.vaSpaceToken' in found_struct}} + + try: str_list += ['vaSpaceToken : ' + str(self.vaSpaceToken)] except ValueError: str_list += ['vaSpaceToken : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_st.p2pToken' in found_struct}} + @property def p2pToken(self): return self._pvt_ptr[0].p2pToken @p2pToken.setter def p2pToken(self, unsigned long long p2pToken): self._pvt_ptr[0].p2pToken = p2pToken - {{endif}} - {{if 'CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_st.vaSpaceToken' in found_struct}} + + @property def vaSpaceToken(self): return self._pvt_ptr[0].vaSpaceToken @vaSpaceToken.setter def vaSpaceToken(self, unsigned int vaSpaceToken): self._pvt_ptr[0].vaSpaceToken = vaSpaceToken - {{endif}} -{{endif}} -{{if 'CUDA_LAUNCH_PARAMS_st' in found_struct}} + cdef class CUDA_LAUNCH_PARAMS_st: """ @@ -18723,46 +18091,46 @@ cdef class CUDA_LAUNCH_PARAMS_st: Attributes ---------- - {{if 'CUDA_LAUNCH_PARAMS_st.function' in found_struct}} + function : CUfunction Kernel to launch - {{endif}} - {{if 'CUDA_LAUNCH_PARAMS_st.gridDimX' in found_struct}} + + gridDimX : unsigned int Width of grid in blocks - {{endif}} - {{if 'CUDA_LAUNCH_PARAMS_st.gridDimY' in found_struct}} + + gridDimY : unsigned int Height of grid in blocks - {{endif}} - {{if 'CUDA_LAUNCH_PARAMS_st.gridDimZ' in found_struct}} + + gridDimZ : unsigned int Depth of grid in blocks - {{endif}} - {{if 'CUDA_LAUNCH_PARAMS_st.blockDimX' in found_struct}} + + blockDimX : unsigned int X dimension of each thread block - {{endif}} - {{if 'CUDA_LAUNCH_PARAMS_st.blockDimY' in found_struct}} + + blockDimY : unsigned int Y dimension of each thread block - {{endif}} - {{if 'CUDA_LAUNCH_PARAMS_st.blockDimZ' in found_struct}} + + blockDimZ : unsigned int Z dimension of each thread block - {{endif}} - {{if 'CUDA_LAUNCH_PARAMS_st.sharedMemBytes' in found_struct}} + + sharedMemBytes : unsigned int Dynamic shared-memory size per thread block in bytes - {{endif}} - {{if 'CUDA_LAUNCH_PARAMS_st.hStream' in found_struct}} + + hStream : CUstream Stream identifier - {{endif}} - {{if 'CUDA_LAUNCH_PARAMS_st.kernelParams' in found_struct}} + + kernelParams : Any Array of pointers to kernel parameters - {{endif}} + Methods ------- @@ -18776,12 +18144,12 @@ cdef class CUDA_LAUNCH_PARAMS_st: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): pass - {{if 'CUDA_LAUNCH_PARAMS_st.function' in found_struct}} + self._function = CUfunction(_ptr=&self._pvt_ptr[0].function) - {{endif}} - {{if 'CUDA_LAUNCH_PARAMS_st.hStream' in found_struct}} + + self._hStream = CUstream(_ptr=&self._pvt_ptr[0].hStream) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -18789,70 +18157,70 @@ cdef class CUDA_LAUNCH_PARAMS_st: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUDA_LAUNCH_PARAMS_st.function' in found_struct}} + try: str_list += ['function : ' + str(self.function)] except ValueError: str_list += ['function : '] - {{endif}} - {{if 'CUDA_LAUNCH_PARAMS_st.gridDimX' in found_struct}} + + try: str_list += ['gridDimX : ' + str(self.gridDimX)] except ValueError: str_list += ['gridDimX : '] - {{endif}} - {{if 'CUDA_LAUNCH_PARAMS_st.gridDimY' in found_struct}} + + try: str_list += ['gridDimY : ' + str(self.gridDimY)] except ValueError: str_list += ['gridDimY : '] - {{endif}} - {{if 'CUDA_LAUNCH_PARAMS_st.gridDimZ' in found_struct}} + + try: str_list += ['gridDimZ : ' + str(self.gridDimZ)] except ValueError: str_list += ['gridDimZ : '] - {{endif}} - {{if 'CUDA_LAUNCH_PARAMS_st.blockDimX' in found_struct}} + + try: str_list += ['blockDimX : ' + str(self.blockDimX)] except ValueError: str_list += ['blockDimX : '] - {{endif}} - {{if 'CUDA_LAUNCH_PARAMS_st.blockDimY' in found_struct}} + + try: str_list += ['blockDimY : ' + str(self.blockDimY)] except ValueError: str_list += ['blockDimY : '] - {{endif}} - {{if 'CUDA_LAUNCH_PARAMS_st.blockDimZ' in found_struct}} + + try: str_list += ['blockDimZ : ' + str(self.blockDimZ)] except ValueError: str_list += ['blockDimZ : '] - {{endif}} - {{if 'CUDA_LAUNCH_PARAMS_st.sharedMemBytes' in found_struct}} + + try: str_list += ['sharedMemBytes : ' + str(self.sharedMemBytes)] except ValueError: str_list += ['sharedMemBytes : '] - {{endif}} - {{if 'CUDA_LAUNCH_PARAMS_st.hStream' in found_struct}} + + try: str_list += ['hStream : ' + str(self.hStream)] except ValueError: str_list += ['hStream : '] - {{endif}} - {{if 'CUDA_LAUNCH_PARAMS_st.kernelParams' in found_struct}} + + try: str_list += ['kernelParams : ' + str(self.kernelParams)] except ValueError: str_list += ['kernelParams : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'CUDA_LAUNCH_PARAMS_st.function' in found_struct}} + @property def function(self): return self._function @@ -18868,64 +18236,64 @@ cdef class CUDA_LAUNCH_PARAMS_st: pfunction = int(CUfunction(function)) cyfunction = pfunction self._function._pvt_ptr[0] = cyfunction - {{endif}} - {{if 'CUDA_LAUNCH_PARAMS_st.gridDimX' in found_struct}} + + @property def gridDimX(self): return self._pvt_ptr[0].gridDimX @gridDimX.setter def gridDimX(self, unsigned int gridDimX): self._pvt_ptr[0].gridDimX = gridDimX - {{endif}} - {{if 'CUDA_LAUNCH_PARAMS_st.gridDimY' in found_struct}} + + @property def gridDimY(self): return self._pvt_ptr[0].gridDimY @gridDimY.setter def gridDimY(self, unsigned int gridDimY): self._pvt_ptr[0].gridDimY = gridDimY - {{endif}} - {{if 'CUDA_LAUNCH_PARAMS_st.gridDimZ' in found_struct}} + + @property def gridDimZ(self): return self._pvt_ptr[0].gridDimZ @gridDimZ.setter def gridDimZ(self, unsigned int gridDimZ): self._pvt_ptr[0].gridDimZ = gridDimZ - {{endif}} - {{if 'CUDA_LAUNCH_PARAMS_st.blockDimX' in found_struct}} + + @property def blockDimX(self): return self._pvt_ptr[0].blockDimX @blockDimX.setter def blockDimX(self, unsigned int blockDimX): self._pvt_ptr[0].blockDimX = blockDimX - {{endif}} - {{if 'CUDA_LAUNCH_PARAMS_st.blockDimY' in found_struct}} + + @property def blockDimY(self): return self._pvt_ptr[0].blockDimY @blockDimY.setter def blockDimY(self, unsigned int blockDimY): self._pvt_ptr[0].blockDimY = blockDimY - {{endif}} - {{if 'CUDA_LAUNCH_PARAMS_st.blockDimZ' in found_struct}} + + @property def blockDimZ(self): return self._pvt_ptr[0].blockDimZ @blockDimZ.setter def blockDimZ(self, unsigned int blockDimZ): self._pvt_ptr[0].blockDimZ = blockDimZ - {{endif}} - {{if 'CUDA_LAUNCH_PARAMS_st.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 'CUDA_LAUNCH_PARAMS_st.hStream' in found_struct}} + + @property def hStream(self): return self._hStream @@ -18941,8 +18309,8 @@ cdef class CUDA_LAUNCH_PARAMS_st: phStream = int(CUstream(hStream)) cyhStream = phStream self._hStream._pvt_ptr[0] = cyhStream - {{endif}} - {{if 'CUDA_LAUNCH_PARAMS_st.kernelParams' in found_struct}} + + @property def kernelParams(self): return self._pvt_ptr[0].kernelParams @@ -18950,22 +18318,20 @@ cdef class CUDA_LAUNCH_PARAMS_st: def kernelParams(self, kernelParams): self._cykernelParams = _HelperKernelParams(kernelParams) self._pvt_ptr[0].kernelParams = self._cykernelParams.ckernelParams - {{endif}} -{{endif}} -{{if 'CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st.handle.win32' in found_struct}} + cdef class anon_struct12: """ Attributes ---------- - {{if 'CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st.handle.win32.handle' in found_struct}} + handle : Any - {{endif}} - {{if 'CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st.handle.win32.name' in found_struct}} + + name : Any - {{endif}} + Methods ------- @@ -18984,22 +18350,22 @@ cdef class anon_struct12: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st.handle.win32.handle' in found_struct}} + try: str_list += ['handle : ' + hex(self.handle)] except ValueError: str_list += ['handle : '] - {{endif}} - {{if 'CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st.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 'CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st.handle.win32.handle' in found_struct}} + @property def handle(self): return self._pvt_ptr[0].handle.win32.handle @@ -19007,8 +18373,8 @@ cdef class anon_struct12: def handle(self, handle): self._cyhandle = _HelperInputVoidPtr(handle) self._pvt_ptr[0].handle.win32.handle = self._cyhandle.cptr - {{endif}} - {{if 'CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st.handle.win32.name' in found_struct}} + + @property def name(self): return self._pvt_ptr[0].handle.win32.name @@ -19016,26 +18382,24 @@ cdef class anon_struct12: def name(self, name): self._cyname = _HelperInputVoidPtr(name) self._pvt_ptr[0].handle.win32.name = self._cyname.cptr - {{endif}} -{{endif}} -{{if 'CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st.handle' in found_struct}} + cdef class anon_union5: """ Attributes ---------- - {{if 'CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st.handle.fd' in found_struct}} + fd : int - {{endif}} - {{if 'CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st.handle.win32' in found_struct}} + + win32 : anon_struct12 - {{endif}} - {{if 'CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st.handle.nvSciBufObject' in found_struct}} + + nvSciBufObject : Any - {{endif}} + Methods ------- @@ -19047,9 +18411,9 @@ cdef class anon_union5: def __init__(self, void_ptr _ptr): pass - {{if 'CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st.handle.win32' in found_struct}} + self._win32 = anon_struct12(_ptr=self._pvt_ptr) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -19057,44 +18421,44 @@ cdef class anon_union5: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st.handle.fd' in found_struct}} + try: str_list += ['fd : ' + str(self.fd)] except ValueError: str_list += ['fd : '] - {{endif}} - {{if 'CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st.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 'CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st.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 'CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st.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 'CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st.handle.win32' in found_struct}} + + @property def win32(self): return self._win32 @win32.setter def win32(self, win32 not None : anon_struct12): - string.memcpy(&self._pvt_ptr[0].handle.win32, win32.getPtr(), sizeof(self._pvt_ptr[0].handle.win32)) - {{endif}} - {{if 'CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st.handle.nvSciBufObject' in found_struct}} + string.memcpy(&self._pvt_ptr[0].handle.win32, win32.getPtr(), sizeof(self._pvt_ptr[0].handle.win32)) + + @property def nvSciBufObject(self): return self._pvt_ptr[0].handle.nvSciBufObject @@ -19102,9 +18466,7 @@ cdef class anon_union5: def nvSciBufObject(self, nvSciBufObject): self._cynvSciBufObject = _HelperInputVoidPtr(nvSciBufObject) self._pvt_ptr[0].handle.nvSciBufObject = self._cynvSciBufObject.cptr - {{endif}} -{{endif}} -{{if 'CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st' in found_struct}} + cdef class CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st: """ @@ -19112,26 +18474,26 @@ cdef class CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st: Attributes ---------- - {{if 'CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st.type' in found_struct}} + type : CUexternalMemoryHandleType Type of the handle - {{endif}} - {{if 'CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st.handle' in found_struct}} + + handle : anon_union5 - {{endif}} - {{if 'CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st.size' in found_struct}} + + size : unsigned long long Size of the memory allocation - {{endif}} - {{if 'CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st.flags' in found_struct}} + + flags : unsigned int Flags must either be zero or CUDA_EXTERNAL_MEMORY_DEDICATED - {{endif}} - {{if 'CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st.reserved' in found_struct}} + + reserved : list[unsigned int] - {{endif}} + Methods ------- @@ -19146,9 +18508,9 @@ cdef class CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): pass - {{if 'CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st.handle' in found_struct}} + self._handle = anon_union5(_ptr=self._pvt_ptr) - {{endif}} + def __dealloc__(self): if self._val_ptr is not NULL: free(self._val_ptr) @@ -19157,81 +18519,79 @@ cdef class CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st.type' in found_struct}} + try: str_list += ['type : ' + str(self.type)] except ValueError: str_list += ['type : '] - {{endif}} - {{if 'CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st.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 'CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st.size' in found_struct}} + + try: str_list += ['size : ' + str(self.size)] except ValueError: str_list += ['size : '] - {{endif}} - {{if 'CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st.flags' in found_struct}} + + try: str_list += ['flags : ' + str(self.flags)] except ValueError: str_list += ['flags : '] - {{endif}} - {{if 'CUDA_EXTERNAL_MEMORY_HANDLE_DESC_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 'CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st.type' in found_struct}} + @property def type(self): return CUexternalMemoryHandleType(self._pvt_ptr[0].type) @type.setter def type(self, type not None : CUexternalMemoryHandleType): self._pvt_ptr[0].type = int(type) - {{endif}} - {{if 'CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st.handle' in found_struct}} + + @property def handle(self): return self._handle @handle.setter def handle(self, handle not None : anon_union5): - string.memcpy(&self._pvt_ptr[0].handle, handle.getPtr(), sizeof(self._pvt_ptr[0].handle)) - {{endif}} - {{if 'CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st.size' in found_struct}} + string.memcpy(&self._pvt_ptr[0].handle, handle.getPtr(), sizeof(self._pvt_ptr[0].handle)) + + @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 'CUDA_EXTERNAL_MEMORY_HANDLE_DESC_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 'CUDA_EXTERNAL_MEMORY_HANDLE_DESC_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 'CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st' in found_struct}} + cdef class CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st: """ @@ -19239,22 +18599,22 @@ cdef class CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st: Attributes ---------- - {{if 'CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st.offset' in found_struct}} + offset : unsigned long long Offset into the memory object where the buffer's base is - {{endif}} - {{if 'CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st.size' in found_struct}} + + size : unsigned long long Size of the buffer - {{endif}} - {{if 'CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st.flags' in found_struct}} + + flags : unsigned int Flags reserved for future use. Must be zero. - {{endif}} - {{if 'CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st.reserved' in found_struct}} + + reserved : list[unsigned int] - {{endif}} + Methods ------- @@ -19275,67 +18635,65 @@ cdef class CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st.offset' in found_struct}} + try: str_list += ['offset : ' + str(self.offset)] except ValueError: str_list += ['offset : '] - {{endif}} - {{if 'CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st.size' in found_struct}} + + try: str_list += ['size : ' + str(self.size)] except ValueError: str_list += ['size : '] - {{endif}} - {{if 'CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st.flags' in found_struct}} + + try: str_list += ['flags : ' + str(self.flags)] except ValueError: str_list += ['flags : '] - {{endif}} - {{if 'CUDA_EXTERNAL_MEMORY_BUFFER_DESC_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 'CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st.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 'CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st.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 'CUDA_EXTERNAL_MEMORY_BUFFER_DESC_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 'CUDA_EXTERNAL_MEMORY_BUFFER_DESC_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 'CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_st' in found_struct}} + cdef class CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_st: """ @@ -19343,23 +18701,23 @@ cdef class CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_st: Attributes ---------- - {{if 'CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_st.offset' in found_struct}} + offset : unsigned long long Offset into the memory object where the base level of the mipmap chain is. - {{endif}} - {{if 'CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_st.arrayDesc' in found_struct}} + + arrayDesc : CUDA_ARRAY3D_DESCRIPTOR Format, dimension and type of base level of the mipmap chain - {{endif}} - {{if 'CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_st.numLevels' in found_struct}} + + numLevels : unsigned int Total number of levels in the mipmap chain - {{endif}} - {{if 'CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_st.reserved' in found_struct}} + + reserved : list[unsigned int] - {{endif}} + Methods ------- @@ -19373,9 +18731,9 @@ cdef class CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_st: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): pass - {{if 'CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_st.arrayDesc' in found_struct}} + self._arrayDesc = CUDA_ARRAY3D_DESCRIPTOR(_ptr=&self._pvt_ptr[0].arrayDesc) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -19383,80 +18741,78 @@ cdef class CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_st: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_st.offset' in found_struct}} + try: str_list += ['offset : ' + str(self.offset)] except ValueError: str_list += ['offset : '] - {{endif}} - {{if 'CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_st.arrayDesc' in found_struct}} + + try: str_list += ['arrayDesc :\n' + '\n'.join([' ' + line for line in str(self.arrayDesc).splitlines()])] except ValueError: str_list += ['arrayDesc : '] - {{endif}} - {{if 'CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_st.numLevels' in found_struct}} + + try: str_list += ['numLevels : ' + str(self.numLevels)] except ValueError: str_list += ['numLevels : '] - {{endif}} - {{if 'CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_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 'CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_st.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 'CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_st.arrayDesc' in found_struct}} + + @property def arrayDesc(self): return self._arrayDesc @arrayDesc.setter def arrayDesc(self, arrayDesc not None : CUDA_ARRAY3D_DESCRIPTOR): - string.memcpy(&self._pvt_ptr[0].arrayDesc, arrayDesc.getPtr(), sizeof(self._pvt_ptr[0].arrayDesc)) - {{endif}} - {{if 'CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_st.numLevels' in found_struct}} + string.memcpy(&self._pvt_ptr[0].arrayDesc, arrayDesc.getPtr(), sizeof(self._pvt_ptr[0].arrayDesc)) + + @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 'CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_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 'CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st.handle.win32' in found_struct}} + cdef class anon_struct13: """ Attributes ---------- - {{if 'CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st.handle.win32.handle' in found_struct}} + handle : Any - {{endif}} - {{if 'CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st.handle.win32.name' in found_struct}} + + name : Any - {{endif}} + Methods ------- @@ -19475,22 +18831,22 @@ cdef class anon_struct13: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st.handle.win32.handle' in found_struct}} + try: str_list += ['handle : ' + hex(self.handle)] except ValueError: str_list += ['handle : '] - {{endif}} - {{if 'CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st.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 'CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st.handle.win32.handle' in found_struct}} + @property def handle(self): return self._pvt_ptr[0].handle.win32.handle @@ -19498,8 +18854,8 @@ cdef class anon_struct13: def handle(self, handle): self._cyhandle = _HelperInputVoidPtr(handle) self._pvt_ptr[0].handle.win32.handle = self._cyhandle.cptr - {{endif}} - {{if 'CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st.handle.win32.name' in found_struct}} + + @property def name(self): return self._pvt_ptr[0].handle.win32.name @@ -19507,26 +18863,24 @@ cdef class anon_struct13: def name(self, name): self._cyname = _HelperInputVoidPtr(name) self._pvt_ptr[0].handle.win32.name = self._cyname.cptr - {{endif}} -{{endif}} -{{if 'CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st.handle' in found_struct}} + cdef class anon_union6: """ Attributes ---------- - {{if 'CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st.handle.fd' in found_struct}} + fd : int - {{endif}} - {{if 'CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st.handle.win32' in found_struct}} + + win32 : anon_struct13 - {{endif}} - {{if 'CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st.handle.nvSciSyncObj' in found_struct}} + + nvSciSyncObj : Any - {{endif}} + Methods ------- @@ -19538,9 +18892,9 @@ cdef class anon_union6: def __init__(self, void_ptr _ptr): pass - {{if 'CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st.handle.win32' in found_struct}} + self._win32 = anon_struct13(_ptr=self._pvt_ptr) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -19548,44 +18902,44 @@ cdef class anon_union6: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st.handle.fd' in found_struct}} + try: str_list += ['fd : ' + str(self.fd)] except ValueError: str_list += ['fd : '] - {{endif}} - {{if 'CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st.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 'CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st.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 'CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st.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 'CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st.handle.win32' in found_struct}} + + @property def win32(self): return self._win32 @win32.setter def win32(self, win32 not None : anon_struct13): - string.memcpy(&self._pvt_ptr[0].handle.win32, win32.getPtr(), sizeof(self._pvt_ptr[0].handle.win32)) - {{endif}} - {{if 'CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st.handle.nvSciSyncObj' in found_struct}} + string.memcpy(&self._pvt_ptr[0].handle.win32, win32.getPtr(), sizeof(self._pvt_ptr[0].handle.win32)) + + @property def nvSciSyncObj(self): return self._pvt_ptr[0].handle.nvSciSyncObj @@ -19593,9 +18947,7 @@ cdef class anon_union6: def nvSciSyncObj(self, nvSciSyncObj): self._cynvSciSyncObj = _HelperInputVoidPtr(nvSciSyncObj) self._pvt_ptr[0].handle.nvSciSyncObj = self._cynvSciSyncObj.cptr - {{endif}} -{{endif}} -{{if 'CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st' in found_struct}} + cdef class CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st: """ @@ -19603,22 +18955,22 @@ cdef class CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st: Attributes ---------- - {{if 'CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st.type' in found_struct}} + type : CUexternalSemaphoreHandleType Type of the handle - {{endif}} - {{if 'CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st.handle' in found_struct}} + + handle : anon_union6 - {{endif}} - {{if 'CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st.flags' in found_struct}} + + flags : unsigned int Flags reserved for the future. Must be zero. - {{endif}} - {{if 'CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st.reserved' in found_struct}} + + reserved : list[unsigned int] - {{endif}} + Methods ------- @@ -19633,9 +18985,9 @@ cdef class CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): pass - {{if 'CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st.handle' in found_struct}} + self._handle = anon_union6(_ptr=self._pvt_ptr) - {{endif}} + def __dealloc__(self): if self._val_ptr is not NULL: free(self._val_ptr) @@ -19644,76 +18996,74 @@ cdef class CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st.type' in found_struct}} + try: str_list += ['type : ' + str(self.type)] except ValueError: str_list += ['type : '] - {{endif}} - {{if 'CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st.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 'CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st.flags' in found_struct}} + + try: str_list += ['flags : ' + str(self.flags)] except ValueError: str_list += ['flags : '] - {{endif}} - {{if 'CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_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 'CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st.type' in found_struct}} + @property def type(self): return CUexternalSemaphoreHandleType(self._pvt_ptr[0].type) @type.setter def type(self, type not None : CUexternalSemaphoreHandleType): self._pvt_ptr[0].type = int(type) - {{endif}} - {{if 'CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st.handle' in found_struct}} + + @property def handle(self): return self._handle @handle.setter def handle(self, handle not None : anon_union6): - string.memcpy(&self._pvt_ptr[0].handle, handle.getPtr(), sizeof(self._pvt_ptr[0].handle)) - {{endif}} - {{if 'CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st.flags' in found_struct}} + string.memcpy(&self._pvt_ptr[0].handle, handle.getPtr(), sizeof(self._pvt_ptr[0].handle)) + + @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 'CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_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 'CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st.params.fence' in found_struct}} + cdef class anon_struct14: """ Attributes ---------- - {{if 'CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st.params.fence.value' in found_struct}} + value : unsigned long long - {{endif}} + Methods ------- @@ -19732,38 +19082,36 @@ cdef class anon_struct14: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st.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 'CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st.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 'CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st.params.nvSciSync' in found_struct}} + cdef class anon_union7: """ Attributes ---------- - {{if 'CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st.params.nvSciSync.fence' in found_struct}} + fence : Any - {{endif}} - {{if 'CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st.params.nvSciSync.reserved' in found_struct}} + + reserved : unsigned long long - {{endif}} + Methods ------- @@ -19782,22 +19130,22 @@ cdef class anon_union7: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st.params.nvSciSync.fence' in found_struct}} + try: str_list += ['fence : ' + hex(self.fence)] except ValueError: str_list += ['fence : '] - {{endif}} - {{if 'CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st.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 'CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st.params.nvSciSync.fence' in found_struct}} + @property def fence(self): return self._pvt_ptr[0].params.nvSciSync.fence @@ -19805,26 +19153,24 @@ cdef class anon_union7: def fence(self, fence): self._cyfence = _HelperInputVoidPtr(fence) self._pvt_ptr[0].params.nvSciSync.fence = self._cyfence.cptr - {{endif}} - {{if 'CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st.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 'CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st.params.keyedMutex' in found_struct}} + cdef class anon_struct15: """ Attributes ---------- - {{if 'CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st.params.keyedMutex.key' in found_struct}} + key : unsigned long long - {{endif}} + Methods ------- @@ -19843,46 +19189,44 @@ cdef class anon_struct15: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st.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 'CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st.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 'CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st.params' in found_struct}} + cdef class anon_struct16: """ Attributes ---------- - {{if 'CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st.params.fence' in found_struct}} + fence : anon_struct14 - {{endif}} - {{if 'CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st.params.nvSciSync' in found_struct}} + + nvSciSync : anon_union7 - {{endif}} - {{if 'CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st.params.keyedMutex' in found_struct}} + + keyedMutex : anon_struct15 - {{endif}} - {{if 'CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st.params.reserved' in found_struct}} + + reserved : list[unsigned int] - {{endif}} + Methods ------- @@ -19894,15 +19238,15 @@ cdef class anon_struct16: def __init__(self, void_ptr _ptr): pass - {{if 'CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st.params.fence' in found_struct}} + self._fence = anon_struct14(_ptr=self._pvt_ptr) - {{endif}} - {{if 'CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st.params.nvSciSync' in found_struct}} + + self._nvSciSync = anon_union7(_ptr=self._pvt_ptr) - {{endif}} - {{if 'CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st.params.keyedMutex' in found_struct}} + + self._keyedMutex = anon_struct15(_ptr=self._pvt_ptr) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -19910,67 +19254,65 @@ cdef class anon_struct16: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st.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 'CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st.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 'CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st.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 'CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st.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 'CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st.params.fence' in found_struct}} + @property def fence(self): return self._fence @fence.setter def fence(self, fence not None : anon_struct14): - string.memcpy(&self._pvt_ptr[0].params.fence, fence.getPtr(), sizeof(self._pvt_ptr[0].params.fence)) - {{endif}} - {{if 'CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st.params.nvSciSync' in found_struct}} + string.memcpy(&self._pvt_ptr[0].params.fence, fence.getPtr(), sizeof(self._pvt_ptr[0].params.fence)) + + @property def nvSciSync(self): return self._nvSciSync @nvSciSync.setter def nvSciSync(self, nvSciSync not None : anon_union7): - string.memcpy(&self._pvt_ptr[0].params.nvSciSync, nvSciSync.getPtr(), sizeof(self._pvt_ptr[0].params.nvSciSync)) - {{endif}} - {{if 'CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st.params.keyedMutex' in found_struct}} + string.memcpy(&self._pvt_ptr[0].params.nvSciSync, nvSciSync.getPtr(), sizeof(self._pvt_ptr[0].params.nvSciSync)) + + @property def keyedMutex(self): return self._keyedMutex @keyedMutex.setter def keyedMutex(self, keyedMutex not None : anon_struct15): - string.memcpy(&self._pvt_ptr[0].params.keyedMutex, keyedMutex.getPtr(), sizeof(self._pvt_ptr[0].params.keyedMutex)) - {{endif}} - {{if 'CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st.params.reserved' in found_struct}} + string.memcpy(&self._pvt_ptr[0].params.keyedMutex, keyedMutex.getPtr(), sizeof(self._pvt_ptr[0].params.keyedMutex)) + + @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 'CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st' in found_struct}} + cdef class CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st: """ @@ -19978,11 +19320,11 @@ cdef class CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st: Attributes ---------- - {{if 'CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st.params' in found_struct}} + params : anon_struct16 - {{endif}} - {{if 'CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st.flags' in found_struct}} + + flags : unsigned int Only when CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS is used to signal a CUexternalSemaphore of type @@ -19992,11 +19334,11 @@ cdef class CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st: synchronization operations should be performed for any external memory object imported as CU_EXTERNAL_MEMORY_HANDLE_TYPE_NVSCIBUF. For all other types of CUexternalSemaphore, flags must be zero. - {{endif}} - {{if 'CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st.reserved' in found_struct}} + + reserved : list[unsigned int] - {{endif}} + Methods ------- @@ -20010,9 +19352,9 @@ cdef class CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): pass - {{if 'CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st.params' in found_struct}} + self._params = anon_struct16(_ptr=self._pvt_ptr) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -20020,62 +19362,60 @@ cdef class CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st.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 'CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st.flags' in found_struct}} + + try: str_list += ['flags : ' + str(self.flags)] except ValueError: str_list += ['flags : '] - {{endif}} - {{if 'CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_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 'CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st.params' in found_struct}} + @property def params(self): return self._params @params.setter def params(self, params not None : anon_struct16): - string.memcpy(&self._pvt_ptr[0].params, params.getPtr(), sizeof(self._pvt_ptr[0].params)) - {{endif}} - {{if 'CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st.flags' in found_struct}} + string.memcpy(&self._pvt_ptr[0].params, params.getPtr(), sizeof(self._pvt_ptr[0].params)) + + @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 'CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_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 'CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st.params.fence' in found_struct}} + cdef class anon_struct17: """ Attributes ---------- - {{if 'CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st.params.fence.value' in found_struct}} + value : unsigned long long - {{endif}} + Methods ------- @@ -20094,38 +19434,36 @@ cdef class anon_struct17: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st.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 'CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st.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 'CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st.params.nvSciSync' in found_struct}} + cdef class anon_union8: """ Attributes ---------- - {{if 'CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st.params.nvSciSync.fence' in found_struct}} + fence : Any - {{endif}} - {{if 'CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st.params.nvSciSync.reserved' in found_struct}} + + reserved : unsigned long long - {{endif}} + Methods ------- @@ -20144,22 +19482,22 @@ cdef class anon_union8: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st.params.nvSciSync.fence' in found_struct}} + try: str_list += ['fence : ' + hex(self.fence)] except ValueError: str_list += ['fence : '] - {{endif}} - {{if 'CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st.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 'CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st.params.nvSciSync.fence' in found_struct}} + @property def fence(self): return self._pvt_ptr[0].params.nvSciSync.fence @@ -20167,30 +19505,28 @@ cdef class anon_union8: def fence(self, fence): self._cyfence = _HelperInputVoidPtr(fence) self._pvt_ptr[0].params.nvSciSync.fence = self._cyfence.cptr - {{endif}} - {{if 'CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st.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 'CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st.params.keyedMutex' in found_struct}} + cdef class anon_struct18: """ Attributes ---------- - {{if 'CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st.params.keyedMutex.key' in found_struct}} + key : unsigned long long - {{endif}} - {{if 'CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st.params.keyedMutex.timeoutMs' in found_struct}} + + timeoutMs : unsigned int - {{endif}} + Methods ------- @@ -20209,60 +19545,58 @@ cdef class anon_struct18: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st.params.keyedMutex.key' in found_struct}} + try: str_list += ['key : ' + str(self.key)] except ValueError: str_list += ['key : '] - {{endif}} - {{if 'CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st.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 'CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st.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 'CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st.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 'CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st.params' in found_struct}} + cdef class anon_struct19: """ Attributes ---------- - {{if 'CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st.params.fence' in found_struct}} + fence : anon_struct17 - {{endif}} - {{if 'CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st.params.nvSciSync' in found_struct}} + + nvSciSync : anon_union8 - {{endif}} - {{if 'CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st.params.keyedMutex' in found_struct}} + + keyedMutex : anon_struct18 - {{endif}} - {{if 'CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st.params.reserved' in found_struct}} + + reserved : list[unsigned int] - {{endif}} + Methods ------- @@ -20274,15 +19608,15 @@ cdef class anon_struct19: def __init__(self, void_ptr _ptr): pass - {{if 'CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st.params.fence' in found_struct}} + self._fence = anon_struct17(_ptr=self._pvt_ptr) - {{endif}} - {{if 'CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st.params.nvSciSync' in found_struct}} + + self._nvSciSync = anon_union8(_ptr=self._pvt_ptr) - {{endif}} - {{if 'CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st.params.keyedMutex' in found_struct}} + + self._keyedMutex = anon_struct18(_ptr=self._pvt_ptr) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -20290,67 +19624,65 @@ cdef class anon_struct19: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st.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 'CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st.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 'CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st.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 'CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st.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 'CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st.params.fence' in found_struct}} + @property def fence(self): return self._fence @fence.setter def fence(self, fence not None : anon_struct17): - string.memcpy(&self._pvt_ptr[0].params.fence, fence.getPtr(), sizeof(self._pvt_ptr[0].params.fence)) - {{endif}} - {{if 'CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st.params.nvSciSync' in found_struct}} + string.memcpy(&self._pvt_ptr[0].params.fence, fence.getPtr(), sizeof(self._pvt_ptr[0].params.fence)) + + @property def nvSciSync(self): return self._nvSciSync @nvSciSync.setter def nvSciSync(self, nvSciSync not None : anon_union8): - string.memcpy(&self._pvt_ptr[0].params.nvSciSync, nvSciSync.getPtr(), sizeof(self._pvt_ptr[0].params.nvSciSync)) - {{endif}} - {{if 'CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st.params.keyedMutex' in found_struct}} + string.memcpy(&self._pvt_ptr[0].params.nvSciSync, nvSciSync.getPtr(), sizeof(self._pvt_ptr[0].params.nvSciSync)) + + @property def keyedMutex(self): return self._keyedMutex @keyedMutex.setter def keyedMutex(self, keyedMutex not None : anon_struct18): - string.memcpy(&self._pvt_ptr[0].params.keyedMutex, keyedMutex.getPtr(), sizeof(self._pvt_ptr[0].params.keyedMutex)) - {{endif}} - {{if 'CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st.params.reserved' in found_struct}} + string.memcpy(&self._pvt_ptr[0].params.keyedMutex, keyedMutex.getPtr(), sizeof(self._pvt_ptr[0].params.keyedMutex)) + + @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 'CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st' in found_struct}} + cdef class CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st: """ @@ -20358,11 +19690,11 @@ cdef class CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st: Attributes ---------- - {{if 'CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st.params' in found_struct}} + params : anon_struct19 - {{endif}} - {{if 'CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st.flags' in found_struct}} + + flags : unsigned int Only when CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS is used to wait on a CUexternalSemaphore of type @@ -20372,11 +19704,11 @@ cdef class CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st: synchronization operations should be performed for any external memory object imported as CU_EXTERNAL_MEMORY_HANDLE_TYPE_NVSCIBUF. For all other types of CUexternalSemaphore, flags must be zero. - {{endif}} - {{if 'CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st.reserved' in found_struct}} + + reserved : list[unsigned int] - {{endif}} + Methods ------- @@ -20390,9 +19722,9 @@ cdef class CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): pass - {{if 'CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st.params' in found_struct}} + self._params = anon_struct19(_ptr=self._pvt_ptr) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -20400,53 +19732,51 @@ cdef class CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st.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 'CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st.flags' in found_struct}} + + try: str_list += ['flags : ' + str(self.flags)] except ValueError: str_list += ['flags : '] - {{endif}} - {{if 'CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_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 'CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st.params' in found_struct}} + @property def params(self): return self._params @params.setter def params(self, params not None : anon_struct19): - string.memcpy(&self._pvt_ptr[0].params, params.getPtr(), sizeof(self._pvt_ptr[0].params)) - {{endif}} - {{if 'CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st.flags' in found_struct}} + string.memcpy(&self._pvt_ptr[0].params, params.getPtr(), sizeof(self._pvt_ptr[0].params)) + + @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 'CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_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 'CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_st' in found_struct}} + cdef class CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_st: """ @@ -20454,19 +19784,19 @@ cdef class CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_st: Attributes ---------- - {{if 'CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_st.extSemArray' in found_struct}} + extSemArray : CUexternalSemaphore Array of external semaphore handles. - {{endif}} - {{if 'CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_st.paramsArray' in found_struct}} + + paramsArray : CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS Array of external semaphore signal parameters. - {{endif}} - {{if 'CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_st.numExtSems' in found_struct}} + + numExtSems : unsigned int Number of handles and parameters supplied in extSemArray and paramsArray. - {{endif}} + Methods ------- @@ -20482,41 +19812,41 @@ cdef class CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_st: pass def __dealloc__(self): pass - {{if 'CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_st.extSemArray' in found_struct}} + if self._extSemArray is not NULL: free(self._extSemArray) - {{endif}} - {{if 'CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_st.paramsArray' in found_struct}} + + if self._paramsArray is not NULL: free(self._paramsArray) - {{endif}} + def getPtr(self): return self._pvt_ptr def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_st.extSemArray' in found_struct}} + try: str_list += ['extSemArray : ' + str(self.extSemArray)] except ValueError: str_list += ['extSemArray : '] - {{endif}} - {{if 'CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_st.paramsArray' in found_struct}} + + try: str_list += ['paramsArray : ' + str(self.paramsArray)] except ValueError: str_list += ['paramsArray : '] - {{endif}} - {{if 'CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_st.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 'CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_st.extSemArray' in found_struct}} + @property def extSemArray(self): arrs = [self._pvt_ptr[0].extSemArray + x*sizeof(cydriver.CUexternalSemaphore) for x in range(self._extSemArray_length)] @@ -20538,8 +19868,8 @@ cdef class CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_st: for idx in range(len(val)): self._extSemArray[idx] = (val[idx])._pvt_ptr[0] - {{endif}} - {{if 'CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_st.paramsArray' in found_struct}} + + @property def paramsArray(self): arrs = [self._pvt_ptr[0].paramsArray + x*sizeof(cydriver.CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS) for x in range(self._paramsArray_length)] @@ -20561,17 +19891,15 @@ cdef class CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_st: for idx in range(len(val)): string.memcpy(&self._paramsArray[idx], (val[idx])._pvt_ptr, sizeof(cydriver.CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS)) - {{endif}} - {{if 'CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_st.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 'CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2_st' in found_struct}} + cdef class CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2_st: """ @@ -20579,19 +19907,19 @@ cdef class CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2_st: Attributes ---------- - {{if 'CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2_st.extSemArray' in found_struct}} + extSemArray : CUexternalSemaphore Array of external semaphore handles. - {{endif}} - {{if 'CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2_st.paramsArray' in found_struct}} + + paramsArray : CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS Array of external semaphore signal parameters. - {{endif}} - {{if 'CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2_st.numExtSems' in found_struct}} + + numExtSems : unsigned int Number of handles and parameters supplied in extSemArray and paramsArray. - {{endif}} + Methods ------- @@ -20607,41 +19935,41 @@ cdef class CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2_st: pass def __dealloc__(self): pass - {{if 'CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2_st.extSemArray' in found_struct}} + if self._extSemArray is not NULL: free(self._extSemArray) - {{endif}} - {{if 'CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2_st.paramsArray' in found_struct}} + + if self._paramsArray is not NULL: free(self._paramsArray) - {{endif}} + def getPtr(self): return self._pvt_ptr def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2_st.extSemArray' in found_struct}} + try: str_list += ['extSemArray : ' + str(self.extSemArray)] except ValueError: str_list += ['extSemArray : '] - {{endif}} - {{if 'CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2_st.paramsArray' in found_struct}} + + try: str_list += ['paramsArray : ' + str(self.paramsArray)] except ValueError: str_list += ['paramsArray : '] - {{endif}} - {{if 'CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2_st.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 'CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2_st.extSemArray' in found_struct}} + @property def extSemArray(self): arrs = [self._pvt_ptr[0].extSemArray + x*sizeof(cydriver.CUexternalSemaphore) for x in range(self._extSemArray_length)] @@ -20663,8 +19991,8 @@ cdef class CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2_st: for idx in range(len(val)): self._extSemArray[idx] = (val[idx])._pvt_ptr[0] - {{endif}} - {{if 'CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2_st.paramsArray' in found_struct}} + + @property def paramsArray(self): arrs = [self._pvt_ptr[0].paramsArray + x*sizeof(cydriver.CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS) for x in range(self._paramsArray_length)] @@ -20686,17 +20014,15 @@ cdef class CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2_st: for idx in range(len(val)): string.memcpy(&self._paramsArray[idx], (val[idx])._pvt_ptr, sizeof(cydriver.CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS)) - {{endif}} - {{if 'CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2_st.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 'CUDA_EXT_SEM_WAIT_NODE_PARAMS_st' in found_struct}} + cdef class CUDA_EXT_SEM_WAIT_NODE_PARAMS_st: """ @@ -20704,19 +20030,19 @@ cdef class CUDA_EXT_SEM_WAIT_NODE_PARAMS_st: Attributes ---------- - {{if 'CUDA_EXT_SEM_WAIT_NODE_PARAMS_st.extSemArray' in found_struct}} + extSemArray : CUexternalSemaphore Array of external semaphore handles. - {{endif}} - {{if 'CUDA_EXT_SEM_WAIT_NODE_PARAMS_st.paramsArray' in found_struct}} + + paramsArray : CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS Array of external semaphore wait parameters. - {{endif}} - {{if 'CUDA_EXT_SEM_WAIT_NODE_PARAMS_st.numExtSems' in found_struct}} + + numExtSems : unsigned int Number of handles and parameters supplied in extSemArray and paramsArray. - {{endif}} + Methods ------- @@ -20732,41 +20058,41 @@ cdef class CUDA_EXT_SEM_WAIT_NODE_PARAMS_st: pass def __dealloc__(self): pass - {{if 'CUDA_EXT_SEM_WAIT_NODE_PARAMS_st.extSemArray' in found_struct}} + if self._extSemArray is not NULL: free(self._extSemArray) - {{endif}} - {{if 'CUDA_EXT_SEM_WAIT_NODE_PARAMS_st.paramsArray' in found_struct}} + + if self._paramsArray is not NULL: free(self._paramsArray) - {{endif}} + def getPtr(self): return self._pvt_ptr def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUDA_EXT_SEM_WAIT_NODE_PARAMS_st.extSemArray' in found_struct}} + try: str_list += ['extSemArray : ' + str(self.extSemArray)] except ValueError: str_list += ['extSemArray : '] - {{endif}} - {{if 'CUDA_EXT_SEM_WAIT_NODE_PARAMS_st.paramsArray' in found_struct}} + + try: str_list += ['paramsArray : ' + str(self.paramsArray)] except ValueError: str_list += ['paramsArray : '] - {{endif}} - {{if 'CUDA_EXT_SEM_WAIT_NODE_PARAMS_st.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 'CUDA_EXT_SEM_WAIT_NODE_PARAMS_st.extSemArray' in found_struct}} + @property def extSemArray(self): arrs = [self._pvt_ptr[0].extSemArray + x*sizeof(cydriver.CUexternalSemaphore) for x in range(self._extSemArray_length)] @@ -20788,8 +20114,8 @@ cdef class CUDA_EXT_SEM_WAIT_NODE_PARAMS_st: for idx in range(len(val)): self._extSemArray[idx] = (val[idx])._pvt_ptr[0] - {{endif}} - {{if 'CUDA_EXT_SEM_WAIT_NODE_PARAMS_st.paramsArray' in found_struct}} + + @property def paramsArray(self): arrs = [self._pvt_ptr[0].paramsArray + x*sizeof(cydriver.CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS) for x in range(self._paramsArray_length)] @@ -20811,17 +20137,15 @@ cdef class CUDA_EXT_SEM_WAIT_NODE_PARAMS_st: for idx in range(len(val)): string.memcpy(&self._paramsArray[idx], (val[idx])._pvt_ptr, sizeof(cydriver.CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS)) - {{endif}} - {{if 'CUDA_EXT_SEM_WAIT_NODE_PARAMS_st.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 'CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2_st' in found_struct}} + cdef class CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2_st: """ @@ -20829,19 +20153,19 @@ cdef class CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2_st: Attributes ---------- - {{if 'CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2_st.extSemArray' in found_struct}} + extSemArray : CUexternalSemaphore Array of external semaphore handles. - {{endif}} - {{if 'CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2_st.paramsArray' in found_struct}} + + paramsArray : CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS Array of external semaphore wait parameters. - {{endif}} - {{if 'CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2_st.numExtSems' in found_struct}} + + numExtSems : unsigned int Number of handles and parameters supplied in extSemArray and paramsArray. - {{endif}} + Methods ------- @@ -20857,41 +20181,41 @@ cdef class CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2_st: pass def __dealloc__(self): pass - {{if 'CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2_st.extSemArray' in found_struct}} + if self._extSemArray is not NULL: free(self._extSemArray) - {{endif}} - {{if 'CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2_st.paramsArray' in found_struct}} + + if self._paramsArray is not NULL: free(self._paramsArray) - {{endif}} + def getPtr(self): return self._pvt_ptr def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2_st.extSemArray' in found_struct}} + try: str_list += ['extSemArray : ' + str(self.extSemArray)] except ValueError: str_list += ['extSemArray : '] - {{endif}} - {{if 'CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2_st.paramsArray' in found_struct}} + + try: str_list += ['paramsArray : ' + str(self.paramsArray)] except ValueError: str_list += ['paramsArray : '] - {{endif}} - {{if 'CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2_st.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 'CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2_st.extSemArray' in found_struct}} + @property def extSemArray(self): arrs = [self._pvt_ptr[0].extSemArray + x*sizeof(cydriver.CUexternalSemaphore) for x in range(self._extSemArray_length)] @@ -20913,8 +20237,8 @@ cdef class CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2_st: for idx in range(len(val)): self._extSemArray[idx] = (val[idx])._pvt_ptr[0] - {{endif}} - {{if 'CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2_st.paramsArray' in found_struct}} + + @property def paramsArray(self): arrs = [self._pvt_ptr[0].paramsArray + x*sizeof(cydriver.CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS) for x in range(self._paramsArray_length)] @@ -20936,30 +20260,28 @@ cdef class CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2_st: for idx in range(len(val)): string.memcpy(&self._paramsArray[idx], (val[idx])._pvt_ptr, sizeof(cydriver.CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS)) - {{endif}} - {{if 'CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2_st.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 'CUarrayMapInfo_st.resource' in found_struct}} + cdef class anon_union9: """ Attributes ---------- - {{if 'CUarrayMapInfo_st.resource.mipmap' in found_struct}} + mipmap : CUmipmappedArray - {{endif}} - {{if 'CUarrayMapInfo_st.resource.array' in found_struct}} + + array : CUarray - {{endif}} + Methods ------- @@ -20971,12 +20293,12 @@ cdef class anon_union9: def __init__(self, void_ptr _ptr): pass - {{if 'CUarrayMapInfo_st.resource.mipmap' in found_struct}} + self._mipmap = CUmipmappedArray(_ptr=&self._pvt_ptr[0].resource.mipmap) - {{endif}} - {{if 'CUarrayMapInfo_st.resource.array' in found_struct}} + + self._array = CUarray(_ptr=&self._pvt_ptr[0].resource.array) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -20984,22 +20306,22 @@ cdef class anon_union9: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUarrayMapInfo_st.resource.mipmap' in found_struct}} + try: str_list += ['mipmap : ' + str(self.mipmap)] except ValueError: str_list += ['mipmap : '] - {{endif}} - {{if 'CUarrayMapInfo_st.resource.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 'CUarrayMapInfo_st.resource.mipmap' in found_struct}} + @property def mipmap(self): return self._mipmap @@ -21015,8 +20337,8 @@ cdef class anon_union9: pmipmap = int(CUmipmappedArray(mipmap)) cymipmap = pmipmap self._mipmap._pvt_ptr[0] = cymipmap - {{endif}} - {{if 'CUarrayMapInfo_st.resource.array' in found_struct}} + + @property def array(self): return self._array @@ -21032,46 +20354,44 @@ cdef class anon_union9: parray = int(CUarray(array)) cyarray = parray self._array._pvt_ptr[0] = cyarray - {{endif}} -{{endif}} -{{if 'CUarrayMapInfo_st.subresource.sparseLevel' in found_struct}} + cdef class anon_struct20: """ Attributes ---------- - {{if 'CUarrayMapInfo_st.subresource.sparseLevel.level' in found_struct}} + level : unsigned int - {{endif}} - {{if 'CUarrayMapInfo_st.subresource.sparseLevel.layer' in found_struct}} + + layer : unsigned int - {{endif}} - {{if 'CUarrayMapInfo_st.subresource.sparseLevel.offsetX' in found_struct}} + + offsetX : unsigned int - {{endif}} - {{if 'CUarrayMapInfo_st.subresource.sparseLevel.offsetY' in found_struct}} + + offsetY : unsigned int - {{endif}} - {{if 'CUarrayMapInfo_st.subresource.sparseLevel.offsetZ' in found_struct}} + + offsetZ : unsigned int - {{endif}} - {{if 'CUarrayMapInfo_st.subresource.sparseLevel.extentWidth' in found_struct}} + + extentWidth : unsigned int - {{endif}} - {{if 'CUarrayMapInfo_st.subresource.sparseLevel.extentHeight' in found_struct}} + + extentHeight : unsigned int - {{endif}} - {{if 'CUarrayMapInfo_st.subresource.sparseLevel.extentDepth' in found_struct}} + + extentDepth : unsigned int - {{endif}} + Methods ------- @@ -21090,140 +20410,138 @@ cdef class anon_struct20: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUarrayMapInfo_st.subresource.sparseLevel.level' in found_struct}} + try: str_list += ['level : ' + str(self.level)] except ValueError: str_list += ['level : '] - {{endif}} - {{if 'CUarrayMapInfo_st.subresource.sparseLevel.layer' in found_struct}} + + try: str_list += ['layer : ' + str(self.layer)] except ValueError: str_list += ['layer : '] - {{endif}} - {{if 'CUarrayMapInfo_st.subresource.sparseLevel.offsetX' in found_struct}} + + try: str_list += ['offsetX : ' + str(self.offsetX)] except ValueError: str_list += ['offsetX : '] - {{endif}} - {{if 'CUarrayMapInfo_st.subresource.sparseLevel.offsetY' in found_struct}} + + try: str_list += ['offsetY : ' + str(self.offsetY)] except ValueError: str_list += ['offsetY : '] - {{endif}} - {{if 'CUarrayMapInfo_st.subresource.sparseLevel.offsetZ' in found_struct}} + + try: str_list += ['offsetZ : ' + str(self.offsetZ)] except ValueError: str_list += ['offsetZ : '] - {{endif}} - {{if 'CUarrayMapInfo_st.subresource.sparseLevel.extentWidth' in found_struct}} + + try: str_list += ['extentWidth : ' + str(self.extentWidth)] except ValueError: str_list += ['extentWidth : '] - {{endif}} - {{if 'CUarrayMapInfo_st.subresource.sparseLevel.extentHeight' in found_struct}} + + try: str_list += ['extentHeight : ' + str(self.extentHeight)] except ValueError: str_list += ['extentHeight : '] - {{endif}} - {{if 'CUarrayMapInfo_st.subresource.sparseLevel.extentDepth' in found_struct}} + + try: str_list += ['extentDepth : ' + str(self.extentDepth)] except ValueError: str_list += ['extentDepth : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'CUarrayMapInfo_st.subresource.sparseLevel.level' in found_struct}} + @property def level(self): return self._pvt_ptr[0].subresource.sparseLevel.level @level.setter def level(self, unsigned int level): self._pvt_ptr[0].subresource.sparseLevel.level = level - {{endif}} - {{if 'CUarrayMapInfo_st.subresource.sparseLevel.layer' in found_struct}} + + @property def layer(self): return self._pvt_ptr[0].subresource.sparseLevel.layer @layer.setter def layer(self, unsigned int layer): self._pvt_ptr[0].subresource.sparseLevel.layer = layer - {{endif}} - {{if 'CUarrayMapInfo_st.subresource.sparseLevel.offsetX' in found_struct}} + + @property def offsetX(self): return self._pvt_ptr[0].subresource.sparseLevel.offsetX @offsetX.setter def offsetX(self, unsigned int offsetX): self._pvt_ptr[0].subresource.sparseLevel.offsetX = offsetX - {{endif}} - {{if 'CUarrayMapInfo_st.subresource.sparseLevel.offsetY' in found_struct}} + + @property def offsetY(self): return self._pvt_ptr[0].subresource.sparseLevel.offsetY @offsetY.setter def offsetY(self, unsigned int offsetY): self._pvt_ptr[0].subresource.sparseLevel.offsetY = offsetY - {{endif}} - {{if 'CUarrayMapInfo_st.subresource.sparseLevel.offsetZ' in found_struct}} + + @property def offsetZ(self): return self._pvt_ptr[0].subresource.sparseLevel.offsetZ @offsetZ.setter def offsetZ(self, unsigned int offsetZ): self._pvt_ptr[0].subresource.sparseLevel.offsetZ = offsetZ - {{endif}} - {{if 'CUarrayMapInfo_st.subresource.sparseLevel.extentWidth' in found_struct}} + + @property def extentWidth(self): return self._pvt_ptr[0].subresource.sparseLevel.extentWidth @extentWidth.setter def extentWidth(self, unsigned int extentWidth): self._pvt_ptr[0].subresource.sparseLevel.extentWidth = extentWidth - {{endif}} - {{if 'CUarrayMapInfo_st.subresource.sparseLevel.extentHeight' in found_struct}} + + @property def extentHeight(self): return self._pvt_ptr[0].subresource.sparseLevel.extentHeight @extentHeight.setter def extentHeight(self, unsigned int extentHeight): self._pvt_ptr[0].subresource.sparseLevel.extentHeight = extentHeight - {{endif}} - {{if 'CUarrayMapInfo_st.subresource.sparseLevel.extentDepth' in found_struct}} + + @property def extentDepth(self): return self._pvt_ptr[0].subresource.sparseLevel.extentDepth @extentDepth.setter def extentDepth(self, unsigned int extentDepth): self._pvt_ptr[0].subresource.sparseLevel.extentDepth = extentDepth - {{endif}} -{{endif}} -{{if 'CUarrayMapInfo_st.subresource.miptail' in found_struct}} + cdef class anon_struct21: """ Attributes ---------- - {{if 'CUarrayMapInfo_st.subresource.miptail.layer' in found_struct}} + layer : unsigned int - {{endif}} - {{if 'CUarrayMapInfo_st.subresource.miptail.offset' in found_struct}} + + offset : unsigned long long - {{endif}} - {{if 'CUarrayMapInfo_st.subresource.miptail.size' in found_struct}} + + size : unsigned long long - {{endif}} + Methods ------- @@ -21242,66 +20560,64 @@ cdef class anon_struct21: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUarrayMapInfo_st.subresource.miptail.layer' in found_struct}} + try: str_list += ['layer : ' + str(self.layer)] except ValueError: str_list += ['layer : '] - {{endif}} - {{if 'CUarrayMapInfo_st.subresource.miptail.offset' in found_struct}} + + try: str_list += ['offset : ' + str(self.offset)] except ValueError: str_list += ['offset : '] - {{endif}} - {{if 'CUarrayMapInfo_st.subresource.miptail.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 'CUarrayMapInfo_st.subresource.miptail.layer' in found_struct}} + @property def layer(self): return self._pvt_ptr[0].subresource.miptail.layer @layer.setter def layer(self, unsigned int layer): self._pvt_ptr[0].subresource.miptail.layer = layer - {{endif}} - {{if 'CUarrayMapInfo_st.subresource.miptail.offset' in found_struct}} + + @property def offset(self): return self._pvt_ptr[0].subresource.miptail.offset @offset.setter def offset(self, unsigned long long offset): self._pvt_ptr[0].subresource.miptail.offset = offset - {{endif}} - {{if 'CUarrayMapInfo_st.subresource.miptail.size' in found_struct}} + + @property def size(self): return self._pvt_ptr[0].subresource.miptail.size @size.setter def size(self, unsigned long long size): self._pvt_ptr[0].subresource.miptail.size = size - {{endif}} -{{endif}} -{{if 'CUarrayMapInfo_st.subresource' in found_struct}} + cdef class anon_union10: """ Attributes ---------- - {{if 'CUarrayMapInfo_st.subresource.sparseLevel' in found_struct}} + sparseLevel : anon_struct20 - {{endif}} - {{if 'CUarrayMapInfo_st.subresource.miptail' in found_struct}} + + miptail : anon_struct21 - {{endif}} + Methods ------- @@ -21313,12 +20629,12 @@ cdef class anon_union10: def __init__(self, void_ptr _ptr): pass - {{if 'CUarrayMapInfo_st.subresource.sparseLevel' in found_struct}} + self._sparseLevel = anon_struct20(_ptr=self._pvt_ptr) - {{endif}} - {{if 'CUarrayMapInfo_st.subresource.miptail' in found_struct}} + + self._miptail = anon_struct21(_ptr=self._pvt_ptr) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -21326,48 +20642,46 @@ cdef class anon_union10: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUarrayMapInfo_st.subresource.sparseLevel' in found_struct}} + try: str_list += ['sparseLevel :\n' + '\n'.join([' ' + line for line in str(self.sparseLevel).splitlines()])] except ValueError: str_list += ['sparseLevel : '] - {{endif}} - {{if 'CUarrayMapInfo_st.subresource.miptail' in found_struct}} + + try: str_list += ['miptail :\n' + '\n'.join([' ' + line for line in str(self.miptail).splitlines()])] except ValueError: str_list += ['miptail : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'CUarrayMapInfo_st.subresource.sparseLevel' in found_struct}} + @property def sparseLevel(self): return self._sparseLevel @sparseLevel.setter def sparseLevel(self, sparseLevel not None : anon_struct20): - string.memcpy(&self._pvt_ptr[0].subresource.sparseLevel, sparseLevel.getPtr(), sizeof(self._pvt_ptr[0].subresource.sparseLevel)) - {{endif}} - {{if 'CUarrayMapInfo_st.subresource.miptail' in found_struct}} + string.memcpy(&self._pvt_ptr[0].subresource.sparseLevel, sparseLevel.getPtr(), sizeof(self._pvt_ptr[0].subresource.sparseLevel)) + + @property def miptail(self): return self._miptail @miptail.setter def miptail(self, miptail not None : anon_struct21): - string.memcpy(&self._pvt_ptr[0].subresource.miptail, miptail.getPtr(), sizeof(self._pvt_ptr[0].subresource.miptail)) - {{endif}} -{{endif}} -{{if 'CUarrayMapInfo_st.memHandle' in found_struct}} + string.memcpy(&self._pvt_ptr[0].subresource.miptail, miptail.getPtr(), sizeof(self._pvt_ptr[0].subresource.miptail)) + cdef class anon_union11: """ Attributes ---------- - {{if 'CUarrayMapInfo_st.memHandle.memHandle' in found_struct}} + memHandle : CUmemGenericAllocationHandle - {{endif}} + Methods ------- @@ -21379,9 +20693,9 @@ cdef class anon_union11: def __init__(self, void_ptr _ptr): pass - {{if 'CUarrayMapInfo_st.memHandle.memHandle' in found_struct}} + self._memHandle = CUmemGenericAllocationHandle(_ptr=&self._pvt_ptr[0].memHandle.memHandle) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -21389,16 +20703,16 @@ cdef class anon_union11: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUarrayMapInfo_st.memHandle.memHandle' in found_struct}} + try: str_list += ['memHandle : ' + str(self.memHandle)] except ValueError: str_list += ['memHandle : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'CUarrayMapInfo_st.memHandle.memHandle' in found_struct}} + @property def memHandle(self): return self._memHandle @@ -21415,9 +20729,7 @@ cdef class anon_union11: cymemHandle = pmemHandle self._memHandle._pvt_ptr[0] = cymemHandle - {{endif}} -{{endif}} -{{if 'CUarrayMapInfo_st' in found_struct}} + cdef class CUarrayMapInfo_st: """ @@ -21426,50 +20738,50 @@ cdef class CUarrayMapInfo_st: Attributes ---------- - {{if 'CUarrayMapInfo_st.resourceType' in found_struct}} + resourceType : CUresourcetype Resource type - {{endif}} - {{if 'CUarrayMapInfo_st.resource' in found_struct}} + + resource : anon_union9 - {{endif}} - {{if 'CUarrayMapInfo_st.subresourceType' in found_struct}} + + subresourceType : CUarraySparseSubresourceType Sparse subresource type - {{endif}} - {{if 'CUarrayMapInfo_st.subresource' in found_struct}} + + subresource : anon_union10 - {{endif}} - {{if 'CUarrayMapInfo_st.memOperationType' in found_struct}} + + memOperationType : CUmemOperationType Memory operation type - {{endif}} - {{if 'CUarrayMapInfo_st.memHandleType' in found_struct}} + + memHandleType : CUmemHandleType Memory handle type - {{endif}} - {{if 'CUarrayMapInfo_st.memHandle' in found_struct}} + + memHandle : anon_union11 - {{endif}} - {{if 'CUarrayMapInfo_st.offset' in found_struct}} + + offset : unsigned long long Offset within mip tail Offset within the memory - {{endif}} - {{if 'CUarrayMapInfo_st.deviceBitMask' in found_struct}} + + deviceBitMask : unsigned int Device ordinal bit mask - {{endif}} - {{if 'CUarrayMapInfo_st.flags' in found_struct}} + + flags : unsigned int flags for future use, must be zero now. - {{endif}} - {{if 'CUarrayMapInfo_st.reserved' in found_struct}} + + reserved : list[unsigned int] Reserved for future use, must be zero now. - {{endif}} + Methods ------- @@ -21484,15 +20796,15 @@ cdef class CUarrayMapInfo_st: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): pass - {{if 'CUarrayMapInfo_st.resource' in found_struct}} + self._resource = anon_union9(_ptr=self._pvt_ptr) - {{endif}} - {{if 'CUarrayMapInfo_st.subresource' in found_struct}} + + self._subresource = anon_union10(_ptr=self._pvt_ptr) - {{endif}} - {{if 'CUarrayMapInfo_st.memHandle' in found_struct}} + + self._memHandle = anon_union11(_ptr=self._pvt_ptr) - {{endif}} + def __dealloc__(self): if self._val_ptr is not NULL: free(self._val_ptr) @@ -21501,165 +20813,163 @@ cdef class CUarrayMapInfo_st: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUarrayMapInfo_st.resourceType' in found_struct}} + try: str_list += ['resourceType : ' + str(self.resourceType)] except ValueError: str_list += ['resourceType : '] - {{endif}} - {{if 'CUarrayMapInfo_st.resource' in found_struct}} + + try: str_list += ['resource :\n' + '\n'.join([' ' + line for line in str(self.resource).splitlines()])] except ValueError: str_list += ['resource : '] - {{endif}} - {{if 'CUarrayMapInfo_st.subresourceType' in found_struct}} + + try: str_list += ['subresourceType : ' + str(self.subresourceType)] except ValueError: str_list += ['subresourceType : '] - {{endif}} - {{if 'CUarrayMapInfo_st.subresource' in found_struct}} + + try: str_list += ['subresource :\n' + '\n'.join([' ' + line for line in str(self.subresource).splitlines()])] except ValueError: str_list += ['subresource : '] - {{endif}} - {{if 'CUarrayMapInfo_st.memOperationType' in found_struct}} + + try: str_list += ['memOperationType : ' + str(self.memOperationType)] except ValueError: str_list += ['memOperationType : '] - {{endif}} - {{if 'CUarrayMapInfo_st.memHandleType' in found_struct}} + + try: str_list += ['memHandleType : ' + str(self.memHandleType)] except ValueError: str_list += ['memHandleType : '] - {{endif}} - {{if 'CUarrayMapInfo_st.memHandle' in found_struct}} + + try: str_list += ['memHandle :\n' + '\n'.join([' ' + line for line in str(self.memHandle).splitlines()])] except ValueError: str_list += ['memHandle : '] - {{endif}} - {{if 'CUarrayMapInfo_st.offset' in found_struct}} + + try: str_list += ['offset : ' + str(self.offset)] except ValueError: str_list += ['offset : '] - {{endif}} - {{if 'CUarrayMapInfo_st.deviceBitMask' in found_struct}} + + try: str_list += ['deviceBitMask : ' + str(self.deviceBitMask)] except ValueError: str_list += ['deviceBitMask : '] - {{endif}} - {{if 'CUarrayMapInfo_st.flags' in found_struct}} + + try: str_list += ['flags : ' + str(self.flags)] except ValueError: str_list += ['flags : '] - {{endif}} - {{if 'CUarrayMapInfo_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 'CUarrayMapInfo_st.resourceType' in found_struct}} + @property def resourceType(self): return CUresourcetype(self._pvt_ptr[0].resourceType) @resourceType.setter def resourceType(self, resourceType not None : CUresourcetype): self._pvt_ptr[0].resourceType = int(resourceType) - {{endif}} - {{if 'CUarrayMapInfo_st.resource' in found_struct}} + + @property def resource(self): return self._resource @resource.setter def resource(self, resource not None : anon_union9): - string.memcpy(&self._pvt_ptr[0].resource, resource.getPtr(), sizeof(self._pvt_ptr[0].resource)) - {{endif}} - {{if 'CUarrayMapInfo_st.subresourceType' in found_struct}} + string.memcpy(&self._pvt_ptr[0].resource, resource.getPtr(), sizeof(self._pvt_ptr[0].resource)) + + @property def subresourceType(self): return CUarraySparseSubresourceType(self._pvt_ptr[0].subresourceType) @subresourceType.setter def subresourceType(self, subresourceType not None : CUarraySparseSubresourceType): self._pvt_ptr[0].subresourceType = int(subresourceType) - {{endif}} - {{if 'CUarrayMapInfo_st.subresource' in found_struct}} + + @property def subresource(self): return self._subresource @subresource.setter def subresource(self, subresource not None : anon_union10): - string.memcpy(&self._pvt_ptr[0].subresource, subresource.getPtr(), sizeof(self._pvt_ptr[0].subresource)) - {{endif}} - {{if 'CUarrayMapInfo_st.memOperationType' in found_struct}} + string.memcpy(&self._pvt_ptr[0].subresource, subresource.getPtr(), sizeof(self._pvt_ptr[0].subresource)) + + @property def memOperationType(self): return CUmemOperationType(self._pvt_ptr[0].memOperationType) @memOperationType.setter def memOperationType(self, memOperationType not None : CUmemOperationType): self._pvt_ptr[0].memOperationType = int(memOperationType) - {{endif}} - {{if 'CUarrayMapInfo_st.memHandleType' in found_struct}} + + @property def memHandleType(self): return CUmemHandleType(self._pvt_ptr[0].memHandleType) @memHandleType.setter def memHandleType(self, memHandleType not None : CUmemHandleType): self._pvt_ptr[0].memHandleType = int(memHandleType) - {{endif}} - {{if 'CUarrayMapInfo_st.memHandle' in found_struct}} + + @property def memHandle(self): return self._memHandle @memHandle.setter def memHandle(self, memHandle not None : anon_union11): - string.memcpy(&self._pvt_ptr[0].memHandle, memHandle.getPtr(), sizeof(self._pvt_ptr[0].memHandle)) - {{endif}} - {{if 'CUarrayMapInfo_st.offset' in found_struct}} + string.memcpy(&self._pvt_ptr[0].memHandle, memHandle.getPtr(), sizeof(self._pvt_ptr[0].memHandle)) + + @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 'CUarrayMapInfo_st.deviceBitMask' in found_struct}} + + @property def deviceBitMask(self): return self._pvt_ptr[0].deviceBitMask @deviceBitMask.setter def deviceBitMask(self, unsigned int deviceBitMask): self._pvt_ptr[0].deviceBitMask = deviceBitMask - {{endif}} - {{if 'CUarrayMapInfo_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 'CUarrayMapInfo_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 'CUmemLocation_st' in found_struct}} + cdef class CUmemLocation_st: """ @@ -21667,14 +20977,14 @@ cdef class CUmemLocation_st: Attributes ---------- - {{if 'CUmemLocation_st.type' in found_struct}} + type : CUmemLocationType Specifies the location type, which modifies the meaning of id. - {{endif}} - {{if 'CUmemLocation_st.id' in found_struct}} + + id : int - {{endif}} + Methods ------- @@ -21697,60 +21007,58 @@ cdef class CUmemLocation_st: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUmemLocation_st.type' in found_struct}} + try: str_list += ['type : ' + str(self.type)] except ValueError: str_list += ['type : '] - {{endif}} - {{if 'CUmemLocation_st.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 'CUmemLocation_st.type' in found_struct}} + @property def type(self): return CUmemLocationType(self._pvt_ptr[0].type) @type.setter def type(self, type not None : CUmemLocationType): self._pvt_ptr[0].type = int(type) - {{endif}} - {{if 'CUmemLocation_st.id' in found_struct}} + + @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 'CUmemAllocationProp_st.allocFlags' in found_struct}} + cdef class anon_struct22: """ Attributes ---------- - {{if 'CUmemAllocationProp_st.allocFlags.compressionType' in found_struct}} + compressionType : bytes - {{endif}} - {{if 'CUmemAllocationProp_st.allocFlags.gpuDirectRDMACapable' in found_struct}} + + gpuDirectRDMACapable : bytes - {{endif}} - {{if 'CUmemAllocationProp_st.allocFlags.usage' in found_struct}} + + usage : unsigned short - {{endif}} - {{if 'CUmemAllocationProp_st.allocFlags.reserved' in found_struct}} + + reserved : bytes - {{endif}} + Methods ------- @@ -21769,58 +21077,58 @@ cdef class anon_struct22: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUmemAllocationProp_st.allocFlags.compressionType' in found_struct}} + try: str_list += ['compressionType : ' + str(self.compressionType)] except ValueError: str_list += ['compressionType : '] - {{endif}} - {{if 'CUmemAllocationProp_st.allocFlags.gpuDirectRDMACapable' in found_struct}} + + try: str_list += ['gpuDirectRDMACapable : ' + str(self.gpuDirectRDMACapable)] except ValueError: str_list += ['gpuDirectRDMACapable : '] - {{endif}} - {{if 'CUmemAllocationProp_st.allocFlags.usage' in found_struct}} + + try: str_list += ['usage : ' + str(self.usage)] except ValueError: str_list += ['usage : '] - {{endif}} - {{if 'CUmemAllocationProp_st.allocFlags.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 'CUmemAllocationProp_st.allocFlags.compressionType' in found_struct}} + @property def compressionType(self): return self._pvt_ptr[0].allocFlags.compressionType @compressionType.setter def compressionType(self, unsigned char compressionType): self._pvt_ptr[0].allocFlags.compressionType = compressionType - {{endif}} - {{if 'CUmemAllocationProp_st.allocFlags.gpuDirectRDMACapable' in found_struct}} + + @property def gpuDirectRDMACapable(self): return self._pvt_ptr[0].allocFlags.gpuDirectRDMACapable @gpuDirectRDMACapable.setter def gpuDirectRDMACapable(self, unsigned char gpuDirectRDMACapable): self._pvt_ptr[0].allocFlags.gpuDirectRDMACapable = gpuDirectRDMACapable - {{endif}} - {{if 'CUmemAllocationProp_st.allocFlags.usage' in found_struct}} + + @property def usage(self): return self._pvt_ptr[0].allocFlags.usage @usage.setter def usage(self, unsigned short usage): self._pvt_ptr[0].allocFlags.usage = usage - {{endif}} - {{if 'CUmemAllocationProp_st.allocFlags.reserved' in found_struct}} + + @property def reserved(self): return PyBytes_FromStringAndSize(self._pvt_ptr[0].allocFlags.reserved, 4) @@ -21830,9 +21138,7 @@ cdef class anon_struct22: raise ValueError("reserved length must be 4, is " + str(len(reserved))) for i, b in enumerate(reserved): self._pvt_ptr[0].allocFlags.reserved[i] = b - {{endif}} -{{endif}} -{{if 'CUmemAllocationProp_st' in found_struct}} + cdef class CUmemAllocationProp_st: """ @@ -21840,30 +21146,30 @@ cdef class CUmemAllocationProp_st: Attributes ---------- - {{if 'CUmemAllocationProp_st.type' in found_struct}} + type : CUmemAllocationType Allocation type - {{endif}} - {{if 'CUmemAllocationProp_st.requestedHandleTypes' in found_struct}} + + requestedHandleTypes : CUmemAllocationHandleType requested CUmemAllocationHandleType - {{endif}} - {{if 'CUmemAllocationProp_st.location' in found_struct}} + + location : CUmemLocation Location of allocation - {{endif}} - {{if 'CUmemAllocationProp_st.win32HandleMetaData' in found_struct}} + + win32HandleMetaData : Any Windows-specific POBJECT_ATTRIBUTES required when CU_MEM_HANDLE_TYPE_WIN32 is specified. This object attributes structure includes security attributes that define the scope of which exported allocations may be transferred to other processes. In all other cases, this field is required to be zero. - {{endif}} - {{if 'CUmemAllocationProp_st.allocFlags' in found_struct}} + + allocFlags : anon_struct22 - {{endif}} + Methods ------- @@ -21877,12 +21183,12 @@ cdef class CUmemAllocationProp_st: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): pass - {{if 'CUmemAllocationProp_st.location' in found_struct}} + self._location = CUmemLocation(_ptr=&self._pvt_ptr[0].location) - {{endif}} - {{if 'CUmemAllocationProp_st.allocFlags' in found_struct}} + + self._allocFlags = anon_struct22(_ptr=self._pvt_ptr) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -21890,64 +21196,64 @@ cdef class CUmemAllocationProp_st: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUmemAllocationProp_st.type' in found_struct}} + try: str_list += ['type : ' + str(self.type)] except ValueError: str_list += ['type : '] - {{endif}} - {{if 'CUmemAllocationProp_st.requestedHandleTypes' in found_struct}} + + try: str_list += ['requestedHandleTypes : ' + str(self.requestedHandleTypes)] except ValueError: str_list += ['requestedHandleTypes : '] - {{endif}} - {{if 'CUmemAllocationProp_st.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 'CUmemAllocationProp_st.win32HandleMetaData' in found_struct}} + + try: str_list += ['win32HandleMetaData : ' + hex(self.win32HandleMetaData)] except ValueError: str_list += ['win32HandleMetaData : '] - {{endif}} - {{if 'CUmemAllocationProp_st.allocFlags' in found_struct}} + + try: str_list += ['allocFlags :\n' + '\n'.join([' ' + line for line in str(self.allocFlags).splitlines()])] except ValueError: str_list += ['allocFlags : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'CUmemAllocationProp_st.type' in found_struct}} + @property def type(self): return CUmemAllocationType(self._pvt_ptr[0].type) @type.setter def type(self, type not None : CUmemAllocationType): self._pvt_ptr[0].type = int(type) - {{endif}} - {{if 'CUmemAllocationProp_st.requestedHandleTypes' in found_struct}} + + @property def requestedHandleTypes(self): return CUmemAllocationHandleType(self._pvt_ptr[0].requestedHandleTypes) @requestedHandleTypes.setter def requestedHandleTypes(self, requestedHandleTypes not None : CUmemAllocationHandleType): self._pvt_ptr[0].requestedHandleTypes = int(requestedHandleTypes) - {{endif}} - {{if 'CUmemAllocationProp_st.location' in found_struct}} + + @property def location(self): return self._location @location.setter def location(self, location not None : CUmemLocation): - string.memcpy(&self._pvt_ptr[0].location, location.getPtr(), sizeof(self._pvt_ptr[0].location)) - {{endif}} - {{if 'CUmemAllocationProp_st.win32HandleMetaData' in found_struct}} + string.memcpy(&self._pvt_ptr[0].location, location.getPtr(), sizeof(self._pvt_ptr[0].location)) + + @property def win32HandleMetaData(self): return self._pvt_ptr[0].win32HandleMetaData @@ -21955,17 +21261,15 @@ cdef class CUmemAllocationProp_st: def win32HandleMetaData(self, win32HandleMetaData): self._cywin32HandleMetaData = _HelperInputVoidPtr(win32HandleMetaData) self._pvt_ptr[0].win32HandleMetaData = self._cywin32HandleMetaData.cptr - {{endif}} - {{if 'CUmemAllocationProp_st.allocFlags' in found_struct}} + + @property def allocFlags(self): return self._allocFlags @allocFlags.setter def allocFlags(self, allocFlags not None : anon_struct22): - string.memcpy(&self._pvt_ptr[0].allocFlags, allocFlags.getPtr(), sizeof(self._pvt_ptr[0].allocFlags)) - {{endif}} -{{endif}} -{{if 'CUmulticastObjectProp_st' in found_struct}} + string.memcpy(&self._pvt_ptr[0].allocFlags, allocFlags.getPtr(), sizeof(self._pvt_ptr[0].allocFlags)) + cdef class CUmulticastObjectProp_st: """ @@ -21973,25 +21277,25 @@ cdef class CUmulticastObjectProp_st: Attributes ---------- - {{if 'CUmulticastObjectProp_st.numDevices' in found_struct}} + numDevices : unsigned int The number of devices in the multicast team that will bind memory to this object - {{endif}} - {{if 'CUmulticastObjectProp_st.size' in found_struct}} + + size : size_t The maximum amount of memory that can be bound to this multicast object per device - {{endif}} - {{if 'CUmulticastObjectProp_st.handleTypes' in found_struct}} + + handleTypes : unsigned long long Bitmask of exportable handle types (see CUmemAllocationHandleType) for this object - {{endif}} - {{if 'CUmulticastObjectProp_st.flags' in found_struct}} + + flags : unsigned long long Flags for future use, must be zero now - {{endif}} + Methods ------- @@ -22012,67 +21316,65 @@ cdef class CUmulticastObjectProp_st: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUmulticastObjectProp_st.numDevices' in found_struct}} + try: str_list += ['numDevices : ' + str(self.numDevices)] except ValueError: str_list += ['numDevices : '] - {{endif}} - {{if 'CUmulticastObjectProp_st.size' in found_struct}} + + try: str_list += ['size : ' + str(self.size)] except ValueError: str_list += ['size : '] - {{endif}} - {{if 'CUmulticastObjectProp_st.handleTypes' in found_struct}} + + try: str_list += ['handleTypes : ' + str(self.handleTypes)] except ValueError: str_list += ['handleTypes : '] - {{endif}} - {{if 'CUmulticastObjectProp_st.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 'CUmulticastObjectProp_st.numDevices' in found_struct}} + @property def numDevices(self): return self._pvt_ptr[0].numDevices @numDevices.setter def numDevices(self, unsigned int numDevices): self._pvt_ptr[0].numDevices = numDevices - {{endif}} - {{if 'CUmulticastObjectProp_st.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 'CUmulticastObjectProp_st.handleTypes' in found_struct}} + + @property def handleTypes(self): return self._pvt_ptr[0].handleTypes @handleTypes.setter def handleTypes(self, unsigned long long handleTypes): self._pvt_ptr[0].handleTypes = handleTypes - {{endif}} - {{if 'CUmulticastObjectProp_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}} -{{endif}} -{{if 'CUmemAccessDesc_st' in found_struct}} + cdef class CUmemAccessDesc_st: """ @@ -22080,14 +21382,14 @@ cdef class CUmemAccessDesc_st: Attributes ---------- - {{if 'CUmemAccessDesc_st.location' in found_struct}} + location : CUmemLocation Location on which the request is to change it's accessibility - {{endif}} - {{if 'CUmemAccessDesc_st.flags' in found_struct}} + + flags : CUmemAccess_flags ::CUmemProt accessibility flags to set on the request - {{endif}} + Methods ------- @@ -22101,9 +21403,9 @@ cdef class CUmemAccessDesc_st: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): pass - {{if 'CUmemAccessDesc_st.location' in found_struct}} + self._location = CUmemLocation(_ptr=&self._pvt_ptr[0].location) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -22111,39 +21413,37 @@ cdef class CUmemAccessDesc_st: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUmemAccessDesc_st.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 'CUmemAccessDesc_st.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 'CUmemAccessDesc_st.location' in found_struct}} + @property def location(self): return self._location @location.setter def location(self, location not None : CUmemLocation): - string.memcpy(&self._pvt_ptr[0].location, location.getPtr(), sizeof(self._pvt_ptr[0].location)) - {{endif}} - {{if 'CUmemAccessDesc_st.flags' in found_struct}} + string.memcpy(&self._pvt_ptr[0].location, location.getPtr(), sizeof(self._pvt_ptr[0].location)) + + @property def flags(self): 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) - {{endif}} -{{endif}} -{{if 'CUgraphExecUpdateResultInfo_st' in found_struct}} + cdef class CUgraphExecUpdateResultInfo_st: """ @@ -22151,21 +21451,21 @@ cdef class CUgraphExecUpdateResultInfo_st: Attributes ---------- - {{if 'CUgraphExecUpdateResultInfo_st.result' in found_struct}} + result : CUgraphExecUpdateResult Gives more specific detail when a cuda graph update fails. - {{endif}} - {{if 'CUgraphExecUpdateResultInfo_st.errorNode' in found_struct}} + + errorNode : CUgraphNode 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 'CUgraphExecUpdateResultInfo_st.errorFromNode' in found_struct}} + + errorFromNode : CUgraphNode The from node of error edge when the topologies do not match. Otherwise NULL. - {{endif}} + Methods ------- @@ -22179,12 +21479,12 @@ cdef class CUgraphExecUpdateResultInfo_st: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): pass - {{if 'CUgraphExecUpdateResultInfo_st.errorNode' in found_struct}} + self._errorNode = CUgraphNode(_ptr=&self._pvt_ptr[0].errorNode) - {{endif}} - {{if 'CUgraphExecUpdateResultInfo_st.errorFromNode' in found_struct}} + + self._errorFromNode = CUgraphNode(_ptr=&self._pvt_ptr[0].errorFromNode) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -22192,36 +21492,36 @@ cdef class CUgraphExecUpdateResultInfo_st: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUgraphExecUpdateResultInfo_st.result' in found_struct}} + try: str_list += ['result : ' + str(self.result)] except ValueError: str_list += ['result : '] - {{endif}} - {{if 'CUgraphExecUpdateResultInfo_st.errorNode' in found_struct}} + + try: str_list += ['errorNode : ' + str(self.errorNode)] except ValueError: str_list += ['errorNode : '] - {{endif}} - {{if 'CUgraphExecUpdateResultInfo_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 'CUgraphExecUpdateResultInfo_st.result' in found_struct}} + @property def result(self): return CUgraphExecUpdateResult(self._pvt_ptr[0].result) @result.setter def result(self, result not None : CUgraphExecUpdateResult): self._pvt_ptr[0].result = int(result) - {{endif}} - {{if 'CUgraphExecUpdateResultInfo_st.errorNode' in found_struct}} + + @property def errorNode(self): return self._errorNode @@ -22237,8 +21537,8 @@ cdef class CUgraphExecUpdateResultInfo_st: perrorNode = int(CUgraphNode(errorNode)) cyerrorNode = perrorNode self._errorNode._pvt_ptr[0] = cyerrorNode - {{endif}} - {{if 'CUgraphExecUpdateResultInfo_st.errorFromNode' in found_struct}} + + @property def errorFromNode(self): return self._errorFromNode @@ -22254,9 +21554,7 @@ cdef class CUgraphExecUpdateResultInfo_st: perrorFromNode = int(CUgraphNode(errorFromNode)) cyerrorFromNode = perrorFromNode self._errorFromNode._pvt_ptr[0] = cyerrorFromNode - {{endif}} -{{endif}} -{{if 'CUmemPoolProps_st' in found_struct}} + cdef class CUmemPoolProps_st: """ @@ -22264,40 +21562,40 @@ cdef class CUmemPoolProps_st: Attributes ---------- - {{if 'CUmemPoolProps_st.allocType' in found_struct}} + allocType : CUmemAllocationType Allocation type. Currently must be specified as CU_MEM_ALLOCATION_TYPE_PINNED - {{endif}} - {{if 'CUmemPoolProps_st.handleTypes' in found_struct}} + + handleTypes : CUmemAllocationHandleType Handle types that will be supported by allocations from the pool. - {{endif}} - {{if 'CUmemPoolProps_st.location' in found_struct}} + + location : CUmemLocation Location where allocations should reside. - {{endif}} - {{if 'CUmemPoolProps_st.win32SecurityAttributes' in found_struct}} + + win32SecurityAttributes : Any Windows-specific LPSECURITYATTRIBUTES required when CU_MEM_HANDLE_TYPE_WIN32 is specified. This security attribute defines the scope of which exported allocations may be transferred to other processes. In all other cases, this field is required to be zero. - {{endif}} - {{if 'CUmemPoolProps_st.maxSize' in found_struct}} + + maxSize : size_t Maximum pool size. When set to 0, defaults to a system dependent value. - {{endif}} - {{if 'CUmemPoolProps_st.usage' in found_struct}} + + usage : unsigned short Bitmask indicating intended usage for the pool. - {{endif}} - {{if 'CUmemPoolProps_st.reserved' in found_struct}} + + reserved : bytes reserved for future use, must be 0 - {{endif}} + Methods ------- @@ -22311,9 +21609,9 @@ cdef class CUmemPoolProps_st: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): pass - {{if 'CUmemPoolProps_st.location' in found_struct}} + self._location = CUmemLocation(_ptr=&self._pvt_ptr[0].location) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -22321,76 +21619,76 @@ cdef class CUmemPoolProps_st: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUmemPoolProps_st.allocType' in found_struct}} + try: str_list += ['allocType : ' + str(self.allocType)] except ValueError: str_list += ['allocType : '] - {{endif}} - {{if 'CUmemPoolProps_st.handleTypes' in found_struct}} + + try: str_list += ['handleTypes : ' + str(self.handleTypes)] except ValueError: str_list += ['handleTypes : '] - {{endif}} - {{if 'CUmemPoolProps_st.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 'CUmemPoolProps_st.win32SecurityAttributes' in found_struct}} + + try: str_list += ['win32SecurityAttributes : ' + hex(self.win32SecurityAttributes)] except ValueError: str_list += ['win32SecurityAttributes : '] - {{endif}} - {{if 'CUmemPoolProps_st.maxSize' in found_struct}} + + try: str_list += ['maxSize : ' + str(self.maxSize)] except ValueError: str_list += ['maxSize : '] - {{endif}} - {{if 'CUmemPoolProps_st.usage' in found_struct}} + + try: str_list += ['usage : ' + str(self.usage)] except ValueError: str_list += ['usage : '] - {{endif}} - {{if 'CUmemPoolProps_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 'CUmemPoolProps_st.allocType' in found_struct}} + @property def allocType(self): return CUmemAllocationType(self._pvt_ptr[0].allocType) @allocType.setter def allocType(self, allocType not None : CUmemAllocationType): self._pvt_ptr[0].allocType = int(allocType) - {{endif}} - {{if 'CUmemPoolProps_st.handleTypes' in found_struct}} + + @property def handleTypes(self): return CUmemAllocationHandleType(self._pvt_ptr[0].handleTypes) @handleTypes.setter def handleTypes(self, handleTypes not None : CUmemAllocationHandleType): self._pvt_ptr[0].handleTypes = int(handleTypes) - {{endif}} - {{if 'CUmemPoolProps_st.location' in found_struct}} + + @property def location(self): return self._location @location.setter def location(self, location not None : CUmemLocation): - string.memcpy(&self._pvt_ptr[0].location, location.getPtr(), sizeof(self._pvt_ptr[0].location)) - {{endif}} - {{if 'CUmemPoolProps_st.win32SecurityAttributes' in found_struct}} + string.memcpy(&self._pvt_ptr[0].location, location.getPtr(), sizeof(self._pvt_ptr[0].location)) + + @property def win32SecurityAttributes(self): return self._pvt_ptr[0].win32SecurityAttributes @@ -22398,24 +21696,24 @@ cdef class CUmemPoolProps_st: def win32SecurityAttributes(self, win32SecurityAttributes): self._cywin32SecurityAttributes = _HelperInputVoidPtr(win32SecurityAttributes) self._pvt_ptr[0].win32SecurityAttributes = self._cywin32SecurityAttributes.cptr - {{endif}} - {{if 'CUmemPoolProps_st.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 'CUmemPoolProps_st.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 'CUmemPoolProps_st.reserved' in found_struct}} + + @property def reserved(self): return PyBytes_FromStringAndSize(self._pvt_ptr[0].reserved, 54) @@ -22425,9 +21723,7 @@ cdef class CUmemPoolProps_st: 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 'CUmemPoolPtrExportData_st' in found_struct}} + cdef class CUmemPoolPtrExportData_st: """ @@ -22435,10 +21731,10 @@ cdef class CUmemPoolPtrExportData_st: Attributes ---------- - {{if 'CUmemPoolPtrExportData_st.reserved' in found_struct}} + reserved : bytes - {{endif}} + Methods ------- @@ -22459,16 +21755,16 @@ cdef class CUmemPoolPtrExportData_st: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUmemPoolPtrExportData_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 'CUmemPoolPtrExportData_st.reserved' in found_struct}} + @property def reserved(self): return PyBytes_FromStringAndSize(self._pvt_ptr[0].reserved, 64) @@ -22478,9 +21774,7 @@ cdef class CUmemPoolPtrExportData_st: 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 'CUmemcpyAttributes_st' in found_struct}} + cdef class CUmemcpyAttributes_st: """ @@ -22489,25 +21783,25 @@ cdef class CUmemcpyAttributes_st: Attributes ---------- - {{if 'CUmemcpyAttributes_st.srcAccessOrder' in found_struct}} + srcAccessOrder : CUmemcpySrcAccessOrder Source access ordering to be observed for copies with this attribute. - {{endif}} - {{if 'CUmemcpyAttributes_st.srcLocHint' in found_struct}} + + srcLocHint : CUmemLocation Hint location for the source operand. Ignored when the pointers are not managed memory or memory allocated outside CUDA. - {{endif}} - {{if 'CUmemcpyAttributes_st.dstLocHint' in found_struct}} + + dstLocHint : CUmemLocation Hint location for the destination operand. Ignored when the pointers are not managed memory or memory allocated outside CUDA. - {{endif}} - {{if 'CUmemcpyAttributes_st.flags' in found_struct}} + + flags : unsigned int Additional flags for copies with this attribute. See CUmemcpyFlags - {{endif}} + Methods ------- @@ -22521,12 +21815,12 @@ cdef class CUmemcpyAttributes_st: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): pass - {{if 'CUmemcpyAttributes_st.srcLocHint' in found_struct}} + self._srcLocHint = CUmemLocation(_ptr=&self._pvt_ptr[0].srcLocHint) - {{endif}} - {{if 'CUmemcpyAttributes_st.dstLocHint' in found_struct}} + + self._dstLocHint = CUmemLocation(_ptr=&self._pvt_ptr[0].dstLocHint) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -22534,67 +21828,65 @@ cdef class CUmemcpyAttributes_st: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUmemcpyAttributes_st.srcAccessOrder' in found_struct}} + try: str_list += ['srcAccessOrder : ' + str(self.srcAccessOrder)] except ValueError: str_list += ['srcAccessOrder : '] - {{endif}} - {{if 'CUmemcpyAttributes_st.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 'CUmemcpyAttributes_st.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 'CUmemcpyAttributes_st.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 'CUmemcpyAttributes_st.srcAccessOrder' in found_struct}} + @property def srcAccessOrder(self): return CUmemcpySrcAccessOrder(self._pvt_ptr[0].srcAccessOrder) @srcAccessOrder.setter def srcAccessOrder(self, srcAccessOrder not None : CUmemcpySrcAccessOrder): self._pvt_ptr[0].srcAccessOrder = int(srcAccessOrder) - {{endif}} - {{if 'CUmemcpyAttributes_st.srcLocHint' in found_struct}} + + @property def srcLocHint(self): return self._srcLocHint @srcLocHint.setter def srcLocHint(self, srcLocHint not None : CUmemLocation): - string.memcpy(&self._pvt_ptr[0].srcLocHint, srcLocHint.getPtr(), sizeof(self._pvt_ptr[0].srcLocHint)) - {{endif}} - {{if 'CUmemcpyAttributes_st.dstLocHint' in found_struct}} + string.memcpy(&self._pvt_ptr[0].srcLocHint, srcLocHint.getPtr(), sizeof(self._pvt_ptr[0].srcLocHint)) + + @property def dstLocHint(self): return self._dstLocHint @dstLocHint.setter def dstLocHint(self, dstLocHint not None : CUmemLocation): - string.memcpy(&self._pvt_ptr[0].dstLocHint, dstLocHint.getPtr(), sizeof(self._pvt_ptr[0].dstLocHint)) - {{endif}} - {{if 'CUmemcpyAttributes_st.flags' in found_struct}} + string.memcpy(&self._pvt_ptr[0].dstLocHint, dstLocHint.getPtr(), sizeof(self._pvt_ptr[0].dstLocHint)) + + @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 'CUoffset3D_st' in found_struct}} + cdef class CUoffset3D_st: """ @@ -22602,18 +21894,18 @@ cdef class CUoffset3D_st: Attributes ---------- - {{if 'CUoffset3D_st.x' in found_struct}} + x : size_t - {{endif}} - {{if 'CUoffset3D_st.y' in found_struct}} + + y : size_t - {{endif}} - {{if 'CUoffset3D_st.z' in found_struct}} + + z : size_t - {{endif}} + Methods ------- @@ -22634,53 +21926,51 @@ cdef class CUoffset3D_st: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUoffset3D_st.x' in found_struct}} + try: str_list += ['x : ' + str(self.x)] except ValueError: str_list += ['x : '] - {{endif}} - {{if 'CUoffset3D_st.y' in found_struct}} + + try: str_list += ['y : ' + str(self.y)] except ValueError: str_list += ['y : '] - {{endif}} - {{if 'CUoffset3D_st.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 'CUoffset3D_st.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 'CUoffset3D_st.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 'CUoffset3D_st.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 'CUextent3D_st' in found_struct}} + cdef class CUextent3D_st: """ @@ -22688,18 +21978,18 @@ cdef class CUextent3D_st: Attributes ---------- - {{if 'CUextent3D_st.width' in found_struct}} + width : size_t - {{endif}} - {{if 'CUextent3D_st.height' in found_struct}} + + height : size_t - {{endif}} - {{if 'CUextent3D_st.depth' in found_struct}} + + depth : size_t - {{endif}} + Methods ------- @@ -22720,74 +22010,72 @@ cdef class CUextent3D_st: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUextent3D_st.width' in found_struct}} + try: str_list += ['width : ' + str(self.width)] except ValueError: str_list += ['width : '] - {{endif}} - {{if 'CUextent3D_st.height' in found_struct}} + + try: str_list += ['height : ' + str(self.height)] except ValueError: str_list += ['height : '] - {{endif}} - {{if 'CUextent3D_st.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 'CUextent3D_st.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 'CUextent3D_st.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 'CUextent3D_st.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 'CUmemcpy3DOperand_st.op.ptr' in found_struct}} + cdef class anon_struct23: """ Attributes ---------- - {{if 'CUmemcpy3DOperand_st.op.ptr.ptr' in found_struct}} + ptr : CUdeviceptr - {{endif}} - {{if 'CUmemcpy3DOperand_st.op.ptr.rowLength' in found_struct}} + + rowLength : size_t - {{endif}} - {{if 'CUmemcpy3DOperand_st.op.ptr.layerHeight' in found_struct}} + + layerHeight : size_t - {{endif}} - {{if 'CUmemcpy3DOperand_st.op.ptr.locHint' in found_struct}} + + locHint : CUmemLocation - {{endif}} + Methods ------- @@ -22799,12 +22087,12 @@ cdef class anon_struct23: def __init__(self, void_ptr _ptr): pass - {{if 'CUmemcpy3DOperand_st.op.ptr.ptr' in found_struct}} + self._ptr = CUdeviceptr(_ptr=&self._pvt_ptr[0].op.ptr.ptr) - {{endif}} - {{if 'CUmemcpy3DOperand_st.op.ptr.locHint' in found_struct}} + + self._locHint = CUmemLocation(_ptr=&self._pvt_ptr[0].op.ptr.locHint) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -22812,34 +22100,34 @@ cdef class anon_struct23: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUmemcpy3DOperand_st.op.ptr.ptr' in found_struct}} + try: str_list += ['ptr : ' + str(self.ptr)] except ValueError: str_list += ['ptr : '] - {{endif}} - {{if 'CUmemcpy3DOperand_st.op.ptr.rowLength' in found_struct}} + + try: str_list += ['rowLength : ' + str(self.rowLength)] except ValueError: str_list += ['rowLength : '] - {{endif}} - {{if 'CUmemcpy3DOperand_st.op.ptr.layerHeight' in found_struct}} + + try: str_list += ['layerHeight : ' + str(self.layerHeight)] except ValueError: str_list += ['layerHeight : '] - {{endif}} - {{if 'CUmemcpy3DOperand_st.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 'CUmemcpy3DOperand_st.op.ptr.ptr' in found_struct}} + @property def ptr(self): return self._ptr @@ -22856,46 +22144,44 @@ cdef class anon_struct23: cyptr = pptr self._ptr._pvt_ptr[0] = cyptr - {{endif}} - {{if 'CUmemcpy3DOperand_st.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 'CUmemcpy3DOperand_st.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 'CUmemcpy3DOperand_st.op.ptr.locHint' in found_struct}} + + @property def locHint(self): return self._locHint @locHint.setter def locHint(self, locHint not None : CUmemLocation): - string.memcpy(&self._pvt_ptr[0].op.ptr.locHint, locHint.getPtr(), sizeof(self._pvt_ptr[0].op.ptr.locHint)) - {{endif}} -{{endif}} -{{if 'CUmemcpy3DOperand_st.op.array' in found_struct}} + string.memcpy(&self._pvt_ptr[0].op.ptr.locHint, locHint.getPtr(), sizeof(self._pvt_ptr[0].op.ptr.locHint)) + cdef class anon_struct24: """ Attributes ---------- - {{if 'CUmemcpy3DOperand_st.op.array.array' in found_struct}} + array : CUarray - {{endif}} - {{if 'CUmemcpy3DOperand_st.op.array.offset' in found_struct}} + + offset : CUoffset3D - {{endif}} + Methods ------- @@ -22907,12 +22193,12 @@ cdef class anon_struct24: def __init__(self, void_ptr _ptr): pass - {{if 'CUmemcpy3DOperand_st.op.array.array' in found_struct}} + self._array = CUarray(_ptr=&self._pvt_ptr[0].op.array.array) - {{endif}} - {{if 'CUmemcpy3DOperand_st.op.array.offset' in found_struct}} + + self._offset = CUoffset3D(_ptr=&self._pvt_ptr[0].op.array.offset) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -22920,22 +22206,22 @@ cdef class anon_struct24: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUmemcpy3DOperand_st.op.array.array' in found_struct}} + try: str_list += ['array : ' + str(self.array)] except ValueError: str_list += ['array : '] - {{endif}} - {{if 'CUmemcpy3DOperand_st.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 'CUmemcpy3DOperand_st.op.array.array' in found_struct}} + @property def array(self): return self._array @@ -22951,30 +22237,28 @@ cdef class anon_struct24: parray = int(CUarray(array)) cyarray = parray self._array._pvt_ptr[0] = cyarray - {{endif}} - {{if 'CUmemcpy3DOperand_st.op.array.offset' in found_struct}} + + @property def offset(self): return self._offset @offset.setter def offset(self, offset not None : CUoffset3D): - string.memcpy(&self._pvt_ptr[0].op.array.offset, offset.getPtr(), sizeof(self._pvt_ptr[0].op.array.offset)) - {{endif}} -{{endif}} -{{if 'CUmemcpy3DOperand_st.op' in found_struct}} + string.memcpy(&self._pvt_ptr[0].op.array.offset, offset.getPtr(), sizeof(self._pvt_ptr[0].op.array.offset)) + cdef class anon_union13: """ Attributes ---------- - {{if 'CUmemcpy3DOperand_st.op.ptr' in found_struct}} + ptr : anon_struct23 - {{endif}} - {{if 'CUmemcpy3DOperand_st.op.array' in found_struct}} + + array : anon_struct24 - {{endif}} + Methods ------- @@ -22986,12 +22270,12 @@ cdef class anon_union13: def __init__(self, void_ptr _ptr): pass - {{if 'CUmemcpy3DOperand_st.op.ptr' in found_struct}} + self._ptr = anon_struct23(_ptr=self._pvt_ptr) - {{endif}} - {{if 'CUmemcpy3DOperand_st.op.array' in found_struct}} + + self._array = anon_struct24(_ptr=self._pvt_ptr) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -22999,39 +22283,37 @@ cdef class anon_union13: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUmemcpy3DOperand_st.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 'CUmemcpy3DOperand_st.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 'CUmemcpy3DOperand_st.op.ptr' in found_struct}} + @property def ptr(self): return self._ptr @ptr.setter def ptr(self, ptr not None : anon_struct23): - string.memcpy(&self._pvt_ptr[0].op.ptr, ptr.getPtr(), sizeof(self._pvt_ptr[0].op.ptr)) - {{endif}} - {{if 'CUmemcpy3DOperand_st.op.array' in found_struct}} + string.memcpy(&self._pvt_ptr[0].op.ptr, ptr.getPtr(), sizeof(self._pvt_ptr[0].op.ptr)) + + @property def array(self): return self._array @array.setter def array(self, array not None : anon_struct24): - string.memcpy(&self._pvt_ptr[0].op.array, array.getPtr(), sizeof(self._pvt_ptr[0].op.array)) - {{endif}} -{{endif}} -{{if 'CUmemcpy3DOperand_st' in found_struct}} + string.memcpy(&self._pvt_ptr[0].op.array, array.getPtr(), sizeof(self._pvt_ptr[0].op.array)) + cdef class CUmemcpy3DOperand_st: """ @@ -23039,14 +22321,14 @@ cdef class CUmemcpy3DOperand_st: Attributes ---------- - {{if 'CUmemcpy3DOperand_st.type' in found_struct}} + type : CUmemcpy3DOperandType - {{endif}} - {{if 'CUmemcpy3DOperand_st.op' in found_struct}} + + op : anon_union13 - {{endif}} + Methods ------- @@ -23061,9 +22343,9 @@ cdef class CUmemcpy3DOperand_st: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): pass - {{if 'CUmemcpy3DOperand_st.op' in found_struct}} + self._op = anon_union13(_ptr=self._pvt_ptr) - {{endif}} + def __dealloc__(self): if self._val_ptr is not NULL: free(self._val_ptr) @@ -23072,65 +22354,63 @@ cdef class CUmemcpy3DOperand_st: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUmemcpy3DOperand_st.type' in found_struct}} + try: str_list += ['type : ' + str(self.type)] except ValueError: str_list += ['type : '] - {{endif}} - {{if 'CUmemcpy3DOperand_st.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 'CUmemcpy3DOperand_st.type' in found_struct}} + @property def type(self): return CUmemcpy3DOperandType(self._pvt_ptr[0].type) @type.setter def type(self, type not None : CUmemcpy3DOperandType): self._pvt_ptr[0].type = int(type) - {{endif}} - {{if 'CUmemcpy3DOperand_st.op' in found_struct}} + + @property def op(self): return self._op @op.setter def op(self, op not None : anon_union13): - string.memcpy(&self._pvt_ptr[0].op, op.getPtr(), sizeof(self._pvt_ptr[0].op)) - {{endif}} -{{endif}} -{{if 'CUDA_MEMCPY3D_BATCH_OP_st' in found_struct}} + string.memcpy(&self._pvt_ptr[0].op, op.getPtr(), sizeof(self._pvt_ptr[0].op)) + cdef class CUDA_MEMCPY3D_BATCH_OP_st: """ Attributes ---------- - {{if 'CUDA_MEMCPY3D_BATCH_OP_st.src' in found_struct}} + src : CUmemcpy3DOperand Source memcpy operand. - {{endif}} - {{if 'CUDA_MEMCPY3D_BATCH_OP_st.dst' in found_struct}} + + dst : CUmemcpy3DOperand Destination memcpy operand. - {{endif}} - {{if 'CUDA_MEMCPY3D_BATCH_OP_st.extent' in found_struct}} + + extent : CUextent3D Extents of the memcpy between src and dst. The width, height and depth components must not be 0. - {{endif}} - {{if 'CUDA_MEMCPY3D_BATCH_OP_st.srcAccessOrder' in found_struct}} + + srcAccessOrder : CUmemcpySrcAccessOrder Source access ordering to be observed for copy from src to dst. - {{endif}} - {{if 'CUDA_MEMCPY3D_BATCH_OP_st.flags' in found_struct}} + + flags : unsigned int Additional flags for copies with this attribute. See CUmemcpyFlags - {{endif}} + Methods ------- @@ -23144,15 +22424,15 @@ cdef class CUDA_MEMCPY3D_BATCH_OP_st: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): pass - {{if 'CUDA_MEMCPY3D_BATCH_OP_st.src' in found_struct}} + self._src = CUmemcpy3DOperand(_ptr=&self._pvt_ptr[0].src) - {{endif}} - {{if 'CUDA_MEMCPY3D_BATCH_OP_st.dst' in found_struct}} + + self._dst = CUmemcpy3DOperand(_ptr=&self._pvt_ptr[0].dst) - {{endif}} - {{if 'CUDA_MEMCPY3D_BATCH_OP_st.extent' in found_struct}} + + self._extent = CUextent3D(_ptr=&self._pvt_ptr[0].extent) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -23160,81 +22440,79 @@ cdef class CUDA_MEMCPY3D_BATCH_OP_st: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUDA_MEMCPY3D_BATCH_OP_st.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 'CUDA_MEMCPY3D_BATCH_OP_st.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 'CUDA_MEMCPY3D_BATCH_OP_st.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 'CUDA_MEMCPY3D_BATCH_OP_st.srcAccessOrder' in found_struct}} + + try: str_list += ['srcAccessOrder : ' + str(self.srcAccessOrder)] except ValueError: str_list += ['srcAccessOrder : '] - {{endif}} - {{if 'CUDA_MEMCPY3D_BATCH_OP_st.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 'CUDA_MEMCPY3D_BATCH_OP_st.src' in found_struct}} + @property def src(self): return self._src @src.setter def src(self, src not None : CUmemcpy3DOperand): - string.memcpy(&self._pvt_ptr[0].src, src.getPtr(), sizeof(self._pvt_ptr[0].src)) - {{endif}} - {{if 'CUDA_MEMCPY3D_BATCH_OP_st.dst' in found_struct}} + string.memcpy(&self._pvt_ptr[0].src, src.getPtr(), sizeof(self._pvt_ptr[0].src)) + + @property def dst(self): return self._dst @dst.setter def dst(self, dst not None : CUmemcpy3DOperand): - string.memcpy(&self._pvt_ptr[0].dst, dst.getPtr(), sizeof(self._pvt_ptr[0].dst)) - {{endif}} - {{if 'CUDA_MEMCPY3D_BATCH_OP_st.extent' in found_struct}} + string.memcpy(&self._pvt_ptr[0].dst, dst.getPtr(), sizeof(self._pvt_ptr[0].dst)) + + @property def extent(self): return self._extent @extent.setter def extent(self, extent not None : CUextent3D): - string.memcpy(&self._pvt_ptr[0].extent, extent.getPtr(), sizeof(self._pvt_ptr[0].extent)) - {{endif}} - {{if 'CUDA_MEMCPY3D_BATCH_OP_st.srcAccessOrder' in found_struct}} + string.memcpy(&self._pvt_ptr[0].extent, extent.getPtr(), sizeof(self._pvt_ptr[0].extent)) + + @property def srcAccessOrder(self): return CUmemcpySrcAccessOrder(self._pvt_ptr[0].srcAccessOrder) @srcAccessOrder.setter def srcAccessOrder(self, srcAccessOrder not None : CUmemcpySrcAccessOrder): self._pvt_ptr[0].srcAccessOrder = int(srcAccessOrder) - {{endif}} - {{if 'CUDA_MEMCPY3D_BATCH_OP_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}} -{{endif}} -{{if 'CUDA_MEM_ALLOC_NODE_PARAMS_v1_st' in found_struct}} + cdef class CUDA_MEM_ALLOC_NODE_PARAMS_v1_st: """ @@ -23242,30 +22520,30 @@ cdef class CUDA_MEM_ALLOC_NODE_PARAMS_v1_st: Attributes ---------- - {{if 'CUDA_MEM_ALLOC_NODE_PARAMS_v1_st.poolProps' in found_struct}} + poolProps : CUmemPoolProps in: location where the allocation should reside (specified in ::location). ::handleTypes must be CU_MEM_HANDLE_TYPE_NONE. IPC is not supported. - {{endif}} - {{if 'CUDA_MEM_ALLOC_NODE_PARAMS_v1_st.accessDescs' in found_struct}} + + accessDescs : CUmemAccessDesc in: array of memory access descriptors. Used to describe peer GPU access - {{endif}} - {{if 'CUDA_MEM_ALLOC_NODE_PARAMS_v1_st.accessDescCount' in found_struct}} + + accessDescCount : size_t in: number of memory access descriptors. Must not exceed the number of GPUs. - {{endif}} - {{if 'CUDA_MEM_ALLOC_NODE_PARAMS_v1_st.bytesize' in found_struct}} + + bytesize : size_t in: size in bytes of the requested allocation - {{endif}} - {{if 'CUDA_MEM_ALLOC_NODE_PARAMS_v1_st.dptr' in found_struct}} + + dptr : CUdeviceptr out: address of the allocation returned by CUDA - {{endif}} + Methods ------- @@ -23279,65 +22557,65 @@ cdef class CUDA_MEM_ALLOC_NODE_PARAMS_v1_st: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): pass - {{if 'CUDA_MEM_ALLOC_NODE_PARAMS_v1_st.poolProps' in found_struct}} + self._poolProps = CUmemPoolProps(_ptr=&self._pvt_ptr[0].poolProps) - {{endif}} - {{if 'CUDA_MEM_ALLOC_NODE_PARAMS_v1_st.dptr' in found_struct}} + + self._dptr = CUdeviceptr(_ptr=&self._pvt_ptr[0].dptr) - {{endif}} + def __dealloc__(self): pass - {{if 'CUDA_MEM_ALLOC_NODE_PARAMS_v1_st.accessDescs' in found_struct}} + if self._accessDescs is not NULL: free(self._accessDescs) - {{endif}} + def getPtr(self): return self._pvt_ptr def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUDA_MEM_ALLOC_NODE_PARAMS_v1_st.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 'CUDA_MEM_ALLOC_NODE_PARAMS_v1_st.accessDescs' in found_struct}} + + try: str_list += ['accessDescs : ' + str(self.accessDescs)] except ValueError: str_list += ['accessDescs : '] - {{endif}} - {{if 'CUDA_MEM_ALLOC_NODE_PARAMS_v1_st.accessDescCount' in found_struct}} + + try: str_list += ['accessDescCount : ' + str(self.accessDescCount)] except ValueError: str_list += ['accessDescCount : '] - {{endif}} - {{if 'CUDA_MEM_ALLOC_NODE_PARAMS_v1_st.bytesize' in found_struct}} + + try: str_list += ['bytesize : ' + str(self.bytesize)] except ValueError: str_list += ['bytesize : '] - {{endif}} - {{if 'CUDA_MEM_ALLOC_NODE_PARAMS_v1_st.dptr' in found_struct}} + + try: str_list += ['dptr : ' + str(self.dptr)] except ValueError: str_list += ['dptr : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'CUDA_MEM_ALLOC_NODE_PARAMS_v1_st.poolProps' in found_struct}} + @property def poolProps(self): return self._poolProps @poolProps.setter def poolProps(self, poolProps not None : CUmemPoolProps): - string.memcpy(&self._pvt_ptr[0].poolProps, poolProps.getPtr(), sizeof(self._pvt_ptr[0].poolProps)) - {{endif}} - {{if 'CUDA_MEM_ALLOC_NODE_PARAMS_v1_st.accessDescs' in found_struct}} + string.memcpy(&self._pvt_ptr[0].poolProps, poolProps.getPtr(), sizeof(self._pvt_ptr[0].poolProps)) + + @property def accessDescs(self): arrs = [self._pvt_ptr[0].accessDescs + x*sizeof(cydriver.CUmemAccessDesc) for x in range(self._accessDescs_length)] @@ -23359,24 +22637,24 @@ cdef class CUDA_MEM_ALLOC_NODE_PARAMS_v1_st: for idx in range(len(val)): string.memcpy(&self._accessDescs[idx], (val[idx])._pvt_ptr, sizeof(cydriver.CUmemAccessDesc)) - {{endif}} - {{if 'CUDA_MEM_ALLOC_NODE_PARAMS_v1_st.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 'CUDA_MEM_ALLOC_NODE_PARAMS_v1_st.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 'CUDA_MEM_ALLOC_NODE_PARAMS_v1_st.dptr' in found_struct}} + + @property def dptr(self): return self._dptr @@ -23393,9 +22671,7 @@ cdef class CUDA_MEM_ALLOC_NODE_PARAMS_v1_st: cydptr = pdptr self._dptr._pvt_ptr[0] = cydptr - {{endif}} -{{endif}} -{{if 'CUDA_MEM_ALLOC_NODE_PARAMS_v2_st' in found_struct}} + cdef class CUDA_MEM_ALLOC_NODE_PARAMS_v2_st: """ @@ -23403,30 +22679,30 @@ cdef class CUDA_MEM_ALLOC_NODE_PARAMS_v2_st: Attributes ---------- - {{if 'CUDA_MEM_ALLOC_NODE_PARAMS_v2_st.poolProps' in found_struct}} + poolProps : CUmemPoolProps in: location where the allocation should reside (specified in ::location). ::handleTypes must be CU_MEM_HANDLE_TYPE_NONE. IPC is not supported. - {{endif}} - {{if 'CUDA_MEM_ALLOC_NODE_PARAMS_v2_st.accessDescs' in found_struct}} + + accessDescs : CUmemAccessDesc in: array of memory access descriptors. Used to describe peer GPU access - {{endif}} - {{if 'CUDA_MEM_ALLOC_NODE_PARAMS_v2_st.accessDescCount' in found_struct}} + + accessDescCount : size_t in: number of memory access descriptors. Must not exceed the number of GPUs. - {{endif}} - {{if 'CUDA_MEM_ALLOC_NODE_PARAMS_v2_st.bytesize' in found_struct}} + + bytesize : size_t in: size in bytes of the requested allocation - {{endif}} - {{if 'CUDA_MEM_ALLOC_NODE_PARAMS_v2_st.dptr' in found_struct}} + + dptr : CUdeviceptr out: address of the allocation returned by CUDA - {{endif}} + Methods ------- @@ -23440,65 +22716,65 @@ cdef class CUDA_MEM_ALLOC_NODE_PARAMS_v2_st: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): pass - {{if 'CUDA_MEM_ALLOC_NODE_PARAMS_v2_st.poolProps' in found_struct}} + self._poolProps = CUmemPoolProps(_ptr=&self._pvt_ptr[0].poolProps) - {{endif}} - {{if 'CUDA_MEM_ALLOC_NODE_PARAMS_v2_st.dptr' in found_struct}} + + self._dptr = CUdeviceptr(_ptr=&self._pvt_ptr[0].dptr) - {{endif}} + def __dealloc__(self): pass - {{if 'CUDA_MEM_ALLOC_NODE_PARAMS_v2_st.accessDescs' in found_struct}} + if self._accessDescs is not NULL: free(self._accessDescs) - {{endif}} + def getPtr(self): return self._pvt_ptr def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUDA_MEM_ALLOC_NODE_PARAMS_v2_st.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 'CUDA_MEM_ALLOC_NODE_PARAMS_v2_st.accessDescs' in found_struct}} + + try: str_list += ['accessDescs : ' + str(self.accessDescs)] except ValueError: str_list += ['accessDescs : '] - {{endif}} - {{if 'CUDA_MEM_ALLOC_NODE_PARAMS_v2_st.accessDescCount' in found_struct}} + + try: str_list += ['accessDescCount : ' + str(self.accessDescCount)] except ValueError: str_list += ['accessDescCount : '] - {{endif}} - {{if 'CUDA_MEM_ALLOC_NODE_PARAMS_v2_st.bytesize' in found_struct}} + + try: str_list += ['bytesize : ' + str(self.bytesize)] except ValueError: str_list += ['bytesize : '] - {{endif}} - {{if 'CUDA_MEM_ALLOC_NODE_PARAMS_v2_st.dptr' in found_struct}} + + try: str_list += ['dptr : ' + str(self.dptr)] except ValueError: str_list += ['dptr : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'CUDA_MEM_ALLOC_NODE_PARAMS_v2_st.poolProps' in found_struct}} + @property def poolProps(self): return self._poolProps @poolProps.setter def poolProps(self, poolProps not None : CUmemPoolProps): - string.memcpy(&self._pvt_ptr[0].poolProps, poolProps.getPtr(), sizeof(self._pvt_ptr[0].poolProps)) - {{endif}} - {{if 'CUDA_MEM_ALLOC_NODE_PARAMS_v2_st.accessDescs' in found_struct}} + string.memcpy(&self._pvt_ptr[0].poolProps, poolProps.getPtr(), sizeof(self._pvt_ptr[0].poolProps)) + + @property def accessDescs(self): arrs = [self._pvt_ptr[0].accessDescs + x*sizeof(cydriver.CUmemAccessDesc) for x in range(self._accessDescs_length)] @@ -23520,24 +22796,24 @@ cdef class CUDA_MEM_ALLOC_NODE_PARAMS_v2_st: for idx in range(len(val)): string.memcpy(&self._accessDescs[idx], (val[idx])._pvt_ptr, sizeof(cydriver.CUmemAccessDesc)) - {{endif}} - {{if 'CUDA_MEM_ALLOC_NODE_PARAMS_v2_st.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 'CUDA_MEM_ALLOC_NODE_PARAMS_v2_st.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 'CUDA_MEM_ALLOC_NODE_PARAMS_v2_st.dptr' in found_struct}} + + @property def dptr(self): return self._dptr @@ -23554,9 +22830,7 @@ cdef class CUDA_MEM_ALLOC_NODE_PARAMS_v2_st: cydptr = pdptr self._dptr._pvt_ptr[0] = cydptr - {{endif}} -{{endif}} -{{if 'CUDA_MEM_FREE_NODE_PARAMS_st' in found_struct}} + cdef class CUDA_MEM_FREE_NODE_PARAMS_st: """ @@ -23564,10 +22838,10 @@ cdef class CUDA_MEM_FREE_NODE_PARAMS_st: Attributes ---------- - {{if 'CUDA_MEM_FREE_NODE_PARAMS_st.dptr' in found_struct}} + dptr : CUdeviceptr in: the pointer to free - {{endif}} + Methods ------- @@ -23581,9 +22855,9 @@ cdef class CUDA_MEM_FREE_NODE_PARAMS_st: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): pass - {{if 'CUDA_MEM_FREE_NODE_PARAMS_st.dptr' in found_struct}} + self._dptr = CUdeviceptr(_ptr=&self._pvt_ptr[0].dptr) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -23591,16 +22865,16 @@ cdef class CUDA_MEM_FREE_NODE_PARAMS_st: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUDA_MEM_FREE_NODE_PARAMS_st.dptr' in found_struct}} + try: str_list += ['dptr : ' + str(self.dptr)] except ValueError: str_list += ['dptr : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'CUDA_MEM_FREE_NODE_PARAMS_st.dptr' in found_struct}} + @property def dptr(self): return self._dptr @@ -23617,9 +22891,7 @@ cdef class CUDA_MEM_FREE_NODE_PARAMS_st: cydptr = pdptr self._dptr._pvt_ptr[0] = cydptr - {{endif}} -{{endif}} -{{if 'CUDA_CHILD_GRAPH_NODE_PARAMS_st' in found_struct}} + cdef class CUDA_CHILD_GRAPH_NODE_PARAMS_st: """ @@ -23627,18 +22899,18 @@ cdef class CUDA_CHILD_GRAPH_NODE_PARAMS_st: Attributes ---------- - {{if 'CUDA_CHILD_GRAPH_NODE_PARAMS_st.graph' in found_struct}} + graph : CUgraph 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 'CUDA_CHILD_GRAPH_NODE_PARAMS_st.ownership' in found_struct}} + + ownership : CUgraphChildGraphNodeOwnership The ownership relationship of the child graph node. - {{endif}} + Methods ------- @@ -23652,9 +22924,9 @@ cdef class CUDA_CHILD_GRAPH_NODE_PARAMS_st: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): pass - {{if 'CUDA_CHILD_GRAPH_NODE_PARAMS_st.graph' in found_struct}} + self._graph = CUgraph(_ptr=&self._pvt_ptr[0].graph) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -23662,22 +22934,22 @@ cdef class CUDA_CHILD_GRAPH_NODE_PARAMS_st: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUDA_CHILD_GRAPH_NODE_PARAMS_st.graph' in found_struct}} + try: str_list += ['graph : ' + str(self.graph)] except ValueError: str_list += ['graph : '] - {{endif}} - {{if 'CUDA_CHILD_GRAPH_NODE_PARAMS_st.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 'CUDA_CHILD_GRAPH_NODE_PARAMS_st.graph' in found_struct}} + @property def graph(self): return self._graph @@ -23693,17 +22965,15 @@ cdef class CUDA_CHILD_GRAPH_NODE_PARAMS_st: pgraph = int(CUgraph(graph)) cygraph = pgraph self._graph._pvt_ptr[0] = cygraph - {{endif}} - {{if 'CUDA_CHILD_GRAPH_NODE_PARAMS_st.ownership' in found_struct}} + + @property def ownership(self): return CUgraphChildGraphNodeOwnership(self._pvt_ptr[0].ownership) @ownership.setter def ownership(self, ownership not None : CUgraphChildGraphNodeOwnership): self._pvt_ptr[0].ownership = int(ownership) - {{endif}} -{{endif}} -{{if 'CUDA_EVENT_RECORD_NODE_PARAMS_st' in found_struct}} + cdef class CUDA_EVENT_RECORD_NODE_PARAMS_st: """ @@ -23711,10 +22981,10 @@ cdef class CUDA_EVENT_RECORD_NODE_PARAMS_st: Attributes ---------- - {{if 'CUDA_EVENT_RECORD_NODE_PARAMS_st.event' in found_struct}} + event : CUevent The event to record when the node executes - {{endif}} + Methods ------- @@ -23728,9 +22998,9 @@ cdef class CUDA_EVENT_RECORD_NODE_PARAMS_st: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): pass - {{if 'CUDA_EVENT_RECORD_NODE_PARAMS_st.event' in found_struct}} + self._event = CUevent(_ptr=&self._pvt_ptr[0].event) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -23738,16 +23008,16 @@ cdef class CUDA_EVENT_RECORD_NODE_PARAMS_st: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUDA_EVENT_RECORD_NODE_PARAMS_st.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 'CUDA_EVENT_RECORD_NODE_PARAMS_st.event' in found_struct}} + @property def event(self): return self._event @@ -23763,9 +23033,7 @@ cdef class CUDA_EVENT_RECORD_NODE_PARAMS_st: pevent = int(CUevent(event)) cyevent = pevent self._event._pvt_ptr[0] = cyevent - {{endif}} -{{endif}} -{{if 'CUDA_EVENT_WAIT_NODE_PARAMS_st' in found_struct}} + cdef class CUDA_EVENT_WAIT_NODE_PARAMS_st: """ @@ -23773,10 +23041,10 @@ cdef class CUDA_EVENT_WAIT_NODE_PARAMS_st: Attributes ---------- - {{if 'CUDA_EVENT_WAIT_NODE_PARAMS_st.event' in found_struct}} + event : CUevent The event to wait on from the node - {{endif}} + Methods ------- @@ -23790,9 +23058,9 @@ cdef class CUDA_EVENT_WAIT_NODE_PARAMS_st: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): pass - {{if 'CUDA_EVENT_WAIT_NODE_PARAMS_st.event' in found_struct}} + self._event = CUevent(_ptr=&self._pvt_ptr[0].event) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -23800,16 +23068,16 @@ cdef class CUDA_EVENT_WAIT_NODE_PARAMS_st: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUDA_EVENT_WAIT_NODE_PARAMS_st.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 'CUDA_EVENT_WAIT_NODE_PARAMS_st.event' in found_struct}} + @property def event(self): return self._event @@ -23825,9 +23093,7 @@ cdef class CUDA_EVENT_WAIT_NODE_PARAMS_st: pevent = int(CUevent(event)) cyevent = pevent self._event._pvt_ptr[0] = cyevent - {{endif}} -{{endif}} -{{if 'CUgraphNodeParams_st' in found_struct}} + cdef class CUgraphNodeParams_st: """ @@ -23835,74 +23101,74 @@ cdef class CUgraphNodeParams_st: Attributes ---------- - {{if 'CUgraphNodeParams_st.type' in found_struct}} + type : CUgraphNodeType Type of the node - {{endif}} - {{if 'CUgraphNodeParams_st.reserved0' in found_struct}} + + reserved0 : list[int] Reserved. Must be zero. - {{endif}} - {{if 'CUgraphNodeParams_st.reserved1' in found_struct}} + + reserved1 : list[long long] Padding. Unused bytes must be zero. - {{endif}} - {{if 'CUgraphNodeParams_st.kernel' in found_struct}} + + kernel : CUDA_KERNEL_NODE_PARAMS_v3 Kernel node parameters. - {{endif}} - {{if 'CUgraphNodeParams_st.memcpy' in found_struct}} + + memcpy : CUDA_MEMCPY_NODE_PARAMS Memcpy node parameters. - {{endif}} - {{if 'CUgraphNodeParams_st.memset' in found_struct}} + + memset : CUDA_MEMSET_NODE_PARAMS_v2 Memset node parameters. - {{endif}} - {{if 'CUgraphNodeParams_st.host' in found_struct}} + + host : CUDA_HOST_NODE_PARAMS_v2 Host node parameters. - {{endif}} - {{if 'CUgraphNodeParams_st.graph' in found_struct}} + + graph : CUDA_CHILD_GRAPH_NODE_PARAMS Child graph node parameters. - {{endif}} - {{if 'CUgraphNodeParams_st.eventWait' in found_struct}} + + eventWait : CUDA_EVENT_WAIT_NODE_PARAMS Event wait node parameters. - {{endif}} - {{if 'CUgraphNodeParams_st.eventRecord' in found_struct}} + + eventRecord : CUDA_EVENT_RECORD_NODE_PARAMS Event record node parameters. - {{endif}} - {{if 'CUgraphNodeParams_st.extSemSignal' in found_struct}} + + extSemSignal : CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2 External semaphore signal node parameters. - {{endif}} - {{if 'CUgraphNodeParams_st.extSemWait' in found_struct}} + + extSemWait : CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2 External semaphore wait node parameters. - {{endif}} - {{if 'CUgraphNodeParams_st.alloc' in found_struct}} + + alloc : CUDA_MEM_ALLOC_NODE_PARAMS_v2 Memory allocation node parameters. - {{endif}} - {{if 'CUgraphNodeParams_st.free' in found_struct}} + + free : CUDA_MEM_FREE_NODE_PARAMS Memory free node parameters. - {{endif}} - {{if 'CUgraphNodeParams_st.memOp' in found_struct}} + + memOp : CUDA_BATCH_MEM_OP_NODE_PARAMS_v2 MemOp node parameters. - {{endif}} - {{if 'CUgraphNodeParams_st.conditional' in found_struct}} + + conditional : CUDA_CONDITIONAL_NODE_PARAMS Conditional node parameters. - {{endif}} - {{if 'CUgraphNodeParams_st.reserved2' in found_struct}} + + reserved2 : long long Reserved bytes. Must be zero. - {{endif}} + Methods ------- @@ -23917,45 +23183,45 @@ cdef class CUgraphNodeParams_st: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): pass - {{if 'CUgraphNodeParams_st.kernel' in found_struct}} + self._kernel = CUDA_KERNEL_NODE_PARAMS_v3(_ptr=&self._pvt_ptr[0].kernel) - {{endif}} - {{if 'CUgraphNodeParams_st.memcpy' in found_struct}} + + self._memcpy = CUDA_MEMCPY_NODE_PARAMS(_ptr=&self._pvt_ptr[0].memcpy) - {{endif}} - {{if 'CUgraphNodeParams_st.memset' in found_struct}} + + self._memset = CUDA_MEMSET_NODE_PARAMS_v2(_ptr=&self._pvt_ptr[0].memset) - {{endif}} - {{if 'CUgraphNodeParams_st.host' in found_struct}} + + self._host = CUDA_HOST_NODE_PARAMS_v2(_ptr=&self._pvt_ptr[0].host) - {{endif}} - {{if 'CUgraphNodeParams_st.graph' in found_struct}} + + self._graph = CUDA_CHILD_GRAPH_NODE_PARAMS(_ptr=&self._pvt_ptr[0].graph) - {{endif}} - {{if 'CUgraphNodeParams_st.eventWait' in found_struct}} + + self._eventWait = CUDA_EVENT_WAIT_NODE_PARAMS(_ptr=&self._pvt_ptr[0].eventWait) - {{endif}} - {{if 'CUgraphNodeParams_st.eventRecord' in found_struct}} + + self._eventRecord = CUDA_EVENT_RECORD_NODE_PARAMS(_ptr=&self._pvt_ptr[0].eventRecord) - {{endif}} - {{if 'CUgraphNodeParams_st.extSemSignal' in found_struct}} + + self._extSemSignal = CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2(_ptr=&self._pvt_ptr[0].extSemSignal) - {{endif}} - {{if 'CUgraphNodeParams_st.extSemWait' in found_struct}} + + self._extSemWait = CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2(_ptr=&self._pvt_ptr[0].extSemWait) - {{endif}} - {{if 'CUgraphNodeParams_st.alloc' in found_struct}} + + self._alloc = CUDA_MEM_ALLOC_NODE_PARAMS_v2(_ptr=&self._pvt_ptr[0].alloc) - {{endif}} - {{if 'CUgraphNodeParams_st.free' in found_struct}} + + self._free = CUDA_MEM_FREE_NODE_PARAMS(_ptr=&self._pvt_ptr[0].free) - {{endif}} - {{if 'CUgraphNodeParams_st.memOp' in found_struct}} + + self._memOp = CUDA_BATCH_MEM_OP_NODE_PARAMS_v2(_ptr=&self._pvt_ptr[0].memOp) - {{endif}} - {{if 'CUgraphNodeParams_st.conditional' in found_struct}} + + self._conditional = CUDA_CONDITIONAL_NODE_PARAMS(_ptr=&self._pvt_ptr[0].conditional) - {{endif}} + def __dealloc__(self): if self._val_ptr is not NULL: free(self._val_ptr) @@ -23964,249 +23230,247 @@ cdef class CUgraphNodeParams_st: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUgraphNodeParams_st.type' in found_struct}} + try: str_list += ['type : ' + str(self.type)] except ValueError: str_list += ['type : '] - {{endif}} - {{if 'CUgraphNodeParams_st.reserved0' in found_struct}} + + try: str_list += ['reserved0 : ' + str(self.reserved0)] except ValueError: str_list += ['reserved0 : '] - {{endif}} - {{if 'CUgraphNodeParams_st.reserved1' in found_struct}} + + try: str_list += ['reserved1 : ' + str(self.reserved1)] except ValueError: str_list += ['reserved1 : '] - {{endif}} - {{if 'CUgraphNodeParams_st.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 'CUgraphNodeParams_st.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 'CUgraphNodeParams_st.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 'CUgraphNodeParams_st.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 'CUgraphNodeParams_st.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 'CUgraphNodeParams_st.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 'CUgraphNodeParams_st.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 'CUgraphNodeParams_st.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 'CUgraphNodeParams_st.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 'CUgraphNodeParams_st.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 'CUgraphNodeParams_st.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 'CUgraphNodeParams_st.memOp' in found_struct}} + + try: str_list += ['memOp :\n' + '\n'.join([' ' + line for line in str(self.memOp).splitlines()])] except ValueError: str_list += ['memOp : '] - {{endif}} - {{if 'CUgraphNodeParams_st.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 'CUgraphNodeParams_st.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 'CUgraphNodeParams_st.type' in found_struct}} + @property def type(self): return CUgraphNodeType(self._pvt_ptr[0].type) @type.setter def type(self, type not None : CUgraphNodeType): self._pvt_ptr[0].type = int(type) - {{endif}} - {{if 'CUgraphNodeParams_st.reserved0' in found_struct}} + + @property def reserved0(self): return self._pvt_ptr[0].reserved0 @reserved0.setter def reserved0(self, reserved0): self._pvt_ptr[0].reserved0 = reserved0 - {{endif}} - {{if 'CUgraphNodeParams_st.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 'CUgraphNodeParams_st.kernel' in found_struct}} + + @property def kernel(self): return self._kernel @kernel.setter def kernel(self, kernel not None : CUDA_KERNEL_NODE_PARAMS_v3): - string.memcpy(&self._pvt_ptr[0].kernel, kernel.getPtr(), sizeof(self._pvt_ptr[0].kernel)) - {{endif}} - {{if 'CUgraphNodeParams_st.memcpy' in found_struct}} + string.memcpy(&self._pvt_ptr[0].kernel, kernel.getPtr(), sizeof(self._pvt_ptr[0].kernel)) + + @property def memcpy(self): return self._memcpy @memcpy.setter def memcpy(self, memcpy not None : CUDA_MEMCPY_NODE_PARAMS): - string.memcpy(&self._pvt_ptr[0].memcpy, memcpy.getPtr(), sizeof(self._pvt_ptr[0].memcpy)) - {{endif}} - {{if 'CUgraphNodeParams_st.memset' in found_struct}} + string.memcpy(&self._pvt_ptr[0].memcpy, memcpy.getPtr(), sizeof(self._pvt_ptr[0].memcpy)) + + @property def memset(self): return self._memset @memset.setter def memset(self, memset not None : CUDA_MEMSET_NODE_PARAMS_v2): - string.memcpy(&self._pvt_ptr[0].memset, memset.getPtr(), sizeof(self._pvt_ptr[0].memset)) - {{endif}} - {{if 'CUgraphNodeParams_st.host' in found_struct}} + string.memcpy(&self._pvt_ptr[0].memset, memset.getPtr(), sizeof(self._pvt_ptr[0].memset)) + + @property def host(self): return self._host @host.setter def host(self, host not None : CUDA_HOST_NODE_PARAMS_v2): - string.memcpy(&self._pvt_ptr[0].host, host.getPtr(), sizeof(self._pvt_ptr[0].host)) - {{endif}} - {{if 'CUgraphNodeParams_st.graph' in found_struct}} + string.memcpy(&self._pvt_ptr[0].host, host.getPtr(), sizeof(self._pvt_ptr[0].host)) + + @property def graph(self): return self._graph @graph.setter def graph(self, graph not None : CUDA_CHILD_GRAPH_NODE_PARAMS): - string.memcpy(&self._pvt_ptr[0].graph, graph.getPtr(), sizeof(self._pvt_ptr[0].graph)) - {{endif}} - {{if 'CUgraphNodeParams_st.eventWait' in found_struct}} + string.memcpy(&self._pvt_ptr[0].graph, graph.getPtr(), sizeof(self._pvt_ptr[0].graph)) + + @property def eventWait(self): return self._eventWait @eventWait.setter def eventWait(self, eventWait not None : CUDA_EVENT_WAIT_NODE_PARAMS): - string.memcpy(&self._pvt_ptr[0].eventWait, eventWait.getPtr(), sizeof(self._pvt_ptr[0].eventWait)) - {{endif}} - {{if 'CUgraphNodeParams_st.eventRecord' in found_struct}} + string.memcpy(&self._pvt_ptr[0].eventWait, eventWait.getPtr(), sizeof(self._pvt_ptr[0].eventWait)) + + @property def eventRecord(self): return self._eventRecord @eventRecord.setter def eventRecord(self, eventRecord not None : CUDA_EVENT_RECORD_NODE_PARAMS): - string.memcpy(&self._pvt_ptr[0].eventRecord, eventRecord.getPtr(), sizeof(self._pvt_ptr[0].eventRecord)) - {{endif}} - {{if 'CUgraphNodeParams_st.extSemSignal' in found_struct}} + string.memcpy(&self._pvt_ptr[0].eventRecord, eventRecord.getPtr(), sizeof(self._pvt_ptr[0].eventRecord)) + + @property def extSemSignal(self): return self._extSemSignal @extSemSignal.setter def extSemSignal(self, extSemSignal not None : CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2): - string.memcpy(&self._pvt_ptr[0].extSemSignal, extSemSignal.getPtr(), sizeof(self._pvt_ptr[0].extSemSignal)) - {{endif}} - {{if 'CUgraphNodeParams_st.extSemWait' in found_struct}} + string.memcpy(&self._pvt_ptr[0].extSemSignal, extSemSignal.getPtr(), sizeof(self._pvt_ptr[0].extSemSignal)) + + @property def extSemWait(self): return self._extSemWait @extSemWait.setter def extSemWait(self, extSemWait not None : CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2): - string.memcpy(&self._pvt_ptr[0].extSemWait, extSemWait.getPtr(), sizeof(self._pvt_ptr[0].extSemWait)) - {{endif}} - {{if 'CUgraphNodeParams_st.alloc' in found_struct}} + string.memcpy(&self._pvt_ptr[0].extSemWait, extSemWait.getPtr(), sizeof(self._pvt_ptr[0].extSemWait)) + + @property def alloc(self): return self._alloc @alloc.setter def alloc(self, alloc not None : CUDA_MEM_ALLOC_NODE_PARAMS_v2): - string.memcpy(&self._pvt_ptr[0].alloc, alloc.getPtr(), sizeof(self._pvt_ptr[0].alloc)) - {{endif}} - {{if 'CUgraphNodeParams_st.free' in found_struct}} + string.memcpy(&self._pvt_ptr[0].alloc, alloc.getPtr(), sizeof(self._pvt_ptr[0].alloc)) + + @property def free(self): return self._free @free.setter def free(self, free not None : CUDA_MEM_FREE_NODE_PARAMS): - string.memcpy(&self._pvt_ptr[0].free, free.getPtr(), sizeof(self._pvt_ptr[0].free)) - {{endif}} - {{if 'CUgraphNodeParams_st.memOp' in found_struct}} + string.memcpy(&self._pvt_ptr[0].free, free.getPtr(), sizeof(self._pvt_ptr[0].free)) + + @property def memOp(self): return self._memOp @memOp.setter def memOp(self, memOp not None : CUDA_BATCH_MEM_OP_NODE_PARAMS_v2): - string.memcpy(&self._pvt_ptr[0].memOp, memOp.getPtr(), sizeof(self._pvt_ptr[0].memOp)) - {{endif}} - {{if 'CUgraphNodeParams_st.conditional' in found_struct}} + string.memcpy(&self._pvt_ptr[0].memOp, memOp.getPtr(), sizeof(self._pvt_ptr[0].memOp)) + + @property def conditional(self): return self._conditional @conditional.setter def conditional(self, conditional not None : CUDA_CONDITIONAL_NODE_PARAMS): - string.memcpy(&self._pvt_ptr[0].conditional, conditional.getPtr(), sizeof(self._pvt_ptr[0].conditional)) - {{endif}} - {{if 'CUgraphNodeParams_st.reserved2' in found_struct}} + string.memcpy(&self._pvt_ptr[0].conditional, conditional.getPtr(), sizeof(self._pvt_ptr[0].conditional)) + + @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 'CUcheckpointLockArgs_st' in found_struct}} + cdef class CUcheckpointLockArgs_st: """ @@ -24214,19 +23478,19 @@ cdef class CUcheckpointLockArgs_st: Attributes ---------- - {{if 'CUcheckpointLockArgs_st.timeoutMs' in found_struct}} + timeoutMs : unsigned int Timeout in milliseconds to attempt to lock the process, 0 indicates no timeout - {{endif}} - {{if 'CUcheckpointLockArgs_st.reserved0' in found_struct}} + + reserved0 : unsigned int Reserved for future use, must be zero - {{endif}} - {{if 'CUcheckpointLockArgs_st.reserved1' in found_struct}} + + reserved1 : list[cuuint64_t] Reserved for future use, must be zeroed - {{endif}} + Methods ------- @@ -24247,44 +23511,44 @@ cdef class CUcheckpointLockArgs_st: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUcheckpointLockArgs_st.timeoutMs' in found_struct}} + try: str_list += ['timeoutMs : ' + str(self.timeoutMs)] except ValueError: str_list += ['timeoutMs : '] - {{endif}} - {{if 'CUcheckpointLockArgs_st.reserved0' in found_struct}} + + try: str_list += ['reserved0 : ' + str(self.reserved0)] except ValueError: str_list += ['reserved0 : '] - {{endif}} - {{if 'CUcheckpointLockArgs_st.reserved1' in found_struct}} + + try: str_list += ['reserved1 : ' + str(self.reserved1)] except ValueError: str_list += ['reserved1 : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'CUcheckpointLockArgs_st.timeoutMs' in found_struct}} + @property def timeoutMs(self): return self._pvt_ptr[0].timeoutMs @timeoutMs.setter def timeoutMs(self, unsigned int timeoutMs): self._pvt_ptr[0].timeoutMs = timeoutMs - {{endif}} - {{if 'CUcheckpointLockArgs_st.reserved0' in found_struct}} + + @property def reserved0(self): return self._pvt_ptr[0].reserved0 @reserved0.setter def reserved0(self, unsigned int reserved0): self._pvt_ptr[0].reserved0 = reserved0 - {{endif}} - {{if 'CUcheckpointLockArgs_st.reserved1' in found_struct}} + + @property def reserved1(self): return [cuuint64_t(init_value=_reserved1) for _reserved1 in self._pvt_ptr[0].reserved1] @@ -24292,9 +23556,7 @@ cdef class CUcheckpointLockArgs_st: def reserved1(self, reserved1): self._pvt_ptr[0].reserved1 = reserved1 - {{endif}} -{{endif}} -{{if 'CUcheckpointCheckpointArgs_st' in found_struct}} + cdef class CUcheckpointCheckpointArgs_st: """ @@ -24302,10 +23564,10 @@ cdef class CUcheckpointCheckpointArgs_st: Attributes ---------- - {{if 'CUcheckpointCheckpointArgs_st.reserved' in found_struct}} + reserved : list[cuuint64_t] Reserved for future use, must be zeroed - {{endif}} + Methods ------- @@ -24326,16 +23588,16 @@ cdef class CUcheckpointCheckpointArgs_st: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUcheckpointCheckpointArgs_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 'CUcheckpointCheckpointArgs_st.reserved' in found_struct}} + @property def reserved(self): return [cuuint64_t(init_value=_reserved) for _reserved in self._pvt_ptr[0].reserved] @@ -24343,9 +23605,7 @@ cdef class CUcheckpointCheckpointArgs_st: def reserved(self, reserved): self._pvt_ptr[0].reserved = reserved - {{endif}} -{{endif}} -{{if 'CUcheckpointGpuPair_st' in found_struct}} + cdef class CUcheckpointGpuPair_st: """ @@ -24353,14 +23613,14 @@ cdef class CUcheckpointGpuPair_st: Attributes ---------- - {{if 'CUcheckpointGpuPair_st.oldUuid' in found_struct}} + oldUuid : CUuuid UUID of the GPU that was checkpointed - {{endif}} - {{if 'CUcheckpointGpuPair_st.newUuid' in found_struct}} + + newUuid : CUuuid UUID of the GPU to restore onto - {{endif}} + Methods ------- @@ -24374,12 +23634,12 @@ cdef class CUcheckpointGpuPair_st: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): pass - {{if 'CUcheckpointGpuPair_st.oldUuid' in found_struct}} + self._oldUuid = CUuuid(_ptr=&self._pvt_ptr[0].oldUuid) - {{endif}} - {{if 'CUcheckpointGpuPair_st.newUuid' in found_struct}} + + self._newUuid = CUuuid(_ptr=&self._pvt_ptr[0].newUuid) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -24387,39 +23647,37 @@ cdef class CUcheckpointGpuPair_st: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUcheckpointGpuPair_st.oldUuid' in found_struct}} + try: str_list += ['oldUuid :\n' + '\n'.join([' ' + line for line in str(self.oldUuid).splitlines()])] except ValueError: str_list += ['oldUuid : '] - {{endif}} - {{if 'CUcheckpointGpuPair_st.newUuid' in found_struct}} + + try: str_list += ['newUuid :\n' + '\n'.join([' ' + line for line in str(self.newUuid).splitlines()])] except ValueError: str_list += ['newUuid : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'CUcheckpointGpuPair_st.oldUuid' in found_struct}} + @property def oldUuid(self): return self._oldUuid @oldUuid.setter def oldUuid(self, oldUuid not None : CUuuid): - string.memcpy(&self._pvt_ptr[0].oldUuid, oldUuid.getPtr(), sizeof(self._pvt_ptr[0].oldUuid)) - {{endif}} - {{if 'CUcheckpointGpuPair_st.newUuid' in found_struct}} + string.memcpy(&self._pvt_ptr[0].oldUuid, oldUuid.getPtr(), sizeof(self._pvt_ptr[0].oldUuid)) + + @property def newUuid(self): return self._newUuid @newUuid.setter def newUuid(self, newUuid not None : CUuuid): - string.memcpy(&self._pvt_ptr[0].newUuid, newUuid.getPtr(), sizeof(self._pvt_ptr[0].newUuid)) - {{endif}} -{{endif}} -{{if 'CUcheckpointRestoreArgs_st' in found_struct}} + string.memcpy(&self._pvt_ptr[0].newUuid, newUuid.getPtr(), sizeof(self._pvt_ptr[0].newUuid)) + cdef class CUcheckpointRestoreArgs_st: """ @@ -24427,23 +23685,23 @@ cdef class CUcheckpointRestoreArgs_st: Attributes ---------- - {{if 'CUcheckpointRestoreArgs_st.gpuPairs' in found_struct}} + gpuPairs : CUcheckpointGpuPair Pointer to array of gpu pairs that indicate how to remap GPUs during restore - {{endif}} - {{if 'CUcheckpointRestoreArgs_st.gpuPairsCount' in found_struct}} + + gpuPairsCount : unsigned int Number of gpu pairs to remap - {{endif}} - {{if 'CUcheckpointRestoreArgs_st.reserved' in found_struct}} + + reserved : bytes Reserved for future use, must be zeroed - {{endif}} - {{if 'CUcheckpointRestoreArgs_st.reserved1' in found_struct}} + + reserved1 : cuuint64_t Reserved for future use, must be zeroed - {{endif}} + Methods ------- @@ -24457,48 +23715,48 @@ cdef class CUcheckpointRestoreArgs_st: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): pass - {{if 'CUcheckpointRestoreArgs_st.reserved1' in found_struct}} + self._reserved1 = cuuint64_t(_ptr=&self._pvt_ptr[0].reserved1) - {{endif}} + def __dealloc__(self): pass - {{if 'CUcheckpointRestoreArgs_st.gpuPairs' in found_struct}} + if self._gpuPairs is not NULL: free(self._gpuPairs) - {{endif}} + def getPtr(self): return self._pvt_ptr def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUcheckpointRestoreArgs_st.gpuPairs' in found_struct}} + try: str_list += ['gpuPairs : ' + str(self.gpuPairs)] except ValueError: str_list += ['gpuPairs : '] - {{endif}} - {{if 'CUcheckpointRestoreArgs_st.gpuPairsCount' in found_struct}} + + try: str_list += ['gpuPairsCount : ' + str(self.gpuPairsCount)] except ValueError: str_list += ['gpuPairsCount : '] - {{endif}} - {{if 'CUcheckpointRestoreArgs_st.reserved' in found_struct}} + + try: str_list += ['reserved : ' + str(self.reserved)] except ValueError: str_list += ['reserved : '] - {{endif}} - {{if 'CUcheckpointRestoreArgs_st.reserved1' in found_struct}} + + try: str_list += ['reserved1 : ' + str(self.reserved1)] except ValueError: str_list += ['reserved1 : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'CUcheckpointRestoreArgs_st.gpuPairs' in found_struct}} + @property def gpuPairs(self): arrs = [self._pvt_ptr[0].gpuPairs + x*sizeof(cydriver.CUcheckpointGpuPair) for x in range(self._gpuPairs_length)] @@ -24520,16 +23778,16 @@ cdef class CUcheckpointRestoreArgs_st: for idx in range(len(val)): string.memcpy(&self._gpuPairs[idx], (val[idx])._pvt_ptr, sizeof(cydriver.CUcheckpointGpuPair)) - {{endif}} - {{if 'CUcheckpointRestoreArgs_st.gpuPairsCount' in found_struct}} + + @property def gpuPairsCount(self): return self._pvt_ptr[0].gpuPairsCount @gpuPairsCount.setter def gpuPairsCount(self, unsigned int gpuPairsCount): self._pvt_ptr[0].gpuPairsCount = gpuPairsCount - {{endif}} - {{if 'CUcheckpointRestoreArgs_st.reserved' in found_struct}} + + @property def reserved(self): return PyBytes_FromStringAndSize(self._pvt_ptr[0].reserved, 44) @@ -24547,8 +23805,8 @@ cdef class CUcheckpointRestoreArgs_st: if b > 127 and b < 256: b = b - 256 self._pvt_ptr[0].reserved[i] = b - {{endif}} - {{if 'CUcheckpointRestoreArgs_st.reserved1' in found_struct}} + + @property def reserved1(self): return self._reserved1 @@ -24565,9 +23823,7 @@ cdef class CUcheckpointRestoreArgs_st: cyreserved1 = preserved1 self._reserved1._pvt_ptr[0] = cyreserved1 - {{endif}} -{{endif}} -{{if 'CUcheckpointUnlockArgs_st' in found_struct}} + cdef class CUcheckpointUnlockArgs_st: """ @@ -24575,10 +23831,10 @@ cdef class CUcheckpointUnlockArgs_st: Attributes ---------- - {{if 'CUcheckpointUnlockArgs_st.reserved' in found_struct}} + reserved : list[cuuint64_t] Reserved for future use, must be zeroed - {{endif}} + Methods ------- @@ -24599,16 +23855,16 @@ cdef class CUcheckpointUnlockArgs_st: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUcheckpointUnlockArgs_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 'CUcheckpointUnlockArgs_st.reserved' in found_struct}} + @property def reserved(self): return [cuuint64_t(init_value=_reserved) for _reserved in self._pvt_ptr[0].reserved] @@ -24616,9 +23872,7 @@ cdef class CUcheckpointUnlockArgs_st: def reserved(self, reserved): self._pvt_ptr[0].reserved = reserved - {{endif}} -{{endif}} -{{if 'CUmemDecompressParams_st' in found_struct}} + cdef class CUmemDecompressParams_st: """ @@ -24627,43 +23881,43 @@ cdef class CUmemDecompressParams_st: Attributes ---------- - {{if 'CUmemDecompressParams_st.srcNumBytes' in found_struct}} + srcNumBytes : size_t The number of bytes to be read and decompressed from CUmemDecompressParams_st.src. - {{endif}} - {{if 'CUmemDecompressParams_st.dstNumBytes' in found_struct}} + + dstNumBytes : size_t The number of bytes that the decompression operation will be expected to write to CUmemDecompressParams_st.dst. This value is optional; if present, it may be used by the CUDA driver as a heuristic for scheduling the individual decompression operations. - {{endif}} - {{if 'CUmemDecompressParams_st.dstActBytes' in found_struct}} + + dstActBytes : cuuint32_t After the decompression operation has completed, the actual number of bytes written to CUmemDecompressParams.dst will be recorded as a 32-bit unsigned integer in the memory at this address. - {{endif}} - {{if 'CUmemDecompressParams_st.src' in found_struct}} + + src : Any Pointer to a buffer of at least CUmemDecompressParams_st.srcNumBytes compressed bytes. - {{endif}} - {{if 'CUmemDecompressParams_st.dst' in found_struct}} + + dst : Any Pointer to a buffer where the decompressed data will be written. The number of bytes written to this location will be recorded in the memory pointed to by CUmemDecompressParams_st.dstActBytes - {{endif}} - {{if 'CUmemDecompressParams_st.algo' in found_struct}} + + algo : CUmemDecompressAlgorithm The decompression algorithm to use. - {{endif}} - {{if 'CUmemDecompressParams_st.padding' in found_struct}} + + padding : bytes - {{endif}} + Methods ------- @@ -24684,73 +23938,73 @@ cdef class CUmemDecompressParams_st: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUmemDecompressParams_st.srcNumBytes' in found_struct}} + try: str_list += ['srcNumBytes : ' + str(self.srcNumBytes)] except ValueError: str_list += ['srcNumBytes : '] - {{endif}} - {{if 'CUmemDecompressParams_st.dstNumBytes' in found_struct}} + + try: str_list += ['dstNumBytes : ' + str(self.dstNumBytes)] except ValueError: str_list += ['dstNumBytes : '] - {{endif}} - {{if 'CUmemDecompressParams_st.dstActBytes' in found_struct}} + + try: str_list += ['dstActBytes : ' + str(self.dstActBytes)] except ValueError: str_list += ['dstActBytes : '] - {{endif}} - {{if 'CUmemDecompressParams_st.src' in found_struct}} + + try: str_list += ['src : ' + hex(self.src)] except ValueError: str_list += ['src : '] - {{endif}} - {{if 'CUmemDecompressParams_st.dst' in found_struct}} + + try: str_list += ['dst : ' + hex(self.dst)] except ValueError: str_list += ['dst : '] - {{endif}} - {{if 'CUmemDecompressParams_st.algo' in found_struct}} + + try: str_list += ['algo : ' + str(self.algo)] except ValueError: str_list += ['algo : '] - {{endif}} - {{if 'CUmemDecompressParams_st.padding' in found_struct}} + + try: str_list += ['padding : ' + str(self.padding)] except ValueError: str_list += ['padding : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'CUmemDecompressParams_st.srcNumBytes' in found_struct}} + @property def srcNumBytes(self): return self._pvt_ptr[0].srcNumBytes @srcNumBytes.setter def srcNumBytes(self, size_t srcNumBytes): self._pvt_ptr[0].srcNumBytes = srcNumBytes - {{endif}} - {{if 'CUmemDecompressParams_st.dstNumBytes' in found_struct}} + + @property def dstNumBytes(self): return self._pvt_ptr[0].dstNumBytes @dstNumBytes.setter def dstNumBytes(self, size_t dstNumBytes): self._pvt_ptr[0].dstNumBytes = dstNumBytes - {{endif}} - {{if 'CUmemDecompressParams_st.dstActBytes' in found_struct}} + + @property def dstActBytes(self): return cuuint32_t(_ptr=self._pvt_ptr[0].dstActBytes) - {{endif}} - {{if 'CUmemDecompressParams_st.src' in found_struct}} + + @property def src(self): return self._pvt_ptr[0].src @@ -24758,8 +24012,8 @@ cdef class CUmemDecompressParams_st: def src(self, src): self._cysrc = _HelperInputVoidPtr(src) self._pvt_ptr[0].src = self._cysrc.cptr - {{endif}} - {{if 'CUmemDecompressParams_st.dst' in found_struct}} + + @property def dst(self): return self._pvt_ptr[0].dst @@ -24767,16 +24021,16 @@ cdef class CUmemDecompressParams_st: def dst(self, dst): self._cydst = _HelperInputVoidPtr(dst) self._pvt_ptr[0].dst = self._cydst.cptr - {{endif}} - {{if 'CUmemDecompressParams_st.algo' in found_struct}} + + @property def algo(self): return CUmemDecompressAlgorithm(self._pvt_ptr[0].algo) @algo.setter def algo(self, algo not None : CUmemDecompressAlgorithm): self._pvt_ptr[0].algo = int(algo) - {{endif}} - {{if 'CUmemDecompressParams_st.padding' in found_struct}} + + @property def padding(self): return PyBytes_FromStringAndSize(self._pvt_ptr[0].padding, 20) @@ -24786,35 +24040,33 @@ cdef class CUmemDecompressParams_st: raise ValueError("padding length must be 20, is " + str(len(padding))) for i, b in enumerate(padding): self._pvt_ptr[0].padding[i] = b - {{endif}} -{{endif}} -{{if 'CUdevSmResource_st' in found_struct}} + cdef class CUdevSmResource_st: """ Attributes ---------- - {{if 'CUdevSmResource_st.smCount' in found_struct}} + smCount : unsigned int The amount of streaming multiprocessors available in this resource. - {{endif}} - {{if 'CUdevSmResource_st.minSmPartitionSize' in found_struct}} + + minSmPartitionSize : unsigned int The minimum number of streaming multiprocessors required to partition this resource. - {{endif}} - {{if 'CUdevSmResource_st.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 'CUdevSmResource_st.flags' in found_struct}} + + flags : unsigned int The flags set on this SM resource. For possible values see CUdevSmResourceGroup_flags. - {{endif}} + Methods ------- @@ -24835,84 +24087,82 @@ cdef class CUdevSmResource_st: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUdevSmResource_st.smCount' in found_struct}} + try: str_list += ['smCount : ' + str(self.smCount)] except ValueError: str_list += ['smCount : '] - {{endif}} - {{if 'CUdevSmResource_st.minSmPartitionSize' in found_struct}} + + try: str_list += ['minSmPartitionSize : ' + str(self.minSmPartitionSize)] except ValueError: str_list += ['minSmPartitionSize : '] - {{endif}} - {{if 'CUdevSmResource_st.smCoscheduledAlignment' in found_struct}} + + try: str_list += ['smCoscheduledAlignment : ' + str(self.smCoscheduledAlignment)] except ValueError: str_list += ['smCoscheduledAlignment : '] - {{endif}} - {{if 'CUdevSmResource_st.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 'CUdevSmResource_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 'CUdevSmResource_st.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 'CUdevSmResource_st.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 'CUdevSmResource_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}} -{{endif}} -{{if 'CUdevWorkqueueConfigResource_st' in found_struct}} + cdef class CUdevWorkqueueConfigResource_st: """ Attributes ---------- - {{if 'CUdevWorkqueueConfigResource_st.device' in found_struct}} + device : CUdevice The device on which the workqueue resources are available - {{endif}} - {{if 'CUdevWorkqueueConfigResource_st.wqConcurrencyLimit' in found_struct}} + + wqConcurrencyLimit : unsigned int The expected maximum number of concurrent stream-ordered workloads - {{endif}} - {{if 'CUdevWorkqueueConfigResource_st.sharingScope' in found_struct}} + + sharingScope : CUdevWorkqueueConfigScope The sharing scope for the workqueue resources - {{endif}} + Methods ------- @@ -24926,9 +24176,9 @@ cdef class CUdevWorkqueueConfigResource_st: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): pass - {{if 'CUdevWorkqueueConfigResource_st.device' in found_struct}} + self._device = CUdevice(_ptr=&self._pvt_ptr[0].device) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -24936,28 +24186,28 @@ cdef class CUdevWorkqueueConfigResource_st: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUdevWorkqueueConfigResource_st.device' in found_struct}} + try: str_list += ['device : ' + str(self.device)] except ValueError: str_list += ['device : '] - {{endif}} - {{if 'CUdevWorkqueueConfigResource_st.wqConcurrencyLimit' in found_struct}} + + try: str_list += ['wqConcurrencyLimit : ' + str(self.wqConcurrencyLimit)] except ValueError: str_list += ['wqConcurrencyLimit : '] - {{endif}} - {{if 'CUdevWorkqueueConfigResource_st.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 'CUdevWorkqueueConfigResource_st.device' in found_struct}} + @property def device(self): return self._device @@ -24974,34 +24224,32 @@ cdef class CUdevWorkqueueConfigResource_st: cydevice = pdevice self._device._pvt_ptr[0] = cydevice - {{endif}} - {{if 'CUdevWorkqueueConfigResource_st.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 'CUdevWorkqueueConfigResource_st.sharingScope' in found_struct}} + + @property def sharingScope(self): return CUdevWorkqueueConfigScope(self._pvt_ptr[0].sharingScope) @sharingScope.setter def sharingScope(self, sharingScope not None : CUdevWorkqueueConfigScope): self._pvt_ptr[0].sharingScope = int(sharingScope) - {{endif}} -{{endif}} -{{if 'CUdevWorkqueueResource_st' in found_struct}} + cdef class CUdevWorkqueueResource_st: """ Attributes ---------- - {{if 'CUdevWorkqueueResource_st.reserved' in found_struct}} + reserved : bytes Reserved for future use - {{endif}} + Methods ------- @@ -25022,16 +24270,16 @@ cdef class CUdevWorkqueueResource_st: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUdevWorkqueueResource_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 'CUdevWorkqueueResource_st.reserved' in found_struct}} + @property def reserved(self): return PyBytes_FromStringAndSize(self._pvt_ptr[0].reserved, 40) @@ -25041,37 +24289,35 @@ cdef class CUdevWorkqueueResource_st: 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 'CU_DEV_SM_RESOURCE_GROUP_PARAMS_st' in found_struct}} + cdef class CU_DEV_SM_RESOURCE_GROUP_PARAMS_st: """ Attributes ---------- - {{if 'CU_DEV_SM_RESOURCE_GROUP_PARAMS_st.smCount' in found_struct}} + smCount : unsigned int The amount of SMs available in this resource. - {{endif}} - {{if 'CU_DEV_SM_RESOURCE_GROUP_PARAMS_st.coscheduledSmCount' in found_struct}} + + coscheduledSmCount : unsigned int The amount of co-scheduled SMs grouped together for locality purposes. - {{endif}} - {{if 'CU_DEV_SM_RESOURCE_GROUP_PARAMS_st.preferredCoscheduledSmCount' in found_struct}} + + preferredCoscheduledSmCount : unsigned int When possible, combine co-scheduled groups together into larger groups of this size. - {{endif}} - {{if 'CU_DEV_SM_RESOURCE_GROUP_PARAMS_st.flags' in found_struct}} + + flags : unsigned int The flags set on this SM resource group. For possible values see CUdevSmResourceGroup_flags. - {{endif}} - {{if 'CU_DEV_SM_RESOURCE_GROUP_PARAMS_st.reserved' in found_struct}} + + reserved : list[unsigned int] - {{endif}} + Methods ------- @@ -25092,116 +24338,114 @@ cdef class CU_DEV_SM_RESOURCE_GROUP_PARAMS_st: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CU_DEV_SM_RESOURCE_GROUP_PARAMS_st.smCount' in found_struct}} + try: str_list += ['smCount : ' + str(self.smCount)] except ValueError: str_list += ['smCount : '] - {{endif}} - {{if 'CU_DEV_SM_RESOURCE_GROUP_PARAMS_st.coscheduledSmCount' in found_struct}} + + try: str_list += ['coscheduledSmCount : ' + str(self.coscheduledSmCount)] except ValueError: str_list += ['coscheduledSmCount : '] - {{endif}} - {{if 'CU_DEV_SM_RESOURCE_GROUP_PARAMS_st.preferredCoscheduledSmCount' in found_struct}} + + try: str_list += ['preferredCoscheduledSmCount : ' + str(self.preferredCoscheduledSmCount)] except ValueError: str_list += ['preferredCoscheduledSmCount : '] - {{endif}} - {{if 'CU_DEV_SM_RESOURCE_GROUP_PARAMS_st.flags' in found_struct}} + + try: str_list += ['flags : ' + str(self.flags)] except ValueError: str_list += ['flags : '] - {{endif}} - {{if 'CU_DEV_SM_RESOURCE_GROUP_PARAMS_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 'CU_DEV_SM_RESOURCE_GROUP_PARAMS_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 'CU_DEV_SM_RESOURCE_GROUP_PARAMS_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 'CU_DEV_SM_RESOURCE_GROUP_PARAMS_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 'CU_DEV_SM_RESOURCE_GROUP_PARAMS_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 'CU_DEV_SM_RESOURCE_GROUP_PARAMS_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 'CUdevResource_st' in found_struct}} + cdef class CUdevResource_st: """ Attributes ---------- - {{if 'CUdevResource_st.type' in found_struct}} + type : CUdevResourceType Type of resource, dictates which union field was last set - {{endif}} - {{if 'CUdevResource_st._internal_padding' in found_struct}} + + _internal_padding : bytes - {{endif}} - {{if 'CUdevResource_st.sm' in found_struct}} + + sm : CUdevSmResource Resource corresponding to CU_DEV_RESOURCE_TYPE_SM `typename`. - {{endif}} - {{if 'CUdevResource_st.wqConfig' in found_struct}} + + wqConfig : CUdevWorkqueueConfigResource Resource corresponding to CU_DEV_RESOURCE_TYPE_WORKQUEUE_CONFIG `typename`. - {{endif}} - {{if 'CUdevResource_st.wq' in found_struct}} + + wq : CUdevWorkqueueResource Resource corresponding to CU_DEV_RESOURCE_TYPE_WORKQUEUE `typename`. - {{endif}} - {{if 'CUdevResource_st._oversize' in found_struct}} + + _oversize : bytes - {{endif}} - {{if 'CUdevResource_st.nextResource' in found_struct}} + + nextResource : CUdevResource_st - {{endif}} + Methods ------- @@ -25216,81 +24460,81 @@ cdef class CUdevResource_st: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): pass - {{if 'CUdevResource_st.sm' in found_struct}} + self._sm = CUdevSmResource(_ptr=&self._pvt_ptr[0].sm) - {{endif}} - {{if 'CUdevResource_st.wqConfig' in found_struct}} + + self._wqConfig = CUdevWorkqueueConfigResource(_ptr=&self._pvt_ptr[0].wqConfig) - {{endif}} - {{if 'CUdevResource_st.wq' in found_struct}} + + self._wq = CUdevWorkqueueResource(_ptr=&self._pvt_ptr[0].wq) - {{endif}} + def __dealloc__(self): if self._val_ptr is not NULL: free(self._val_ptr) - {{if 'CUdevResource_st.nextResource' in found_struct}} + if self._nextResource is not NULL: free(self._nextResource) - {{endif}} + def getPtr(self): return self._pvt_ptr def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUdevResource_st.type' in found_struct}} + try: str_list += ['type : ' + str(self.type)] except ValueError: str_list += ['type : '] - {{endif}} - {{if 'CUdevResource_st._internal_padding' in found_struct}} + + try: str_list += ['_internal_padding : ' + str(self._internal_padding)] except ValueError: str_list += ['_internal_padding : '] - {{endif}} - {{if 'CUdevResource_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 'CUdevResource_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 'CUdevResource_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 'CUdevResource_st._oversize' in found_struct}} + + try: str_list += ['_oversize : ' + str(self._oversize)] except ValueError: str_list += ['_oversize : '] - {{endif}} - {{if 'CUdevResource_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 'CUdevResource_st.type' in found_struct}} + @property def type(self): return CUdevResourceType(self._pvt_ptr[0].type) @type.setter def type(self, type not None : CUdevResourceType): self._pvt_ptr[0].type = int(type) - {{endif}} - {{if 'CUdevResource_st._internal_padding' in found_struct}} + + @property def _internal_padding(self): return PyBytes_FromStringAndSize(self._pvt_ptr[0]._internal_padding, 92) @@ -25300,32 +24544,32 @@ cdef class CUdevResource_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 'CUdevResource_st.sm' in found_struct}} + + @property def sm(self): return self._sm @sm.setter def sm(self, sm not None : CUdevSmResource): - string.memcpy(&self._pvt_ptr[0].sm, sm.getPtr(), sizeof(self._pvt_ptr[0].sm)) - {{endif}} - {{if 'CUdevResource_st.wqConfig' in found_struct}} + string.memcpy(&self._pvt_ptr[0].sm, sm.getPtr(), sizeof(self._pvt_ptr[0].sm)) + + @property def wqConfig(self): return self._wqConfig @wqConfig.setter def wqConfig(self, wqConfig not None : CUdevWorkqueueConfigResource): - string.memcpy(&self._pvt_ptr[0].wqConfig, wqConfig.getPtr(), sizeof(self._pvt_ptr[0].wqConfig)) - {{endif}} - {{if 'CUdevResource_st.wq' in found_struct}} + string.memcpy(&self._pvt_ptr[0].wqConfig, wqConfig.getPtr(), sizeof(self._pvt_ptr[0].wqConfig)) + + @property def wq(self): return self._wq @wq.setter def wq(self, wq not None : CUdevWorkqueueResource): - string.memcpy(&self._pvt_ptr[0].wq, wq.getPtr(), sizeof(self._pvt_ptr[0].wq)) - {{endif}} - {{if 'CUdevResource_st._oversize' in found_struct}} + string.memcpy(&self._pvt_ptr[0].wq, wq.getPtr(), sizeof(self._pvt_ptr[0].wq)) + + @property def _oversize(self): return PyBytes_FromStringAndSize(self._pvt_ptr[0]._oversize, 40) @@ -25335,8 +24579,8 @@ cdef class CUdevResource_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 'CUdevResource_st.nextResource' in found_struct}} + + @property def nextResource(self): arrs = [self._pvt_ptr[0].nextResource + x*sizeof(cydriver.CUdevResource_st) for x in range(self._nextResource_length)] @@ -25358,22 +24602,20 @@ cdef class CUdevResource_st: for idx in range(len(val)): string.memcpy(&self._nextResource[idx], (val[idx])._pvt_ptr, sizeof(cydriver.CUdevResource_st)) - {{endif}} -{{endif}} -{{if True}} + cdef class anon_union16: """ Attributes ---------- - {{if True}} + pArray : list[CUarray] - {{endif}} - {{if True}} + + pPitch : list[Any] - {{endif}} + Methods ------- @@ -25392,22 +24634,22 @@ cdef class anon_union16: 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 : ' + hex(self.pPitch)] except ValueError: str_list += ['pPitch : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if True}} + @property def pArray(self): return [CUarray(init_value=_pArray) for _pArray in self._pvt_ptr[0].frame.pArray] @@ -25419,8 +24661,8 @@ cdef class anon_union16: for _idx, _pArray in enumerate(pArray): self._pvt_ptr[0].frame.pArray[_idx] = _pArray - {{endif}} - {{if True}} + + @property def pPitch(self): return [_pPitch for _pPitch in self._pvt_ptr[0].frame.pPitch] @@ -25431,9 +24673,7 @@ cdef class anon_union16: pPitch = [_pPitch for _pPitch in pPitch] for _idx, _pPitch in enumerate(pPitch): self._pvt_ptr[0].frame.pPitch[_idx] = _pPitch - {{endif}} -{{endif}} -{{if True}} + cdef class CUeglFrame_st: """ @@ -25443,46 +24683,46 @@ cdef class CUeglFrame_st: Attributes ---------- - {{if True}} + frame : anon_union16 - {{endif}} - {{if True}} + + width : unsigned int Width of first plane - {{endif}} - {{if True}} + + height : unsigned int Height of first plane - {{endif}} - {{if True}} + + depth : unsigned int Depth of first plane - {{endif}} - {{if True}} + + pitch : unsigned int Pitch of first plane - {{endif}} - {{if True}} + + planeCount : unsigned int Number of planes - {{endif}} - {{if True}} + + numChannels : unsigned int Number of channels for the plane - {{endif}} - {{if True}} + + frameType : CUeglFrameType Array or Pitch - {{endif}} - {{if True}} + + eglColorFormat : CUeglColorFormat CUDA EGL Color Format - {{endif}} - {{if True}} + + cuFormat : CUarray_format CUDA Array Format - {{endif}} + Methods ------- @@ -25497,9 +24737,9 @@ cdef class CUeglFrame_st: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): pass - {{if True}} + self._frame = anon_union16(_ptr=self._pvt_ptr) - {{endif}} + def __dealloc__(self): if self._val_ptr is not NULL: free(self._val_ptr) @@ -25508,151 +24748,149 @@ cdef class CUeglFrame_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 += ['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 += ['planeCount : ' + str(self.planeCount)] except ValueError: str_list += ['planeCount : '] - {{endif}} - {{if True}} + + try: str_list += ['numChannels : ' + str(self.numChannels)] except ValueError: str_list += ['numChannels : '] - {{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}} - {{if True}} + + try: str_list += ['cuFormat : ' + str(self.cuFormat)] except ValueError: str_list += ['cuFormat : '] - {{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_union16): - string.memcpy(&self._pvt_ptr[0].frame, frame.getPtr(), sizeof(self._pvt_ptr[0].frame)) - {{endif}} - {{if True}} + string.memcpy(&self._pvt_ptr[0].frame, frame.getPtr(), sizeof(self._pvt_ptr[0].frame)) + + @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 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 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 frameType(self): return CUeglFrameType(self._pvt_ptr[0].frameType) @frameType.setter def frameType(self, frameType not None : CUeglFrameType): self._pvt_ptr[0].frameType = int(frameType) - {{endif}} - {{if True}} + + @property def eglColorFormat(self): return CUeglColorFormat(self._pvt_ptr[0].eglColorFormat) @eglColorFormat.setter def eglColorFormat(self, eglColorFormat not None : CUeglColorFormat): self._pvt_ptr[0].eglColorFormat = int(eglColorFormat) - {{endif}} - {{if True}} + + @property def cuFormat(self): 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) - {{endif}} -{{endif}} -{{if 'cuuint32_t' in found_types}} + cdef class cuuint32_t: """ @@ -25678,9 +24916,6 @@ cdef class cuuint32_t: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if 'cuuint64_t' in found_types}} cdef class cuuint64_t: """ @@ -25706,9 +24941,6 @@ cdef class cuuint64_t: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if 'CUdeviceptr_v2' in found_types}} cdef class CUdeviceptr_v2: """ @@ -25736,9 +24968,6 @@ cdef class CUdeviceptr_v2: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if 'CUdevice_v1' in found_types}} cdef class CUdevice_v1: """ @@ -25766,9 +24995,6 @@ cdef class CUdevice_v1: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if 'CUtexObject_v1' in found_types}} cdef class CUtexObject_v1: """ @@ -25796,9 +25022,6 @@ cdef class CUtexObject_v1: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if 'CUsurfObject_v1' in found_types}} cdef class CUsurfObject_v1: """ @@ -25826,9 +25049,6 @@ cdef class CUsurfObject_v1: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if 'CUmemGenericAllocationHandle_v1' in found_types}} cdef class CUmemGenericAllocationHandle_v1: """ @@ -25854,9 +25074,6 @@ cdef class CUmemGenericAllocationHandle_v1: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if 'CUlogIterator' in found_types}} cdef class CUlogIterator: """ @@ -25882,9 +25099,6 @@ cdef class CUlogIterator: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if True}} cdef class GLenum: """ @@ -25910,9 +25124,6 @@ cdef class GLenum: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if True}} cdef class GLuint: """ @@ -25938,9 +25149,6 @@ cdef class GLuint: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if True}} cdef class EGLint: """ @@ -25966,9 +25174,6 @@ cdef class EGLint: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if True}} cdef class VdpDevice: """ @@ -25994,9 +25199,6 @@ cdef class VdpDevice: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if True}} cdef class VdpGetProcAddress: """ @@ -26022,9 +25224,6 @@ cdef class VdpGetProcAddress: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if True}} cdef class VdpVideoSurface: """ @@ -26050,9 +25249,6 @@ cdef class VdpVideoSurface: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if True}} cdef class VdpOutputSurface: """ @@ -26078,9 +25274,6 @@ cdef class VdpOutputSurface: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if 'cuGetErrorString' in found_functions}} @cython.embedsignature(True) def cuGetErrorString(error not None : CUresult): @@ -26114,9 +25307,6 @@ def cuGetErrorString(error not None : CUresult): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, pStr if pStr != NULL else None) -{{endif}} - -{{if 'cuGetErrorName' in found_functions}} @cython.embedsignature(True) def cuGetErrorName(error not None : CUresult): @@ -26150,9 +25340,6 @@ def cuGetErrorName(error not None : CUresult): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, pStr if pStr != NULL else None) -{{endif}} - -{{if 'cuInit' in found_functions}} @cython.embedsignature(True) def cuInit(unsigned int Flags): @@ -26177,9 +25364,6 @@ def cuInit(unsigned int Flags): with nogil: err = cydriver.cuInit(Flags) return (_CUresult(err),) -{{endif}} - -{{if 'cuDriverGetVersion' in found_functions}} @cython.embedsignature(True) def cuDriverGetVersion(): @@ -26209,9 +25393,6 @@ def cuDriverGetVersion(): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, driverVersion) -{{endif}} - -{{if 'cuDeviceGet' in found_functions}} @cython.embedsignature(True) def cuDeviceGet(int ordinal): @@ -26242,9 +25423,6 @@ def cuDeviceGet(int ordinal): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, device) -{{endif}} - -{{if 'cuDeviceGetCount' in found_functions}} @cython.embedsignature(True) def cuDeviceGetCount(): @@ -26271,9 +25449,6 @@ def cuDeviceGetCount(): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, count) -{{endif}} - -{{if 'cuDeviceGetName' in found_functions}} @cython.embedsignature(True) def cuDeviceGetName(int length, dev): @@ -26317,9 +25492,6 @@ def cuDeviceGetName(int length, dev): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, pyname) -{{endif}} - -{{if 'cuDeviceGetUuid_v2' in found_functions}} @cython.embedsignature(True) def cuDeviceGetUuid(dev): @@ -26359,9 +25531,6 @@ def cuDeviceGetUuid(dev): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, uuid) -{{endif}} - -{{if 'cuDeviceGetLuid' in found_functions}} @cython.embedsignature(True) def cuDeviceGetLuid(dev): @@ -26403,9 +25572,6 @@ def cuDeviceGetLuid(dev): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None, None) return (_CUresult_SUCCESS, luid, deviceNodeMask) -{{endif}} - -{{if 'cuDeviceTotalMem_v2' in found_functions}} @cython.embedsignature(True) def cuDeviceTotalMem(dev): @@ -26444,9 +25610,6 @@ def cuDeviceTotalMem(dev): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, numbytes) -{{endif}} - -{{if 'cuDeviceGetTexture1DLinearMaxWidth' in found_functions}} @cython.embedsignature(True) def cuDeviceGetTexture1DLinearMaxWidth(pformat not None : CUarray_format, unsigned numChannels, dev): @@ -26492,9 +25655,6 @@ def cuDeviceGetTexture1DLinearMaxWidth(pformat not None : CUarray_format, unsign if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, maxWidthInElements) -{{endif}} - -{{if 'cuDeviceGetAttribute' in found_functions}} @cython.embedsignature(True) def cuDeviceGetAttribute(attrib not None : CUdevice_attribute, dev): @@ -26536,9 +25696,6 @@ def cuDeviceGetAttribute(attrib not None : CUdevice_attribute, dev): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, pi) -{{endif}} - -{{if 'cuDeviceGetHostAtomicCapabilities' in found_functions}} @cython.embedsignature(True) def cuDeviceGetHostAtomicCapabilities(operations : Optional[tuple[CUatomicOperation] | list[CUatomicOperation]], unsigned int count, dev): @@ -26607,9 +25764,6 @@ def cuDeviceGetHostAtomicCapabilities(operations : Optional[tuple[CUatomicOperat if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, pycapabilities) -{{endif}} - -{{if 'cuDeviceGetNvSciSyncAttributes' in found_functions}} @cython.embedsignature(True) def cuDeviceGetNvSciSyncAttributes(nvSciSyncAttrList, dev, int flags): @@ -26687,7 +25841,6 @@ def cuDeviceGetNvSciSyncAttributes(nvSciSyncAttrList, dev, int flags): ------- CUresult - See Also -------- :py:obj:`~.cuImportExternalSemaphore`, :py:obj:`~.cuDestroyExternalSemaphore`, :py:obj:`~.cuSignalExternalSemaphoresAsync`, :py:obj:`~.cuWaitExternalSemaphoresAsync` @@ -26706,9 +25859,6 @@ def cuDeviceGetNvSciSyncAttributes(nvSciSyncAttrList, dev, int flags): err = cydriver.cuDeviceGetNvSciSyncAttributes(cynvSciSyncAttrList, cydev, flags) _helper_input_void_ptr_free(&cynvSciSyncAttrListHelper) return (_CUresult(err),) -{{endif}} - -{{if 'cuDeviceSetMemPool' in found_functions}} @cython.embedsignature(True) def cuDeviceSetMemPool(dev, pool): @@ -26758,9 +25908,6 @@ def cuDeviceSetMemPool(dev, pool): with nogil: err = cydriver.cuDeviceSetMemPool(cydev, cypool) return (_CUresult(err),) -{{endif}} - -{{if 'cuDeviceGetMemPool' in found_functions}} @cython.embedsignature(True) def cuDeviceGetMemPool(dev): @@ -26802,9 +25949,6 @@ def cuDeviceGetMemPool(dev): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, pool) -{{endif}} - -{{if 'cuDeviceGetDefaultMemPool' in found_functions}} @cython.embedsignature(True) def cuDeviceGetDefaultMemPool(dev): @@ -26843,9 +25987,6 @@ def cuDeviceGetDefaultMemPool(dev): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, pool_out) -{{endif}} - -{{if 'cuDeviceGetExecAffinitySupport' in found_functions}} @cython.embedsignature(True) def cuDeviceGetExecAffinitySupport(typename not None : CUexecAffinityType, dev): @@ -26891,9 +26032,6 @@ def cuDeviceGetExecAffinitySupport(typename not None : CUexecAffinityType, dev): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, pi) -{{endif}} - -{{if 'cuFlushGPUDirectRDMAWrites' in found_functions}} @cython.embedsignature(True) def cuFlushGPUDirectRDMAWrites(target not None : CUflushGPUDirectRDMAWritesTarget, scope not None : CUflushGPUDirectRDMAWritesScope): @@ -26942,9 +26080,6 @@ def cuFlushGPUDirectRDMAWrites(target not None : CUflushGPUDirectRDMAWritesTarge with nogil: err = cydriver.cuFlushGPUDirectRDMAWrites(cytarget, cyscope) return (_CUresult(err),) -{{endif}} - -{{if 'cuDeviceGetProperties' in found_functions}} @cython.embedsignature(True) def cuDeviceGetProperties(dev): @@ -27022,9 +26157,6 @@ def cuDeviceGetProperties(dev): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, prop) -{{endif}} - -{{if 'cuDeviceComputeCapability' in found_functions}} @cython.embedsignature(True) def cuDeviceComputeCapability(dev): @@ -27071,9 +26203,6 @@ def cuDeviceComputeCapability(dev): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None, None) return (_CUresult_SUCCESS, major, minor) -{{endif}} - -{{if 'cuDevicePrimaryCtxRetain' in found_functions}} @cython.embedsignature(True) def cuDevicePrimaryCtxRetain(dev): @@ -27129,9 +26258,6 @@ def cuDevicePrimaryCtxRetain(dev): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, pctx) -{{endif}} - -{{if 'cuDevicePrimaryCtxRelease_v2' in found_functions}} @cython.embedsignature(True) def cuDevicePrimaryCtxRelease(dev): @@ -27175,9 +26301,6 @@ def cuDevicePrimaryCtxRelease(dev): with nogil: err = cydriver.cuDevicePrimaryCtxRelease(cydev) return (_CUresult(err),) -{{endif}} - -{{if 'cuDevicePrimaryCtxSetFlags_v2' in found_functions}} @cython.embedsignature(True) def cuDevicePrimaryCtxSetFlags(dev, unsigned int flags): @@ -27289,9 +26412,6 @@ def cuDevicePrimaryCtxSetFlags(dev, unsigned int flags): with nogil: err = cydriver.cuDevicePrimaryCtxSetFlags(cydev, flags) return (_CUresult(err),) -{{endif}} - -{{if 'cuDevicePrimaryCtxGetState' in found_functions}} @cython.embedsignature(True) def cuDevicePrimaryCtxGetState(dev): @@ -27334,9 +26454,6 @@ def cuDevicePrimaryCtxGetState(dev): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None, None) return (_CUresult_SUCCESS, flags, active) -{{endif}} - -{{if 'cuDevicePrimaryCtxReset_v2' in found_functions}} @cython.embedsignature(True) def cuDevicePrimaryCtxReset(dev): @@ -27379,9 +26496,6 @@ def cuDevicePrimaryCtxReset(dev): with nogil: err = cydriver.cuDevicePrimaryCtxReset(cydev) return (_CUresult(err),) -{{endif}} - -{{if 'cuCtxCreate_v4' in found_functions}} @cython.embedsignature(True) def cuCtxCreate(ctxCreateParams : Optional[CUctxCreateParams], unsigned int flags, dev): @@ -27568,9 +26682,6 @@ def cuCtxCreate(ctxCreateParams : Optional[CUctxCreateParams], unsigned int flag if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, pctx) -{{endif}} - -{{if 'cuCtxDestroy_v2' in found_functions}} @cython.embedsignature(True) def cuCtxDestroy(ctx): @@ -27631,9 +26742,6 @@ def cuCtxDestroy(ctx): with nogil: err = cydriver.cuCtxDestroy(cyctx) return (_CUresult(err),) -{{endif}} - -{{if 'cuCtxPushCurrent_v2' in found_functions}} @cython.embedsignature(True) def cuCtxPushCurrent(ctx): @@ -27672,9 +26780,6 @@ def cuCtxPushCurrent(ctx): with nogil: err = cydriver.cuCtxPushCurrent(cyctx) return (_CUresult(err),) -{{endif}} - -{{if 'cuCtxPopCurrent_v2' in found_functions}} @cython.embedsignature(True) def cuCtxPopCurrent(): @@ -27705,9 +26810,6 @@ def cuCtxPopCurrent(): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, pctx) -{{endif}} - -{{if 'cuCtxSetCurrent' in found_functions}} @cython.embedsignature(True) def cuCtxSetCurrent(ctx): @@ -27748,9 +26850,6 @@ def cuCtxSetCurrent(ctx): with nogil: err = cydriver.cuCtxSetCurrent(cyctx) return (_CUresult(err),) -{{endif}} - -{{if 'cuCtxGetCurrent' in found_functions}} @cython.embedsignature(True) def cuCtxGetCurrent(): @@ -27777,9 +26876,6 @@ def cuCtxGetCurrent(): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, pctx) -{{endif}} - -{{if 'cuCtxGetDevice' in found_functions}} @cython.embedsignature(True) def cuCtxGetDevice(): @@ -27804,9 +26900,6 @@ def cuCtxGetDevice(): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, device) -{{endif}} - -{{if 'cuCtxGetDevice_v2' in found_functions}} @cython.embedsignature(True) def cuCtxGetDevice_v2(ctx): @@ -27846,9 +26939,6 @@ def cuCtxGetDevice_v2(ctx): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, device) -{{endif}} - -{{if 'cuCtxGetFlags' in found_functions}} @cython.embedsignature(True) def cuCtxGetFlags(): @@ -27874,9 +26964,6 @@ def cuCtxGetFlags(): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, flags) -{{endif}} - -{{if 'cuCtxSetFlags' in found_functions}} @cython.embedsignature(True) def cuCtxSetFlags(unsigned int flags): @@ -27902,9 +26989,6 @@ def cuCtxSetFlags(unsigned int flags): with nogil: err = cydriver.cuCtxSetFlags(flags) return (_CUresult(err),) -{{endif}} - -{{if 'cuCtxGetId' in found_functions}} @cython.embedsignature(True) def cuCtxGetId(ctx): @@ -27945,9 +27029,6 @@ def cuCtxGetId(ctx): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, ctxId) -{{endif}} - -{{if 'cuCtxSynchronize' in found_functions}} @cython.embedsignature(True) def cuCtxSynchronize(): @@ -27973,9 +27054,6 @@ def cuCtxSynchronize(): with nogil: err = cydriver.cuCtxSynchronize() return (_CUresult(err),) -{{endif}} - -{{if 'cuCtxSynchronize_v2' in found_functions}} @cython.embedsignature(True) def cuCtxSynchronize_v2(ctx): @@ -28018,9 +27096,6 @@ def cuCtxSynchronize_v2(ctx): with nogil: err = cydriver.cuCtxSynchronize_v2(cyctx) return (_CUresult(err),) -{{endif}} - -{{if 'cuCtxSetLimit' in found_functions}} @cython.embedsignature(True) def cuCtxSetLimit(limit not None : CUlimit, size_t value): @@ -28125,9 +27200,6 @@ def cuCtxSetLimit(limit not None : CUlimit, size_t value): with nogil: err = cydriver.cuCtxSetLimit(cylimit, value) return (_CUresult(err),) -{{endif}} - -{{if 'cuCtxGetLimit' in found_functions}} @cython.embedsignature(True) def cuCtxGetLimit(limit not None : CUlimit): @@ -28184,9 +27256,6 @@ def cuCtxGetLimit(limit not None : CUlimit): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, pvalue) -{{endif}} - -{{if 'cuCtxGetCacheConfig' in found_functions}} @cython.embedsignature(True) def cuCtxGetCacheConfig(): @@ -28232,9 +27301,6 @@ def cuCtxGetCacheConfig(): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, CUfunc_cache(pconfig)) -{{endif}} - -{{if 'cuCtxSetCacheConfig' in found_functions}} @cython.embedsignature(True) def cuCtxSetCacheConfig(config not None : CUfunc_cache): @@ -28290,9 +27356,6 @@ def cuCtxSetCacheConfig(config not None : CUfunc_cache): with nogil: err = cydriver.cuCtxSetCacheConfig(cyconfig) return (_CUresult(err),) -{{endif}} - -{{if 'cuCtxGetApiVersion' in found_functions}} @cython.embedsignature(True) def cuCtxGetApiVersion(ctx): @@ -28338,9 +27401,6 @@ def cuCtxGetApiVersion(ctx): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, version) -{{endif}} - -{{if 'cuCtxGetStreamPriorityRange' in found_functions}} @cython.embedsignature(True) def cuCtxGetStreamPriorityRange(): @@ -28384,9 +27444,6 @@ def cuCtxGetStreamPriorityRange(): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None, None) return (_CUresult_SUCCESS, leastPriority, greatestPriority) -{{endif}} - -{{if 'cuCtxResetPersistingL2Cache' in found_functions}} @cython.embedsignature(True) def cuCtxResetPersistingL2Cache(): @@ -28407,9 +27464,6 @@ def cuCtxResetPersistingL2Cache(): with nogil: err = cydriver.cuCtxResetPersistingL2Cache() return (_CUresult(err),) -{{endif}} - -{{if 'cuCtxGetExecAffinity' in found_functions}} @cython.embedsignature(True) def cuCtxGetExecAffinity(typename not None : CUexecAffinityType): @@ -28444,9 +27498,6 @@ def cuCtxGetExecAffinity(typename not None : CUexecAffinityType): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, pExecAffinity) -{{endif}} - -{{if 'cuCtxRecordEvent' in found_functions}} @cython.embedsignature(True) def cuCtxRecordEvent(hCtx, hEvent): @@ -28504,9 +27555,6 @@ def cuCtxRecordEvent(hCtx, hEvent): with nogil: err = cydriver.cuCtxRecordEvent(cyhCtx, cyhEvent) return (_CUresult(err),) -{{endif}} - -{{if 'cuCtxWaitEvent' in found_functions}} @cython.embedsignature(True) def cuCtxWaitEvent(hCtx, hEvent): @@ -28563,9 +27611,6 @@ def cuCtxWaitEvent(hCtx, hEvent): with nogil: err = cydriver.cuCtxWaitEvent(cyhCtx, cyhEvent) return (_CUresult(err),) -{{endif}} - -{{if 'cuCtxAttach' in found_functions}} @cython.embedsignature(True) def cuCtxAttach(unsigned int flags): @@ -28604,9 +27649,6 @@ def cuCtxAttach(unsigned int flags): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, pctx) -{{endif}} - -{{if 'cuCtxDetach' in found_functions}} @cython.embedsignature(True) def cuCtxDetach(ctx): @@ -28646,9 +27688,6 @@ def cuCtxDetach(ctx): with nogil: err = cydriver.cuCtxDetach(cyctx) return (_CUresult(err),) -{{endif}} - -{{if 'cuCtxGetSharedMemConfig' in found_functions}} @cython.embedsignature(True) def cuCtxGetSharedMemConfig(): @@ -28689,9 +27728,6 @@ def cuCtxGetSharedMemConfig(): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, CUsharedconfig(pConfig)) -{{endif}} - -{{if 'cuCtxSetSharedMemConfig' in found_functions}} @cython.embedsignature(True) def cuCtxSetSharedMemConfig(config not None : CUsharedconfig): @@ -28744,9 +27780,6 @@ def cuCtxSetSharedMemConfig(config not None : CUsharedconfig): with nogil: err = cydriver.cuCtxSetSharedMemConfig(cyconfig) return (_CUresult(err),) -{{endif}} - -{{if 'cuModuleLoad' in found_functions}} @cython.embedsignature(True) def cuModuleLoad(char* fname): @@ -28783,9 +27816,6 @@ def cuModuleLoad(char* fname): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, module) -{{endif}} - -{{if 'cuModuleLoadData' in found_functions}} @cython.embedsignature(True) def cuModuleLoadData(image): @@ -28821,9 +27851,6 @@ def cuModuleLoadData(image): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, module) -{{endif}} - -{{if 'cuModuleLoadDataEx' in found_functions}} @cython.embedsignature(True) def cuModuleLoadDataEx(image, unsigned int numOptions, options : Optional[tuple[CUjit_option] | list[CUjit_option]], optionValues : Optional[tuple[Any] | list[Any]]): @@ -28875,9 +27902,6 @@ def cuModuleLoadDataEx(image, unsigned int numOptions, options : Optional[tuple[ if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, module) -{{endif}} - -{{if 'cuModuleLoadFatBinary' in found_functions}} @cython.embedsignature(True) def cuModuleLoadFatBinary(fatCubin): @@ -28919,9 +27943,6 @@ def cuModuleLoadFatBinary(fatCubin): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, module) -{{endif}} - -{{if 'cuModuleUnload' in found_functions}} @cython.embedsignature(True) def cuModuleUnload(hmod): @@ -28957,9 +27978,6 @@ def cuModuleUnload(hmod): with nogil: err = cydriver.cuModuleUnload(cyhmod) return (_CUresult(err),) -{{endif}} - -{{if 'cuModuleGetLoadingMode' in found_functions}} @cython.embedsignature(True) def cuModuleGetLoadingMode(): @@ -28985,9 +28003,6 @@ def cuModuleGetLoadingMode(): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, CUmoduleLoadingMode(mode)) -{{endif}} - -{{if 'cuModuleGetFunction' in found_functions}} @cython.embedsignature(True) def cuModuleGetFunction(hmod, char* name): @@ -29030,9 +28045,6 @@ def cuModuleGetFunction(hmod, char* name): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, hfunc) -{{endif}} - -{{if 'cuModuleGetFunctionCount' in found_functions}} @cython.embedsignature(True) def cuModuleGetFunctionCount(mod): @@ -29066,9 +28078,6 @@ def cuModuleGetFunctionCount(mod): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, count) -{{endif}} - -{{if 'cuModuleEnumerateFunctions' in found_functions}} @cython.embedsignature(True) def cuModuleEnumerateFunctions(unsigned int numFunctions, mod): @@ -29125,9 +28134,6 @@ def cuModuleEnumerateFunctions(unsigned int numFunctions, mod): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, pyfunctions) -{{endif}} - -{{if 'cuModuleGetGlobal_v2' in found_functions}} @cython.embedsignature(True) def cuModuleGetGlobal(hmod, char* name): @@ -29174,9 +28180,6 @@ def cuModuleGetGlobal(hmod, char* name): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None, None) return (_CUresult_SUCCESS, dptr, numbytes) -{{endif}} - -{{if 'cuLinkCreate_v2' in found_functions}} @cython.embedsignature(True) def cuLinkCreate(unsigned int numOptions, options : Optional[tuple[CUjit_option] | list[CUjit_option]], optionValues : Optional[tuple[Any] | list[Any]]): @@ -29248,9 +28251,6 @@ def cuLinkCreate(unsigned int numOptions, options : Optional[tuple[CUjit_option] if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, stateOut) -{{endif}} - -{{if 'cuLinkAddData_v2' in found_functions}} @cython.embedsignature(True) def cuLinkAddData(state, typename not None : CUjitInputType, data, size_t size, char* name, unsigned int numOptions, options : Optional[tuple[CUjit_option] | list[CUjit_option]], optionValues : Optional[tuple[Any] | list[Any]]): @@ -29323,9 +28323,6 @@ def cuLinkAddData(state, typename not None : CUjitInputType, data, size_t size, err = cydriver.cuLinkAddData(cystate, cytypename, cydata, size, name, numOptions, cyoptions.data(), cyoptionValues_ptr) _helper_input_void_ptr_free(&cydataHelper) return (_CUresult(err),) -{{endif}} - -{{if 'cuLinkAddFile_v2' in found_functions}} @cython.embedsignature(True) def cuLinkAddFile(state, typename not None : CUjitInputType, char* path, unsigned int numOptions, options : Optional[tuple[CUjit_option] | list[CUjit_option]], optionValues : Optional[tuple[Any] | list[Any]]): @@ -29393,9 +28390,6 @@ def cuLinkAddFile(state, typename not None : CUjitInputType, char* path, unsigne with nogil: err = cydriver.cuLinkAddFile(cystate, cytypename, path, numOptions, cyoptions.data(), cyoptionValues_ptr) return (_CUresult(err),) -{{endif}} - -{{if 'cuLinkComplete' in found_functions}} @cython.embedsignature(True) def cuLinkComplete(state): @@ -29440,9 +28434,6 @@ def cuLinkComplete(state): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None, None) return (_CUresult_SUCCESS, cubinOut, sizeOut) -{{endif}} - -{{if 'cuLinkDestroy' in found_functions}} @cython.embedsignature(True) def cuLinkDestroy(state): @@ -29473,9 +28464,6 @@ def cuLinkDestroy(state): with nogil: err = cydriver.cuLinkDestroy(cystate) return (_CUresult(err),) -{{endif}} - -{{if 'cuModuleGetTexRef' in found_functions}} @cython.embedsignature(True) def cuModuleGetTexRef(hmod, char* name): @@ -29522,9 +28510,6 @@ def cuModuleGetTexRef(hmod, char* name): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, pTexRef) -{{endif}} - -{{if 'cuModuleGetSurfRef' in found_functions}} @cython.embedsignature(True) def cuModuleGetSurfRef(hmod, char* name): @@ -29569,9 +28554,6 @@ def cuModuleGetSurfRef(hmod, char* name): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, pSurfRef) -{{endif}} - -{{if 'cuLibraryLoadData' in found_functions}} @cython.embedsignature(True) def cuLibraryLoadData(code, jitOptions : Optional[tuple[CUjit_option] | list[CUjit_option]], jitOptionsValues : Optional[tuple[Any] | list[Any]], unsigned int numJitOptions, libraryOptions : Optional[tuple[CUlibraryOption] | list[CUlibraryOption]], libraryOptionValues : Optional[tuple[Any] | list[Any]], unsigned int numLibraryOptions): @@ -29669,9 +28651,6 @@ def cuLibraryLoadData(code, jitOptions : Optional[tuple[CUjit_option] | list[CUj if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, library) -{{endif}} - -{{if 'cuLibraryLoadFromFile' in found_functions}} @cython.embedsignature(True) def cuLibraryLoadFromFile(char* fileName, jitOptions : Optional[tuple[CUjit_option] | list[CUjit_option]], jitOptionsValues : Optional[tuple[Any] | list[Any]], unsigned int numJitOptions, libraryOptions : Optional[tuple[CUlibraryOption] | list[CUlibraryOption]], libraryOptionValues : Optional[tuple[Any] | list[Any]], unsigned int numLibraryOptions): @@ -29766,9 +28745,6 @@ def cuLibraryLoadFromFile(char* fileName, jitOptions : Optional[tuple[CUjit_opti if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, library) -{{endif}} - -{{if 'cuLibraryUnload' in found_functions}} @cython.embedsignature(True) def cuLibraryUnload(library): @@ -29801,9 +28777,6 @@ def cuLibraryUnload(library): with nogil: err = cydriver.cuLibraryUnload(cylibrary) return (_CUresult(err),) -{{endif}} - -{{if 'cuLibraryGetKernel' in found_functions}} @cython.embedsignature(True) def cuLibraryGetKernel(library, char* name): @@ -29845,9 +28818,6 @@ def cuLibraryGetKernel(library, char* name): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, pKernel) -{{endif}} - -{{if 'cuLibraryGetKernelCount' in found_functions}} @cython.embedsignature(True) def cuLibraryGetKernelCount(lib): @@ -29881,9 +28851,6 @@ def cuLibraryGetKernelCount(lib): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, count) -{{endif}} - -{{if 'cuLibraryEnumerateKernels' in found_functions}} @cython.embedsignature(True) def cuLibraryEnumerateKernels(unsigned int numKernels, lib): @@ -29934,9 +28901,6 @@ def cuLibraryEnumerateKernels(unsigned int numKernels, lib): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, pykernels) -{{endif}} - -{{if 'cuLibraryGetModule' in found_functions}} @cython.embedsignature(True) def cuLibraryGetModule(library): @@ -29976,9 +28940,6 @@ def cuLibraryGetModule(library): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, pMod) -{{endif}} - -{{if 'cuKernelGetFunction' in found_functions}} @cython.embedsignature(True) def cuKernelGetFunction(kernel): @@ -30018,9 +28979,6 @@ def cuKernelGetFunction(kernel): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, pFunc) -{{endif}} - -{{if 'cuKernelGetLibrary' in found_functions}} @cython.embedsignature(True) def cuKernelGetLibrary(kernel): @@ -30059,9 +29017,6 @@ def cuKernelGetLibrary(kernel): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, pLib) -{{endif}} - -{{if 'cuLibraryGetGlobal' in found_functions}} @cython.embedsignature(True) def cuLibraryGetGlobal(library, char* name): @@ -30108,9 +29063,6 @@ def cuLibraryGetGlobal(library, char* name): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None, None) return (_CUresult_SUCCESS, dptr, numbytes) -{{endif}} - -{{if 'cuLibraryGetManaged' in found_functions}} @cython.embedsignature(True) def cuLibraryGetManaged(library, char* name): @@ -30159,9 +29111,6 @@ def cuLibraryGetManaged(library, char* name): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None, None) return (_CUresult_SUCCESS, dptr, numbytes) -{{endif}} - -{{if 'cuLibraryGetUnifiedFunction' in found_functions}} @cython.embedsignature(True) def cuLibraryGetUnifiedFunction(library, char* symbol): @@ -30206,9 +29155,6 @@ def cuLibraryGetUnifiedFunction(library, char* symbol): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, fptr) -{{endif}} - -{{if 'cuKernelGetAttribute' in found_functions}} @cython.embedsignature(True) def cuKernelGetAttribute(attrib not None : CUfunction_attribute, kernel, dev): @@ -30341,9 +29287,6 @@ def cuKernelGetAttribute(attrib not None : CUfunction_attribute, kernel, dev): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, pi) -{{endif}} - -{{if 'cuKernelSetAttribute' in found_functions}} @cython.embedsignature(True) def cuKernelSetAttribute(attrib not None : CUfunction_attribute, int val, kernel, dev): @@ -30456,9 +29399,6 @@ def cuKernelSetAttribute(attrib not None : CUfunction_attribute, int val, kernel with nogil: err = cydriver.cuKernelSetAttribute(cyattrib, val, cykernel, cydev) return (_CUresult(err),) -{{endif}} - -{{if 'cuKernelSetCacheConfig' in found_functions}} @cython.embedsignature(True) def cuKernelSetCacheConfig(kernel, config not None : CUfunc_cache, dev): @@ -30540,9 +29480,6 @@ def cuKernelSetCacheConfig(kernel, config not None : CUfunc_cache, dev): with nogil: err = cydriver.cuKernelSetCacheConfig(cykernel, cyconfig, cydev) return (_CUresult(err),) -{{endif}} - -{{if 'cuKernelGetName' in found_functions}} @cython.embedsignature(True) def cuKernelGetName(hfunc): @@ -30582,9 +29519,6 @@ def cuKernelGetName(hfunc): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, name if name != NULL else None) -{{endif}} - -{{if 'cuKernelGetParamInfo' in found_functions}} @cython.embedsignature(True) def cuKernelGetParamInfo(kernel, size_t paramIndex): @@ -30637,9 +29571,6 @@ def cuKernelGetParamInfo(kernel, size_t paramIndex): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None, None) return (_CUresult_SUCCESS, paramOffset, paramSize) -{{endif}} - -{{if 'cuKernelGetParamCount' in found_functions}} @cython.embedsignature(True) def cuKernelGetParamCount(kernel): @@ -30678,9 +29609,6 @@ def cuKernelGetParamCount(kernel): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, paramCount) -{{endif}} - -{{if 'cuMemGetInfo_v2' in found_functions}} @cython.embedsignature(True) def cuMemGetInfo(): @@ -30723,9 +29651,6 @@ def cuMemGetInfo(): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None, None) return (_CUresult_SUCCESS, free, total) -{{endif}} - -{{if 'cuMemAlloc_v2' in found_functions}} @cython.embedsignature(True) def cuMemAlloc(size_t bytesize): @@ -30759,9 +29684,6 @@ def cuMemAlloc(size_t bytesize): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, dptr) -{{endif}} - -{{if 'cuMemAllocPitch_v2' in found_functions}} @cython.embedsignature(True) def cuMemAllocPitch(size_t WidthInBytes, size_t Height, unsigned int ElementSizeBytes): @@ -30828,9 +29750,6 @@ def cuMemAllocPitch(size_t WidthInBytes, size_t Height, unsigned int ElementSize if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None, None) return (_CUresult_SUCCESS, dptr, pPitch) -{{endif}} - -{{if 'cuMemFree_v2' in found_functions}} @cython.embedsignature(True) def cuMemFree(dptr): @@ -30876,9 +29795,6 @@ def cuMemFree(dptr): with nogil: err = cydriver.cuMemFree(cydptr) return (_CUresult(err),) -{{endif}} - -{{if 'cuMemGetAddressRange_v2' in found_functions}} @cython.embedsignature(True) def cuMemGetAddressRange(dptr): @@ -30922,9 +29838,6 @@ def cuMemGetAddressRange(dptr): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None, None) return (_CUresult_SUCCESS, pbase, psize) -{{endif}} - -{{if 'cuMemAllocHost_v2' in found_functions}} @cython.embedsignature(True) def cuMemAllocHost(size_t bytesize): @@ -30979,9 +29892,6 @@ def cuMemAllocHost(size_t bytesize): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, pp) -{{endif}} - -{{if 'cuMemFreeHost' in found_functions}} @cython.embedsignature(True) def cuMemFreeHost(p): @@ -31010,9 +29920,6 @@ def cuMemFreeHost(p): err = cydriver.cuMemFreeHost(cyp) _helper_input_void_ptr_free(&cypHelper) return (_CUresult(err),) -{{endif}} - -{{if 'cuMemHostAlloc' in found_functions}} @cython.embedsignature(True) def cuMemHostAlloc(size_t bytesize, unsigned int Flags): @@ -31103,9 +30010,6 @@ def cuMemHostAlloc(size_t bytesize, unsigned int Flags): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, pp) -{{endif}} - -{{if 'cuMemHostGetDevicePointer_v2' in found_functions}} @cython.embedsignature(True) def cuMemHostGetDevicePointer(p, unsigned int Flags): @@ -31167,9 +30071,6 @@ def cuMemHostGetDevicePointer(p, unsigned int Flags): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, pdptr) -{{endif}} - -{{if 'cuMemHostGetFlags' in found_functions}} @cython.embedsignature(True) def cuMemHostGetFlags(p): @@ -31207,9 +30108,6 @@ def cuMemHostGetFlags(p): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, pFlags) -{{endif}} - -{{if 'cuMemAllocManaged' in found_functions}} @cython.embedsignature(True) def cuMemAllocManaged(size_t bytesize, unsigned int flags): @@ -31344,9 +30242,6 @@ def cuMemAllocManaged(size_t bytesize, unsigned int flags): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, dptr) -{{endif}} - -{{if 'cuDeviceRegisterAsyncNotification' in found_functions}} ctypedef struct cuAsyncCallbackData_st: cydriver.CUasyncCallback callback @@ -31440,9 +30335,6 @@ def cuDeviceRegisterAsyncNotification(device, callbackFunc, userData): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, callback) -{{endif}} - -{{if 'cuDeviceUnregisterAsyncNotification' in found_functions}} @cython.embedsignature(True) def cuDeviceUnregisterAsyncNotification(device, callback): @@ -31490,9 +30382,6 @@ def cuDeviceUnregisterAsyncNotification(device, callback): free(m_global._allocated[pcallback]) m_global._allocated.erase(pcallback) return (_CUresult(err),) -{{endif}} - -{{if 'cuDeviceGetByPCIBusId' in found_functions}} @cython.embedsignature(True) def cuDeviceGetByPCIBusId(char* pciBusId): @@ -31525,9 +30414,6 @@ def cuDeviceGetByPCIBusId(char* pciBusId): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, dev) -{{endif}} - -{{if 'cuDeviceGetPCIBusId' in found_functions}} @cython.embedsignature(True) def cuDeviceGetPCIBusId(int length, dev): @@ -31574,9 +30460,6 @@ def cuDeviceGetPCIBusId(int length, dev): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, pypciBusId) -{{endif}} - -{{if 'cuIpcGetEventHandle' in found_functions}} @cython.embedsignature(True) def cuIpcGetEventHandle(event): @@ -31635,9 +30518,6 @@ def cuIpcGetEventHandle(event): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, pHandle) -{{endif}} - -{{if 'cuIpcOpenEventHandle' in found_functions}} @cython.embedsignature(True) def cuIpcOpenEventHandle(handle not None : CUipcEventHandle): @@ -31682,9 +30562,6 @@ def cuIpcOpenEventHandle(handle not None : CUipcEventHandle): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, phEvent) -{{endif}} - -{{if 'cuIpcGetMemHandle' in found_functions}} @cython.embedsignature(True) def cuIpcGetMemHandle(dptr): @@ -31738,9 +30615,6 @@ def cuIpcGetMemHandle(dptr): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, pHandle) -{{endif}} - -{{if 'cuIpcOpenMemHandle_v2' in found_functions}} @cython.embedsignature(True) def cuIpcOpenMemHandle(handle not None : CUipcMemHandle, unsigned int Flags): @@ -31807,9 +30681,6 @@ def cuIpcOpenMemHandle(handle not None : CUipcMemHandle, unsigned int Flags): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, pdptr) -{{endif}} - -{{if 'cuIpcCloseMemHandle' in found_functions}} @cython.embedsignature(True) def cuIpcCloseMemHandle(dptr): @@ -31856,9 +30727,6 @@ def cuIpcCloseMemHandle(dptr): with nogil: err = cydriver.cuIpcCloseMemHandle(cydptr) return (_CUresult(err),) -{{endif}} - -{{if 'cuMemHostRegister_v2' in found_functions}} @cython.embedsignature(True) def cuMemHostRegister(p, size_t bytesize, unsigned int Flags): @@ -31962,9 +30830,6 @@ def cuMemHostRegister(p, size_t bytesize, unsigned int Flags): err = cydriver.cuMemHostRegister(cyp, bytesize, Flags) _helper_input_void_ptr_free(&cypHelper) return (_CUresult(err),) -{{endif}} - -{{if 'cuMemHostUnregister' in found_functions}} @cython.embedsignature(True) def cuMemHostUnregister(p): @@ -31996,9 +30861,6 @@ def cuMemHostUnregister(p): err = cydriver.cuMemHostUnregister(cyp) _helper_input_void_ptr_free(&cypHelper) return (_CUresult(err),) -{{endif}} - -{{if 'cuMemcpy' in found_functions}} @cython.embedsignature(True) def cuMemcpy(dst, src, size_t ByteCount): @@ -32048,9 +30910,6 @@ def cuMemcpy(dst, src, size_t ByteCount): with nogil: err = cydriver.cuMemcpy(cydst, cysrc, ByteCount) return (_CUresult(err),) -{{endif}} - -{{if 'cuMemcpyPeer' in found_functions}} @cython.embedsignature(True) def cuMemcpyPeer(dstDevice, dstContext, srcDevice, srcContext, size_t ByteCount): @@ -32119,9 +30978,6 @@ def cuMemcpyPeer(dstDevice, dstContext, srcDevice, srcContext, size_t ByteCount) with nogil: err = cydriver.cuMemcpyPeer(cydstDevice, cydstContext, cysrcDevice, cysrcContext, ByteCount) return (_CUresult(err),) -{{endif}} - -{{if 'cuMemcpyHtoD_v2' in found_functions}} @cython.embedsignature(True) def cuMemcpyHtoD(dstDevice, srcHost, size_t ByteCount): @@ -32163,9 +31019,6 @@ def cuMemcpyHtoD(dstDevice, srcHost, size_t ByteCount): err = cydriver.cuMemcpyHtoD(cydstDevice, cysrcHost, ByteCount) _helper_input_void_ptr_free(&cysrcHostHelper) return (_CUresult(err),) -{{endif}} - -{{if 'cuMemcpyDtoH_v2' in found_functions}} @cython.embedsignature(True) def cuMemcpyDtoH(dstHost, srcDevice, size_t ByteCount): @@ -32207,9 +31060,6 @@ def cuMemcpyDtoH(dstHost, srcDevice, size_t ByteCount): err = cydriver.cuMemcpyDtoH(cydstHost, cysrcDevice, ByteCount) _helper_input_void_ptr_free(&cydstHostHelper) return (_CUresult(err),) -{{endif}} - -{{if 'cuMemcpyDtoD_v2' in found_functions}} @cython.embedsignature(True) def cuMemcpyDtoD(dstDevice, srcDevice, size_t ByteCount): @@ -32256,9 +31106,6 @@ def cuMemcpyDtoD(dstDevice, srcDevice, size_t ByteCount): with nogil: err = cydriver.cuMemcpyDtoD(cydstDevice, cysrcDevice, ByteCount) return (_CUresult(err),) -{{endif}} - -{{if 'cuMemcpyDtoA_v2' in found_functions}} @cython.embedsignature(True) def cuMemcpyDtoA(dstArray, size_t dstOffset, srcDevice, size_t ByteCount): @@ -32308,9 +31155,6 @@ def cuMemcpyDtoA(dstArray, size_t dstOffset, srcDevice, size_t ByteCount): with nogil: err = cydriver.cuMemcpyDtoA(cydstArray, dstOffset, cysrcDevice, ByteCount) return (_CUresult(err),) -{{endif}} - -{{if 'cuMemcpyAtoD_v2' in found_functions}} @cython.embedsignature(True) def cuMemcpyAtoD(dstDevice, srcArray, size_t srcOffset, size_t ByteCount): @@ -32362,9 +31206,6 @@ def cuMemcpyAtoD(dstDevice, srcArray, size_t srcOffset, size_t ByteCount): with nogil: err = cydriver.cuMemcpyAtoD(cydstDevice, cysrcArray, srcOffset, ByteCount) return (_CUresult(err),) -{{endif}} - -{{if 'cuMemcpyHtoA_v2' in found_functions}} @cython.embedsignature(True) def cuMemcpyHtoA(dstArray, size_t dstOffset, srcHost, size_t ByteCount): @@ -32409,9 +31250,6 @@ def cuMemcpyHtoA(dstArray, size_t dstOffset, srcHost, size_t ByteCount): err = cydriver.cuMemcpyHtoA(cydstArray, dstOffset, cysrcHost, ByteCount) _helper_input_void_ptr_free(&cysrcHostHelper) return (_CUresult(err),) -{{endif}} - -{{if 'cuMemcpyAtoH_v2' in found_functions}} @cython.embedsignature(True) def cuMemcpyAtoH(dstHost, srcArray, size_t srcOffset, size_t ByteCount): @@ -32456,9 +31294,6 @@ def cuMemcpyAtoH(dstHost, srcArray, size_t srcOffset, size_t ByteCount): err = cydriver.cuMemcpyAtoH(cydstHost, cysrcArray, srcOffset, ByteCount) _helper_input_void_ptr_free(&cydstHostHelper) return (_CUresult(err),) -{{endif}} - -{{if 'cuMemcpyAtoA_v2' in found_functions}} @cython.embedsignature(True) def cuMemcpyAtoA(dstArray, size_t dstOffset, srcArray, size_t srcOffset, size_t ByteCount): @@ -32513,9 +31348,6 @@ def cuMemcpyAtoA(dstArray, size_t dstOffset, srcArray, size_t srcOffset, size_t with nogil: err = cydriver.cuMemcpyAtoA(cydstArray, dstOffset, cysrcArray, srcOffset, ByteCount) return (_CUresult(err),) -{{endif}} - -{{if 'cuMemcpy2D_v2' in found_functions}} @cython.embedsignature(True) def cuMemcpy2D(pCopy : Optional[CUDA_MEMCPY2D]): @@ -32640,9 +31472,6 @@ def cuMemcpy2D(pCopy : Optional[CUDA_MEMCPY2D]): with nogil: err = cydriver.cuMemcpy2D(cypCopy_ptr) return (_CUresult(err),) -{{endif}} - -{{if 'cuMemcpy2DUnaligned_v2' in found_functions}} @cython.embedsignature(True) def cuMemcpy2DUnaligned(pCopy : Optional[CUDA_MEMCPY2D]): @@ -32767,9 +31596,6 @@ def cuMemcpy2DUnaligned(pCopy : Optional[CUDA_MEMCPY2D]): with nogil: err = cydriver.cuMemcpy2DUnaligned(cypCopy_ptr) return (_CUresult(err),) -{{endif}} - -{{if 'cuMemcpy3D_v2' in found_functions}} @cython.embedsignature(True) def cuMemcpy3D(pCopy : Optional[CUDA_MEMCPY3D]): @@ -32897,9 +31723,6 @@ def cuMemcpy3D(pCopy : Optional[CUDA_MEMCPY3D]): with nogil: err = cydriver.cuMemcpy3D(cypCopy_ptr) return (_CUresult(err),) -{{endif}} - -{{if 'cuMemcpy3DPeer' in found_functions}} @cython.embedsignature(True) def cuMemcpy3DPeer(pCopy : Optional[CUDA_MEMCPY3D_PEER]): @@ -32927,9 +31750,6 @@ def cuMemcpy3DPeer(pCopy : Optional[CUDA_MEMCPY3D_PEER]): with nogil: err = cydriver.cuMemcpy3DPeer(cypCopy_ptr) return (_CUresult(err),) -{{endif}} - -{{if 'cuMemcpyAsync' in found_functions}} @cython.embedsignature(True) def cuMemcpyAsync(dst, src, size_t ByteCount, hStream): @@ -32989,9 +31809,6 @@ def cuMemcpyAsync(dst, src, size_t ByteCount, hStream): with nogil: err = cydriver.cuMemcpyAsync(cydst, cysrc, ByteCount, cyhStream) return (_CUresult(err),) -{{endif}} - -{{if 'cuMemcpyPeerAsync' in found_functions}} @cython.embedsignature(True) def cuMemcpyPeerAsync(dstDevice, dstContext, srcDevice, srcContext, size_t ByteCount, hStream): @@ -33070,9 +31887,6 @@ def cuMemcpyPeerAsync(dstDevice, dstContext, srcDevice, srcContext, size_t ByteC with nogil: err = cydriver.cuMemcpyPeerAsync(cydstDevice, cydstContext, cysrcDevice, cysrcContext, ByteCount, cyhStream) return (_CUresult(err),) -{{endif}} - -{{if 'cuMemcpyHtoDAsync_v2' in found_functions}} @cython.embedsignature(True) def cuMemcpyHtoDAsync(dstDevice, srcHost, size_t ByteCount, hStream): @@ -33124,9 +31938,6 @@ def cuMemcpyHtoDAsync(dstDevice, srcHost, size_t ByteCount, hStream): err = cydriver.cuMemcpyHtoDAsync(cydstDevice, cysrcHost, ByteCount, cyhStream) _helper_input_void_ptr_free(&cysrcHostHelper) return (_CUresult(err),) -{{endif}} - -{{if 'cuMemcpyDtoHAsync_v2' in found_functions}} @cython.embedsignature(True) def cuMemcpyDtoHAsync(dstHost, srcDevice, size_t ByteCount, hStream): @@ -33178,9 +31989,6 @@ def cuMemcpyDtoHAsync(dstHost, srcDevice, size_t ByteCount, hStream): err = cydriver.cuMemcpyDtoHAsync(cydstHost, cysrcDevice, ByteCount, cyhStream) _helper_input_void_ptr_free(&cydstHostHelper) return (_CUresult(err),) -{{endif}} - -{{if 'cuMemcpyDtoDAsync_v2' in found_functions}} @cython.embedsignature(True) def cuMemcpyDtoDAsync(dstDevice, srcDevice, size_t ByteCount, hStream): @@ -33237,9 +32045,6 @@ def cuMemcpyDtoDAsync(dstDevice, srcDevice, size_t ByteCount, hStream): with nogil: err = cydriver.cuMemcpyDtoDAsync(cydstDevice, cysrcDevice, ByteCount, cyhStream) return (_CUresult(err),) -{{endif}} - -{{if 'cuMemcpyHtoAAsync_v2' in found_functions}} @cython.embedsignature(True) def cuMemcpyHtoAAsync(dstArray, size_t dstOffset, srcHost, size_t ByteCount, hStream): @@ -33294,9 +32099,6 @@ def cuMemcpyHtoAAsync(dstArray, size_t dstOffset, srcHost, size_t ByteCount, hSt err = cydriver.cuMemcpyHtoAAsync(cydstArray, dstOffset, cysrcHost, ByteCount, cyhStream) _helper_input_void_ptr_free(&cysrcHostHelper) return (_CUresult(err),) -{{endif}} - -{{if 'cuMemcpyAtoHAsync_v2' in found_functions}} @cython.embedsignature(True) def cuMemcpyAtoHAsync(dstHost, srcArray, size_t srcOffset, size_t ByteCount, hStream): @@ -33351,9 +32153,6 @@ def cuMemcpyAtoHAsync(dstHost, srcArray, size_t srcOffset, size_t ByteCount, hSt err = cydriver.cuMemcpyAtoHAsync(cydstHost, cysrcArray, srcOffset, ByteCount, cyhStream) _helper_input_void_ptr_free(&cydstHostHelper) return (_CUresult(err),) -{{endif}} - -{{if 'cuMemcpy2DAsync_v2' in found_functions}} @cython.embedsignature(True) def cuMemcpy2DAsync(pCopy : Optional[CUDA_MEMCPY2D], hStream): @@ -33495,9 +32294,6 @@ def cuMemcpy2DAsync(pCopy : Optional[CUDA_MEMCPY2D], hStream): with nogil: err = cydriver.cuMemcpy2DAsync(cypCopy_ptr, cyhStream) return (_CUresult(err),) -{{endif}} - -{{if 'cuMemcpy3DAsync_v2' in found_functions}} @cython.embedsignature(True) def cuMemcpy3DAsync(pCopy : Optional[CUDA_MEMCPY3D], hStream): @@ -33635,9 +32431,6 @@ def cuMemcpy3DAsync(pCopy : Optional[CUDA_MEMCPY3D], hStream): with nogil: err = cydriver.cuMemcpy3DAsync(cypCopy_ptr, cyhStream) return (_CUresult(err),) -{{endif}} - -{{if 'cuMemcpy3DPeerAsync' in found_functions}} @cython.embedsignature(True) def cuMemcpy3DPeerAsync(pCopy : Optional[CUDA_MEMCPY3D_PEER], hStream): @@ -33675,9 +32468,6 @@ def cuMemcpy3DPeerAsync(pCopy : Optional[CUDA_MEMCPY3D_PEER], hStream): with nogil: err = cydriver.cuMemcpy3DPeerAsync(cypCopy_ptr, cyhStream) return (_CUresult(err),) -{{endif}} - -{{if 'cuMemcpyBatchAsync_v2' in found_functions}} @cython.embedsignature(True) def cuMemcpyBatchAsync(dsts : Optional[tuple[CUdeviceptr] | list[CUdeviceptr]], srcs : Optional[tuple[CUdeviceptr] | list[CUdeviceptr]], sizes : tuple[int] | list[int], size_t count, attrs : Optional[tuple[CUmemcpyAttributes] | list[CUmemcpyAttributes]], attrsIdxs : tuple[int] | list[int], size_t numAttrs, hStream): @@ -33847,9 +32637,6 @@ def cuMemcpyBatchAsync(dsts : Optional[tuple[CUdeviceptr] | list[CUdeviceptr]], if len(attrs) > 1 and cyattrs is not NULL: free(cyattrs) return (_CUresult(err),) -{{endif}} - -{{if 'cuMemcpy3DBatchAsync_v2' in found_functions}} @cython.embedsignature(True) def cuMemcpy3DBatchAsync(size_t numOps, opList : Optional[tuple[CUDA_MEMCPY3D_BATCH_OP] | list[CUDA_MEMCPY3D_BATCH_OP]], unsigned long long flags, hStream): @@ -33978,13 +32765,10 @@ def cuMemcpy3DBatchAsync(size_t numOps, opList : Optional[tuple[CUDA_MEMCPY3D_BA if len(opList) > 1 and cyopList is not NULL: free(cyopList) return (_CUresult(err),) -{{endif}} - -{{if 'cuMemcpyWithAttributesAsync' in found_functions}} @cython.embedsignature(True) def cuMemcpyWithAttributesAsync(dst, src, size_t size, attr : Optional[CUmemcpyAttributes], hStream): - """ + """ Performs asynchronous memory copy operation with the specified attributes. @@ -34048,13 +32832,10 @@ def cuMemcpyWithAttributesAsync(dst, src, size_t size, attr : Optional[CUmemcpyA with nogil: err = cydriver.cuMemcpyWithAttributesAsync(cydst, cysrc, size, cyattr_ptr, cyhStream) return (_CUresult(err),) -{{endif}} - -{{if 'cuMemcpy3DWithAttributesAsync' in found_functions}} @cython.embedsignature(True) def cuMemcpy3DWithAttributesAsync(op : Optional[CUDA_MEMCPY3D_BATCH_OP], unsigned long long flags, hStream): - """ + """ Performs 3D memory copy with attributes asynchronously @@ -34096,9 +32877,6 @@ def cuMemcpy3DWithAttributesAsync(op : Optional[CUDA_MEMCPY3D_BATCH_OP], unsigne with nogil: err = cydriver.cuMemcpy3DWithAttributesAsync(cyop_ptr, flags, cyhStream) return (_CUresult(err),) -{{endif}} - -{{if 'cuMemsetD8_v2' in found_functions}} @cython.embedsignature(True) def cuMemsetD8(dstDevice, unsigned char uc, size_t N): @@ -34135,9 +32913,6 @@ def cuMemsetD8(dstDevice, unsigned char uc, size_t N): with nogil: err = cydriver.cuMemsetD8(cydstDevice, uc, N) return (_CUresult(err),) -{{endif}} - -{{if 'cuMemsetD16_v2' in found_functions}} @cython.embedsignature(True) def cuMemsetD16(dstDevice, unsigned short us, size_t N): @@ -34175,9 +32950,6 @@ def cuMemsetD16(dstDevice, unsigned short us, size_t N): with nogil: err = cydriver.cuMemsetD16(cydstDevice, us, N) return (_CUresult(err),) -{{endif}} - -{{if 'cuMemsetD32_v2' in found_functions}} @cython.embedsignature(True) def cuMemsetD32(dstDevice, unsigned int ui, size_t N): @@ -34215,9 +32987,6 @@ def cuMemsetD32(dstDevice, unsigned int ui, size_t N): with nogil: err = cydriver.cuMemsetD32(cydstDevice, ui, N) return (_CUresult(err),) -{{endif}} - -{{if 'cuMemsetD2D8_v2' in found_functions}} @cython.embedsignature(True) def cuMemsetD2D8(dstDevice, size_t dstPitch, unsigned char uc, size_t Width, size_t Height): @@ -34262,9 +33031,6 @@ def cuMemsetD2D8(dstDevice, size_t dstPitch, unsigned char uc, size_t Width, siz with nogil: err = cydriver.cuMemsetD2D8(cydstDevice, dstPitch, uc, Width, Height) return (_CUresult(err),) -{{endif}} - -{{if 'cuMemsetD2D16_v2' in found_functions}} @cython.embedsignature(True) def cuMemsetD2D16(dstDevice, size_t dstPitch, unsigned short us, size_t Width, size_t Height): @@ -34310,9 +33076,6 @@ def cuMemsetD2D16(dstDevice, size_t dstPitch, unsigned short us, size_t Width, s with nogil: err = cydriver.cuMemsetD2D16(cydstDevice, dstPitch, us, Width, Height) return (_CUresult(err),) -{{endif}} - -{{if 'cuMemsetD2D32_v2' in found_functions}} @cython.embedsignature(True) def cuMemsetD2D32(dstDevice, size_t dstPitch, unsigned int ui, size_t Width, size_t Height): @@ -34358,9 +33121,6 @@ def cuMemsetD2D32(dstDevice, size_t dstPitch, unsigned int ui, size_t Width, siz with nogil: err = cydriver.cuMemsetD2D32(cydstDevice, dstPitch, ui, Width, Height) return (_CUresult(err),) -{{endif}} - -{{if 'cuMemsetD8Async' in found_functions}} @cython.embedsignature(True) def cuMemsetD8Async(dstDevice, unsigned char uc, size_t N, hStream): @@ -34407,9 +33167,6 @@ def cuMemsetD8Async(dstDevice, unsigned char uc, size_t N, hStream): with nogil: err = cydriver.cuMemsetD8Async(cydstDevice, uc, N, cyhStream) return (_CUresult(err),) -{{endif}} - -{{if 'cuMemsetD16Async' in found_functions}} @cython.embedsignature(True) def cuMemsetD16Async(dstDevice, unsigned short us, size_t N, hStream): @@ -34457,9 +33214,6 @@ def cuMemsetD16Async(dstDevice, unsigned short us, size_t N, hStream): with nogil: err = cydriver.cuMemsetD16Async(cydstDevice, us, N, cyhStream) return (_CUresult(err),) -{{endif}} - -{{if 'cuMemsetD32Async' in found_functions}} @cython.embedsignature(True) def cuMemsetD32Async(dstDevice, unsigned int ui, size_t N, hStream): @@ -34507,9 +33261,6 @@ def cuMemsetD32Async(dstDevice, unsigned int ui, size_t N, hStream): with nogil: err = cydriver.cuMemsetD32Async(cydstDevice, ui, N, cyhStream) return (_CUresult(err),) -{{endif}} - -{{if 'cuMemsetD2D8Async' in found_functions}} @cython.embedsignature(True) def cuMemsetD2D8Async(dstDevice, size_t dstPitch, unsigned char uc, size_t Width, size_t Height, hStream): @@ -34564,9 +33315,6 @@ def cuMemsetD2D8Async(dstDevice, size_t dstPitch, unsigned char uc, size_t Width with nogil: err = cydriver.cuMemsetD2D8Async(cydstDevice, dstPitch, uc, Width, Height, cyhStream) return (_CUresult(err),) -{{endif}} - -{{if 'cuMemsetD2D16Async' in found_functions}} @cython.embedsignature(True) def cuMemsetD2D16Async(dstDevice, size_t dstPitch, unsigned short us, size_t Width, size_t Height, hStream): @@ -34622,9 +33370,6 @@ def cuMemsetD2D16Async(dstDevice, size_t dstPitch, unsigned short us, size_t Wid with nogil: err = cydriver.cuMemsetD2D16Async(cydstDevice, dstPitch, us, Width, Height, cyhStream) return (_CUresult(err),) -{{endif}} - -{{if 'cuMemsetD2D32Async' in found_functions}} @cython.embedsignature(True) def cuMemsetD2D32Async(dstDevice, size_t dstPitch, unsigned int ui, size_t Width, size_t Height, hStream): @@ -34680,9 +33425,6 @@ def cuMemsetD2D32Async(dstDevice, size_t dstPitch, unsigned int ui, size_t Width with nogil: err = cydriver.cuMemsetD2D32Async(cydstDevice, dstPitch, ui, Width, Height, cyhStream) return (_CUresult(err),) -{{endif}} - -{{if 'cuArrayCreate_v2' in found_functions}} @cython.embedsignature(True) def cuArrayCreate(pAllocateArray : Optional[CUDA_ARRAY_DESCRIPTOR]): @@ -34751,9 +33493,6 @@ def cuArrayCreate(pAllocateArray : Optional[CUDA_ARRAY_DESCRIPTOR]): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, pHandle) -{{endif}} - -{{if 'cuArrayGetDescriptor_v2' in found_functions}} @cython.embedsignature(True) def cuArrayGetDescriptor(hArray): @@ -34794,9 +33533,6 @@ def cuArrayGetDescriptor(hArray): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, pArrayDescriptor) -{{endif}} - -{{if 'cuArrayGetSparseProperties' in found_functions}} @cython.embedsignature(True) def cuArrayGetSparseProperties(array): @@ -34850,9 +33586,6 @@ def cuArrayGetSparseProperties(array): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, sparseProperties) -{{endif}} - -{{if 'cuMipmappedArrayGetSparseProperties' in found_functions}} @cython.embedsignature(True) def cuMipmappedArrayGetSparseProperties(mipmap): @@ -34908,9 +33641,6 @@ def cuMipmappedArrayGetSparseProperties(mipmap): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, sparseProperties) -{{endif}} - -{{if 'cuArrayGetMemoryRequirements' in found_functions}} @cython.embedsignature(True) def cuArrayGetMemoryRequirements(array, device): @@ -34966,9 +33696,6 @@ def cuArrayGetMemoryRequirements(array, device): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, memoryRequirements) -{{endif}} - -{{if 'cuMipmappedArrayGetMemoryRequirements' in found_functions}} @cython.embedsignature(True) def cuMipmappedArrayGetMemoryRequirements(mipmap, device): @@ -35025,9 +33752,6 @@ def cuMipmappedArrayGetMemoryRequirements(mipmap, device): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, memoryRequirements) -{{endif}} - -{{if 'cuArrayGetPlane' in found_functions}} @cython.embedsignature(True) def cuArrayGetPlane(hArray, unsigned int planeIdx): @@ -35081,9 +33805,6 @@ def cuArrayGetPlane(hArray, unsigned int planeIdx): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, pPlaneArray) -{{endif}} - -{{if 'cuArrayDestroy' in found_functions}} @cython.embedsignature(True) def cuArrayDestroy(hArray): @@ -35116,9 +33837,6 @@ def cuArrayDestroy(hArray): with nogil: err = cydriver.cuArrayDestroy(cyhArray) return (_CUresult(err),) -{{endif}} - -{{if 'cuArray3DCreate_v2' in found_functions}} @cython.embedsignature(True) def cuArray3DCreate(pAllocateArray : Optional[CUDA_ARRAY3D_DESCRIPTOR]): @@ -35251,9 +33969,6 @@ def cuArray3DCreate(pAllocateArray : Optional[CUDA_ARRAY3D_DESCRIPTOR]): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, pHandle) -{{endif}} - -{{if 'cuArray3DGetDescriptor_v2' in found_functions}} @cython.embedsignature(True) def cuArray3DGetDescriptor(hArray): @@ -35298,9 +34013,6 @@ def cuArray3DGetDescriptor(hArray): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, pArrayDescriptor) -{{endif}} - -{{if 'cuMipmappedArrayCreate' in found_functions}} @cython.embedsignature(True) def cuMipmappedArrayCreate(pMipmappedArrayDesc : Optional[CUDA_ARRAY3D_DESCRIPTOR], unsigned int numMipmapLevels): @@ -35421,9 +34133,6 @@ def cuMipmappedArrayCreate(pMipmappedArrayDesc : Optional[CUDA_ARRAY3D_DESCRIPTO if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, pHandle) -{{endif}} - -{{if 'cuMipmappedArrayGetLevel' in found_functions}} @cython.embedsignature(True) def cuMipmappedArrayGetLevel(hMipmappedArray, unsigned int level): @@ -35467,9 +34176,6 @@ def cuMipmappedArrayGetLevel(hMipmappedArray, unsigned int level): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, pLevelArray) -{{endif}} - -{{if 'cuMipmappedArrayDestroy' in found_functions}} @cython.embedsignature(True) def cuMipmappedArrayDestroy(hMipmappedArray): @@ -35502,9 +34208,6 @@ def cuMipmappedArrayDestroy(hMipmappedArray): with nogil: err = cydriver.cuMipmappedArrayDestroy(cyhMipmappedArray) return (_CUresult(err),) -{{endif}} - -{{if 'cuMemGetHandleForAddressRange' in found_functions}} @cython.embedsignature(True) def cuMemGetHandleForAddressRange(dptr, size_t size, handleType not None : CUmemRangeHandleType, unsigned long long flags): @@ -35584,9 +34287,6 @@ def cuMemGetHandleForAddressRange(dptr, size_t size, handleType not None : CUmem if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, handle) -{{endif}} - -{{if 'cuMemBatchDecompressAsync' in found_functions}} @cython.embedsignature(True) def cuMemBatchDecompressAsync(paramsArray : Optional[CUmemDecompressParams], size_t count, unsigned int flags, stream): @@ -35669,9 +34369,6 @@ def cuMemBatchDecompressAsync(paramsArray : Optional[CUmemDecompressParams], siz if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, errorIndex) -{{endif}} - -{{if 'cuMemAddressReserve' in found_functions}} @cython.embedsignature(True) def cuMemAddressReserve(size_t size, size_t alignment, addr, unsigned long long flags): @@ -35722,9 +34419,6 @@ def cuMemAddressReserve(size_t size, size_t alignment, addr, unsigned long long if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, ptr) -{{endif}} - -{{if 'cuMemAddressFree' in found_functions}} @cython.embedsignature(True) def cuMemAddressFree(ptr, size_t size): @@ -35761,9 +34455,6 @@ def cuMemAddressFree(ptr, size_t size): with nogil: err = cydriver.cuMemAddressFree(cyptr, size) return (_CUresult(err),) -{{endif}} - -{{if 'cuMemCreate' in found_functions}} @cython.embedsignature(True) def cuMemCreate(size_t size, prop : Optional[CUmemAllocationProp], unsigned long long flags): @@ -35854,9 +34545,6 @@ def cuMemCreate(size_t size, prop : Optional[CUmemAllocationProp], unsigned long if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, handle) -{{endif}} - -{{if 'cuMemRelease' in found_functions}} @cython.embedsignature(True) def cuMemRelease(handle): @@ -35898,9 +34586,6 @@ def cuMemRelease(handle): with nogil: err = cydriver.cuMemRelease(cyhandle) return (_CUresult(err),) -{{endif}} - -{{if 'cuMemMap' in found_functions}} @cython.embedsignature(True) def cuMemMap(ptr, size_t size, size_t offset, handle, unsigned long long flags): @@ -35981,9 +34666,6 @@ def cuMemMap(ptr, size_t size, size_t offset, handle, unsigned long long flags): with nogil: err = cydriver.cuMemMap(cyptr, size, offset, cyhandle, flags) return (_CUresult(err),) -{{endif}} - -{{if 'cuMemMapArrayAsync' in found_functions}} @cython.embedsignature(True) def cuMemMapArrayAsync(mapInfoList : Optional[tuple[CUarrayMapInfo] | list[CUarrayMapInfo]], unsigned int count, hStream): @@ -36154,9 +34836,6 @@ def cuMemMapArrayAsync(mapInfoList : Optional[tuple[CUarrayMapInfo] | list[CUarr if len(mapInfoList) > 1 and cymapInfoList is not NULL: free(cymapInfoList) return (_CUresult(err),) -{{endif}} - -{{if 'cuMemUnmap' in found_functions}} @cython.embedsignature(True) def cuMemUnmap(ptr, size_t size): @@ -36202,9 +34881,6 @@ def cuMemUnmap(ptr, size_t size): with nogil: err = cydriver.cuMemUnmap(cyptr, size) return (_CUresult(err),) -{{endif}} - -{{if 'cuMemSetAccess' in found_functions}} @cython.embedsignature(True) def cuMemSetAccess(ptr, size_t size, desc : Optional[tuple[CUmemAccessDesc] | list[CUmemAccessDesc]], size_t count): @@ -36275,9 +34951,6 @@ def cuMemSetAccess(ptr, size_t size, desc : Optional[tuple[CUmemAccessDesc] | li if len(desc) > 1 and cydesc is not NULL: free(cydesc) return (_CUresult(err),) -{{endif}} - -{{if 'cuMemGetAccess' in found_functions}} @cython.embedsignature(True) def cuMemGetAccess(location : Optional[CUmemLocation], ptr): @@ -36316,9 +34989,6 @@ def cuMemGetAccess(location : Optional[CUmemLocation], ptr): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, flags) -{{endif}} - -{{if 'cuMemExportToShareableHandle' in found_functions}} @cython.embedsignature(True) def cuMemExportToShareableHandle(handle, handleType not None : CUmemAllocationHandleType, unsigned long long flags): @@ -36376,9 +35046,6 @@ def cuMemExportToShareableHandle(handle, handleType not None : CUmemAllocationHa if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, cyshareableHandle.pyObj()) -{{endif}} - -{{if 'cuMemImportFromShareableHandle' in found_functions}} @cython.embedsignature(True) def cuMemImportFromShareableHandle(osHandle, shHandleType not None : CUmemAllocationHandleType): @@ -36427,9 +35094,6 @@ def cuMemImportFromShareableHandle(osHandle, shHandleType not None : CUmemAlloca if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, handle) -{{endif}} - -{{if 'cuMemGetAllocationGranularity' in found_functions}} @cython.embedsignature(True) def cuMemGetAllocationGranularity(prop : Optional[CUmemAllocationProp], option not None : CUmemAllocationGranularity_flags): @@ -36466,9 +35130,6 @@ def cuMemGetAllocationGranularity(prop : Optional[CUmemAllocationProp], option n if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, granularity) -{{endif}} - -{{if 'cuMemGetAllocationPropertiesFromHandle' in found_functions}} @cython.embedsignature(True) def cuMemGetAllocationPropertiesFromHandle(handle): @@ -36505,9 +35166,6 @@ def cuMemGetAllocationPropertiesFromHandle(handle): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, prop) -{{endif}} - -{{if 'cuMemRetainAllocationHandle' in found_functions}} @cython.embedsignature(True) def cuMemRetainAllocationHandle(addr): @@ -36547,9 +35205,6 @@ def cuMemRetainAllocationHandle(addr): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, handle) -{{endif}} - -{{if 'cuMemFreeAsync' in found_functions}} @cython.embedsignature(True) def cuMemFreeAsync(dptr, hStream): @@ -36595,9 +35250,6 @@ def cuMemFreeAsync(dptr, hStream): with nogil: err = cydriver.cuMemFreeAsync(cydptr, cyhStream) return (_CUresult(err),) -{{endif}} - -{{if 'cuMemAllocAsync' in found_functions}} @cython.embedsignature(True) def cuMemAllocAsync(size_t bytesize, hStream): @@ -36649,9 +35301,6 @@ def cuMemAllocAsync(size_t bytesize, hStream): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, dptr) -{{endif}} - -{{if 'cuMemPoolTrimTo' in found_functions}} @cython.embedsignature(True) def cuMemPoolTrimTo(pool, size_t minBytesToKeep): @@ -36699,9 +35348,6 @@ def cuMemPoolTrimTo(pool, size_t minBytesToKeep): with nogil: err = cydriver.cuMemPoolTrimTo(cypool, minBytesToKeep) return (_CUresult(err),) -{{endif}} - -{{if 'cuMemPoolSetAttribute' in found_functions}} @cython.embedsignature(True) def cuMemPoolSetAttribute(pool, attr not None : CUmemPool_attribute, value): @@ -36774,9 +35420,6 @@ def cuMemPoolSetAttribute(pool, attr not None : CUmemPool_attribute, value): with nogil: err = cydriver.cuMemPoolSetAttribute(cypool, cyattr, cyvalue_ptr) return (_CUresult(err),) -{{endif}} - -{{if 'cuMemPoolGetAttribute' in found_functions}} @cython.embedsignature(True) def cuMemPoolGetAttribute(pool, attr not None : CUmemPool_attribute): @@ -36885,9 +35528,6 @@ def cuMemPoolGetAttribute(pool, attr not None : CUmemPool_attribute): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, cyvalue.pyObj()) -{{endif}} - -{{if 'cuMemPoolSetAccess' in found_functions}} @cython.embedsignature(True) def cuMemPoolSetAccess(pool, map : Optional[tuple[CUmemAccessDesc] | list[CUmemAccessDesc]], size_t count): @@ -36938,9 +35578,6 @@ def cuMemPoolSetAccess(pool, map : Optional[tuple[CUmemAccessDesc] | list[CUmemA if len(map) > 1 and cymap is not NULL: free(cymap) return (_CUresult(err),) -{{endif}} - -{{if 'cuMemPoolGetAccess' in found_functions}} @cython.embedsignature(True) def cuMemPoolGetAccess(memPool, location : Optional[CUmemLocation]): @@ -36982,9 +35619,6 @@ def cuMemPoolGetAccess(memPool, location : Optional[CUmemLocation]): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, CUmemAccess_flags(flags)) -{{endif}} - -{{if 'cuMemPoolCreate' in found_functions}} @cython.embedsignature(True) def cuMemPoolCreate(poolProps : Optional[CUmemPoolProps]): @@ -37081,9 +35715,6 @@ def cuMemPoolCreate(poolProps : Optional[CUmemPoolProps]): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, pool) -{{endif}} - -{{if 'cuMemPoolDestroy' in found_functions}} @cython.embedsignature(True) def cuMemPoolDestroy(pool): @@ -37127,9 +35758,6 @@ def cuMemPoolDestroy(pool): with nogil: err = cydriver.cuMemPoolDestroy(cypool) return (_CUresult(err),) -{{endif}} - -{{if 'cuMemGetDefaultMemPool' in found_functions}} @cython.embedsignature(True) def cuMemGetDefaultMemPool(location : Optional[CUmemLocation], typename not None : CUmemAllocationType): @@ -37172,9 +35800,6 @@ def cuMemGetDefaultMemPool(location : Optional[CUmemLocation], typename not None if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, pool_out) -{{endif}} - -{{if 'cuMemGetMemPool' in found_functions}} @cython.embedsignature(True) def cuMemGetMemPool(location : Optional[CUmemLocation], typename not None : CUmemAllocationType): @@ -37225,9 +35850,6 @@ def cuMemGetMemPool(location : Optional[CUmemLocation], typename not None : CUme if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, pool) -{{endif}} - -{{if 'cuMemSetMemPool' in found_functions}} @cython.embedsignature(True) def cuMemSetMemPool(location : Optional[CUmemLocation], typename not None : CUmemAllocationType, pool): @@ -37291,9 +35913,6 @@ def cuMemSetMemPool(location : Optional[CUmemLocation], typename not None : CUme with nogil: err = cydriver.cuMemSetMemPool(cylocation_ptr, cytypename, cypool) return (_CUresult(err),) -{{endif}} - -{{if 'cuMemAllocFromPoolAsync' in found_functions}} @cython.embedsignature(True) def cuMemAllocFromPoolAsync(size_t bytesize, pool, hStream): @@ -37350,9 +35969,6 @@ def cuMemAllocFromPoolAsync(size_t bytesize, pool, hStream): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, dptr) -{{endif}} - -{{if 'cuMemPoolExportToShareableHandle' in found_functions}} @cython.embedsignature(True) def cuMemPoolExportToShareableHandle(pool, handleType not None : CUmemAllocationHandleType, unsigned long long flags): @@ -37407,9 +36023,6 @@ def cuMemPoolExportToShareableHandle(pool, handleType not None : CUmemAllocation if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, cyhandle_out.pyObj()) -{{endif}} - -{{if 'cuMemPoolImportFromShareableHandle' in found_functions}} @cython.embedsignature(True) def cuMemPoolImportFromShareableHandle(handle, handleType not None : CUmemAllocationHandleType, unsigned long long flags): @@ -37457,9 +36070,6 @@ def cuMemPoolImportFromShareableHandle(handle, handleType not None : CUmemAlloca if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, pool_out) -{{endif}} - -{{if 'cuMemPoolExportPointer' in found_functions}} @cython.embedsignature(True) def cuMemPoolExportPointer(ptr): @@ -37500,9 +36110,6 @@ def cuMemPoolExportPointer(ptr): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, shareData_out) -{{endif}} - -{{if 'cuMemPoolImportPointer' in found_functions}} @cython.embedsignature(True) def cuMemPoolImportPointer(pool, shareData : Optional[CUmemPoolPtrExportData]): @@ -37553,9 +36160,6 @@ def cuMemPoolImportPointer(pool, shareData : Optional[CUmemPoolPtrExportData]): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, ptr_out) -{{endif}} - -{{if 'cuMulticastCreate' in found_functions}} @cython.embedsignature(True) def cuMulticastCreate(prop : Optional[CUmulticastObjectProp]): @@ -37616,9 +36220,6 @@ def cuMulticastCreate(prop : Optional[CUmulticastObjectProp]): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, mcHandle) -{{endif}} - -{{if 'cuMulticastAddDevice' in found_functions}} @cython.embedsignature(True) def cuMulticastAddDevice(mcHandle, dev): @@ -37673,9 +36274,6 @@ def cuMulticastAddDevice(mcHandle, dev): with nogil: err = cydriver.cuMulticastAddDevice(cymcHandle, cydev) return (_CUresult(err),) -{{endif}} - -{{if 'cuMulticastBindMem' in found_functions}} @cython.embedsignature(True) def cuMulticastBindMem(mcHandle, size_t mcOffset, memHandle, size_t memOffset, size_t size, unsigned long long flags): @@ -37757,9 +36355,6 @@ def cuMulticastBindMem(mcHandle, size_t mcOffset, memHandle, size_t memOffset, s with nogil: err = cydriver.cuMulticastBindMem(cymcHandle, mcOffset, cymemHandle, memOffset, size, flags) return (_CUresult(err),) -{{endif}} - -{{if 'cuMulticastBindMem_v2' in found_functions}} @cython.embedsignature(True) def cuMulticastBindMem_v2(mcHandle, dev, size_t mcOffset, memHandle, size_t memOffset, size_t size, unsigned long long flags): @@ -37860,9 +36455,6 @@ def cuMulticastBindMem_v2(mcHandle, dev, size_t mcOffset, memHandle, size_t memO with nogil: err = cydriver.cuMulticastBindMem_v2(cymcHandle, cydev, mcOffset, cymemHandle, memOffset, size, flags) return (_CUresult(err),) -{{endif}} - -{{if 'cuMulticastBindAddr' in found_functions}} @cython.embedsignature(True) def cuMulticastBindAddr(mcHandle, size_t mcOffset, memptr, size_t size, unsigned long long flags): @@ -37940,9 +36532,6 @@ def cuMulticastBindAddr(mcHandle, size_t mcOffset, memptr, size_t size, unsigned with nogil: err = cydriver.cuMulticastBindAddr(cymcHandle, mcOffset, cymemptr, size, flags) return (_CUresult(err),) -{{endif}} - -{{if 'cuMulticastBindAddr_v2' in found_functions}} @cython.embedsignature(True) def cuMulticastBindAddr_v2(mcHandle, dev, size_t mcOffset, memptr, size_t size, unsigned long long flags): @@ -38037,9 +36626,6 @@ def cuMulticastBindAddr_v2(mcHandle, dev, size_t mcOffset, memptr, size_t size, with nogil: err = cydriver.cuMulticastBindAddr_v2(cymcHandle, cydev, mcOffset, cymemptr, size, flags) return (_CUresult(err),) -{{endif}} - -{{if 'cuMulticastUnbind' in found_functions}} @cython.embedsignature(True) def cuMulticastUnbind(mcHandle, dev, size_t mcOffset, size_t size): @@ -38098,9 +36684,6 @@ def cuMulticastUnbind(mcHandle, dev, size_t mcOffset, size_t size): with nogil: err = cydriver.cuMulticastUnbind(cymcHandle, cydev, mcOffset, size) return (_CUresult(err),) -{{endif}} - -{{if 'cuMulticastGetGranularity' in found_functions}} @cython.embedsignature(True) def cuMulticastGetGranularity(prop : Optional[CUmulticastObjectProp], option not None : CUmulticastGranularity_flags): @@ -38139,9 +36722,6 @@ def cuMulticastGetGranularity(prop : Optional[CUmulticastObjectProp], option not if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, granularity) -{{endif}} - -{{if 'cuPointerGetAttribute' in found_functions}} @cython.embedsignature(True) def cuPointerGetAttribute(attribute not None : CUpointer_attribute, ptr): @@ -38352,9 +36932,6 @@ def cuPointerGetAttribute(attribute not None : CUpointer_attribute, ptr): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, cydata.pyObj()) -{{endif}} - -{{if 'cuMemPrefetchAsync_v2' in found_functions}} @cython.embedsignature(True) def cuMemPrefetchAsync(devPtr, size_t count, location not None : CUmemLocation, unsigned int flags, hStream): @@ -38475,9 +37052,6 @@ def cuMemPrefetchAsync(devPtr, size_t count, location not None : CUmemLocation, with nogil: err = cydriver.cuMemPrefetchAsync(cydevPtr, count, location._pvt_ptr[0], flags, cyhStream) return (_CUresult(err),) -{{endif}} - -{{if 'cuMemAdvise_v2' in found_functions}} @cython.embedsignature(True) def cuMemAdvise(devPtr, size_t count, advice not None : CUmem_advise, location not None : CUmemLocation): @@ -38680,9 +37254,6 @@ def cuMemAdvise(devPtr, size_t count, advice not None : CUmem_advise, location n with nogil: err = cydriver.cuMemAdvise(cydevPtr, count, cyadvice, location._pvt_ptr[0]) return (_CUresult(err),) -{{endif}} - -{{if 'cuMemPrefetchBatchAsync' in found_functions}} @cython.embedsignature(True) def cuMemPrefetchBatchAsync(dptrs : Optional[tuple[CUdeviceptr] | list[CUdeviceptr]], sizes : tuple[int] | list[int], size_t count, prefetchLocs : Optional[tuple[CUmemLocation] | list[CUmemLocation]], prefetchLocIdxs : tuple[int] | list[int], size_t numPrefetchLocs, unsigned long long flags, hStream): @@ -38800,9 +37371,6 @@ def cuMemPrefetchBatchAsync(dptrs : Optional[tuple[CUdeviceptr] | list[CUdevicep if len(prefetchLocs) > 1 and cyprefetchLocs is not NULL: free(cyprefetchLocs) return (_CUresult(err),) -{{endif}} - -{{if 'cuMemDiscardBatchAsync' in found_functions}} @cython.embedsignature(True) def cuMemDiscardBatchAsync(dptrs : Optional[tuple[CUdeviceptr] | list[CUdeviceptr]], sizes : tuple[int] | list[int], size_t count, unsigned long long flags, hStream): @@ -38885,9 +37453,6 @@ def cuMemDiscardBatchAsync(dptrs : Optional[tuple[CUdeviceptr] | list[CUdevicept if len(dptrs) > 1 and cydptrs is not NULL: free(cydptrs) return (_CUresult(err),) -{{endif}} - -{{if 'cuMemDiscardAndPrefetchBatchAsync' in found_functions}} @cython.embedsignature(True) def cuMemDiscardAndPrefetchBatchAsync(dptrs : Optional[tuple[CUdeviceptr] | list[CUdeviceptr]], sizes : tuple[int] | list[int], size_t count, prefetchLocs : Optional[tuple[CUmemLocation] | list[CUmemLocation]], prefetchLocIdxs : tuple[int] | list[int], size_t numPrefetchLocs, unsigned long long flags, hStream): @@ -39013,9 +37578,6 @@ def cuMemDiscardAndPrefetchBatchAsync(dptrs : Optional[tuple[CUdeviceptr] | list if len(prefetchLocs) > 1 and cyprefetchLocs is not NULL: free(cyprefetchLocs) return (_CUresult(err),) -{{endif}} - -{{if 'cuMemRangeGetAttribute' in found_functions}} @cython.embedsignature(True) def cuMemRangeGetAttribute(size_t dataSize, attribute not None : CUmem_range_attribute, devPtr, size_t count): @@ -39171,9 +37733,6 @@ def cuMemRangeGetAttribute(size_t dataSize, attribute not None : CUmem_range_att if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, cydata.pyObj()) -{{endif}} - -{{if 'cuMemRangeGetAttributes' in found_functions}} @cython.embedsignature(True) def cuMemRangeGetAttributes(dataSizes : tuple[int] | list[int], attributes : Optional[tuple[CUmem_range_attribute] | list[CUmem_range_attribute]], size_t numAttributes, devPtr, size_t count): @@ -39258,9 +37817,6 @@ def cuMemRangeGetAttributes(dataSizes : tuple[int] | list[int], attributes : Opt if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, [obj.pyObj() for obj in pylist]) -{{endif}} - -{{if 'cuPointerSetAttribute' in found_functions}} @cython.embedsignature(True) def cuPointerSetAttribute(value, attribute not None : CUpointer_attribute, ptr): @@ -39314,9 +37870,6 @@ def cuPointerSetAttribute(value, attribute not None : CUpointer_attribute, ptr): with nogil: err = cydriver.cuPointerSetAttribute(cyvalue_ptr, cyattribute, cyptr) return (_CUresult(err),) -{{endif}} - -{{if 'cuPointerGetAttributes' in found_functions}} @cython.embedsignature(True) def cuPointerGetAttributes(unsigned int numAttributes, attributes : Optional[tuple[CUpointer_attribute] | list[CUpointer_attribute]], ptr): @@ -39408,9 +37961,6 @@ def cuPointerGetAttributes(unsigned int numAttributes, attributes : Optional[tup if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, [obj.pyObj() for obj in pylist]) -{{endif}} - -{{if 'cuStreamCreate' in found_functions}} @cython.embedsignature(True) def cuStreamCreate(unsigned int Flags): @@ -39450,9 +38000,6 @@ def cuStreamCreate(unsigned int Flags): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, phStream) -{{endif}} - -{{if 'cuStreamCreateWithPriority' in found_functions}} @cython.embedsignature(True) def cuStreamCreateWithPriority(unsigned int flags, int priority): @@ -39505,9 +38052,6 @@ def cuStreamCreateWithPriority(unsigned int flags, int priority): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, phStream) -{{endif}} - -{{if 'cuStreamBeginCaptureToCig' in found_functions}} @cython.embedsignature(True) def cuStreamBeginCaptureToCig(hStream, streamCigCaptureParams : Optional[CUstreamCigCaptureParams]): @@ -39593,9 +38137,6 @@ def cuStreamBeginCaptureToCig(hStream, streamCigCaptureParams : Optional[CUstrea with nogil: err = cydriver.cuStreamBeginCaptureToCig(cyhStream, cystreamCigCaptureParams_ptr) return (_CUresult(err),) -{{endif}} - -{{if 'cuStreamEndCaptureToCig' in found_functions}} @cython.embedsignature(True) def cuStreamEndCaptureToCig(hStream): @@ -39638,9 +38179,6 @@ def cuStreamEndCaptureToCig(hStream): with nogil: err = cydriver.cuStreamEndCaptureToCig(cyhStream) return (_CUresult(err),) -{{endif}} - -{{if 'cuStreamGetPriority' in found_functions}} @cython.embedsignature(True) def cuStreamGetPriority(hStream): @@ -39686,9 +38224,6 @@ def cuStreamGetPriority(hStream): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, priority) -{{endif}} - -{{if 'cuStreamGetDevice' in found_functions}} @cython.embedsignature(True) def cuStreamGetDevice(hStream): @@ -39726,9 +38261,6 @@ def cuStreamGetDevice(hStream): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, device) -{{endif}} - -{{if 'cuStreamGetFlags' in found_functions}} @cython.embedsignature(True) def cuStreamGetFlags(hStream): @@ -39771,9 +38303,6 @@ def cuStreamGetFlags(hStream): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, flags) -{{endif}} - -{{if 'cuStreamGetId' in found_functions}} @cython.embedsignature(True) def cuStreamGetId(hStream): @@ -39828,9 +38357,6 @@ def cuStreamGetId(hStream): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, streamId) -{{endif}} - -{{if 'cuStreamGetCtx' in found_functions}} @cython.embedsignature(True) def cuStreamGetCtx(hStream): @@ -39893,9 +38419,6 @@ def cuStreamGetCtx(hStream): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, pctx) -{{endif}} - -{{if 'cuStreamGetCtx_v2' in found_functions}} @cython.embedsignature(True) def cuStreamGetCtx_v2(hStream): @@ -39971,9 +38494,6 @@ def cuStreamGetCtx_v2(hStream): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None, None) return (_CUresult_SUCCESS, pCtx, pGreenCtx) -{{endif}} - -{{if 'cuStreamWaitEvent' in found_functions}} @cython.embedsignature(True) def cuStreamWaitEvent(hStream, hEvent, unsigned int Flags): @@ -40030,9 +38550,6 @@ def cuStreamWaitEvent(hStream, hEvent, unsigned int Flags): with nogil: err = cydriver.cuStreamWaitEvent(cyhStream, cyhEvent, Flags) return (_CUresult(err),) -{{endif}} - -{{if 'cuStreamAddCallback' in found_functions}} ctypedef struct cuStreamCallbackData_st: cydriver.CUstreamCallback callback @@ -40148,9 +38665,6 @@ def cuStreamAddCallback(hStream, callback, userData, unsigned int flags): free(cbData) _helper_input_void_ptr_free(&cyuserDataHelper) return (_CUresult(err),) -{{endif}} - -{{if 'cuStreamBeginCapture_v2' in found_functions}} @cython.embedsignature(True) def cuStreamBeginCapture(hStream, mode not None : CUstreamCaptureMode): @@ -40204,9 +38718,6 @@ def cuStreamBeginCapture(hStream, mode not None : CUstreamCaptureMode): with nogil: err = cydriver.cuStreamBeginCapture(cyhStream, cymode) return (_CUresult(err),) -{{endif}} - -{{if 'cuStreamBeginCaptureToGraph' in found_functions}} @cython.embedsignature(True) def cuStreamBeginCaptureToGraph(hStream, hGraph, dependencies : Optional[tuple[CUgraphNode] | list[CUgraphNode]], dependencyData : Optional[tuple[CUgraphEdgeData] | list[CUgraphEdgeData]], size_t numDependencies, mode not None : CUstreamCaptureMode): @@ -40310,9 +38821,6 @@ def cuStreamBeginCaptureToGraph(hStream, hGraph, dependencies : Optional[tuple[C if len(dependencyData) > 1 and cydependencyData is not NULL: free(cydependencyData) return (_CUresult(err),) -{{endif}} - -{{if 'cuThreadExchangeStreamCaptureMode' in found_functions}} @cython.embedsignature(True) def cuThreadExchangeStreamCaptureMode(mode not None : CUstreamCaptureMode): @@ -40384,9 +38892,6 @@ def cuThreadExchangeStreamCaptureMode(mode not None : CUstreamCaptureMode): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, CUstreamCaptureMode(cymode)) -{{endif}} - -{{if 'cuStreamEndCapture' in found_functions}} @cython.embedsignature(True) def cuStreamEndCapture(hStream): @@ -40432,9 +38937,6 @@ def cuStreamEndCapture(hStream): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, phGraph) -{{endif}} - -{{if 'cuStreamIsCapturing' in found_functions}} @cython.embedsignature(True) def cuStreamIsCapturing(hStream): @@ -40495,9 +38997,6 @@ def cuStreamIsCapturing(hStream): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, CUstreamCaptureStatus(captureStatus)) -{{endif}} - -{{if 'cuStreamGetCaptureInfo_v3' in found_functions}} @cython.embedsignature(True) def cuStreamGetCaptureInfo(hStream): @@ -40595,9 +39094,6 @@ def cuStreamGetCaptureInfo(hStream): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None, None, None, None, None, None) return (_CUresult_SUCCESS, CUstreamCaptureStatus(captureStatus_out), id_out, graph_out, pydependencies_out, pyedgeData_out, numDependencies_out) -{{endif}} - -{{if 'cuStreamUpdateCaptureDependencies_v2' in found_functions}} @cython.embedsignature(True) def cuStreamUpdateCaptureDependencies(hStream, dependencies : Optional[tuple[CUgraphNode] | list[CUgraphNode]], dependencyData : Optional[tuple[CUgraphEdgeData] | list[CUgraphEdgeData]], size_t numDependencies, unsigned int flags): @@ -40682,9 +39178,6 @@ def cuStreamUpdateCaptureDependencies(hStream, dependencies : Optional[tuple[CUg if len(dependencyData) > 1 and cydependencyData is not NULL: free(cydependencyData) return (_CUresult(err),) -{{endif}} - -{{if 'cuStreamAttachMemAsync' in found_functions}} @cython.embedsignature(True) def cuStreamAttachMemAsync(hStream, dptr, size_t length, unsigned int flags): @@ -40795,9 +39288,6 @@ def cuStreamAttachMemAsync(hStream, dptr, size_t length, unsigned int flags): with nogil: err = cydriver.cuStreamAttachMemAsync(cyhStream, cydptr, length, flags) return (_CUresult(err),) -{{endif}} - -{{if 'cuStreamQuery' in found_functions}} @cython.embedsignature(True) def cuStreamQuery(hStream): @@ -40836,9 +39326,6 @@ def cuStreamQuery(hStream): with nogil: err = cydriver.cuStreamQuery(cyhStream) return (_CUresult(err),) -{{endif}} - -{{if 'cuStreamSynchronize' in found_functions}} @cython.embedsignature(True) def cuStreamSynchronize(hStream): @@ -40876,9 +39363,6 @@ def cuStreamSynchronize(hStream): with nogil: err = cydriver.cuStreamSynchronize(cyhStream) return (_CUresult(err),) -{{endif}} - -{{if 'cuStreamDestroy_v2' in found_functions}} @cython.embedsignature(True) def cuStreamDestroy(hStream): @@ -40917,9 +39401,6 @@ def cuStreamDestroy(hStream): with nogil: err = cydriver.cuStreamDestroy(cyhStream) return (_CUresult(err),) -{{endif}} - -{{if 'cuStreamCopyAttributes' in found_functions}} @cython.embedsignature(True) def cuStreamCopyAttributes(dst, src): @@ -40963,9 +39444,6 @@ def cuStreamCopyAttributes(dst, src): with nogil: err = cydriver.cuStreamCopyAttributes(cydst, cysrc) return (_CUresult(err),) -{{endif}} - -{{if 'cuStreamGetAttribute' in found_functions}} @cython.embedsignature(True) def cuStreamGetAttribute(hStream, attr not None : CUstreamAttrID): @@ -40980,14 +39458,12 @@ def cuStreamGetAttribute(hStream, attr not None : CUstreamAttrID): attr : :py:obj:`~.CUstreamAttrID` - Returns ------- CUresult :py:obj:`~.CUDA_SUCCESS`, :py:obj:`~.CUDA_ERROR_INVALID_VALUE`, :py:obj:`~.CUDA_ERROR_INVALID_HANDLE` value_out : :py:obj:`~.CUstreamAttrValue` - See Also -------- :py:obj:`~.CUaccessPolicyWindow` @@ -41007,9 +39483,6 @@ def cuStreamGetAttribute(hStream, attr not None : CUstreamAttrID): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, value_out) -{{endif}} - -{{if 'cuStreamSetAttribute' in found_functions}} @cython.embedsignature(True) def cuStreamSetAttribute(hStream, attr not None : CUstreamAttrID, value : Optional[CUstreamAttrValue]): @@ -41027,7 +39500,6 @@ def cuStreamSetAttribute(hStream, attr not None : CUstreamAttrID, value : Option value : :py:obj:`~.CUstreamAttrValue` - Returns ------- CUresult @@ -41050,9 +39522,6 @@ def cuStreamSetAttribute(hStream, attr not None : CUstreamAttrID, value : Option with nogil: err = cydriver.cuStreamSetAttribute(cyhStream, cyattr, cyvalue_ptr) return (_CUresult(err),) -{{endif}} - -{{if 'cuEventCreate' in found_functions}} @cython.embedsignature(True) def cuEventCreate(unsigned int Flags): @@ -41101,9 +39570,6 @@ def cuEventCreate(unsigned int Flags): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, phEvent) -{{endif}} - -{{if 'cuEventRecord' in found_functions}} @cython.embedsignature(True) def cuEventRecord(hEvent, hStream): @@ -41161,9 +39627,6 @@ def cuEventRecord(hEvent, hStream): with nogil: err = cydriver.cuEventRecord(cyhEvent, cyhStream) return (_CUresult(err),) -{{endif}} - -{{if 'cuEventRecordWithFlags' in found_functions}} @cython.embedsignature(True) def cuEventRecordWithFlags(hEvent, hStream, unsigned int flags): @@ -41231,9 +39694,6 @@ def cuEventRecordWithFlags(hEvent, hStream, unsigned int flags): with nogil: err = cydriver.cuEventRecordWithFlags(cyhEvent, cyhStream, flags) return (_CUresult(err),) -{{endif}} - -{{if 'cuEventQuery' in found_functions}} @cython.embedsignature(True) def cuEventQuery(hEvent): @@ -41276,9 +39736,6 @@ def cuEventQuery(hEvent): with nogil: err = cydriver.cuEventQuery(cyhEvent) return (_CUresult(err),) -{{endif}} - -{{if 'cuEventSynchronize' in found_functions}} @cython.embedsignature(True) def cuEventSynchronize(hEvent): @@ -41320,9 +39777,6 @@ def cuEventSynchronize(hEvent): with nogil: err = cydriver.cuEventSynchronize(cyhEvent) return (_CUresult(err),) -{{endif}} - -{{if 'cuEventDestroy_v2' in found_functions}} @cython.embedsignature(True) def cuEventDestroy(hEvent): @@ -41361,9 +39815,6 @@ def cuEventDestroy(hEvent): with nogil: err = cydriver.cuEventDestroy(cyhEvent) return (_CUresult(err),) -{{endif}} - -{{if 'cuEventElapsedTime_v2' in found_functions}} @cython.embedsignature(True) def cuEventElapsedTime(hStart, hEnd): @@ -41434,9 +39885,6 @@ def cuEventElapsedTime(hStart, hEnd): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, pMilliseconds) -{{endif}} - -{{if 'cuImportExternalMemory' in found_functions}} @cython.embedsignature(True) def cuImportExternalMemory(memHandleDesc : Optional[CUDA_EXTERNAL_MEMORY_HANDLE_DESC]): @@ -41595,9 +40043,6 @@ def cuImportExternalMemory(memHandleDesc : Optional[CUDA_EXTERNAL_MEMORY_HANDLE_ if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, extMem_out) -{{endif}} - -{{if 'cuExternalMemoryGetMappedBuffer' in found_functions}} @cython.embedsignature(True) def cuExternalMemoryGetMappedBuffer(extMem, bufferDesc : Optional[CUDA_EXTERNAL_MEMORY_BUFFER_DESC]): @@ -41665,9 +40110,6 @@ def cuExternalMemoryGetMappedBuffer(extMem, bufferDesc : Optional[CUDA_EXTERNAL_ if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, devPtr) -{{endif}} - -{{if 'cuExternalMemoryGetMappedMipmappedArray' in found_functions}} @cython.embedsignature(True) def cuExternalMemoryGetMappedMipmappedArray(extMem, mipmapDesc : Optional[CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC]): @@ -41741,9 +40183,6 @@ def cuExternalMemoryGetMappedMipmappedArray(extMem, mipmapDesc : Optional[CUDA_E if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, mipmap) -{{endif}} - -{{if 'cuDestroyExternalMemory' in found_functions}} @cython.embedsignature(True) def cuDestroyExternalMemory(extMem): @@ -41779,9 +40218,6 @@ def cuDestroyExternalMemory(extMem): with nogil: err = cydriver.cuDestroyExternalMemory(cyextMem) return (_CUresult(err),) -{{endif}} - -{{if 'cuImportExternalSemaphore' in found_functions}} @cython.embedsignature(True) def cuImportExternalSemaphore(semHandleDesc : Optional[CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC]): @@ -41927,9 +40363,6 @@ def cuImportExternalSemaphore(semHandleDesc : Optional[CUDA_EXTERNAL_SEMAPHORE_H if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, extSem_out) -{{endif}} - -{{if 'cuSignalExternalSemaphoresAsync' in found_functions}} @cython.embedsignature(True) def cuSignalExternalSemaphoresAsync(extSemArray : Optional[tuple[CUexternalSemaphore] | list[CUexternalSemaphore]], paramsArray : Optional[tuple[CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS] | list[CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS]], unsigned int numExtSems, stream): @@ -42080,9 +40513,6 @@ def cuSignalExternalSemaphoresAsync(extSemArray : Optional[tuple[CUexternalSemap if len(paramsArray) > 1 and cyparamsArray is not NULL: free(cyparamsArray) return (_CUresult(err),) -{{endif}} - -{{if 'cuWaitExternalSemaphoresAsync' in found_functions}} @cython.embedsignature(True) def cuWaitExternalSemaphoresAsync(extSemArray : Optional[tuple[CUexternalSemaphore] | list[CUexternalSemaphore]], paramsArray : Optional[tuple[CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS] | list[CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS]], unsigned int numExtSems, stream): @@ -42210,9 +40640,6 @@ def cuWaitExternalSemaphoresAsync(extSemArray : Optional[tuple[CUexternalSemapho if len(paramsArray) > 1 and cyparamsArray is not NULL: free(cyparamsArray) return (_CUresult(err),) -{{endif}} - -{{if 'cuDestroyExternalSemaphore' in found_functions}} @cython.embedsignature(True) def cuDestroyExternalSemaphore(extSem): @@ -42247,9 +40674,6 @@ def cuDestroyExternalSemaphore(extSem): with nogil: err = cydriver.cuDestroyExternalSemaphore(cyextSem) return (_CUresult(err),) -{{endif}} - -{{if 'cuStreamWaitValue32_v2' in found_functions}} @cython.embedsignature(True) def cuStreamWaitValue32(stream, addr, value, unsigned int flags): @@ -42321,9 +40745,6 @@ def cuStreamWaitValue32(stream, addr, value, unsigned int flags): with nogil: err = cydriver.cuStreamWaitValue32(cystream, cyaddr, cyvalue, flags) return (_CUresult(err),) -{{endif}} - -{{if 'cuStreamWaitValue64_v2' in found_functions}} @cython.embedsignature(True) def cuStreamWaitValue64(stream, addr, value, unsigned int flags): @@ -42393,9 +40814,6 @@ def cuStreamWaitValue64(stream, addr, value, unsigned int flags): with nogil: err = cydriver.cuStreamWaitValue64(cystream, cyaddr, cyvalue, flags) return (_CUresult(err),) -{{endif}} - -{{if 'cuStreamWriteValue32_v2' in found_functions}} @cython.embedsignature(True) def cuStreamWriteValue32(stream, addr, value, unsigned int flags): @@ -42455,9 +40873,6 @@ def cuStreamWriteValue32(stream, addr, value, unsigned int flags): with nogil: err = cydriver.cuStreamWriteValue32(cystream, cyaddr, cyvalue, flags) return (_CUresult(err),) -{{endif}} - -{{if 'cuStreamWriteValue64_v2' in found_functions}} @cython.embedsignature(True) def cuStreamWriteValue64(stream, addr, value, unsigned int flags): @@ -42519,9 +40934,6 @@ def cuStreamWriteValue64(stream, addr, value, unsigned int flags): with nogil: err = cydriver.cuStreamWriteValue64(cystream, cyaddr, cyvalue, flags) return (_CUresult(err),) -{{endif}} - -{{if 'cuStreamBatchMemOp_v2' in found_functions}} @cython.embedsignature(True) def cuStreamBatchMemOp(stream, unsigned int count, paramArray : Optional[tuple[CUstreamBatchMemOpParams] | list[CUstreamBatchMemOpParams]], unsigned int flags): @@ -42592,9 +41004,6 @@ def cuStreamBatchMemOp(stream, unsigned int count, paramArray : Optional[tuple[C if len(paramArray) > 1 and cyparamArray is not NULL: free(cyparamArray) return (_CUresult(err),) -{{endif}} - -{{if 'cuFuncGetAttribute' in found_functions}} @cython.embedsignature(True) def cuFuncGetAttribute(attrib not None : CUfunction_attribute, hfunc): @@ -42728,9 +41137,6 @@ def cuFuncGetAttribute(attrib not None : CUfunction_attribute, hfunc): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, pi) -{{endif}} - -{{if 'cuFuncSetAttribute' in found_functions}} @cython.embedsignature(True) def cuFuncSetAttribute(hfunc, attrib not None : CUfunction_attribute, int value): @@ -42822,9 +41228,6 @@ def cuFuncSetAttribute(hfunc, attrib not None : CUfunction_attribute, int value) with nogil: err = cydriver.cuFuncSetAttribute(cyhfunc, cyattrib, value) return (_CUresult(err),) -{{endif}} - -{{if 'cuFuncSetCacheConfig' in found_functions}} @cython.embedsignature(True) def cuFuncSetCacheConfig(hfunc, config not None : CUfunc_cache): @@ -42888,9 +41291,6 @@ def cuFuncSetCacheConfig(hfunc, config not None : CUfunc_cache): with nogil: err = cydriver.cuFuncSetCacheConfig(cyhfunc, cyconfig) return (_CUresult(err),) -{{endif}} - -{{if 'cuFuncGetModule' in found_functions}} @cython.embedsignature(True) def cuFuncGetModule(hfunc): @@ -42932,9 +41332,6 @@ def cuFuncGetModule(hfunc): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, hmod) -{{endif}} - -{{if 'cuFuncGetName' in found_functions}} @cython.embedsignature(True) def cuFuncGetName(hfunc): @@ -42974,9 +41371,6 @@ def cuFuncGetName(hfunc): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, name if name != NULL else None) -{{endif}} - -{{if 'cuFuncGetParamInfo' in found_functions}} @cython.embedsignature(True) def cuFuncGetParamInfo(func, size_t paramIndex): @@ -43029,9 +41423,6 @@ def cuFuncGetParamInfo(func, size_t paramIndex): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None, None) return (_CUresult_SUCCESS, paramOffset, paramSize) -{{endif}} - -{{if 'cuFuncGetParamCount' in found_functions}} @cython.embedsignature(True) def cuFuncGetParamCount(func): @@ -43070,9 +41461,6 @@ def cuFuncGetParamCount(func): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, paramCount) -{{endif}} - -{{if 'cuFuncIsLoaded' in found_functions}} @cython.embedsignature(True) def cuFuncIsLoaded(function): @@ -43110,9 +41498,6 @@ def cuFuncIsLoaded(function): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, CUfunctionLoadingState(state)) -{{endif}} - -{{if 'cuFuncLoad' in found_functions}} @cython.embedsignature(True) def cuFuncLoad(function): @@ -43146,9 +41531,6 @@ def cuFuncLoad(function): with nogil: err = cydriver.cuFuncLoad(cyfunction) return (_CUresult(err),) -{{endif}} - -{{if 'cuLaunchKernel' in found_functions}} @cython.embedsignature(True) def cuLaunchKernel(f, unsigned int gridDimX, unsigned int gridDimY, unsigned int gridDimZ, unsigned int blockDimX, unsigned int blockDimY, unsigned int blockDimZ, unsigned int sharedMemBytes, hStream, kernelParams, void_ptr extra): @@ -43279,9 +41661,6 @@ def cuLaunchKernel(f, unsigned int gridDimX, unsigned int gridDimY, unsigned int with nogil: err = cydriver.cuLaunchKernel(cyf, gridDimX, gridDimY, gridDimZ, blockDimX, blockDimY, blockDimZ, sharedMemBytes, cyhStream, cykernelParams_ptr, extra) return (_CUresult(err),) -{{endif}} - -{{if 'cuLaunchKernelEx' in found_functions}} @cython.embedsignature(True) def cuLaunchKernelEx(config : Optional[CUlaunchConfig], f, kernelParams, void_ptr extra): @@ -43520,9 +41899,6 @@ def cuLaunchKernelEx(config : Optional[CUlaunchConfig], f, kernelParams, void_pt with nogil: err = cydriver.cuLaunchKernelEx(cyconfig_ptr, cyf, cykernelParams_ptr, extra) return (_CUresult(err),) -{{endif}} - -{{if 'cuLaunchCooperativeKernel' in found_functions}} @cython.embedsignature(True) def cuLaunchCooperativeKernel(f, unsigned int gridDimX, unsigned int gridDimY, unsigned int gridDimZ, unsigned int blockDimX, unsigned int blockDimY, unsigned int blockDimZ, unsigned int sharedMemBytes, hStream, kernelParams): @@ -43633,9 +42009,6 @@ def cuLaunchCooperativeKernel(f, unsigned int gridDimX, unsigned int gridDimY, u with nogil: err = cydriver.cuLaunchCooperativeKernel(cyf, gridDimX, gridDimY, gridDimZ, blockDimX, blockDimY, blockDimZ, sharedMemBytes, cyhStream, cykernelParams_ptr) return (_CUresult(err),) -{{endif}} - -{{if 'cuLaunchCooperativeKernelMultiDevice' in found_functions}} @cython.embedsignature(True) def cuLaunchCooperativeKernelMultiDevice(launchParamsList : Optional[tuple[CUDA_LAUNCH_PARAMS] | list[CUDA_LAUNCH_PARAMS]], unsigned int numDevices, unsigned int flags): @@ -43807,9 +42180,6 @@ def cuLaunchCooperativeKernelMultiDevice(launchParamsList : Optional[tuple[CUDA_ if len(launchParamsList) > 1 and cylaunchParamsList is not NULL: free(cylaunchParamsList) return (_CUresult(err),) -{{endif}} - -{{if 'cuLaunchHostFunc' in found_functions}} ctypedef struct cuHostCallbackData_st: cydriver.CUhostFn callback @@ -43917,9 +42287,6 @@ def cuLaunchHostFunc(hStream, fn, userData): free(cbData) _helper_input_void_ptr_free(&cyuserDataHelper) return (_CUresult(err),) -{{endif}} - -{{if 'cuLaunchHostFunc_v2' in found_functions}} @cython.embedsignature(True) def cuLaunchHostFunc_v2(hStream, fn, userData, unsigned int syncMode): @@ -44006,9 +42373,6 @@ def cuLaunchHostFunc_v2(hStream, fn, userData, unsigned int syncMode): err = cydriver.cuLaunchHostFunc_v2(cyhStream, cyfn, cyuserData, syncMode) _helper_input_void_ptr_free(&cyuserDataHelper) return (_CUresult(err),) -{{endif}} - -{{if 'cuFuncSetBlockShape' in found_functions}} @cython.embedsignature(True) def cuFuncSetBlockShape(hfunc, int x, int y, int z): @@ -44050,9 +42414,6 @@ def cuFuncSetBlockShape(hfunc, int x, int y, int z): with nogil: err = cydriver.cuFuncSetBlockShape(cyhfunc, x, y, z) return (_CUresult(err),) -{{endif}} - -{{if 'cuFuncSetSharedSize' in found_functions}} @cython.embedsignature(True) def cuFuncSetSharedSize(hfunc, unsigned int numbytes): @@ -44091,9 +42452,6 @@ def cuFuncSetSharedSize(hfunc, unsigned int numbytes): with nogil: err = cydriver.cuFuncSetSharedSize(cyhfunc, numbytes) return (_CUresult(err),) -{{endif}} - -{{if 'cuParamSetSize' in found_functions}} @cython.embedsignature(True) def cuParamSetSize(hfunc, unsigned int numbytes): @@ -44131,9 +42489,6 @@ def cuParamSetSize(hfunc, unsigned int numbytes): with nogil: err = cydriver.cuParamSetSize(cyhfunc, numbytes) return (_CUresult(err),) -{{endif}} - -{{if 'cuParamSeti' in found_functions}} @cython.embedsignature(True) def cuParamSeti(hfunc, int offset, unsigned int value): @@ -44174,9 +42529,6 @@ def cuParamSeti(hfunc, int offset, unsigned int value): with nogil: err = cydriver.cuParamSeti(cyhfunc, offset, value) return (_CUresult(err),) -{{endif}} - -{{if 'cuParamSetf' in found_functions}} @cython.embedsignature(True) def cuParamSetf(hfunc, int offset, float value): @@ -44217,9 +42569,6 @@ def cuParamSetf(hfunc, int offset, float value): with nogil: err = cydriver.cuParamSetf(cyhfunc, offset, value) return (_CUresult(err),) -{{endif}} - -{{if 'cuParamSetv' in found_functions}} @cython.embedsignature(True) def cuParamSetv(hfunc, int offset, ptr, unsigned int numbytes): @@ -44265,9 +42614,6 @@ def cuParamSetv(hfunc, int offset, ptr, unsigned int numbytes): err = cydriver.cuParamSetv(cyhfunc, offset, cyptr, numbytes) _helper_input_void_ptr_free(&cyptrHelper) return (_CUresult(err),) -{{endif}} - -{{if 'cuLaunch' in found_functions}} @cython.embedsignature(True) def cuLaunch(f): @@ -44316,9 +42662,6 @@ def cuLaunch(f): with nogil: err = cydriver.cuLaunch(cyf) return (_CUresult(err),) -{{endif}} - -{{if 'cuLaunchGrid' in found_functions}} @cython.embedsignature(True) def cuLaunchGrid(f, int grid_width, int grid_height): @@ -44371,9 +42714,6 @@ def cuLaunchGrid(f, int grid_width, int grid_height): with nogil: err = cydriver.cuLaunchGrid(cyf, grid_width, grid_height) return (_CUresult(err),) -{{endif}} - -{{if 'cuLaunchGridAsync' in found_functions}} @cython.embedsignature(True) def cuLaunchGridAsync(f, int grid_width, int grid_height, hStream): @@ -44442,9 +42782,6 @@ def cuLaunchGridAsync(f, int grid_width, int grid_height, hStream): with nogil: err = cydriver.cuLaunchGridAsync(cyf, grid_width, grid_height, cyhStream) return (_CUresult(err),) -{{endif}} - -{{if 'cuParamSetTexRef' in found_functions}} @cython.embedsignature(True) def cuParamSetTexRef(hfunc, int texunit, hTexRef): @@ -44491,9 +42828,6 @@ def cuParamSetTexRef(hfunc, int texunit, hTexRef): with nogil: err = cydriver.cuParamSetTexRef(cyhfunc, texunit, cyhTexRef) return (_CUresult(err),) -{{endif}} - -{{if 'cuFuncSetSharedMemConfig' in found_functions}} @cython.embedsignature(True) def cuFuncSetSharedMemConfig(hfunc, config not None : CUsharedconfig): @@ -44564,9 +42898,6 @@ def cuFuncSetSharedMemConfig(hfunc, config not None : CUsharedconfig): with nogil: err = cydriver.cuFuncSetSharedMemConfig(cyhfunc, cyconfig) return (_CUresult(err),) -{{endif}} - -{{if 'cuGraphCreate' in found_functions}} @cython.embedsignature(True) def cuGraphCreate(unsigned int flags): @@ -44596,9 +42927,6 @@ def cuGraphCreate(unsigned int flags): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, phGraph) -{{endif}} - -{{if 'cuGraphAddKernelNode_v2' in found_functions}} @cython.embedsignature(True) def cuGraphAddKernelNode(hGraph, dependencies : Optional[tuple[CUgraphNode] | list[CUgraphNode]], size_t numDependencies, nodeParams : Optional[CUDA_KERNEL_NODE_PARAMS]): @@ -44720,9 +43048,6 @@ def cuGraphAddKernelNode(hGraph, dependencies : Optional[tuple[CUgraphNode] | li if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, phGraphNode) -{{endif}} - -{{if 'cuGraphKernelNodeGetParams_v2' in found_functions}} @cython.embedsignature(True) def cuGraphKernelNodeGetParams(hNode): @@ -44769,9 +43094,6 @@ def cuGraphKernelNodeGetParams(hNode): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, nodeParams) -{{endif}} - -{{if 'cuGraphKernelNodeSetParams_v2' in found_functions}} @cython.embedsignature(True) def cuGraphKernelNodeSetParams(hNode, nodeParams : Optional[CUDA_KERNEL_NODE_PARAMS]): @@ -44807,9 +43129,6 @@ def cuGraphKernelNodeSetParams(hNode, nodeParams : Optional[CUDA_KERNEL_NODE_PAR with nogil: err = cydriver.cuGraphKernelNodeSetParams(cyhNode, cynodeParams_ptr) return (_CUresult(err),) -{{endif}} - -{{if 'cuGraphAddMemcpyNode' in found_functions}} @cython.embedsignature(True) def cuGraphAddMemcpyNode(hGraph, dependencies : Optional[tuple[CUgraphNode] | list[CUgraphNode]], size_t numDependencies, copyParams : Optional[CUDA_MEMCPY3D], ctx): @@ -44898,9 +43217,6 @@ def cuGraphAddMemcpyNode(hGraph, dependencies : Optional[tuple[CUgraphNode] | li if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, phGraphNode) -{{endif}} - -{{if 'cuGraphMemcpyNodeGetParams' in found_functions}} @cython.embedsignature(True) def cuGraphMemcpyNodeGetParams(hNode): @@ -44938,9 +43254,6 @@ def cuGraphMemcpyNodeGetParams(hNode): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, nodeParams) -{{endif}} - -{{if 'cuGraphMemcpyNodeSetParams' in found_functions}} @cython.embedsignature(True) def cuGraphMemcpyNodeSetParams(hNode, nodeParams : Optional[CUDA_MEMCPY3D]): @@ -44976,9 +43289,6 @@ def cuGraphMemcpyNodeSetParams(hNode, nodeParams : Optional[CUDA_MEMCPY3D]): with nogil: err = cydriver.cuGraphMemcpyNodeSetParams(cyhNode, cynodeParams_ptr) return (_CUresult(err),) -{{endif}} - -{{if 'cuGraphAddMemsetNode' in found_functions}} @cython.embedsignature(True) def cuGraphAddMemsetNode(hGraph, dependencies : Optional[tuple[CUgraphNode] | list[CUgraphNode]], size_t numDependencies, memsetParams : Optional[CUDA_MEMSET_NODE_PARAMS], ctx): @@ -45057,9 +43367,6 @@ def cuGraphAddMemsetNode(hGraph, dependencies : Optional[tuple[CUgraphNode] | li if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, phGraphNode) -{{endif}} - -{{if 'cuGraphMemsetNodeGetParams' in found_functions}} @cython.embedsignature(True) def cuGraphMemsetNodeGetParams(hNode): @@ -45097,9 +43404,6 @@ def cuGraphMemsetNodeGetParams(hNode): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, nodeParams) -{{endif}} - -{{if 'cuGraphMemsetNodeSetParams' in found_functions}} @cython.embedsignature(True) def cuGraphMemsetNodeSetParams(hNode, nodeParams : Optional[CUDA_MEMSET_NODE_PARAMS]): @@ -45135,9 +43439,6 @@ def cuGraphMemsetNodeSetParams(hNode, nodeParams : Optional[CUDA_MEMSET_NODE_PAR with nogil: err = cydriver.cuGraphMemsetNodeSetParams(cyhNode, cynodeParams_ptr) return (_CUresult(err),) -{{endif}} - -{{if 'cuGraphAddHostNode' in found_functions}} @cython.embedsignature(True) def cuGraphAddHostNode(hGraph, dependencies : Optional[tuple[CUgraphNode] | list[CUgraphNode]], size_t numDependencies, nodeParams : Optional[CUDA_HOST_NODE_PARAMS]): @@ -45206,9 +43507,6 @@ def cuGraphAddHostNode(hGraph, dependencies : Optional[tuple[CUgraphNode] | list if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, phGraphNode) -{{endif}} - -{{if 'cuGraphHostNodeGetParams' in found_functions}} @cython.embedsignature(True) def cuGraphHostNodeGetParams(hNode): @@ -45246,9 +43544,6 @@ def cuGraphHostNodeGetParams(hNode): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, nodeParams) -{{endif}} - -{{if 'cuGraphHostNodeSetParams' in found_functions}} @cython.embedsignature(True) def cuGraphHostNodeSetParams(hNode, nodeParams : Optional[CUDA_HOST_NODE_PARAMS]): @@ -45284,9 +43579,6 @@ def cuGraphHostNodeSetParams(hNode, nodeParams : Optional[CUDA_HOST_NODE_PARAMS] with nogil: err = cydriver.cuGraphHostNodeSetParams(cyhNode, cynodeParams_ptr) return (_CUresult(err),) -{{endif}} - -{{if 'cuGraphAddChildGraphNode' in found_functions}} @cython.embedsignature(True) def cuGraphAddChildGraphNode(hGraph, dependencies : Optional[tuple[CUgraphNode] | list[CUgraphNode]], size_t numDependencies, childGraph): @@ -45365,9 +43657,6 @@ def cuGraphAddChildGraphNode(hGraph, dependencies : Optional[tuple[CUgraphNode] if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, phGraphNode) -{{endif}} - -{{if 'cuGraphChildGraphNodeGetGraph' in found_functions}} @cython.embedsignature(True) def cuGraphChildGraphNodeGetGraph(hNode): @@ -45410,9 +43699,6 @@ def cuGraphChildGraphNodeGetGraph(hNode): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, phGraph) -{{endif}} - -{{if 'cuGraphAddEmptyNode' in found_functions}} @cython.embedsignature(True) def cuGraphAddEmptyNode(hGraph, dependencies : Optional[tuple[CUgraphNode] | list[CUgraphNode]], size_t numDependencies): @@ -45481,9 +43767,6 @@ def cuGraphAddEmptyNode(hGraph, dependencies : Optional[tuple[CUgraphNode] | lis if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, phGraphNode) -{{endif}} - -{{if 'cuGraphAddEventRecordNode' in found_functions}} @cython.embedsignature(True) def cuGraphAddEventRecordNode(hGraph, dependencies : Optional[tuple[CUgraphNode] | list[CUgraphNode]], size_t numDependencies, event): @@ -45559,9 +43842,6 @@ def cuGraphAddEventRecordNode(hGraph, dependencies : Optional[tuple[CUgraphNode] if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, phGraphNode) -{{endif}} - -{{if 'cuGraphEventRecordNodeGetEvent' in found_functions}} @cython.embedsignature(True) def cuGraphEventRecordNodeGetEvent(hNode): @@ -45599,9 +43879,6 @@ def cuGraphEventRecordNodeGetEvent(hNode): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, event_out) -{{endif}} - -{{if 'cuGraphEventRecordNodeSetEvent' in found_functions}} @cython.embedsignature(True) def cuGraphEventRecordNodeSetEvent(hNode, event): @@ -45644,9 +43921,6 @@ def cuGraphEventRecordNodeSetEvent(hNode, event): with nogil: err = cydriver.cuGraphEventRecordNodeSetEvent(cyhNode, cyevent) return (_CUresult(err),) -{{endif}} - -{{if 'cuGraphAddEventWaitNode' in found_functions}} @cython.embedsignature(True) def cuGraphAddEventWaitNode(hGraph, dependencies : Optional[tuple[CUgraphNode] | list[CUgraphNode]], size_t numDependencies, event): @@ -45724,9 +43998,6 @@ def cuGraphAddEventWaitNode(hGraph, dependencies : Optional[tuple[CUgraphNode] | if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, phGraphNode) -{{endif}} - -{{if 'cuGraphEventWaitNodeGetEvent' in found_functions}} @cython.embedsignature(True) def cuGraphEventWaitNodeGetEvent(hNode): @@ -45764,9 +44035,6 @@ def cuGraphEventWaitNodeGetEvent(hNode): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, event_out) -{{endif}} - -{{if 'cuGraphEventWaitNodeSetEvent' in found_functions}} @cython.embedsignature(True) def cuGraphEventWaitNodeSetEvent(hNode, event): @@ -45809,9 +44077,6 @@ def cuGraphEventWaitNodeSetEvent(hNode, event): with nogil: err = cydriver.cuGraphEventWaitNodeSetEvent(cyhNode, cyevent) return (_CUresult(err),) -{{endif}} - -{{if 'cuGraphAddExternalSemaphoresSignalNode' in found_functions}} @cython.embedsignature(True) def cuGraphAddExternalSemaphoresSignalNode(hGraph, dependencies : Optional[tuple[CUgraphNode] | list[CUgraphNode]], size_t numDependencies, nodeParams : Optional[CUDA_EXT_SEM_SIGNAL_NODE_PARAMS]): @@ -45881,9 +44146,6 @@ def cuGraphAddExternalSemaphoresSignalNode(hGraph, dependencies : Optional[tuple if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, phGraphNode) -{{endif}} - -{{if 'cuGraphExternalSemaphoresSignalNodeGetParams' in found_functions}} @cython.embedsignature(True) def cuGraphExternalSemaphoresSignalNodeGetParams(hNode): @@ -45927,9 +44189,6 @@ def cuGraphExternalSemaphoresSignalNodeGetParams(hNode): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, params_out) -{{endif}} - -{{if 'cuGraphExternalSemaphoresSignalNodeSetParams' in found_functions}} @cython.embedsignature(True) def cuGraphExternalSemaphoresSignalNodeSetParams(hNode, nodeParams : Optional[CUDA_EXT_SEM_SIGNAL_NODE_PARAMS]): @@ -45966,9 +44225,6 @@ def cuGraphExternalSemaphoresSignalNodeSetParams(hNode, nodeParams : Optional[CU with nogil: err = cydriver.cuGraphExternalSemaphoresSignalNodeSetParams(cyhNode, cynodeParams_ptr) return (_CUresult(err),) -{{endif}} - -{{if 'cuGraphAddExternalSemaphoresWaitNode' in found_functions}} @cython.embedsignature(True) def cuGraphAddExternalSemaphoresWaitNode(hGraph, dependencies : Optional[tuple[CUgraphNode] | list[CUgraphNode]], size_t numDependencies, nodeParams : Optional[CUDA_EXT_SEM_WAIT_NODE_PARAMS]): @@ -46038,9 +44294,6 @@ def cuGraphAddExternalSemaphoresWaitNode(hGraph, dependencies : Optional[tuple[C if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, phGraphNode) -{{endif}} - -{{if 'cuGraphExternalSemaphoresWaitNodeGetParams' in found_functions}} @cython.embedsignature(True) def cuGraphExternalSemaphoresWaitNodeGetParams(hNode): @@ -46084,9 +44337,6 @@ def cuGraphExternalSemaphoresWaitNodeGetParams(hNode): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, params_out) -{{endif}} - -{{if 'cuGraphExternalSemaphoresWaitNodeSetParams' in found_functions}} @cython.embedsignature(True) def cuGraphExternalSemaphoresWaitNodeSetParams(hNode, nodeParams : Optional[CUDA_EXT_SEM_WAIT_NODE_PARAMS]): @@ -46123,9 +44373,6 @@ def cuGraphExternalSemaphoresWaitNodeSetParams(hNode, nodeParams : Optional[CUDA with nogil: err = cydriver.cuGraphExternalSemaphoresWaitNodeSetParams(cyhNode, cynodeParams_ptr) return (_CUresult(err),) -{{endif}} - -{{if 'cuGraphAddBatchMemOpNode' in found_functions}} @cython.embedsignature(True) def cuGraphAddBatchMemOpNode(hGraph, dependencies : Optional[tuple[CUgraphNode] | list[CUgraphNode]], size_t numDependencies, nodeParams : Optional[CUDA_BATCH_MEM_OP_NODE_PARAMS]): @@ -46198,9 +44445,6 @@ def cuGraphAddBatchMemOpNode(hGraph, dependencies : Optional[tuple[CUgraphNode] if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, phGraphNode) -{{endif}} - -{{if 'cuGraphBatchMemOpNodeGetParams' in found_functions}} @cython.embedsignature(True) def cuGraphBatchMemOpNodeGetParams(hNode): @@ -46243,9 +44487,6 @@ def cuGraphBatchMemOpNodeGetParams(hNode): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, nodeParams_out) -{{endif}} - -{{if 'cuGraphBatchMemOpNodeSetParams' in found_functions}} @cython.embedsignature(True) def cuGraphBatchMemOpNodeSetParams(hNode, nodeParams : Optional[CUDA_BATCH_MEM_OP_NODE_PARAMS]): @@ -46284,9 +44525,6 @@ def cuGraphBatchMemOpNodeSetParams(hNode, nodeParams : Optional[CUDA_BATCH_MEM_O with nogil: err = cydriver.cuGraphBatchMemOpNodeSetParams(cyhNode, cynodeParams_ptr) return (_CUresult(err),) -{{endif}} - -{{if 'cuGraphExecBatchMemOpNodeSetParams' in found_functions}} @cython.embedsignature(True) def cuGraphExecBatchMemOpNodeSetParams(hGraphExec, hNode, nodeParams : Optional[CUDA_BATCH_MEM_OP_NODE_PARAMS]): @@ -46355,9 +44593,6 @@ def cuGraphExecBatchMemOpNodeSetParams(hGraphExec, hNode, nodeParams : Optional[ with nogil: err = cydriver.cuGraphExecBatchMemOpNodeSetParams(cyhGraphExec, cyhNode, cynodeParams_ptr) return (_CUresult(err),) -{{endif}} - -{{if 'cuGraphAddMemAllocNode' in found_functions}} @cython.embedsignature(True) def cuGraphAddMemAllocNode(hGraph, dependencies : Optional[tuple[CUgraphNode] | list[CUgraphNode]], size_t numDependencies, nodeParams : Optional[CUDA_MEM_ALLOC_NODE_PARAMS]): @@ -46467,9 +44702,6 @@ def cuGraphAddMemAllocNode(hGraph, dependencies : Optional[tuple[CUgraphNode] | if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, phGraphNode) -{{endif}} - -{{if 'cuGraphMemAllocNodeGetParams' in found_functions}} @cython.embedsignature(True) def cuGraphMemAllocNodeGetParams(hNode): @@ -46510,9 +44742,6 @@ def cuGraphMemAllocNodeGetParams(hNode): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, params_out) -{{endif}} - -{{if 'cuGraphAddMemFreeNode' in found_functions}} @cython.embedsignature(True) def cuGraphAddMemFreeNode(hGraph, dependencies : Optional[tuple[CUgraphNode] | list[CUgraphNode]], size_t numDependencies, dptr): @@ -46606,9 +44835,6 @@ def cuGraphAddMemFreeNode(hGraph, dependencies : Optional[tuple[CUgraphNode] | l if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, phGraphNode) -{{endif}} - -{{if 'cuGraphMemFreeNodeGetParams' in found_functions}} @cython.embedsignature(True) def cuGraphMemFreeNodeGetParams(hNode): @@ -46646,9 +44872,6 @@ def cuGraphMemFreeNodeGetParams(hNode): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, dptr_out) -{{endif}} - -{{if 'cuDeviceGraphMemTrim' in found_functions}} @cython.embedsignature(True) def cuDeviceGraphMemTrim(device): @@ -46683,9 +44906,6 @@ def cuDeviceGraphMemTrim(device): with nogil: err = cydriver.cuDeviceGraphMemTrim(cydevice) return (_CUresult(err),) -{{endif}} - -{{if 'cuDeviceGetGraphMemAttribute' in found_functions}} @cython.embedsignature(True) def cuDeviceGetGraphMemAttribute(device, attr not None : CUgraphMem_attribute): @@ -46742,9 +44962,6 @@ def cuDeviceGetGraphMemAttribute(device, attr not None : CUgraphMem_attribute): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, cyvalue.pyObj()) -{{endif}} - -{{if 'cuDeviceSetGraphMemAttribute' in found_functions}} @cython.embedsignature(True) def cuDeviceSetGraphMemAttribute(device, attr not None : CUgraphMem_attribute, value): @@ -46792,9 +45009,6 @@ def cuDeviceSetGraphMemAttribute(device, attr not None : CUgraphMem_attribute, v with nogil: err = cydriver.cuDeviceSetGraphMemAttribute(cydevice, cyattr, cyvalue_ptr) return (_CUresult(err),) -{{endif}} - -{{if 'cuGraphClone' in found_functions}} @cython.embedsignature(True) def cuGraphClone(originalGraph): @@ -46842,9 +45056,6 @@ def cuGraphClone(originalGraph): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, phGraphClone) -{{endif}} - -{{if 'cuGraphNodeFindInClone' in found_functions}} @cython.embedsignature(True) def cuGraphNodeFindInClone(hOriginalNode, hClonedGraph): @@ -46899,9 +45110,6 @@ def cuGraphNodeFindInClone(hOriginalNode, hClonedGraph): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, phNode) -{{endif}} - -{{if 'cuGraphNodeGetType' in found_functions}} @cython.embedsignature(True) def cuGraphNodeGetType(hNode): @@ -46939,9 +45147,6 @@ def cuGraphNodeGetType(hNode): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, CUgraphNodeType(typename)) -{{endif}} - -{{if 'cuGraphNodeGetContainingGraph' in found_functions}} @cython.embedsignature(True) def cuGraphNodeGetContainingGraph(hNode): @@ -46980,9 +45185,6 @@ def cuGraphNodeGetContainingGraph(hNode): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, phGraph) -{{endif}} - -{{if 'cuGraphNodeGetLocalId' in found_functions}} @cython.embedsignature(True) def cuGraphNodeGetLocalId(hNode): @@ -47022,9 +45224,6 @@ def cuGraphNodeGetLocalId(hNode): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, nodeId) -{{endif}} - -{{if 'cuGraphNodeGetToolsId' in found_functions}} @cython.embedsignature(True) def cuGraphNodeGetToolsId(hNode): @@ -47060,9 +45259,6 @@ def cuGraphNodeGetToolsId(hNode): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, toolsNodeId) -{{endif}} - -{{if 'cuGraphGetId' in found_functions}} @cython.embedsignature(True) def cuGraphGetId(hGraph): @@ -47101,9 +45297,6 @@ def cuGraphGetId(hGraph): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, graphId) -{{endif}} - -{{if 'cuGraphExecGetId' in found_functions}} @cython.embedsignature(True) def cuGraphExecGetId(hGraphExec): @@ -47142,9 +45335,6 @@ def cuGraphExecGetId(hGraphExec): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, graphId) -{{endif}} - -{{if 'cuGraphGetNodes' in found_functions}} @cython.embedsignature(True) def cuGraphGetNodes(hGraph, size_t numNodes = 0): @@ -47201,9 +45391,6 @@ def cuGraphGetNodes(hGraph, size_t numNodes = 0): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None, None) return (_CUresult_SUCCESS, pynodes, numNodes) -{{endif}} - -{{if 'cuGraphGetRootNodes' in found_functions}} @cython.embedsignature(True) def cuGraphGetRootNodes(hGraph, size_t numRootNodes = 0): @@ -47260,9 +45447,6 @@ def cuGraphGetRootNodes(hGraph, size_t numRootNodes = 0): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None, None) return (_CUresult_SUCCESS, pyrootNodes, numRootNodes) -{{endif}} - -{{if 'cuGraphGetEdges_v2' in found_functions}} @cython.embedsignature(True) def cuGraphGetEdges(hGraph, size_t numEdges = 0): @@ -47350,9 +45534,6 @@ def cuGraphGetEdges(hGraph, size_t numEdges = 0): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None, None, None, None) return (_CUresult_SUCCESS, pyfrom_, pyto, pyedgeData, numEdges) -{{endif}} - -{{if 'cuGraphNodeGetDependencies_v2' in found_functions}} @cython.embedsignature(True) def cuGraphNodeGetDependencies(hNode, size_t numDependencies = 0): @@ -47427,9 +45608,6 @@ def cuGraphNodeGetDependencies(hNode, size_t numDependencies = 0): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None, None, None) return (_CUresult_SUCCESS, pydependencies, pyedgeData, numDependencies) -{{endif}} - -{{if 'cuGraphNodeGetDependentNodes_v2' in found_functions}} @cython.embedsignature(True) def cuGraphNodeGetDependentNodes(hNode, size_t numDependentNodes = 0): @@ -47504,9 +45682,6 @@ def cuGraphNodeGetDependentNodes(hNode, size_t numDependentNodes = 0): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None, None, None) return (_CUresult_SUCCESS, pydependentNodes, pyedgeData, numDependentNodes) -{{endif}} - -{{if 'cuGraphAddDependencies_v2' in found_functions}} @cython.embedsignature(True) def cuGraphAddDependencies(hGraph, from_ : Optional[tuple[CUgraphNode] | list[CUgraphNode]], to : Optional[tuple[CUgraphNode] | list[CUgraphNode]], edgeData : Optional[tuple[CUgraphEdgeData] | list[CUgraphEdgeData]], size_t numDependencies): @@ -47597,9 +45772,6 @@ def cuGraphAddDependencies(hGraph, from_ : Optional[tuple[CUgraphNode] | list[CU if len(edgeData) > 1 and cyedgeData is not NULL: free(cyedgeData) return (_CUresult(err),) -{{endif}} - -{{if 'cuGraphRemoveDependencies_v2' in found_functions}} @cython.embedsignature(True) def cuGraphRemoveDependencies(hGraph, from_ : Optional[tuple[CUgraphNode] | list[CUgraphNode]], to : Optional[tuple[CUgraphNode] | list[CUgraphNode]], edgeData : Optional[tuple[CUgraphEdgeData] | list[CUgraphEdgeData]], size_t numDependencies): @@ -47696,9 +45868,6 @@ def cuGraphRemoveDependencies(hGraph, from_ : Optional[tuple[CUgraphNode] | list if len(edgeData) > 1 and cyedgeData is not NULL: free(cyedgeData) return (_CUresult(err),) -{{endif}} - -{{if 'cuGraphDestroyNode' in found_functions}} @cython.embedsignature(True) def cuGraphDestroyNode(hNode): @@ -47735,9 +45904,6 @@ def cuGraphDestroyNode(hNode): with nogil: err = cydriver.cuGraphDestroyNode(cyhNode) return (_CUresult(err),) -{{endif}} - -{{if 'cuGraphInstantiateWithFlags' in found_functions}} @cython.embedsignature(True) def cuGraphInstantiate(hGraph, unsigned long long flags): @@ -47840,9 +46006,6 @@ def cuGraphInstantiate(hGraph, unsigned long long flags): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, phGraphExec) -{{endif}} - -{{if 'cuGraphInstantiateWithParams' in found_functions}} @cython.embedsignature(True) def cuGraphInstantiateWithParams(hGraph, instantiateParams : Optional[CUDA_GRAPH_INSTANTIATE_PARAMS]): @@ -47986,9 +46149,6 @@ def cuGraphInstantiateWithParams(hGraph, instantiateParams : Optional[CUDA_GRAPH if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, phGraphExec) -{{endif}} - -{{if 'cuGraphExecGetFlags' in found_functions}} @cython.embedsignature(True) def cuGraphExecGetFlags(hGraphExec): @@ -48029,9 +46189,6 @@ def cuGraphExecGetFlags(hGraphExec): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, flags) -{{endif}} - -{{if 'cuGraphExecKernelNodeSetParams_v2' in found_functions}} @cython.embedsignature(True) def cuGraphExecKernelNodeSetParams(hGraphExec, hNode, nodeParams : Optional[CUDA_KERNEL_NODE_PARAMS]): @@ -48110,9 +46267,6 @@ def cuGraphExecKernelNodeSetParams(hGraphExec, hNode, nodeParams : Optional[CUDA with nogil: err = cydriver.cuGraphExecKernelNodeSetParams(cyhGraphExec, cyhNode, cynodeParams_ptr) return (_CUresult(err),) -{{endif}} - -{{if 'cuGraphExecMemcpyNodeSetParams' in found_functions}} @cython.embedsignature(True) def cuGraphExecMemcpyNodeSetParams(hGraphExec, hNode, copyParams : Optional[CUDA_MEMCPY3D], ctx): @@ -48185,9 +46339,6 @@ def cuGraphExecMemcpyNodeSetParams(hGraphExec, hNode, copyParams : Optional[CUDA with nogil: err = cydriver.cuGraphExecMemcpyNodeSetParams(cyhGraphExec, cyhNode, cycopyParams_ptr, cyctx) return (_CUresult(err),) -{{endif}} - -{{if 'cuGraphExecMemsetNodeSetParams' in found_functions}} @cython.embedsignature(True) def cuGraphExecMemsetNodeSetParams(hGraphExec, hNode, memsetParams : Optional[CUDA_MEMSET_NODE_PARAMS], ctx): @@ -48265,9 +46416,6 @@ def cuGraphExecMemsetNodeSetParams(hGraphExec, hNode, memsetParams : Optional[CU with nogil: err = cydriver.cuGraphExecMemsetNodeSetParams(cyhGraphExec, cyhNode, cymemsetParams_ptr, cyctx) return (_CUresult(err),) -{{endif}} - -{{if 'cuGraphExecHostNodeSetParams' in found_functions}} @cython.embedsignature(True) def cuGraphExecHostNodeSetParams(hGraphExec, hNode, nodeParams : Optional[CUDA_HOST_NODE_PARAMS]): @@ -48320,9 +46468,6 @@ def cuGraphExecHostNodeSetParams(hGraphExec, hNode, nodeParams : Optional[CUDA_H with nogil: err = cydriver.cuGraphExecHostNodeSetParams(cyhGraphExec, cyhNode, cynodeParams_ptr) return (_CUresult(err),) -{{endif}} - -{{if 'cuGraphExecChildGraphNodeSetParams' in found_functions}} @cython.embedsignature(True) def cuGraphExecChildGraphNodeSetParams(hGraphExec, hNode, childGraph): @@ -48390,9 +46535,6 @@ def cuGraphExecChildGraphNodeSetParams(hGraphExec, hNode, childGraph): with nogil: err = cydriver.cuGraphExecChildGraphNodeSetParams(cyhGraphExec, cyhNode, cychildGraph) return (_CUresult(err),) -{{endif}} - -{{if 'cuGraphExecEventRecordNodeSetEvent' in found_functions}} @cython.embedsignature(True) def cuGraphExecEventRecordNodeSetEvent(hGraphExec, hNode, event): @@ -48453,9 +46595,6 @@ def cuGraphExecEventRecordNodeSetEvent(hGraphExec, hNode, event): with nogil: err = cydriver.cuGraphExecEventRecordNodeSetEvent(cyhGraphExec, cyhNode, cyevent) return (_CUresult(err),) -{{endif}} - -{{if 'cuGraphExecEventWaitNodeSetEvent' in found_functions}} @cython.embedsignature(True) def cuGraphExecEventWaitNodeSetEvent(hGraphExec, hNode, event): @@ -48516,9 +46655,6 @@ def cuGraphExecEventWaitNodeSetEvent(hGraphExec, hNode, event): with nogil: err = cydriver.cuGraphExecEventWaitNodeSetEvent(cyhGraphExec, cyhNode, cyevent) return (_CUresult(err),) -{{endif}} - -{{if 'cuGraphExecExternalSemaphoresSignalNodeSetParams' in found_functions}} @cython.embedsignature(True) def cuGraphExecExternalSemaphoresSignalNodeSetParams(hGraphExec, hNode, nodeParams : Optional[CUDA_EXT_SEM_SIGNAL_NODE_PARAMS]): @@ -48576,9 +46712,6 @@ def cuGraphExecExternalSemaphoresSignalNodeSetParams(hGraphExec, hNode, nodePara with nogil: err = cydriver.cuGraphExecExternalSemaphoresSignalNodeSetParams(cyhGraphExec, cyhNode, cynodeParams_ptr) return (_CUresult(err),) -{{endif}} - -{{if 'cuGraphExecExternalSemaphoresWaitNodeSetParams' in found_functions}} @cython.embedsignature(True) def cuGraphExecExternalSemaphoresWaitNodeSetParams(hGraphExec, hNode, nodeParams : Optional[CUDA_EXT_SEM_WAIT_NODE_PARAMS]): @@ -48636,9 +46769,6 @@ def cuGraphExecExternalSemaphoresWaitNodeSetParams(hGraphExec, hNode, nodeParams with nogil: err = cydriver.cuGraphExecExternalSemaphoresWaitNodeSetParams(cyhGraphExec, cyhNode, cynodeParams_ptr) return (_CUresult(err),) -{{endif}} - -{{if 'cuGraphNodeSetEnabled' in found_functions}} @cython.embedsignature(True) def cuGraphNodeSetEnabled(hGraphExec, hNode, unsigned int isEnabled): @@ -48705,9 +46835,6 @@ def cuGraphNodeSetEnabled(hGraphExec, hNode, unsigned int isEnabled): with nogil: err = cydriver.cuGraphNodeSetEnabled(cyhGraphExec, cyhNode, isEnabled) return (_CUresult(err),) -{{endif}} - -{{if 'cuGraphNodeGetEnabled' in found_functions}} @cython.embedsignature(True) def cuGraphNodeGetEnabled(hGraphExec, hNode): @@ -48766,9 +46893,6 @@ def cuGraphNodeGetEnabled(hGraphExec, hNode): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, isEnabled) -{{endif}} - -{{if 'cuGraphUpload' in found_functions}} @cython.embedsignature(True) def cuGraphUpload(hGraphExec, hStream): @@ -48815,9 +46939,6 @@ def cuGraphUpload(hGraphExec, hStream): with nogil: err = cydriver.cuGraphUpload(cyhGraphExec, cyhStream) return (_CUresult(err),) -{{endif}} - -{{if 'cuGraphLaunch' in found_functions}} @cython.embedsignature(True) def cuGraphLaunch(hGraphExec, hStream): @@ -48869,9 +46990,6 @@ def cuGraphLaunch(hGraphExec, hStream): with nogil: err = cydriver.cuGraphLaunch(cyhGraphExec, cyhStream) return (_CUresult(err),) -{{endif}} - -{{if 'cuGraphExecDestroy' in found_functions}} @cython.embedsignature(True) def cuGraphExecDestroy(hGraphExec): @@ -48906,9 +47024,6 @@ def cuGraphExecDestroy(hGraphExec): with nogil: err = cydriver.cuGraphExecDestroy(cyhGraphExec) return (_CUresult(err),) -{{endif}} - -{{if 'cuGraphDestroy' in found_functions}} @cython.embedsignature(True) def cuGraphDestroy(hGraph): @@ -48941,9 +47056,6 @@ def cuGraphDestroy(hGraph): with nogil: err = cydriver.cuGraphDestroy(cyhGraph) return (_CUresult(err),) -{{endif}} - -{{if 'cuGraphExecUpdate_v2' in found_functions}} @cython.embedsignature(True) def cuGraphExecUpdate(hGraphExec, hGraph): @@ -49121,9 +47233,6 @@ def cuGraphExecUpdate(hGraphExec, hGraph): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, resultInfo) -{{endif}} - -{{if 'cuGraphKernelNodeCopyAttributes' in found_functions}} @cython.embedsignature(True) def cuGraphKernelNodeCopyAttributes(dst, src): @@ -49168,9 +47277,6 @@ def cuGraphKernelNodeCopyAttributes(dst, src): with nogil: err = cydriver.cuGraphKernelNodeCopyAttributes(cydst, cysrc) return (_CUresult(err),) -{{endif}} - -{{if 'cuGraphKernelNodeGetAttribute' in found_functions}} @cython.embedsignature(True) def cuGraphKernelNodeGetAttribute(hNode, attr not None : CUkernelNodeAttrID): @@ -49185,14 +47291,12 @@ def cuGraphKernelNodeGetAttribute(hNode, attr not None : CUkernelNodeAttrID): attr : :py:obj:`~.CUkernelNodeAttrID` - Returns ------- CUresult :py:obj:`~.CUDA_SUCCESS`, :py:obj:`~.CUDA_ERROR_INVALID_VALUE`, :py:obj:`~.CUDA_ERROR_INVALID_HANDLE` value_out : :py:obj:`~.CUkernelNodeAttrValue` - See Also -------- :py:obj:`~.CUaccessPolicyWindow` @@ -49212,9 +47316,6 @@ def cuGraphKernelNodeGetAttribute(hNode, attr not None : CUkernelNodeAttrID): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, value_out) -{{endif}} - -{{if 'cuGraphKernelNodeSetAttribute' in found_functions}} @cython.embedsignature(True) def cuGraphKernelNodeSetAttribute(hNode, attr not None : CUkernelNodeAttrID, value : Optional[CUkernelNodeAttrValue]): @@ -49231,7 +47332,6 @@ def cuGraphKernelNodeSetAttribute(hNode, attr not None : CUkernelNodeAttrID, val value : :py:obj:`~.CUkernelNodeAttrValue` - Returns ------- CUresult @@ -49254,9 +47354,6 @@ def cuGraphKernelNodeSetAttribute(hNode, attr not None : CUkernelNodeAttrID, val with nogil: err = cydriver.cuGraphKernelNodeSetAttribute(cyhNode, cyattr, cyvalue_ptr) return (_CUresult(err),) -{{endif}} - -{{if 'cuGraphDebugDotPrint' in found_functions}} @cython.embedsignature(True) def cuGraphDebugDotPrint(hGraph, char* path, unsigned int flags): @@ -49294,9 +47391,6 @@ def cuGraphDebugDotPrint(hGraph, char* path, unsigned int flags): with nogil: err = cydriver.cuGraphDebugDotPrint(cyhGraph, path, flags) return (_CUresult(err),) -{{endif}} - -{{if 'cuUserObjectCreate' in found_functions}} @cython.embedsignature(True) def cuUserObjectCreate(ptr, destroy, unsigned int initialRefcount, unsigned int flags): @@ -49357,9 +47451,6 @@ def cuUserObjectCreate(ptr, destroy, unsigned int initialRefcount, unsigned int if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, object_out) -{{endif}} - -{{if 'cuUserObjectRetain' in found_functions}} @cython.embedsignature(True) def cuUserObjectRetain(object, unsigned int count): @@ -49399,9 +47490,6 @@ def cuUserObjectRetain(object, unsigned int count): with nogil: err = cydriver.cuUserObjectRetain(cyobject, count) return (_CUresult(err),) -{{endif}} - -{{if 'cuUserObjectRelease' in found_functions}} @cython.embedsignature(True) def cuUserObjectRelease(object, unsigned int count): @@ -49444,9 +47532,6 @@ def cuUserObjectRelease(object, unsigned int count): with nogil: err = cydriver.cuUserObjectRelease(cyobject, count) return (_CUresult(err),) -{{endif}} - -{{if 'cuGraphRetainUserObject' in found_functions}} @cython.embedsignature(True) def cuGraphRetainUserObject(graph, object, unsigned int count, unsigned int flags): @@ -49500,9 +47585,6 @@ def cuGraphRetainUserObject(graph, object, unsigned int count, unsigned int flag with nogil: err = cydriver.cuGraphRetainUserObject(cygraph, cyobject, count, flags) return (_CUresult(err),) -{{endif}} - -{{if 'cuGraphReleaseUserObject' in found_functions}} @cython.embedsignature(True) def cuGraphReleaseUserObject(graph, object, unsigned int count): @@ -49551,9 +47633,6 @@ def cuGraphReleaseUserObject(graph, object, unsigned int count): with nogil: err = cydriver.cuGraphReleaseUserObject(cygraph, cyobject, count) return (_CUresult(err),) -{{endif}} - -{{if 'cuGraphAddNode_v2' in found_functions}} @cython.embedsignature(True) def cuGraphAddNode(hGraph, dependencies : Optional[tuple[CUgraphNode] | list[CUgraphNode]], dependencyData : Optional[tuple[CUgraphEdgeData] | list[CUgraphEdgeData]], size_t numDependencies, nodeParams : Optional[CUgraphNodeParams]): @@ -49647,9 +47726,6 @@ def cuGraphAddNode(hGraph, dependencies : Optional[tuple[CUgraphNode] | list[CUg if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, phGraphNode) -{{endif}} - -{{if 'cuGraphNodeSetParams' in found_functions}} @cython.embedsignature(True) def cuGraphNodeSetParams(hNode, nodeParams : Optional[CUgraphNodeParams]): @@ -49691,9 +47767,6 @@ def cuGraphNodeSetParams(hNode, nodeParams : Optional[CUgraphNodeParams]): with nogil: err = cydriver.cuGraphNodeSetParams(cyhNode, cynodeParams_ptr) return (_CUresult(err),) -{{endif}} - -{{if 'cuGraphNodeGetParams' in found_functions}} @cython.embedsignature(True) def cuGraphNodeGetParams(hNode): @@ -49744,9 +47817,6 @@ def cuGraphNodeGetParams(hNode): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, nodeParams) -{{endif}} - -{{if 'cuGraphExecNodeSetParams' in found_functions}} @cython.embedsignature(True) def cuGraphExecNodeSetParams(hGraphExec, hNode, nodeParams : Optional[CUgraphNodeParams]): @@ -49804,9 +47874,6 @@ def cuGraphExecNodeSetParams(hGraphExec, hNode, nodeParams : Optional[CUgraphNod with nogil: err = cydriver.cuGraphExecNodeSetParams(cyhGraphExec, cyhNode, cynodeParams_ptr) return (_CUresult(err),) -{{endif}} - -{{if 'cuGraphConditionalHandleCreate' in found_functions}} @cython.embedsignature(True) def cuGraphConditionalHandleCreate(hGraph, ctx, unsigned int defaultLaunchValue, unsigned int flags): @@ -49869,9 +47936,6 @@ def cuGraphConditionalHandleCreate(hGraph, ctx, unsigned int defaultLaunchValue, if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, pHandle_out) -{{endif}} - -{{if 'cuOccupancyMaxActiveBlocksPerMultiprocessor' in found_functions}} @cython.embedsignature(True) def cuOccupancyMaxActiveBlocksPerMultiprocessor(func, int blockSize, size_t dynamicSMemSize): @@ -49920,9 +47984,6 @@ def cuOccupancyMaxActiveBlocksPerMultiprocessor(func, int blockSize, size_t dyna if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, numBlocks) -{{endif}} - -{{if 'cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags' in found_functions}} @cython.embedsignature(True) def cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(func, int blockSize, size_t dynamicSMemSize, unsigned int flags): @@ -49989,9 +48050,6 @@ def cuOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(func, int blockSize, si if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, numBlocks) -{{endif}} - -{{if 'cuOccupancyMaxPotentialBlockSize' in found_functions}} @cython.embedsignature(True) def cuOccupancyMaxPotentialBlockSize(func, blockSizeToDynamicSMemSize, size_t dynamicSMemSize, int blockSizeLimit): @@ -50076,9 +48134,6 @@ def cuOccupancyMaxPotentialBlockSize(func, blockSizeToDynamicSMemSize, size_t dy if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None, None) return (_CUresult_SUCCESS, minGridSize, blockSize) -{{endif}} - -{{if 'cuOccupancyMaxPotentialBlockSizeWithFlags' in found_functions}} @cython.embedsignature(True) def cuOccupancyMaxPotentialBlockSizeWithFlags(func, blockSizeToDynamicSMemSize, size_t dynamicSMemSize, int blockSizeLimit, unsigned int flags): @@ -50162,9 +48217,6 @@ def cuOccupancyMaxPotentialBlockSizeWithFlags(func, blockSizeToDynamicSMemSize, if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None, None) return (_CUresult_SUCCESS, minGridSize, blockSize) -{{endif}} - -{{if 'cuOccupancyAvailableDynamicSMemPerBlock' in found_functions}} @cython.embedsignature(True) def cuOccupancyAvailableDynamicSMemPerBlock(func, int numBlocks, int blockSize): @@ -50209,9 +48261,6 @@ def cuOccupancyAvailableDynamicSMemPerBlock(func, int numBlocks, int blockSize): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, dynamicSmemSize) -{{endif}} - -{{if 'cuOccupancyMaxPotentialClusterSize' in found_functions}} @cython.embedsignature(True) def cuOccupancyMaxPotentialClusterSize(func, config : Optional[CUlaunchConfig]): @@ -50269,9 +48318,6 @@ def cuOccupancyMaxPotentialClusterSize(func, config : Optional[CUlaunchConfig]): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, clusterSize) -{{endif}} - -{{if 'cuOccupancyMaxActiveClusters' in found_functions}} @cython.embedsignature(True) def cuOccupancyMaxActiveClusters(func, config : Optional[CUlaunchConfig]): @@ -50329,9 +48375,6 @@ def cuOccupancyMaxActiveClusters(func, config : Optional[CUlaunchConfig]): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, numClusters) -{{endif}} - -{{if 'cuTexRefSetArray' in found_functions}} @cython.embedsignature(True) def cuTexRefSetArray(hTexRef, hArray, unsigned int Flags): @@ -50382,9 +48425,6 @@ def cuTexRefSetArray(hTexRef, hArray, unsigned int Flags): with nogil: err = cydriver.cuTexRefSetArray(cyhTexRef, cyhArray, Flags) return (_CUresult(err),) -{{endif}} - -{{if 'cuTexRefSetMipmappedArray' in found_functions}} @cython.embedsignature(True) def cuTexRefSetMipmappedArray(hTexRef, hMipmappedArray, unsigned int Flags): @@ -50435,9 +48475,6 @@ def cuTexRefSetMipmappedArray(hTexRef, hMipmappedArray, unsigned int Flags): with nogil: err = cydriver.cuTexRefSetMipmappedArray(cyhTexRef, cyhMipmappedArray, Flags) return (_CUresult(err),) -{{endif}} - -{{if 'cuTexRefSetAddress_v2' in found_functions}} @cython.embedsignature(True) def cuTexRefSetAddress(hTexRef, dptr, size_t numbytes): @@ -50510,9 +48547,6 @@ def cuTexRefSetAddress(hTexRef, dptr, size_t numbytes): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, ByteOffset) -{{endif}} - -{{if 'cuTexRefSetAddress2D_v3' in found_functions}} @cython.embedsignature(True) def cuTexRefSetAddress2D(hTexRef, desc : Optional[CUDA_ARRAY_DESCRIPTOR], dptr, size_t Pitch): @@ -50591,9 +48625,6 @@ def cuTexRefSetAddress2D(hTexRef, desc : Optional[CUDA_ARRAY_DESCRIPTOR], dptr, with nogil: err = cydriver.cuTexRefSetAddress2D(cyhTexRef, cydesc_ptr, cydptr, Pitch) return (_CUresult(err),) -{{endif}} - -{{if 'cuTexRefSetFormat' in found_functions}} @cython.embedsignature(True) def cuTexRefSetFormat(hTexRef, fmt not None : CUarray_format, int NumPackedComponents): @@ -50637,9 +48668,6 @@ def cuTexRefSetFormat(hTexRef, fmt not None : CUarray_format, int NumPackedCompo with nogil: err = cydriver.cuTexRefSetFormat(cyhTexRef, cyfmt, NumPackedComponents) return (_CUresult(err),) -{{endif}} - -{{if 'cuTexRefSetAddressMode' in found_functions}} @cython.embedsignature(True) def cuTexRefSetAddressMode(hTexRef, int dim, am not None : CUaddress_mode): @@ -50690,9 +48718,6 @@ def cuTexRefSetAddressMode(hTexRef, int dim, am not None : CUaddress_mode): with nogil: err = cydriver.cuTexRefSetAddressMode(cyhTexRef, dim, cyam) return (_CUresult(err),) -{{endif}} - -{{if 'cuTexRefSetFilterMode' in found_functions}} @cython.embedsignature(True) def cuTexRefSetFilterMode(hTexRef, fm not None : CUfilter_mode): @@ -50737,9 +48762,6 @@ def cuTexRefSetFilterMode(hTexRef, fm not None : CUfilter_mode): with nogil: err = cydriver.cuTexRefSetFilterMode(cyhTexRef, cyfm) return (_CUresult(err),) -{{endif}} - -{{if 'cuTexRefSetMipmapFilterMode' in found_functions}} @cython.embedsignature(True) def cuTexRefSetMipmapFilterMode(hTexRef, fm not None : CUfilter_mode): @@ -50784,9 +48806,6 @@ def cuTexRefSetMipmapFilterMode(hTexRef, fm not None : CUfilter_mode): with nogil: err = cydriver.cuTexRefSetMipmapFilterMode(cyhTexRef, cyfm) return (_CUresult(err),) -{{endif}} - -{{if 'cuTexRefSetMipmapLevelBias' in found_functions}} @cython.embedsignature(True) def cuTexRefSetMipmapLevelBias(hTexRef, float bias): @@ -50828,9 +48847,6 @@ def cuTexRefSetMipmapLevelBias(hTexRef, float bias): with nogil: err = cydriver.cuTexRefSetMipmapLevelBias(cyhTexRef, bias) return (_CUresult(err),) -{{endif}} - -{{if 'cuTexRefSetMipmapLevelClamp' in found_functions}} @cython.embedsignature(True) def cuTexRefSetMipmapLevelClamp(hTexRef, float minMipmapLevelClamp, float maxMipmapLevelClamp): @@ -50874,9 +48890,6 @@ def cuTexRefSetMipmapLevelClamp(hTexRef, float minMipmapLevelClamp, float maxMip with nogil: err = cydriver.cuTexRefSetMipmapLevelClamp(cyhTexRef, minMipmapLevelClamp, maxMipmapLevelClamp) return (_CUresult(err),) -{{endif}} - -{{if 'cuTexRefSetMaxAnisotropy' in found_functions}} @cython.embedsignature(True) def cuTexRefSetMaxAnisotropy(hTexRef, unsigned int maxAniso): @@ -50917,9 +48930,6 @@ def cuTexRefSetMaxAnisotropy(hTexRef, unsigned int maxAniso): with nogil: err = cydriver.cuTexRefSetMaxAnisotropy(cyhTexRef, maxAniso) return (_CUresult(err),) -{{endif}} - -{{if 'cuTexRefSetBorderColor' in found_functions}} @cython.embedsignature(True) def cuTexRefSetBorderColor(hTexRef, float pBorderColor): @@ -50965,9 +48975,6 @@ def cuTexRefSetBorderColor(hTexRef, float pBorderColor): with nogil: err = cydriver.cuTexRefSetBorderColor(cyhTexRef, &pBorderColor) return (_CUresult(err),) -{{endif}} - -{{if 'cuTexRefSetFlags' in found_functions}} @cython.embedsignature(True) def cuTexRefSetFlags(hTexRef, unsigned int Flags): @@ -51023,9 +49030,6 @@ def cuTexRefSetFlags(hTexRef, unsigned int Flags): with nogil: err = cydriver.cuTexRefSetFlags(cyhTexRef, Flags) return (_CUresult(err),) -{{endif}} - -{{if 'cuTexRefGetAddress_v2' in found_functions}} @cython.embedsignature(True) def cuTexRefGetAddress(hTexRef): @@ -51067,9 +49071,6 @@ def cuTexRefGetAddress(hTexRef): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, pdptr) -{{endif}} - -{{if 'cuTexRefGetArray' in found_functions}} @cython.embedsignature(True) def cuTexRefGetArray(hTexRef): @@ -51111,9 +49112,6 @@ def cuTexRefGetArray(hTexRef): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, phArray) -{{endif}} - -{{if 'cuTexRefGetMipmappedArray' in found_functions}} @cython.embedsignature(True) def cuTexRefGetMipmappedArray(hTexRef): @@ -51156,9 +49154,6 @@ def cuTexRefGetMipmappedArray(hTexRef): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, phMipmappedArray) -{{endif}} - -{{if 'cuTexRefGetAddressMode' in found_functions}} @cython.embedsignature(True) def cuTexRefGetAddressMode(hTexRef, int dim): @@ -51202,9 +49197,6 @@ def cuTexRefGetAddressMode(hTexRef, int dim): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, CUaddress_mode(pam)) -{{endif}} - -{{if 'cuTexRefGetFilterMode' in found_functions}} @cython.embedsignature(True) def cuTexRefGetFilterMode(hTexRef): @@ -51245,9 +49237,6 @@ def cuTexRefGetFilterMode(hTexRef): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, CUfilter_mode(pfm)) -{{endif}} - -{{if 'cuTexRefGetFormat' in found_functions}} @cython.embedsignature(True) def cuTexRefGetFormat(hTexRef): @@ -51292,9 +49281,6 @@ def cuTexRefGetFormat(hTexRef): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None, None) return (_CUresult_SUCCESS, CUarray_format(pFormat), pNumChannels) -{{endif}} - -{{if 'cuTexRefGetMipmapFilterMode' in found_functions}} @cython.embedsignature(True) def cuTexRefGetMipmapFilterMode(hTexRef): @@ -51335,9 +49321,6 @@ def cuTexRefGetMipmapFilterMode(hTexRef): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, CUfilter_mode(pfm)) -{{endif}} - -{{if 'cuTexRefGetMipmapLevelBias' in found_functions}} @cython.embedsignature(True) def cuTexRefGetMipmapLevelBias(hTexRef): @@ -51379,9 +49362,6 @@ def cuTexRefGetMipmapLevelBias(hTexRef): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, pbias) -{{endif}} - -{{if 'cuTexRefGetMipmapLevelClamp' in found_functions}} @cython.embedsignature(True) def cuTexRefGetMipmapLevelClamp(hTexRef): @@ -51426,9 +49406,6 @@ def cuTexRefGetMipmapLevelClamp(hTexRef): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None, None) return (_CUresult_SUCCESS, pminMipmapLevelClamp, pmaxMipmapLevelClamp) -{{endif}} - -{{if 'cuTexRefGetMaxAnisotropy' in found_functions}} @cython.embedsignature(True) def cuTexRefGetMaxAnisotropy(hTexRef): @@ -51469,9 +49446,6 @@ def cuTexRefGetMaxAnisotropy(hTexRef): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, pmaxAniso) -{{endif}} - -{{if 'cuTexRefGetBorderColor' in found_functions}} @cython.embedsignature(True) def cuTexRefGetBorderColor(hTexRef): @@ -51515,9 +49489,6 @@ def cuTexRefGetBorderColor(hTexRef): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, pBorderColor) -{{endif}} - -{{if 'cuTexRefGetFlags' in found_functions}} @cython.embedsignature(True) def cuTexRefGetFlags(hTexRef): @@ -51557,9 +49528,6 @@ def cuTexRefGetFlags(hTexRef): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, pFlags) -{{endif}} - -{{if 'cuTexRefCreate' in found_functions}} @cython.embedsignature(True) def cuTexRefCreate(): @@ -51591,9 +49559,6 @@ def cuTexRefCreate(): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, pTexRef) -{{endif}} - -{{if 'cuTexRefDestroy' in found_functions}} @cython.embedsignature(True) def cuTexRefDestroy(hTexRef): @@ -51628,9 +49593,6 @@ def cuTexRefDestroy(hTexRef): with nogil: err = cydriver.cuTexRefDestroy(cyhTexRef) return (_CUresult(err),) -{{endif}} - -{{if 'cuSurfRefSetArray' in found_functions}} @cython.embedsignature(True) def cuSurfRefSetArray(hSurfRef, hArray, unsigned int Flags): @@ -51682,9 +49644,6 @@ def cuSurfRefSetArray(hSurfRef, hArray, unsigned int Flags): with nogil: err = cydriver.cuSurfRefSetArray(cyhSurfRef, cyhArray, Flags) return (_CUresult(err),) -{{endif}} - -{{if 'cuSurfRefGetArray' in found_functions}} @cython.embedsignature(True) def cuSurfRefGetArray(hSurfRef): @@ -51726,9 +49685,6 @@ def cuSurfRefGetArray(hSurfRef): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, phArray) -{{endif}} - -{{if 'cuTexObjectCreate' in found_functions}} @cython.embedsignature(True) def cuTexObjectCreate(pResDesc : Optional[CUDA_RESOURCE_DESC], pTexDesc : Optional[CUDA_TEXTURE_DESC], pResViewDesc : Optional[CUDA_RESOURCE_VIEW_DESC]): @@ -51965,9 +49921,6 @@ def cuTexObjectCreate(pResDesc : Optional[CUDA_RESOURCE_DESC], pTexDesc : Option if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, pTexObject) -{{endif}} - -{{if 'cuTexObjectDestroy' in found_functions}} @cython.embedsignature(True) def cuTexObjectDestroy(texObject): @@ -52000,9 +49953,6 @@ def cuTexObjectDestroy(texObject): with nogil: err = cydriver.cuTexObjectDestroy(cytexObject) return (_CUresult(err),) -{{endif}} - -{{if 'cuTexObjectGetResourceDesc' in found_functions}} @cython.embedsignature(True) def cuTexObjectGetResourceDesc(texObject): @@ -52041,9 +49991,6 @@ def cuTexObjectGetResourceDesc(texObject): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, pResDesc) -{{endif}} - -{{if 'cuTexObjectGetTextureDesc' in found_functions}} @cython.embedsignature(True) def cuTexObjectGetTextureDesc(texObject): @@ -52082,9 +50029,6 @@ def cuTexObjectGetTextureDesc(texObject): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, pTexDesc) -{{endif}} - -{{if 'cuTexObjectGetResourceViewDesc' in found_functions}} @cython.embedsignature(True) def cuTexObjectGetResourceViewDesc(texObject): @@ -52124,9 +50068,6 @@ def cuTexObjectGetResourceViewDesc(texObject): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, pResViewDesc) -{{endif}} - -{{if 'cuSurfObjectCreate' in found_functions}} @cython.embedsignature(True) def cuSurfObjectCreate(pResDesc : Optional[CUDA_RESOURCE_DESC]): @@ -52167,9 +50108,6 @@ def cuSurfObjectCreate(pResDesc : Optional[CUDA_RESOURCE_DESC]): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, pSurfObject) -{{endif}} - -{{if 'cuSurfObjectDestroy' in found_functions}} @cython.embedsignature(True) def cuSurfObjectDestroy(surfObject): @@ -52202,9 +50140,6 @@ def cuSurfObjectDestroy(surfObject): with nogil: err = cydriver.cuSurfObjectDestroy(cysurfObject) return (_CUresult(err),) -{{endif}} - -{{if 'cuSurfObjectGetResourceDesc' in found_functions}} @cython.embedsignature(True) def cuSurfObjectGetResourceDesc(surfObject): @@ -52243,9 +50178,6 @@ def cuSurfObjectGetResourceDesc(surfObject): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, pResDesc) -{{endif}} - -{{if 'cuTensorMapEncodeTiled' in found_functions}} @cython.embedsignature(True) def cuTensorMapEncodeTiled(tensorDataType not None : CUtensorMapDataType, tensorRank, globalAddress, globalDim : Optional[tuple[cuuint64_t] | list[cuuint64_t]], globalStrides : Optional[tuple[cuuint64_t] | list[cuuint64_t]], boxDim : Optional[tuple[cuuint32_t] | list[cuuint32_t]], elementStrides : Optional[tuple[cuuint32_t] | list[cuuint32_t]], interleave not None : CUtensorMapInterleave, swizzle not None : CUtensorMapSwizzle, l2Promotion not None : CUtensorMapL2promotion, oobFill not None : CUtensorMapFloatOOBfill): @@ -52551,9 +50483,6 @@ def cuTensorMapEncodeTiled(tensorDataType not None : CUtensorMapDataType, tensor if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, tensorMap) -{{endif}} - -{{if 'cuTensorMapEncodeIm2col' in found_functions}} @cython.embedsignature(True) def cuTensorMapEncodeIm2col(tensorDataType not None : CUtensorMapDataType, tensorRank, globalAddress, globalDim : Optional[tuple[cuuint64_t] | list[cuuint64_t]], globalStrides : Optional[tuple[cuuint64_t] | list[cuuint64_t]], pixelBoxLowerCorner : Optional[tuple[int] | list[int]], pixelBoxUpperCorner : Optional[tuple[int] | list[int]], channelsPerPixel, pixelsPerColumn, elementStrides : Optional[tuple[cuuint32_t] | list[cuuint32_t]], interleave not None : CUtensorMapInterleave, swizzle not None : CUtensorMapSwizzle, l2Promotion not None : CUtensorMapL2promotion, oobFill not None : CUtensorMapFloatOOBfill): @@ -52896,9 +50825,6 @@ def cuTensorMapEncodeIm2col(tensorDataType not None : CUtensorMapDataType, tenso if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, tensorMap) -{{endif}} - -{{if 'cuTensorMapEncodeIm2colWide' in found_functions}} @cython.embedsignature(True) def cuTensorMapEncodeIm2colWide(tensorDataType not None : CUtensorMapDataType, tensorRank, globalAddress, globalDim : Optional[tuple[cuuint64_t] | list[cuuint64_t]], globalStrides : Optional[tuple[cuuint64_t] | list[cuuint64_t]], int pixelBoxLowerCornerWidth, int pixelBoxUpperCornerWidth, channelsPerPixel, pixelsPerColumn, elementStrides : Optional[tuple[cuuint32_t] | list[cuuint32_t]], interleave not None : CUtensorMapInterleave, mode not None : CUtensorMapIm2ColWideMode, swizzle not None : CUtensorMapSwizzle, l2Promotion not None : CUtensorMapL2promotion, oobFill not None : CUtensorMapFloatOOBfill): @@ -53226,9 +51152,6 @@ def cuTensorMapEncodeIm2colWide(tensorDataType not None : CUtensorMapDataType, t if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, tensorMap) -{{endif}} - -{{if 'cuTensorMapReplaceAddress' in found_functions}} @cython.embedsignature(True) def cuTensorMapReplaceAddress(tensorMap : Optional[CUtensorMap], globalAddress): @@ -53265,9 +51188,6 @@ def cuTensorMapReplaceAddress(tensorMap : Optional[CUtensorMap], globalAddress): err = cydriver.cuTensorMapReplaceAddress(cytensorMap_ptr, cyglobalAddress) _helper_input_void_ptr_free(&cyglobalAddressHelper) return (_CUresult(err),) -{{endif}} - -{{if 'cuDeviceCanAccessPeer' in found_functions}} @cython.embedsignature(True) def cuDeviceCanAccessPeer(dev, peerDev): @@ -53321,9 +51241,6 @@ def cuDeviceCanAccessPeer(dev, peerDev): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, canAccessPeer) -{{endif}} - -{{if 'cuCtxEnablePeerAccess' in found_functions}} @cython.embedsignature(True) def cuCtxEnablePeerAccess(peerContext, unsigned int Flags): @@ -53391,9 +51308,6 @@ def cuCtxEnablePeerAccess(peerContext, unsigned int Flags): with nogil: err = cydriver.cuCtxEnablePeerAccess(cypeerContext, Flags) return (_CUresult(err),) -{{endif}} - -{{if 'cuCtxDisablePeerAccess' in found_functions}} @cython.embedsignature(True) def cuCtxDisablePeerAccess(peerContext): @@ -53431,9 +51345,6 @@ def cuCtxDisablePeerAccess(peerContext): with nogil: err = cydriver.cuCtxDisablePeerAccess(cypeerContext) return (_CUresult(err),) -{{endif}} - -{{if 'cuDeviceGetP2PAttribute' in found_functions}} @cython.embedsignature(True) def cuDeviceGetP2PAttribute(attrib not None : CUdevice_P2PAttribute, srcDevice, dstDevice): @@ -53510,9 +51421,6 @@ def cuDeviceGetP2PAttribute(attrib not None : CUdevice_P2PAttribute, srcDevice, if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, value) -{{endif}} - -{{if 'cuDeviceGetP2PAtomicCapabilities' in found_functions}} @cython.embedsignature(True) def cuDeviceGetP2PAtomicCapabilities(operations : Optional[tuple[CUatomicOperation] | list[CUatomicOperation]], unsigned int count, srcDevice, dstDevice): @@ -53593,9 +51501,6 @@ def cuDeviceGetP2PAtomicCapabilities(operations : Optional[tuple[CUatomicOperati if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, pycapabilities) -{{endif}} - -{{if 'cuGraphicsUnregisterResource' in found_functions}} @cython.embedsignature(True) def cuGraphicsUnregisterResource(resource): @@ -53632,9 +51537,6 @@ def cuGraphicsUnregisterResource(resource): with nogil: err = cydriver.cuGraphicsUnregisterResource(cyresource) return (_CUresult(err),) -{{endif}} - -{{if 'cuGraphicsSubResourceGetMappedArray' in found_functions}} @cython.embedsignature(True) def cuGraphicsSubResourceGetMappedArray(resource, unsigned int arrayIndex, unsigned int mipLevel): @@ -53690,9 +51592,6 @@ def cuGraphicsSubResourceGetMappedArray(resource, unsigned int arrayIndex, unsig if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, pArray) -{{endif}} - -{{if 'cuGraphicsResourceGetMappedMipmappedArray' in found_functions}} @cython.embedsignature(True) def cuGraphicsResourceGetMappedMipmappedArray(resource): @@ -53737,9 +51636,6 @@ def cuGraphicsResourceGetMappedMipmappedArray(resource): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, pMipmappedArray) -{{endif}} - -{{if 'cuGraphicsResourceGetMappedPointer_v2' in found_functions}} @cython.embedsignature(True) def cuGraphicsResourceGetMappedPointer(resource): @@ -53784,9 +51680,6 @@ def cuGraphicsResourceGetMappedPointer(resource): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None, None) return (_CUresult_SUCCESS, pDevPtr, pSize) -{{endif}} - -{{if 'cuGraphicsResourceSetMapFlags_v2' in found_functions}} @cython.embedsignature(True) def cuGraphicsResourceSetMapFlags(resource, unsigned int flags): @@ -53843,9 +51736,6 @@ def cuGraphicsResourceSetMapFlags(resource, unsigned int flags): with nogil: err = cydriver.cuGraphicsResourceSetMapFlags(cyresource, flags) return (_CUresult(err),) -{{endif}} - -{{if 'cuGraphicsMapResources' in found_functions}} @cython.embedsignature(True) def cuGraphicsMapResources(unsigned int count, resources, hStream): @@ -53906,9 +51796,6 @@ def cuGraphicsMapResources(unsigned int count, resources, hStream): with nogil: err = cydriver.cuGraphicsMapResources(count, cyresources, cyhStream) return (_CUresult(err),) -{{endif}} - -{{if 'cuGraphicsUnmapResources' in found_functions}} @cython.embedsignature(True) def cuGraphicsUnmapResources(unsigned int count, resources, hStream): @@ -53967,9 +51854,6 @@ def cuGraphicsUnmapResources(unsigned int count, resources, hStream): with nogil: err = cydriver.cuGraphicsUnmapResources(count, cyresources, cyhStream) return (_CUresult(err),) -{{endif}} - -{{if 'cuGetProcAddress_v2' in found_functions}} @cython.embedsignature(True) def cuGetProcAddress(char* symbol, int cudaVersion, flags): @@ -54073,9 +51957,6 @@ def cuGetProcAddress(char* symbol, int cudaVersion, flags): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None, None) return (_CUresult_SUCCESS, pfn, CUdriverProcAddressQueryResult(symbolStatus)) -{{endif}} - -{{if 'cuCoredumpGetAttribute' in found_functions}} @cython.embedsignature(True) def cuCoredumpGetAttribute(attrib not None : CUcoredumpSettings): @@ -54193,9 +52074,6 @@ def cuCoredumpGetAttribute(attrib not None : CUcoredumpSettings): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, cyvalue.pyObj()) -{{endif}} - -{{if 'cuCoredumpGetAttributeGlobal' in found_functions}} @cython.embedsignature(True) def cuCoredumpGetAttributeGlobal(attrib not None : CUcoredumpSettings): @@ -54309,9 +52187,6 @@ def cuCoredumpGetAttributeGlobal(attrib not None : CUcoredumpSettings): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, cyvalue.pyObj()) -{{endif}} - -{{if 'cuCoredumpSetAttribute' in found_functions}} @cython.embedsignature(True) def cuCoredumpSetAttribute(attrib not None : CUcoredumpSettings, value): @@ -54430,9 +52305,6 @@ def cuCoredumpSetAttribute(attrib not None : CUcoredumpSettings, value): with nogil: err = cydriver.cuCoredumpSetAttribute(cyattrib, cyvalue_ptr, &size) return (_CUresult(err),) -{{endif}} - -{{if 'cuCoredumpSetAttributeGlobal' in found_functions}} @cython.embedsignature(True) def cuCoredumpSetAttributeGlobal(attrib not None : CUcoredumpSettings, value): @@ -54556,9 +52428,6 @@ def cuCoredumpSetAttributeGlobal(attrib not None : CUcoredumpSettings, value): with nogil: err = cydriver.cuCoredumpSetAttributeGlobal(cyattrib, cyvalue_ptr, &size) return (_CUresult(err),) -{{endif}} - -{{if 'cuCoredumpRegisterStartCallback' in found_functions}} @cython.embedsignature(True) def cuCoredumpRegisterStartCallback(callback, userData): @@ -54609,9 +52478,6 @@ def cuCoredumpRegisterStartCallback(callback, userData): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, callbackOut) -{{endif}} - -{{if 'cuCoredumpRegisterCompleteCallback' in found_functions}} @cython.embedsignature(True) def cuCoredumpRegisterCompleteCallback(callback, userData): @@ -54662,9 +52528,6 @@ def cuCoredumpRegisterCompleteCallback(callback, userData): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, callbackOut) -{{endif}} - -{{if 'cuCoredumpDeregisterStartCallback' in found_functions}} @cython.embedsignature(True) def cuCoredumpDeregisterStartCallback(callback): @@ -54703,9 +52566,6 @@ def cuCoredumpDeregisterStartCallback(callback): with nogil: err = cydriver.cuCoredumpDeregisterStartCallback(cycallback) return (_CUresult(err),) -{{endif}} - -{{if 'cuCoredumpDeregisterCompleteCallback' in found_functions}} @cython.embedsignature(True) def cuCoredumpDeregisterCompleteCallback(callback): @@ -54744,13 +52604,10 @@ def cuCoredumpDeregisterCompleteCallback(callback): with nogil: err = cydriver.cuCoredumpDeregisterCompleteCallback(cycallback) return (_CUresult(err),) -{{endif}} - -{{if 'cuGetExportTable' in found_functions}} @cython.embedsignature(True) def cuGetExportTable(pExportTableId : Optional[CUuuid]): - """ + """ Parameters ---------- @@ -54771,9 +52628,6 @@ def cuGetExportTable(pExportTableId : Optional[CUuuid]): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, ppExportTable) -{{endif}} - -{{if 'cuGreenCtxCreate' in found_functions}} @cython.embedsignature(True) def cuGreenCtxCreate(desc, dev, unsigned int flags): @@ -54847,9 +52701,6 @@ def cuGreenCtxCreate(desc, dev, unsigned int flags): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, phCtx) -{{endif}} - -{{if 'cuGreenCtxDestroy' in found_functions}} @cython.embedsignature(True) def cuGreenCtxDestroy(hCtx): @@ -54897,9 +52748,6 @@ def cuGreenCtxDestroy(hCtx): with nogil: err = cydriver.cuGreenCtxDestroy(cyhCtx) return (_CUresult(err),) -{{endif}} - -{{if 'cuCtxFromGreenCtx' in found_functions}} @cython.embedsignature(True) def cuCtxFromGreenCtx(hCtx): @@ -54946,9 +52794,6 @@ def cuCtxFromGreenCtx(hCtx): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, pContext) -{{endif}} - -{{if 'cuDeviceGetDevResource' in found_functions}} @cython.embedsignature(True) def cuDeviceGetDevResource(device, typename not None : CUdevResourceType): @@ -54993,9 +52838,6 @@ def cuDeviceGetDevResource(device, typename not None : CUdevResourceType): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, resource) -{{endif}} - -{{if 'cuCtxGetDevResource' in found_functions}} @cython.embedsignature(True) def cuCtxGetDevResource(hCtx, typename not None : CUdevResourceType): @@ -55037,9 +52879,6 @@ def cuCtxGetDevResource(hCtx, typename not None : CUdevResourceType): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, resource) -{{endif}} - -{{if 'cuGreenCtxGetDevResource' in found_functions}} @cython.embedsignature(True) def cuGreenCtxGetDevResource(hCtx, typename not None : CUdevResourceType): @@ -55081,9 +52920,6 @@ def cuGreenCtxGetDevResource(hCtx, typename not None : CUdevResourceType): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, resource) -{{endif}} - -{{if 'cuDevSmResourceSplitByCount' in found_functions}} @cython.embedsignature(True) def cuDevSmResourceSplitByCount(unsigned int nbGroups, input_ : Optional[CUdevResource], unsigned int flags, unsigned int minCount): @@ -55205,9 +53041,6 @@ def cuDevSmResourceSplitByCount(unsigned int nbGroups, input_ : Optional[CUdevRe if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None, None, None) return (_CUresult_SUCCESS, pyresult, cynbGroups, remainder) -{{endif}} - -{{if 'cuDevSmResourceSplit' in found_functions}} @cython.embedsignature(True) def cuDevSmResourceSplit(unsigned int nbGroups, input_ : Optional[CUdevResource], unsigned int flags, groupParams : Optional[tuple[CU_DEV_SM_RESOURCE_GROUP_PARAMS] | list[CU_DEV_SM_RESOURCE_GROUP_PARAMS]]): @@ -55379,9 +53212,6 @@ def cuDevSmResourceSplit(unsigned int nbGroups, input_ : Optional[CUdevResource] if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None, None) return (_CUresult_SUCCESS, pyresult, remainder) -{{endif}} - -{{if 'cuDevResourceGenerateDesc' in found_functions}} @cython.embedsignature(True) def cuDevResourceGenerateDesc(resources : Optional[tuple[CUdevResource] | list[CUdevResource]], unsigned int nbResources): @@ -55447,9 +53277,6 @@ def cuDevResourceGenerateDesc(resources : Optional[tuple[CUdevResource] | list[C if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, phDesc) -{{endif}} - -{{if 'cuGreenCtxRecordEvent' in found_functions}} @cython.embedsignature(True) def cuGreenCtxRecordEvent(hCtx, hEvent): @@ -55502,9 +53329,6 @@ def cuGreenCtxRecordEvent(hCtx, hEvent): with nogil: err = cydriver.cuGreenCtxRecordEvent(cyhCtx, cyhEvent) return (_CUresult(err),) -{{endif}} - -{{if 'cuGreenCtxWaitEvent' in found_functions}} @cython.embedsignature(True) def cuGreenCtxWaitEvent(hCtx, hEvent): @@ -55557,9 +53381,6 @@ def cuGreenCtxWaitEvent(hCtx, hEvent): with nogil: err = cydriver.cuGreenCtxWaitEvent(cyhCtx, cyhEvent) return (_CUresult(err),) -{{endif}} - -{{if 'cuStreamGetGreenCtx' in found_functions}} @cython.embedsignature(True) def cuStreamGetGreenCtx(hStream): @@ -55617,9 +53438,6 @@ def cuStreamGetGreenCtx(hStream): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, phCtx) -{{endif}} - -{{if 'cuGreenCtxStreamCreate' in found_functions}} @cython.embedsignature(True) def cuGreenCtxStreamCreate(greenCtx, unsigned int flags, int priority): @@ -55692,9 +53510,6 @@ def cuGreenCtxStreamCreate(greenCtx, unsigned int flags, int priority): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, phStream) -{{endif}} - -{{if 'cuGreenCtxGetId' in found_functions}} @cython.embedsignature(True) def cuGreenCtxGetId(greenCtx): @@ -55736,9 +53551,6 @@ def cuGreenCtxGetId(greenCtx): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, greenCtxId) -{{endif}} - -{{if 'cuStreamGetDevResource' in found_functions}} @cython.embedsignature(True) def cuStreamGetDevResource(hStream, typename not None : CUdevResourceType): @@ -55784,9 +53596,6 @@ def cuStreamGetDevResource(hStream, typename not None : CUdevResourceType): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, resource) -{{endif}} - -{{if 'cuLogsRegisterCallback' in found_functions}} ctypedef struct cuLogsCallbackData_st: cydriver.CUlogsCallback callback @@ -55849,9 +53658,6 @@ def cuLogsRegisterCallback(callbackFunc, userData): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, callback_out) -{{endif}} - -{{if 'cuLogsUnregisterCallback' in found_functions}} @cython.embedsignature(True) def cuLogsUnregisterCallback(callback): @@ -55881,9 +53687,6 @@ def cuLogsUnregisterCallback(callback): free(m_global._allocated[pcallback]) m_global._allocated.erase(pcallback) return (_CUresult(err),) -{{endif}} - -{{if 'cuLogsCurrent' in found_functions}} @cython.embedsignature(True) def cuLogsCurrent(unsigned int flags): @@ -55907,9 +53710,6 @@ def cuLogsCurrent(unsigned int flags): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, iterator_out) -{{endif}} - -{{if 'cuLogsDumpToFile' in found_functions}} @cython.embedsignature(True) def cuLogsDumpToFile(iterator : Optional[CUlogIterator], char* pathToFile, unsigned int flags): @@ -55951,9 +53751,6 @@ def cuLogsDumpToFile(iterator : Optional[CUlogIterator], char* pathToFile, unsig if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, iterator) -{{endif}} - -{{if 'cuLogsDumpToMemory' in found_functions}} @cython.embedsignature(True) def cuLogsDumpToMemory(iterator : Optional[CUlogIterator], char* buffer, size_t size, unsigned int flags): @@ -56009,9 +53806,6 @@ def cuLogsDumpToMemory(iterator : Optional[CUlogIterator], char* buffer, size_t if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None, None) return (_CUresult_SUCCESS, iterator, size) -{{endif}} - -{{if 'cuCheckpointProcessGetRestoreThreadId' in found_functions}} @cython.embedsignature(True) def cuCheckpointProcessGetRestoreThreadId(int pid): @@ -56038,9 +53832,6 @@ def cuCheckpointProcessGetRestoreThreadId(int pid): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, tid) -{{endif}} - -{{if 'cuCheckpointProcessGetState' in found_functions}} @cython.embedsignature(True) def cuCheckpointProcessGetState(int pid): @@ -56067,9 +53858,6 @@ def cuCheckpointProcessGetState(int pid): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, CUprocessState(state)) -{{endif}} - -{{if 'cuCheckpointProcessLock' in found_functions}} @cython.embedsignature(True) def cuCheckpointProcessLock(int pid, args : Optional[CUcheckpointLockArgs]): @@ -56099,9 +53887,6 @@ def cuCheckpointProcessLock(int pid, args : Optional[CUcheckpointLockArgs]): with nogil: err = cydriver.cuCheckpointProcessLock(pid, cyargs_ptr) return (_CUresult(err),) -{{endif}} - -{{if 'cuCheckpointProcessCheckpoint' in found_functions}} @cython.embedsignature(True) def cuCheckpointProcessCheckpoint(int pid, args : Optional[CUcheckpointCheckpointArgs]): @@ -56130,9 +53915,6 @@ def cuCheckpointProcessCheckpoint(int pid, args : Optional[CUcheckpointCheckpoin with nogil: err = cydriver.cuCheckpointProcessCheckpoint(pid, cyargs_ptr) return (_CUresult(err),) -{{endif}} - -{{if 'cuCheckpointProcessRestore' in found_functions}} @cython.embedsignature(True) def cuCheckpointProcessRestore(int pid, args : Optional[CUcheckpointRestoreArgs]): @@ -56171,9 +53953,6 @@ def cuCheckpointProcessRestore(int pid, args : Optional[CUcheckpointRestoreArgs] with nogil: err = cydriver.cuCheckpointProcessRestore(pid, cyargs_ptr) return (_CUresult(err),) -{{endif}} - -{{if 'cuCheckpointProcessUnlock' in found_functions}} @cython.embedsignature(True) def cuCheckpointProcessUnlock(int pid, args : Optional[CUcheckpointUnlockArgs]): @@ -56200,9 +53979,6 @@ def cuCheckpointProcessUnlock(int pid, args : Optional[CUcheckpointUnlockArgs]): with nogil: err = cydriver.cuCheckpointProcessUnlock(pid, cyargs_ptr) return (_CUresult(err),) -{{endif}} - -{{if 'cuProfilerStart' in found_functions}} @cython.embedsignature(True) def cuProfilerStart(): @@ -56228,9 +54004,6 @@ def cuProfilerStart(): with nogil: err = cydriver.cuProfilerStart() return (_CUresult(err),) -{{endif}} - -{{if 'cuProfilerStop' in found_functions}} @cython.embedsignature(True) def cuProfilerStop(): @@ -56256,9 +54029,6 @@ def cuProfilerStop(): with nogil: err = cydriver.cuProfilerStop() return (_CUresult(err),) -{{endif}} - -{{if True}} @cython.embedsignature(True) def cuGraphicsEGLRegisterImage(image, unsigned int flags): @@ -56332,9 +54102,6 @@ def cuGraphicsEGLRegisterImage(image, unsigned int flags): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, pCudaResource) -{{endif}} - -{{if True}} @cython.embedsignature(True) def cuEGLStreamConsumerConnect(stream): @@ -56375,9 +54142,6 @@ def cuEGLStreamConsumerConnect(stream): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, conn) -{{endif}} - -{{if True}} @cython.embedsignature(True) def cuEGLStreamConsumerConnectWithFlags(stream, unsigned int flags): @@ -56422,9 +54186,6 @@ def cuEGLStreamConsumerConnectWithFlags(stream, unsigned int flags): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, conn) -{{endif}} - -{{if True}} @cython.embedsignature(True) def cuEGLStreamConsumerDisconnect(conn): @@ -56459,9 +54220,6 @@ def cuEGLStreamConsumerDisconnect(conn): with nogil: err = cydriver.cuEGLStreamConsumerDisconnect(cyconn) return (_CUresult(err),) -{{endif}} - -{{if True}} @cython.embedsignature(True) def cuEGLStreamConsumerAcquireFrame(conn, pCudaResource, pStream, unsigned int timeout): @@ -56531,9 +54289,6 @@ def cuEGLStreamConsumerAcquireFrame(conn, pCudaResource, pStream, unsigned int t with nogil: err = cydriver.cuEGLStreamConsumerAcquireFrame(cyconn, cypCudaResource, cypStream, timeout) return (_CUresult(err),) -{{endif}} - -{{if True}} @cython.embedsignature(True) def cuEGLStreamConsumerReleaseFrame(conn, pCudaResource, pStream): @@ -56594,9 +54349,6 @@ def cuEGLStreamConsumerReleaseFrame(conn, pCudaResource, pStream): with nogil: err = cydriver.cuEGLStreamConsumerReleaseFrame(cyconn, cypCudaResource, cypStream) return (_CUresult(err),) -{{endif}} - -{{if True}} @cython.embedsignature(True) def cuEGLStreamProducerConnect(stream, width, height): @@ -56657,9 +54409,6 @@ def cuEGLStreamProducerConnect(stream, width, height): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, conn) -{{endif}} - -{{if True}} @cython.embedsignature(True) def cuEGLStreamProducerDisconnect(conn): @@ -56694,9 +54443,6 @@ def cuEGLStreamProducerDisconnect(conn): with nogil: err = cydriver.cuEGLStreamProducerDisconnect(cyconn) return (_CUresult(err),) -{{endif}} - -{{if True}} @cython.embedsignature(True) def cuEGLStreamProducerPresentFrame(conn, eglframe not None : CUeglFrame, pStream): @@ -56764,9 +54510,6 @@ def cuEGLStreamProducerPresentFrame(conn, eglframe not None : CUeglFrame, pStrea with nogil: err = cydriver.cuEGLStreamProducerPresentFrame(cyconn, eglframe._pvt_ptr[0], cypStream) return (_CUresult(err),) -{{endif}} - -{{if True}} @cython.embedsignature(True) def cuEGLStreamProducerReturnFrame(conn, eglframe : Optional[CUeglFrame], pStream): @@ -56819,9 +54562,6 @@ def cuEGLStreamProducerReturnFrame(conn, eglframe : Optional[CUeglFrame], pStrea with nogil: err = cydriver.cuEGLStreamProducerReturnFrame(cyconn, cyeglframe_ptr, cypStream) return (_CUresult(err),) -{{endif}} - -{{if True}} @cython.embedsignature(True) def cuGraphicsResourceGetMappedEglFrame(resource, unsigned int index, unsigned int mipLevel): @@ -56868,9 +54608,6 @@ def cuGraphicsResourceGetMappedEglFrame(resource, unsigned int index, unsigned i if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, eglFrame) -{{endif}} - -{{if True}} @cython.embedsignature(True) def cuEventCreateFromEGLSync(eglSync, unsigned int flags): @@ -56927,9 +54664,6 @@ def cuEventCreateFromEGLSync(eglSync, unsigned int flags): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, phEvent) -{{endif}} - -{{if True}} @cython.embedsignature(True) def cuGraphicsGLRegisterBuffer(buffer, unsigned int Flags): @@ -56984,9 +54718,6 @@ def cuGraphicsGLRegisterBuffer(buffer, unsigned int Flags): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, pCudaResource) -{{endif}} - -{{if True}} @cython.embedsignature(True) def cuGraphicsGLRegisterImage(image, target, unsigned int Flags): @@ -57084,9 +54815,6 @@ def cuGraphicsGLRegisterImage(image, target, unsigned int Flags): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, pCudaResource) -{{endif}} - -{{if True}} @cython.embedsignature(True) def cuGLGetDevices(unsigned int cudaDeviceCount, deviceList not None : CUGLDeviceList): @@ -57153,9 +54881,6 @@ def cuGLGetDevices(unsigned int cudaDeviceCount, deviceList not None : CUGLDevic if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None, None) return (_CUresult_SUCCESS, pCudaDeviceCount, pypCudaDevices) -{{endif}} - -{{if True}} @cython.embedsignature(True) def cuVDPAUGetDevice(vdpDevice, vdpGetProcAddress): @@ -57206,9 +54931,6 @@ def cuVDPAUGetDevice(vdpDevice, vdpGetProcAddress): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, pDevice) -{{endif}} - -{{if True}} @cython.embedsignature(True) def cuVDPAUCtxCreate(unsigned int flags, device, vdpDevice, vdpGetProcAddress): @@ -57274,9 +54996,6 @@ def cuVDPAUCtxCreate(unsigned int flags, device, vdpDevice, vdpGetProcAddress): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, pCtx) -{{endif}} - -{{if True}} @cython.embedsignature(True) def cuGraphicsVDPAURegisterVideoSurface(vdpSurface, unsigned int flags): @@ -57337,9 +55056,6 @@ def cuGraphicsVDPAURegisterVideoSurface(vdpSurface, unsigned int flags): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, pCudaResource) -{{endif}} - -{{if True}} @cython.embedsignature(True) def cuGraphicsVDPAURegisterOutputSurface(vdpSurface, unsigned int flags): @@ -57400,8 +55116,6 @@ def cuGraphicsVDPAURegisterOutputSurface(vdpSurface, unsigned int flags): if err != cydriver.CUDA_SUCCESS: return (_CUresult(err), None) return (_CUresult_SUCCESS, pCudaResource) -{{endif}} - cdef class cudaBindingsDriverGlobal: cdef map[void_ptr, void*] _allocated @@ -57413,7 +55127,6 @@ cdef class cudaBindingsDriverGlobal: cdef cudaBindingsDriverGlobal m_global = cudaBindingsDriverGlobal() - @cython.embedsignature(True) def sizeof(objType): """ Returns the size of provided CUDA Python structure in bytes @@ -57428,976 +55141,975 @@ def sizeof(objType): lowered_name : int The size of `objType` in bytes """ - {{if 'cuuint32_t' in found_types}} + if objType == cuuint32_t: - return sizeof(cydriver.cuuint32_t){{endif}} - {{if 'cuuint64_t' in found_types}} + return sizeof(cydriver.cuuint32_t) + if objType == cuuint64_t: - return sizeof(cydriver.cuuint64_t){{endif}} - {{if 'CUdeviceptr_v2' in found_types}} + return sizeof(cydriver.cuuint64_t) + if objType == CUdeviceptr_v2: - return sizeof(cydriver.CUdeviceptr_v2){{endif}} - {{if 'CUdeviceptr' in found_types}} + return sizeof(cydriver.CUdeviceptr_v2) + if objType == CUdeviceptr: - return sizeof(cydriver.CUdeviceptr){{endif}} - {{if 'CUdevice_v1' in found_types}} + return sizeof(cydriver.CUdeviceptr) + if objType == CUdevice_v1: - return sizeof(cydriver.CUdevice_v1){{endif}} - {{if 'CUdevice' in found_types}} + return sizeof(cydriver.CUdevice_v1) + if objType == CUdevice: - return sizeof(cydriver.CUdevice){{endif}} - {{if 'CUcontext' in found_types}} + return sizeof(cydriver.CUdevice) + if objType == CUcontext: - return sizeof(cydriver.CUcontext){{endif}} - {{if 'CUmodule' in found_types}} + return sizeof(cydriver.CUcontext) + if objType == CUmodule: - return sizeof(cydriver.CUmodule){{endif}} - {{if 'CUfunction' in found_types}} + return sizeof(cydriver.CUmodule) + if objType == CUfunction: - return sizeof(cydriver.CUfunction){{endif}} - {{if 'CUlibrary' in found_types}} + return sizeof(cydriver.CUfunction) + if objType == CUlibrary: - return sizeof(cydriver.CUlibrary){{endif}} - {{if 'CUkernel' in found_types}} + return sizeof(cydriver.CUlibrary) + if objType == CUkernel: - return sizeof(cydriver.CUkernel){{endif}} - {{if 'CUarray' in found_types}} + return sizeof(cydriver.CUkernel) + if objType == CUarray: - return sizeof(cydriver.CUarray){{endif}} - {{if 'CUmipmappedArray' in found_types}} + return sizeof(cydriver.CUarray) + if objType == CUmipmappedArray: - return sizeof(cydriver.CUmipmappedArray){{endif}} - {{if 'CUtexref' in found_types}} + return sizeof(cydriver.CUmipmappedArray) + if objType == CUtexref: - return sizeof(cydriver.CUtexref){{endif}} - {{if 'CUsurfref' in found_types}} + return sizeof(cydriver.CUtexref) + if objType == CUsurfref: - return sizeof(cydriver.CUsurfref){{endif}} - {{if 'CUevent' in found_types}} + return sizeof(cydriver.CUsurfref) + if objType == CUevent: - return sizeof(cydriver.CUevent){{endif}} - {{if 'CUstream' in found_types}} + return sizeof(cydriver.CUevent) + if objType == CUstream: - return sizeof(cydriver.CUstream){{endif}} - {{if 'CUgraphicsResource' in found_types}} + return sizeof(cydriver.CUstream) + if objType == CUgraphicsResource: - return sizeof(cydriver.CUgraphicsResource){{endif}} - {{if 'CUtexObject_v1' in found_types}} + return sizeof(cydriver.CUgraphicsResource) + if objType == CUtexObject_v1: - return sizeof(cydriver.CUtexObject_v1){{endif}} - {{if 'CUtexObject' in found_types}} + return sizeof(cydriver.CUtexObject_v1) + if objType == CUtexObject: - return sizeof(cydriver.CUtexObject){{endif}} - {{if 'CUsurfObject_v1' in found_types}} + return sizeof(cydriver.CUtexObject) + if objType == CUsurfObject_v1: - return sizeof(cydriver.CUsurfObject_v1){{endif}} - {{if 'CUsurfObject' in found_types}} + return sizeof(cydriver.CUsurfObject_v1) + if objType == CUsurfObject: - return sizeof(cydriver.CUsurfObject){{endif}} - {{if 'CUexternalMemory' in found_types}} + return sizeof(cydriver.CUsurfObject) + if objType == CUexternalMemory: - return sizeof(cydriver.CUexternalMemory){{endif}} - {{if 'CUexternalSemaphore' in found_types}} + return sizeof(cydriver.CUexternalMemory) + if objType == CUexternalSemaphore: - return sizeof(cydriver.CUexternalSemaphore){{endif}} - {{if 'CUgraph' in found_types}} + return sizeof(cydriver.CUexternalSemaphore) + if objType == CUgraph: - return sizeof(cydriver.CUgraph){{endif}} - {{if 'CUgraphNode' in found_types}} + return sizeof(cydriver.CUgraph) + if objType == CUgraphNode: - return sizeof(cydriver.CUgraphNode){{endif}} - {{if 'CUgraphExec' in found_types}} + return sizeof(cydriver.CUgraphNode) + if objType == CUgraphExec: - return sizeof(cydriver.CUgraphExec){{endif}} - {{if 'CUmemoryPool' in found_types}} + return sizeof(cydriver.CUgraphExec) + if objType == CUmemoryPool: - return sizeof(cydriver.CUmemoryPool){{endif}} - {{if 'CUuserObject' in found_types}} + return sizeof(cydriver.CUmemoryPool) + if objType == CUuserObject: - return sizeof(cydriver.CUuserObject){{endif}} - {{if 'CUgraphConditionalHandle' in found_types}} + return sizeof(cydriver.CUuserObject) + if objType == CUgraphConditionalHandle: - return sizeof(cydriver.CUgraphConditionalHandle){{endif}} - {{if 'CUgraphDeviceNode' in found_types}} + return sizeof(cydriver.CUgraphConditionalHandle) + if objType == CUgraphDeviceNode: - return sizeof(cydriver.CUgraphDeviceNode){{endif}} - {{if 'CUasyncCallbackHandle' in found_types}} + return sizeof(cydriver.CUgraphDeviceNode) + if objType == CUasyncCallbackHandle: - return sizeof(cydriver.CUasyncCallbackHandle){{endif}} - {{if 'CUgreenCtx' in found_types}} + return sizeof(cydriver.CUasyncCallbackHandle) + if objType == CUgreenCtx: - return sizeof(cydriver.CUgreenCtx){{endif}} - {{if 'CUuuid_st' in found_struct}} + return sizeof(cydriver.CUgreenCtx) + if objType == CUuuid_st: - return sizeof(cydriver.CUuuid_st){{endif}} - {{if 'CUuuid' in found_types}} + return sizeof(cydriver.CUuuid_st) + if objType == CUuuid: - return sizeof(cydriver.CUuuid){{endif}} - {{if 'CUmemFabricHandle_st' in found_struct}} + return sizeof(cydriver.CUuuid) + if objType == CUmemFabricHandle_st: - return sizeof(cydriver.CUmemFabricHandle_st){{endif}} - {{if 'CUmemFabricHandle_v1' in found_types}} + return sizeof(cydriver.CUmemFabricHandle_st) + if objType == CUmemFabricHandle_v1: - return sizeof(cydriver.CUmemFabricHandle_v1){{endif}} - {{if 'CUmemFabricHandle' in found_types}} + return sizeof(cydriver.CUmemFabricHandle_v1) + if objType == CUmemFabricHandle: - return sizeof(cydriver.CUmemFabricHandle){{endif}} - {{if 'CUipcEventHandle_st' in found_struct}} + return sizeof(cydriver.CUmemFabricHandle) + if objType == CUipcEventHandle_st: - return sizeof(cydriver.CUipcEventHandle_st){{endif}} - {{if 'CUipcEventHandle_v1' in found_types}} + return sizeof(cydriver.CUipcEventHandle_st) + if objType == CUipcEventHandle_v1: - return sizeof(cydriver.CUipcEventHandle_v1){{endif}} - {{if 'CUipcEventHandle' in found_types}} + return sizeof(cydriver.CUipcEventHandle_v1) + if objType == CUipcEventHandle: - return sizeof(cydriver.CUipcEventHandle){{endif}} - {{if 'CUipcMemHandle_st' in found_struct}} + return sizeof(cydriver.CUipcEventHandle) + if objType == CUipcMemHandle_st: - return sizeof(cydriver.CUipcMemHandle_st){{endif}} - {{if 'CUipcMemHandle_v1' in found_types}} + return sizeof(cydriver.CUipcMemHandle_st) + if objType == CUipcMemHandle_v1: - return sizeof(cydriver.CUipcMemHandle_v1){{endif}} - {{if 'CUipcMemHandle' in found_types}} + return sizeof(cydriver.CUipcMemHandle_v1) + if objType == CUipcMemHandle: - return sizeof(cydriver.CUipcMemHandle){{endif}} - {{if 'CUstreamBatchMemOpParams_union' in found_struct}} + return sizeof(cydriver.CUipcMemHandle) + if objType == CUstreamBatchMemOpParams_union: - return sizeof(cydriver.CUstreamBatchMemOpParams_union){{endif}} - {{if 'CUstreamBatchMemOpParams_v1' in found_types}} + return sizeof(cydriver.CUstreamBatchMemOpParams_union) + if objType == CUstreamBatchMemOpParams_v1: - return sizeof(cydriver.CUstreamBatchMemOpParams_v1){{endif}} - {{if 'CUstreamBatchMemOpParams' in found_types}} + return sizeof(cydriver.CUstreamBatchMemOpParams_v1) + if objType == CUstreamBatchMemOpParams: - return sizeof(cydriver.CUstreamBatchMemOpParams){{endif}} - {{if 'CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st' in found_struct}} + return sizeof(cydriver.CUstreamBatchMemOpParams) + if objType == CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st: - return sizeof(cydriver.CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st){{endif}} - {{if 'CUDA_BATCH_MEM_OP_NODE_PARAMS_v1' in found_types}} + return sizeof(cydriver.CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st) + if objType == CUDA_BATCH_MEM_OP_NODE_PARAMS_v1: - return sizeof(cydriver.CUDA_BATCH_MEM_OP_NODE_PARAMS_v1){{endif}} - {{if 'CUDA_BATCH_MEM_OP_NODE_PARAMS' in found_types}} + return sizeof(cydriver.CUDA_BATCH_MEM_OP_NODE_PARAMS_v1) + if objType == CUDA_BATCH_MEM_OP_NODE_PARAMS: - return sizeof(cydriver.CUDA_BATCH_MEM_OP_NODE_PARAMS){{endif}} - {{if 'CUDA_BATCH_MEM_OP_NODE_PARAMS_v2_st' in found_struct}} + return sizeof(cydriver.CUDA_BATCH_MEM_OP_NODE_PARAMS) + if objType == CUDA_BATCH_MEM_OP_NODE_PARAMS_v2_st: - return sizeof(cydriver.CUDA_BATCH_MEM_OP_NODE_PARAMS_v2_st){{endif}} - {{if 'CUDA_BATCH_MEM_OP_NODE_PARAMS_v2' in found_types}} + return sizeof(cydriver.CUDA_BATCH_MEM_OP_NODE_PARAMS_v2_st) + if objType == CUDA_BATCH_MEM_OP_NODE_PARAMS_v2: - return sizeof(cydriver.CUDA_BATCH_MEM_OP_NODE_PARAMS_v2){{endif}} - {{if 'CUasyncNotificationInfo_st' in found_struct}} + return sizeof(cydriver.CUDA_BATCH_MEM_OP_NODE_PARAMS_v2) + if objType == CUasyncNotificationInfo_st: - return sizeof(cydriver.CUasyncNotificationInfo_st){{endif}} - {{if 'CUasyncNotificationInfo' in found_types}} + return sizeof(cydriver.CUasyncNotificationInfo_st) + if objType == CUasyncNotificationInfo: - return sizeof(cydriver.CUasyncNotificationInfo){{endif}} - {{if 'CUasyncCallback' in found_types}} + return sizeof(cydriver.CUasyncNotificationInfo) + if objType == CUasyncCallback: - return sizeof(cydriver.CUasyncCallback){{endif}} - {{if 'CUdevprop_st' in found_struct}} + return sizeof(cydriver.CUasyncCallback) + if objType == CUdevprop_st: - return sizeof(cydriver.CUdevprop_st){{endif}} - {{if 'CUdevprop_v1' in found_types}} + return sizeof(cydriver.CUdevprop_st) + if objType == CUdevprop_v1: - return sizeof(cydriver.CUdevprop_v1){{endif}} - {{if 'CUdevprop' in found_types}} + return sizeof(cydriver.CUdevprop_v1) + if objType == CUdevprop: - return sizeof(cydriver.CUdevprop){{endif}} - {{if 'CUlinkState' in found_types}} + return sizeof(cydriver.CUdevprop) + if objType == CUlinkState: - return sizeof(cydriver.CUlinkState){{endif}} - {{if 'CUhostFn' in found_types}} + return sizeof(cydriver.CUlinkState) + if objType == CUhostFn: - return sizeof(cydriver.CUhostFn){{endif}} - {{if 'CUaccessPolicyWindow_st' in found_struct}} + return sizeof(cydriver.CUhostFn) + if objType == CUaccessPolicyWindow_st: - return sizeof(cydriver.CUaccessPolicyWindow_st){{endif}} - {{if 'CUaccessPolicyWindow_v1' in found_types}} + return sizeof(cydriver.CUaccessPolicyWindow_st) + if objType == CUaccessPolicyWindow_v1: - return sizeof(cydriver.CUaccessPolicyWindow_v1){{endif}} - {{if 'CUaccessPolicyWindow' in found_types}} + return sizeof(cydriver.CUaccessPolicyWindow_v1) + if objType == CUaccessPolicyWindow: - return sizeof(cydriver.CUaccessPolicyWindow){{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_st' in found_struct}} + return sizeof(cydriver.CUaccessPolicyWindow) + if objType == CUDA_KERNEL_NODE_PARAMS_st: - return sizeof(cydriver.CUDA_KERNEL_NODE_PARAMS_st){{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v1' in found_types}} + return sizeof(cydriver.CUDA_KERNEL_NODE_PARAMS_st) + if objType == CUDA_KERNEL_NODE_PARAMS_v1: - return sizeof(cydriver.CUDA_KERNEL_NODE_PARAMS_v1){{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v2_st' in found_struct}} + return sizeof(cydriver.CUDA_KERNEL_NODE_PARAMS_v1) + if objType == CUDA_KERNEL_NODE_PARAMS_v2_st: - return sizeof(cydriver.CUDA_KERNEL_NODE_PARAMS_v2_st){{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v2' in found_types}} + return sizeof(cydriver.CUDA_KERNEL_NODE_PARAMS_v2_st) + if objType == CUDA_KERNEL_NODE_PARAMS_v2: - return sizeof(cydriver.CUDA_KERNEL_NODE_PARAMS_v2){{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS' in found_types}} + return sizeof(cydriver.CUDA_KERNEL_NODE_PARAMS_v2) + if objType == CUDA_KERNEL_NODE_PARAMS: - return sizeof(cydriver.CUDA_KERNEL_NODE_PARAMS){{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v3_st' in found_struct}} + return sizeof(cydriver.CUDA_KERNEL_NODE_PARAMS) + if objType == CUDA_KERNEL_NODE_PARAMS_v3_st: - return sizeof(cydriver.CUDA_KERNEL_NODE_PARAMS_v3_st){{endif}} - {{if 'CUDA_KERNEL_NODE_PARAMS_v3' in found_types}} + return sizeof(cydriver.CUDA_KERNEL_NODE_PARAMS_v3_st) + if objType == CUDA_KERNEL_NODE_PARAMS_v3: - return sizeof(cydriver.CUDA_KERNEL_NODE_PARAMS_v3){{endif}} - {{if 'CUDA_MEMSET_NODE_PARAMS_st' in found_struct}} + return sizeof(cydriver.CUDA_KERNEL_NODE_PARAMS_v3) + if objType == CUDA_MEMSET_NODE_PARAMS_st: - return sizeof(cydriver.CUDA_MEMSET_NODE_PARAMS_st){{endif}} - {{if 'CUDA_MEMSET_NODE_PARAMS_v1' in found_types}} + return sizeof(cydriver.CUDA_MEMSET_NODE_PARAMS_st) + if objType == CUDA_MEMSET_NODE_PARAMS_v1: - return sizeof(cydriver.CUDA_MEMSET_NODE_PARAMS_v1){{endif}} - {{if 'CUDA_MEMSET_NODE_PARAMS' in found_types}} + return sizeof(cydriver.CUDA_MEMSET_NODE_PARAMS_v1) + if objType == CUDA_MEMSET_NODE_PARAMS: - return sizeof(cydriver.CUDA_MEMSET_NODE_PARAMS){{endif}} - {{if 'CUDA_MEMSET_NODE_PARAMS_v2_st' in found_struct}} + return sizeof(cydriver.CUDA_MEMSET_NODE_PARAMS) + if objType == CUDA_MEMSET_NODE_PARAMS_v2_st: - return sizeof(cydriver.CUDA_MEMSET_NODE_PARAMS_v2_st){{endif}} - {{if 'CUDA_MEMSET_NODE_PARAMS_v2' in found_types}} + return sizeof(cydriver.CUDA_MEMSET_NODE_PARAMS_v2_st) + if objType == CUDA_MEMSET_NODE_PARAMS_v2: - return sizeof(cydriver.CUDA_MEMSET_NODE_PARAMS_v2){{endif}} - {{if 'CUDA_HOST_NODE_PARAMS_st' in found_struct}} + return sizeof(cydriver.CUDA_MEMSET_NODE_PARAMS_v2) + if objType == CUDA_HOST_NODE_PARAMS_st: - return sizeof(cydriver.CUDA_HOST_NODE_PARAMS_st){{endif}} - {{if 'CUDA_HOST_NODE_PARAMS_v1' in found_types}} + return sizeof(cydriver.CUDA_HOST_NODE_PARAMS_st) + if objType == CUDA_HOST_NODE_PARAMS_v1: - return sizeof(cydriver.CUDA_HOST_NODE_PARAMS_v1){{endif}} - {{if 'CUDA_HOST_NODE_PARAMS' in found_types}} + return sizeof(cydriver.CUDA_HOST_NODE_PARAMS_v1) + if objType == CUDA_HOST_NODE_PARAMS: - return sizeof(cydriver.CUDA_HOST_NODE_PARAMS){{endif}} - {{if 'CUDA_HOST_NODE_PARAMS_v2_st' in found_struct}} + return sizeof(cydriver.CUDA_HOST_NODE_PARAMS) + if objType == CUDA_HOST_NODE_PARAMS_v2_st: - return sizeof(cydriver.CUDA_HOST_NODE_PARAMS_v2_st){{endif}} - {{if 'CUDA_HOST_NODE_PARAMS_v2' in found_types}} + return sizeof(cydriver.CUDA_HOST_NODE_PARAMS_v2_st) + if objType == CUDA_HOST_NODE_PARAMS_v2: - return sizeof(cydriver.CUDA_HOST_NODE_PARAMS_v2){{endif}} - {{if 'CUDA_CONDITIONAL_NODE_PARAMS' in found_struct}} + return sizeof(cydriver.CUDA_HOST_NODE_PARAMS_v2) + if objType == CUDA_CONDITIONAL_NODE_PARAMS: - return sizeof(cydriver.CUDA_CONDITIONAL_NODE_PARAMS){{endif}} - {{if 'CUgraphEdgeData_st' in found_struct}} + return sizeof(cydriver.CUDA_CONDITIONAL_NODE_PARAMS) + if objType == CUgraphEdgeData_st: - return sizeof(cydriver.CUgraphEdgeData_st){{endif}} - {{if 'CUgraphEdgeData' in found_types}} + return sizeof(cydriver.CUgraphEdgeData_st) + if objType == CUgraphEdgeData: - return sizeof(cydriver.CUgraphEdgeData){{endif}} - {{if 'CUDA_GRAPH_INSTANTIATE_PARAMS_st' in found_struct}} + return sizeof(cydriver.CUgraphEdgeData) + if objType == CUDA_GRAPH_INSTANTIATE_PARAMS_st: - return sizeof(cydriver.CUDA_GRAPH_INSTANTIATE_PARAMS_st){{endif}} - {{if 'CUDA_GRAPH_INSTANTIATE_PARAMS' in found_types}} + return sizeof(cydriver.CUDA_GRAPH_INSTANTIATE_PARAMS_st) + if objType == CUDA_GRAPH_INSTANTIATE_PARAMS: - return sizeof(cydriver.CUDA_GRAPH_INSTANTIATE_PARAMS){{endif}} - {{if 'CUlaunchMemSyncDomainMap_st' in found_struct}} + return sizeof(cydriver.CUDA_GRAPH_INSTANTIATE_PARAMS) + if objType == CUlaunchMemSyncDomainMap_st: - return sizeof(cydriver.CUlaunchMemSyncDomainMap_st){{endif}} - {{if 'CUlaunchMemSyncDomainMap' in found_types}} + return sizeof(cydriver.CUlaunchMemSyncDomainMap_st) + if objType == CUlaunchMemSyncDomainMap: - return sizeof(cydriver.CUlaunchMemSyncDomainMap){{endif}} - {{if 'CUlaunchAttributeValue_union' in found_struct}} + return sizeof(cydriver.CUlaunchMemSyncDomainMap) + if objType == CUlaunchAttributeValue_union: - return sizeof(cydriver.CUlaunchAttributeValue_union){{endif}} - {{if 'CUlaunchAttributeValue' in found_types}} + return sizeof(cydriver.CUlaunchAttributeValue_union) + if objType == CUlaunchAttributeValue: - return sizeof(cydriver.CUlaunchAttributeValue){{endif}} - {{if 'CUlaunchAttribute_st' in found_struct}} + return sizeof(cydriver.CUlaunchAttributeValue) + if objType == CUlaunchAttribute_st: - return sizeof(cydriver.CUlaunchAttribute_st){{endif}} - {{if 'CUlaunchAttribute' in found_types}} + return sizeof(cydriver.CUlaunchAttribute_st) + if objType == CUlaunchAttribute: - return sizeof(cydriver.CUlaunchAttribute){{endif}} - {{if 'CUlaunchConfig_st' in found_struct}} + return sizeof(cydriver.CUlaunchAttribute) + if objType == CUlaunchConfig_st: - return sizeof(cydriver.CUlaunchConfig_st){{endif}} - {{if 'CUlaunchConfig' in found_types}} + return sizeof(cydriver.CUlaunchConfig_st) + if objType == CUlaunchConfig: - return sizeof(cydriver.CUlaunchConfig){{endif}} - {{if 'CUkernelNodeAttrValue_v1' in found_types}} + return sizeof(cydriver.CUlaunchConfig) + if objType == CUkernelNodeAttrValue_v1: - return sizeof(cydriver.CUkernelNodeAttrValue_v1){{endif}} - {{if 'CUkernelNodeAttrValue' in found_types}} + return sizeof(cydriver.CUkernelNodeAttrValue_v1) + if objType == CUkernelNodeAttrValue: - return sizeof(cydriver.CUkernelNodeAttrValue){{endif}} - {{if 'CUstreamAttrValue_v1' in found_types}} + return sizeof(cydriver.CUkernelNodeAttrValue) + if objType == CUstreamAttrValue_v1: - return sizeof(cydriver.CUstreamAttrValue_v1){{endif}} - {{if 'CUstreamAttrValue' in found_types}} + return sizeof(cydriver.CUstreamAttrValue_v1) + if objType == CUstreamAttrValue: - return sizeof(cydriver.CUstreamAttrValue){{endif}} - {{if 'CUexecAffinitySmCount_st' in found_struct}} + return sizeof(cydriver.CUstreamAttrValue) + if objType == CUexecAffinitySmCount_st: - return sizeof(cydriver.CUexecAffinitySmCount_st){{endif}} - {{if 'CUexecAffinitySmCount_v1' in found_types}} + return sizeof(cydriver.CUexecAffinitySmCount_st) + if objType == CUexecAffinitySmCount_v1: - return sizeof(cydriver.CUexecAffinitySmCount_v1){{endif}} - {{if 'CUexecAffinitySmCount' in found_types}} + return sizeof(cydriver.CUexecAffinitySmCount_v1) + if objType == CUexecAffinitySmCount: - return sizeof(cydriver.CUexecAffinitySmCount){{endif}} - {{if 'CUexecAffinityParam_st' in found_struct}} + return sizeof(cydriver.CUexecAffinitySmCount) + if objType == CUexecAffinityParam_st: - return sizeof(cydriver.CUexecAffinityParam_st){{endif}} - {{if 'CUexecAffinityParam_v1' in found_types}} + return sizeof(cydriver.CUexecAffinityParam_st) + if objType == CUexecAffinityParam_v1: - return sizeof(cydriver.CUexecAffinityParam_v1){{endif}} - {{if 'CUexecAffinityParam' in found_types}} + return sizeof(cydriver.CUexecAffinityParam_v1) + if objType == CUexecAffinityParam: - return sizeof(cydriver.CUexecAffinityParam){{endif}} - {{if 'CUctxCigParam_st' in found_struct}} + return sizeof(cydriver.CUexecAffinityParam) + if objType == CUctxCigParam_st: - return sizeof(cydriver.CUctxCigParam_st){{endif}} - {{if 'CUctxCigParam' in found_types}} + return sizeof(cydriver.CUctxCigParam_st) + if objType == CUctxCigParam: - return sizeof(cydriver.CUctxCigParam){{endif}} - {{if 'CUctxCreateParams_st' in found_struct}} + return sizeof(cydriver.CUctxCigParam) + if objType == CUctxCreateParams_st: - return sizeof(cydriver.CUctxCreateParams_st){{endif}} - {{if 'CUctxCreateParams' in found_types}} + return sizeof(cydriver.CUctxCreateParams_st) + if objType == CUctxCreateParams: - return sizeof(cydriver.CUctxCreateParams){{endif}} - {{if 'CUstreamCigParam_st' in found_struct}} + return sizeof(cydriver.CUctxCreateParams) + if objType == CUstreamCigParam_st: - return sizeof(cydriver.CUstreamCigParam_st){{endif}} - {{if 'CUstreamCigParam' in found_types}} + return sizeof(cydriver.CUstreamCigParam_st) + if objType == CUstreamCigParam: - return sizeof(cydriver.CUstreamCigParam){{endif}} - {{if 'CUstreamCigCaptureParams_st' in found_struct}} + return sizeof(cydriver.CUstreamCigParam) + if objType == CUstreamCigCaptureParams_st: - return sizeof(cydriver.CUstreamCigCaptureParams_st){{endif}} - {{if 'CUstreamCigCaptureParams' in found_types}} + return sizeof(cydriver.CUstreamCigCaptureParams_st) + if objType == CUstreamCigCaptureParams: - return sizeof(cydriver.CUstreamCigCaptureParams){{endif}} - {{if 'CUlibraryHostUniversalFunctionAndDataTable_st' in found_struct}} + return sizeof(cydriver.CUstreamCigCaptureParams) + if objType == CUlibraryHostUniversalFunctionAndDataTable_st: - return sizeof(cydriver.CUlibraryHostUniversalFunctionAndDataTable_st){{endif}} - {{if 'CUlibraryHostUniversalFunctionAndDataTable' in found_types}} + return sizeof(cydriver.CUlibraryHostUniversalFunctionAndDataTable_st) + if objType == CUlibraryHostUniversalFunctionAndDataTable: - return sizeof(cydriver.CUlibraryHostUniversalFunctionAndDataTable){{endif}} - {{if 'CUstreamCallback' in found_types}} + return sizeof(cydriver.CUlibraryHostUniversalFunctionAndDataTable) + if objType == CUstreamCallback: - return sizeof(cydriver.CUstreamCallback){{endif}} - {{if 'CUoccupancyB2DSize' in found_types}} + return sizeof(cydriver.CUstreamCallback) + if objType == CUoccupancyB2DSize: - return sizeof(cydriver.CUoccupancyB2DSize){{endif}} - {{if 'CUDA_MEMCPY2D_st' in found_struct}} + return sizeof(cydriver.CUoccupancyB2DSize) + if objType == CUDA_MEMCPY2D_st: - return sizeof(cydriver.CUDA_MEMCPY2D_st){{endif}} - {{if 'CUDA_MEMCPY2D_v2' in found_types}} + return sizeof(cydriver.CUDA_MEMCPY2D_st) + if objType == CUDA_MEMCPY2D_v2: - return sizeof(cydriver.CUDA_MEMCPY2D_v2){{endif}} - {{if 'CUDA_MEMCPY2D' in found_types}} + return sizeof(cydriver.CUDA_MEMCPY2D_v2) + if objType == CUDA_MEMCPY2D: - return sizeof(cydriver.CUDA_MEMCPY2D){{endif}} - {{if 'CUDA_MEMCPY3D_st' in found_struct}} + return sizeof(cydriver.CUDA_MEMCPY2D) + if objType == CUDA_MEMCPY3D_st: - return sizeof(cydriver.CUDA_MEMCPY3D_st){{endif}} - {{if 'CUDA_MEMCPY3D_v2' in found_types}} + return sizeof(cydriver.CUDA_MEMCPY3D_st) + if objType == CUDA_MEMCPY3D_v2: - return sizeof(cydriver.CUDA_MEMCPY3D_v2){{endif}} - {{if 'CUDA_MEMCPY3D' in found_types}} + return sizeof(cydriver.CUDA_MEMCPY3D_v2) + if objType == CUDA_MEMCPY3D: - return sizeof(cydriver.CUDA_MEMCPY3D){{endif}} - {{if 'CUDA_MEMCPY3D_PEER_st' in found_struct}} + return sizeof(cydriver.CUDA_MEMCPY3D) + if objType == CUDA_MEMCPY3D_PEER_st: - return sizeof(cydriver.CUDA_MEMCPY3D_PEER_st){{endif}} - {{if 'CUDA_MEMCPY3D_PEER_v1' in found_types}} + return sizeof(cydriver.CUDA_MEMCPY3D_PEER_st) + if objType == CUDA_MEMCPY3D_PEER_v1: - return sizeof(cydriver.CUDA_MEMCPY3D_PEER_v1){{endif}} - {{if 'CUDA_MEMCPY3D_PEER' in found_types}} + return sizeof(cydriver.CUDA_MEMCPY3D_PEER_v1) + if objType == CUDA_MEMCPY3D_PEER: - return sizeof(cydriver.CUDA_MEMCPY3D_PEER){{endif}} - {{if 'CUDA_MEMCPY_NODE_PARAMS_st' in found_struct}} + return sizeof(cydriver.CUDA_MEMCPY3D_PEER) + if objType == CUDA_MEMCPY_NODE_PARAMS_st: - return sizeof(cydriver.CUDA_MEMCPY_NODE_PARAMS_st){{endif}} - {{if 'CUDA_MEMCPY_NODE_PARAMS' in found_types}} + return sizeof(cydriver.CUDA_MEMCPY_NODE_PARAMS_st) + if objType == CUDA_MEMCPY_NODE_PARAMS: - return sizeof(cydriver.CUDA_MEMCPY_NODE_PARAMS){{endif}} - {{if 'CUDA_ARRAY_DESCRIPTOR_st' in found_struct}} + return sizeof(cydriver.CUDA_MEMCPY_NODE_PARAMS) + if objType == CUDA_ARRAY_DESCRIPTOR_st: - return sizeof(cydriver.CUDA_ARRAY_DESCRIPTOR_st){{endif}} - {{if 'CUDA_ARRAY_DESCRIPTOR_v2' in found_types}} + return sizeof(cydriver.CUDA_ARRAY_DESCRIPTOR_st) + if objType == CUDA_ARRAY_DESCRIPTOR_v2: - return sizeof(cydriver.CUDA_ARRAY_DESCRIPTOR_v2){{endif}} - {{if 'CUDA_ARRAY_DESCRIPTOR' in found_types}} + return sizeof(cydriver.CUDA_ARRAY_DESCRIPTOR_v2) + if objType == CUDA_ARRAY_DESCRIPTOR: - return sizeof(cydriver.CUDA_ARRAY_DESCRIPTOR){{endif}} - {{if 'CUDA_ARRAY3D_DESCRIPTOR_st' in found_struct}} + return sizeof(cydriver.CUDA_ARRAY_DESCRIPTOR) + if objType == CUDA_ARRAY3D_DESCRIPTOR_st: - return sizeof(cydriver.CUDA_ARRAY3D_DESCRIPTOR_st){{endif}} - {{if 'CUDA_ARRAY3D_DESCRIPTOR_v2' in found_types}} + return sizeof(cydriver.CUDA_ARRAY3D_DESCRIPTOR_st) + if objType == CUDA_ARRAY3D_DESCRIPTOR_v2: - return sizeof(cydriver.CUDA_ARRAY3D_DESCRIPTOR_v2){{endif}} - {{if 'CUDA_ARRAY3D_DESCRIPTOR' in found_types}} + return sizeof(cydriver.CUDA_ARRAY3D_DESCRIPTOR_v2) + if objType == CUDA_ARRAY3D_DESCRIPTOR: - return sizeof(cydriver.CUDA_ARRAY3D_DESCRIPTOR){{endif}} - {{if 'CUDA_ARRAY_SPARSE_PROPERTIES_st' in found_struct}} + return sizeof(cydriver.CUDA_ARRAY3D_DESCRIPTOR) + if objType == CUDA_ARRAY_SPARSE_PROPERTIES_st: - return sizeof(cydriver.CUDA_ARRAY_SPARSE_PROPERTIES_st){{endif}} - {{if 'CUDA_ARRAY_SPARSE_PROPERTIES_v1' in found_types}} + return sizeof(cydriver.CUDA_ARRAY_SPARSE_PROPERTIES_st) + if objType == CUDA_ARRAY_SPARSE_PROPERTIES_v1: - return sizeof(cydriver.CUDA_ARRAY_SPARSE_PROPERTIES_v1){{endif}} - {{if 'CUDA_ARRAY_SPARSE_PROPERTIES' in found_types}} + return sizeof(cydriver.CUDA_ARRAY_SPARSE_PROPERTIES_v1) + if objType == CUDA_ARRAY_SPARSE_PROPERTIES: - return sizeof(cydriver.CUDA_ARRAY_SPARSE_PROPERTIES){{endif}} - {{if 'CUDA_ARRAY_MEMORY_REQUIREMENTS_st' in found_struct}} + return sizeof(cydriver.CUDA_ARRAY_SPARSE_PROPERTIES) + if objType == CUDA_ARRAY_MEMORY_REQUIREMENTS_st: - return sizeof(cydriver.CUDA_ARRAY_MEMORY_REQUIREMENTS_st){{endif}} - {{if 'CUDA_ARRAY_MEMORY_REQUIREMENTS_v1' in found_types}} + return sizeof(cydriver.CUDA_ARRAY_MEMORY_REQUIREMENTS_st) + if objType == CUDA_ARRAY_MEMORY_REQUIREMENTS_v1: - return sizeof(cydriver.CUDA_ARRAY_MEMORY_REQUIREMENTS_v1){{endif}} - {{if 'CUDA_ARRAY_MEMORY_REQUIREMENTS' in found_types}} + return sizeof(cydriver.CUDA_ARRAY_MEMORY_REQUIREMENTS_v1) + if objType == CUDA_ARRAY_MEMORY_REQUIREMENTS: - return sizeof(cydriver.CUDA_ARRAY_MEMORY_REQUIREMENTS){{endif}} - {{if 'CUDA_RESOURCE_DESC_st' in found_struct}} + return sizeof(cydriver.CUDA_ARRAY_MEMORY_REQUIREMENTS) + if objType == CUDA_RESOURCE_DESC_st: - return sizeof(cydriver.CUDA_RESOURCE_DESC_st){{endif}} - {{if 'CUDA_RESOURCE_DESC_v1' in found_types}} + return sizeof(cydriver.CUDA_RESOURCE_DESC_st) + if objType == CUDA_RESOURCE_DESC_v1: - return sizeof(cydriver.CUDA_RESOURCE_DESC_v1){{endif}} - {{if 'CUDA_RESOURCE_DESC' in found_types}} + return sizeof(cydriver.CUDA_RESOURCE_DESC_v1) + if objType == CUDA_RESOURCE_DESC: - return sizeof(cydriver.CUDA_RESOURCE_DESC){{endif}} - {{if 'CUDA_TEXTURE_DESC_st' in found_struct}} + return sizeof(cydriver.CUDA_RESOURCE_DESC) + if objType == CUDA_TEXTURE_DESC_st: - return sizeof(cydriver.CUDA_TEXTURE_DESC_st){{endif}} - {{if 'CUDA_TEXTURE_DESC_v1' in found_types}} + return sizeof(cydriver.CUDA_TEXTURE_DESC_st) + if objType == CUDA_TEXTURE_DESC_v1: - return sizeof(cydriver.CUDA_TEXTURE_DESC_v1){{endif}} - {{if 'CUDA_TEXTURE_DESC' in found_types}} + return sizeof(cydriver.CUDA_TEXTURE_DESC_v1) + if objType == CUDA_TEXTURE_DESC: - return sizeof(cydriver.CUDA_TEXTURE_DESC){{endif}} - {{if 'CUDA_RESOURCE_VIEW_DESC_st' in found_struct}} + return sizeof(cydriver.CUDA_TEXTURE_DESC) + if objType == CUDA_RESOURCE_VIEW_DESC_st: - return sizeof(cydriver.CUDA_RESOURCE_VIEW_DESC_st){{endif}} - {{if 'CUDA_RESOURCE_VIEW_DESC_v1' in found_types}} + return sizeof(cydriver.CUDA_RESOURCE_VIEW_DESC_st) + if objType == CUDA_RESOURCE_VIEW_DESC_v1: - return sizeof(cydriver.CUDA_RESOURCE_VIEW_DESC_v1){{endif}} - {{if 'CUDA_RESOURCE_VIEW_DESC' in found_types}} + return sizeof(cydriver.CUDA_RESOURCE_VIEW_DESC_v1) + if objType == CUDA_RESOURCE_VIEW_DESC: - return sizeof(cydriver.CUDA_RESOURCE_VIEW_DESC){{endif}} - {{if 'CUtensorMap_st' in found_struct}} + return sizeof(cydriver.CUDA_RESOURCE_VIEW_DESC) + if objType == CUtensorMap_st: - return sizeof(cydriver.CUtensorMap_st){{endif}} - {{if 'CUtensorMap' in found_types}} + return sizeof(cydriver.CUtensorMap_st) + if objType == CUtensorMap: - return sizeof(cydriver.CUtensorMap){{endif}} - {{if 'CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_st' in found_struct}} + return sizeof(cydriver.CUtensorMap) + if objType == CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_st: - return sizeof(cydriver.CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_st){{endif}} - {{if 'CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_v1' in found_types}} + return sizeof(cydriver.CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_st) + if objType == CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_v1: - return sizeof(cydriver.CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_v1){{endif}} - {{if 'CUDA_POINTER_ATTRIBUTE_P2P_TOKENS' in found_types}} + return sizeof(cydriver.CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_v1) + if objType == CUDA_POINTER_ATTRIBUTE_P2P_TOKENS: - return sizeof(cydriver.CUDA_POINTER_ATTRIBUTE_P2P_TOKENS){{endif}} - {{if 'CUDA_LAUNCH_PARAMS_st' in found_struct}} + return sizeof(cydriver.CUDA_POINTER_ATTRIBUTE_P2P_TOKENS) + if objType == CUDA_LAUNCH_PARAMS_st: - return sizeof(cydriver.CUDA_LAUNCH_PARAMS_st){{endif}} - {{if 'CUDA_LAUNCH_PARAMS_v1' in found_types}} + return sizeof(cydriver.CUDA_LAUNCH_PARAMS_st) + if objType == CUDA_LAUNCH_PARAMS_v1: - return sizeof(cydriver.CUDA_LAUNCH_PARAMS_v1){{endif}} - {{if 'CUDA_LAUNCH_PARAMS' in found_types}} + return sizeof(cydriver.CUDA_LAUNCH_PARAMS_v1) + if objType == CUDA_LAUNCH_PARAMS: - return sizeof(cydriver.CUDA_LAUNCH_PARAMS){{endif}} - {{if 'CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st' in found_struct}} + return sizeof(cydriver.CUDA_LAUNCH_PARAMS) + if objType == CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st: - return sizeof(cydriver.CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st){{endif}} - {{if 'CUDA_EXTERNAL_MEMORY_HANDLE_DESC_v1' in found_types}} + return sizeof(cydriver.CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st) + if objType == CUDA_EXTERNAL_MEMORY_HANDLE_DESC_v1: - return sizeof(cydriver.CUDA_EXTERNAL_MEMORY_HANDLE_DESC_v1){{endif}} - {{if 'CUDA_EXTERNAL_MEMORY_HANDLE_DESC' in found_types}} + return sizeof(cydriver.CUDA_EXTERNAL_MEMORY_HANDLE_DESC_v1) + if objType == CUDA_EXTERNAL_MEMORY_HANDLE_DESC: - return sizeof(cydriver.CUDA_EXTERNAL_MEMORY_HANDLE_DESC){{endif}} - {{if 'CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st' in found_struct}} + return sizeof(cydriver.CUDA_EXTERNAL_MEMORY_HANDLE_DESC) + if objType == CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st: - return sizeof(cydriver.CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st){{endif}} - {{if 'CUDA_EXTERNAL_MEMORY_BUFFER_DESC_v1' in found_types}} + return sizeof(cydriver.CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st) + if objType == CUDA_EXTERNAL_MEMORY_BUFFER_DESC_v1: - return sizeof(cydriver.CUDA_EXTERNAL_MEMORY_BUFFER_DESC_v1){{endif}} - {{if 'CUDA_EXTERNAL_MEMORY_BUFFER_DESC' in found_types}} + return sizeof(cydriver.CUDA_EXTERNAL_MEMORY_BUFFER_DESC_v1) + if objType == CUDA_EXTERNAL_MEMORY_BUFFER_DESC: - return sizeof(cydriver.CUDA_EXTERNAL_MEMORY_BUFFER_DESC){{endif}} - {{if 'CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_st' in found_struct}} + return sizeof(cydriver.CUDA_EXTERNAL_MEMORY_BUFFER_DESC) + if objType == CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_st: - return sizeof(cydriver.CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_st){{endif}} - {{if 'CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_v1' in found_types}} + return sizeof(cydriver.CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_st) + if objType == CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_v1: - return sizeof(cydriver.CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_v1){{endif}} - {{if 'CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC' in found_types}} + return sizeof(cydriver.CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_v1) + if objType == CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC: - return sizeof(cydriver.CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC){{endif}} - {{if 'CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st' in found_struct}} + return sizeof(cydriver.CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC) + if objType == CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st: - return sizeof(cydriver.CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st){{endif}} - {{if 'CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_v1' in found_types}} + return sizeof(cydriver.CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st) + if objType == CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_v1: - return sizeof(cydriver.CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_v1){{endif}} - {{if 'CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC' in found_types}} + return sizeof(cydriver.CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_v1) + if objType == CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC: - return sizeof(cydriver.CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC){{endif}} - {{if 'CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st' in found_struct}} + return sizeof(cydriver.CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC) + if objType == CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st: - return sizeof(cydriver.CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st){{endif}} - {{if 'CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_v1' in found_types}} + return sizeof(cydriver.CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st) + if objType == CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_v1: - return sizeof(cydriver.CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_v1){{endif}} - {{if 'CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS' in found_types}} + return sizeof(cydriver.CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_v1) + if objType == CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS: - return sizeof(cydriver.CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS){{endif}} - {{if 'CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st' in found_struct}} + return sizeof(cydriver.CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS) + if objType == CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st: - return sizeof(cydriver.CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st){{endif}} - {{if 'CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_v1' in found_types}} + return sizeof(cydriver.CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st) + if objType == CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_v1: - return sizeof(cydriver.CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_v1){{endif}} - {{if 'CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS' in found_types}} + return sizeof(cydriver.CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_v1) + if objType == CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS: - return sizeof(cydriver.CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS){{endif}} - {{if 'CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_st' in found_struct}} + return sizeof(cydriver.CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS) + if objType == CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_st: - return sizeof(cydriver.CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_st){{endif}} - {{if 'CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v1' in found_types}} + return sizeof(cydriver.CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_st) + if objType == CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v1: - return sizeof(cydriver.CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v1){{endif}} - {{if 'CUDA_EXT_SEM_SIGNAL_NODE_PARAMS' in found_types}} + return sizeof(cydriver.CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v1) + if objType == CUDA_EXT_SEM_SIGNAL_NODE_PARAMS: - return sizeof(cydriver.CUDA_EXT_SEM_SIGNAL_NODE_PARAMS){{endif}} - {{if 'CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2_st' in found_struct}} + return sizeof(cydriver.CUDA_EXT_SEM_SIGNAL_NODE_PARAMS) + if objType == CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2_st: - return sizeof(cydriver.CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2_st){{endif}} - {{if 'CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2' in found_types}} + return sizeof(cydriver.CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2_st) + if objType == CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2: - return sizeof(cydriver.CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2){{endif}} - {{if 'CUDA_EXT_SEM_WAIT_NODE_PARAMS_st' in found_struct}} + return sizeof(cydriver.CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2) + if objType == CUDA_EXT_SEM_WAIT_NODE_PARAMS_st: - return sizeof(cydriver.CUDA_EXT_SEM_WAIT_NODE_PARAMS_st){{endif}} - {{if 'CUDA_EXT_SEM_WAIT_NODE_PARAMS_v1' in found_types}} + return sizeof(cydriver.CUDA_EXT_SEM_WAIT_NODE_PARAMS_st) + if objType == CUDA_EXT_SEM_WAIT_NODE_PARAMS_v1: - return sizeof(cydriver.CUDA_EXT_SEM_WAIT_NODE_PARAMS_v1){{endif}} - {{if 'CUDA_EXT_SEM_WAIT_NODE_PARAMS' in found_types}} + return sizeof(cydriver.CUDA_EXT_SEM_WAIT_NODE_PARAMS_v1) + if objType == CUDA_EXT_SEM_WAIT_NODE_PARAMS: - return sizeof(cydriver.CUDA_EXT_SEM_WAIT_NODE_PARAMS){{endif}} - {{if 'CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2_st' in found_struct}} + return sizeof(cydriver.CUDA_EXT_SEM_WAIT_NODE_PARAMS) + if objType == CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2_st: - return sizeof(cydriver.CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2_st){{endif}} - {{if 'CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2' in found_types}} + return sizeof(cydriver.CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2_st) + if objType == CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2: - return sizeof(cydriver.CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2){{endif}} - {{if 'CUmemGenericAllocationHandle_v1' in found_types}} + return sizeof(cydriver.CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2) + if objType == CUmemGenericAllocationHandle_v1: - return sizeof(cydriver.CUmemGenericAllocationHandle_v1){{endif}} - {{if 'CUmemGenericAllocationHandle' in found_types}} + return sizeof(cydriver.CUmemGenericAllocationHandle_v1) + if objType == CUmemGenericAllocationHandle: - return sizeof(cydriver.CUmemGenericAllocationHandle){{endif}} - {{if 'CUarrayMapInfo_st' in found_struct}} + return sizeof(cydriver.CUmemGenericAllocationHandle) + if objType == CUarrayMapInfo_st: - return sizeof(cydriver.CUarrayMapInfo_st){{endif}} - {{if 'CUarrayMapInfo_v1' in found_types}} + return sizeof(cydriver.CUarrayMapInfo_st) + if objType == CUarrayMapInfo_v1: - return sizeof(cydriver.CUarrayMapInfo_v1){{endif}} - {{if 'CUarrayMapInfo' in found_types}} + return sizeof(cydriver.CUarrayMapInfo_v1) + if objType == CUarrayMapInfo: - return sizeof(cydriver.CUarrayMapInfo){{endif}} - {{if 'CUmemLocation_st' in found_struct}} + return sizeof(cydriver.CUarrayMapInfo) + if objType == CUmemLocation_st: - return sizeof(cydriver.CUmemLocation_st){{endif}} - {{if 'CUmemLocation_v1' in found_types}} + return sizeof(cydriver.CUmemLocation_st) + if objType == CUmemLocation_v1: - return sizeof(cydriver.CUmemLocation_v1){{endif}} - {{if 'CUmemLocation' in found_types}} + return sizeof(cydriver.CUmemLocation_v1) + if objType == CUmemLocation: - return sizeof(cydriver.CUmemLocation){{endif}} - {{if 'CUmemAllocationProp_st' in found_struct}} + return sizeof(cydriver.CUmemLocation) + if objType == CUmemAllocationProp_st: - return sizeof(cydriver.CUmemAllocationProp_st){{endif}} - {{if 'CUmemAllocationProp_v1' in found_types}} + return sizeof(cydriver.CUmemAllocationProp_st) + if objType == CUmemAllocationProp_v1: - return sizeof(cydriver.CUmemAllocationProp_v1){{endif}} - {{if 'CUmemAllocationProp' in found_types}} + return sizeof(cydriver.CUmemAllocationProp_v1) + if objType == CUmemAllocationProp: - return sizeof(cydriver.CUmemAllocationProp){{endif}} - {{if 'CUmulticastObjectProp_st' in found_struct}} + return sizeof(cydriver.CUmemAllocationProp) + if objType == CUmulticastObjectProp_st: - return sizeof(cydriver.CUmulticastObjectProp_st){{endif}} - {{if 'CUmulticastObjectProp_v1' in found_types}} + return sizeof(cydriver.CUmulticastObjectProp_st) + if objType == CUmulticastObjectProp_v1: - return sizeof(cydriver.CUmulticastObjectProp_v1){{endif}} - {{if 'CUmulticastObjectProp' in found_types}} + return sizeof(cydriver.CUmulticastObjectProp_v1) + if objType == CUmulticastObjectProp: - return sizeof(cydriver.CUmulticastObjectProp){{endif}} - {{if 'CUmemAccessDesc_st' in found_struct}} + return sizeof(cydriver.CUmulticastObjectProp) + if objType == CUmemAccessDesc_st: - return sizeof(cydriver.CUmemAccessDesc_st){{endif}} - {{if 'CUmemAccessDesc_v1' in found_types}} + return sizeof(cydriver.CUmemAccessDesc_st) + if objType == CUmemAccessDesc_v1: - return sizeof(cydriver.CUmemAccessDesc_v1){{endif}} - {{if 'CUmemAccessDesc' in found_types}} + return sizeof(cydriver.CUmemAccessDesc_v1) + if objType == CUmemAccessDesc: - return sizeof(cydriver.CUmemAccessDesc){{endif}} - {{if 'CUgraphExecUpdateResultInfo_st' in found_struct}} + return sizeof(cydriver.CUmemAccessDesc) + if objType == CUgraphExecUpdateResultInfo_st: - return sizeof(cydriver.CUgraphExecUpdateResultInfo_st){{endif}} - {{if 'CUgraphExecUpdateResultInfo_v1' in found_types}} + return sizeof(cydriver.CUgraphExecUpdateResultInfo_st) + if objType == CUgraphExecUpdateResultInfo_v1: - return sizeof(cydriver.CUgraphExecUpdateResultInfo_v1){{endif}} - {{if 'CUgraphExecUpdateResultInfo' in found_types}} + return sizeof(cydriver.CUgraphExecUpdateResultInfo_v1) + if objType == CUgraphExecUpdateResultInfo: - return sizeof(cydriver.CUgraphExecUpdateResultInfo){{endif}} - {{if 'CUmemPoolProps_st' in found_struct}} + return sizeof(cydriver.CUgraphExecUpdateResultInfo) + if objType == CUmemPoolProps_st: - return sizeof(cydriver.CUmemPoolProps_st){{endif}} - {{if 'CUmemPoolProps_v1' in found_types}} + return sizeof(cydriver.CUmemPoolProps_st) + if objType == CUmemPoolProps_v1: - return sizeof(cydriver.CUmemPoolProps_v1){{endif}} - {{if 'CUmemPoolProps' in found_types}} + return sizeof(cydriver.CUmemPoolProps_v1) + if objType == CUmemPoolProps: - return sizeof(cydriver.CUmemPoolProps){{endif}} - {{if 'CUmemPoolPtrExportData_st' in found_struct}} + return sizeof(cydriver.CUmemPoolProps) + if objType == CUmemPoolPtrExportData_st: - return sizeof(cydriver.CUmemPoolPtrExportData_st){{endif}} - {{if 'CUmemPoolPtrExportData_v1' in found_types}} + return sizeof(cydriver.CUmemPoolPtrExportData_st) + if objType == CUmemPoolPtrExportData_v1: - return sizeof(cydriver.CUmemPoolPtrExportData_v1){{endif}} - {{if 'CUmemPoolPtrExportData' in found_types}} + return sizeof(cydriver.CUmemPoolPtrExportData_v1) + if objType == CUmemPoolPtrExportData: - return sizeof(cydriver.CUmemPoolPtrExportData){{endif}} - {{if 'CUmemcpyAttributes_st' in found_struct}} + return sizeof(cydriver.CUmemPoolPtrExportData) + if objType == CUmemcpyAttributes_st: - return sizeof(cydriver.CUmemcpyAttributes_st){{endif}} - {{if 'CUmemcpyAttributes_v1' in found_types}} + return sizeof(cydriver.CUmemcpyAttributes_st) + if objType == CUmemcpyAttributes_v1: - return sizeof(cydriver.CUmemcpyAttributes_v1){{endif}} - {{if 'CUmemcpyAttributes' in found_types}} + return sizeof(cydriver.CUmemcpyAttributes_v1) + if objType == CUmemcpyAttributes: - return sizeof(cydriver.CUmemcpyAttributes){{endif}} - {{if 'CUoffset3D_st' in found_struct}} + return sizeof(cydriver.CUmemcpyAttributes) + if objType == CUoffset3D_st: - return sizeof(cydriver.CUoffset3D_st){{endif}} - {{if 'CUoffset3D_v1' in found_types}} + return sizeof(cydriver.CUoffset3D_st) + if objType == CUoffset3D_v1: - return sizeof(cydriver.CUoffset3D_v1){{endif}} - {{if 'CUoffset3D' in found_types}} + return sizeof(cydriver.CUoffset3D_v1) + if objType == CUoffset3D: - return sizeof(cydriver.CUoffset3D){{endif}} - {{if 'CUextent3D_st' in found_struct}} + return sizeof(cydriver.CUoffset3D) + if objType == CUextent3D_st: - return sizeof(cydriver.CUextent3D_st){{endif}} - {{if 'CUextent3D_v1' in found_types}} + return sizeof(cydriver.CUextent3D_st) + if objType == CUextent3D_v1: - return sizeof(cydriver.CUextent3D_v1){{endif}} - {{if 'CUextent3D' in found_types}} + return sizeof(cydriver.CUextent3D_v1) + if objType == CUextent3D: - return sizeof(cydriver.CUextent3D){{endif}} - {{if 'CUmemcpy3DOperand_st' in found_struct}} + return sizeof(cydriver.CUextent3D) + if objType == CUmemcpy3DOperand_st: - return sizeof(cydriver.CUmemcpy3DOperand_st){{endif}} - {{if 'CUmemcpy3DOperand_v1' in found_types}} + return sizeof(cydriver.CUmemcpy3DOperand_st) + if objType == CUmemcpy3DOperand_v1: - return sizeof(cydriver.CUmemcpy3DOperand_v1){{endif}} - {{if 'CUmemcpy3DOperand' in found_types}} + return sizeof(cydriver.CUmemcpy3DOperand_v1) + if objType == CUmemcpy3DOperand: - return sizeof(cydriver.CUmemcpy3DOperand){{endif}} - {{if 'CUDA_MEMCPY3D_BATCH_OP_st' in found_struct}} + return sizeof(cydriver.CUmemcpy3DOperand) + if objType == CUDA_MEMCPY3D_BATCH_OP_st: - return sizeof(cydriver.CUDA_MEMCPY3D_BATCH_OP_st){{endif}} - {{if 'CUDA_MEMCPY3D_BATCH_OP_v1' in found_types}} + return sizeof(cydriver.CUDA_MEMCPY3D_BATCH_OP_st) + if objType == CUDA_MEMCPY3D_BATCH_OP_v1: - return sizeof(cydriver.CUDA_MEMCPY3D_BATCH_OP_v1){{endif}} - {{if 'CUDA_MEMCPY3D_BATCH_OP' in found_types}} + return sizeof(cydriver.CUDA_MEMCPY3D_BATCH_OP_v1) + if objType == CUDA_MEMCPY3D_BATCH_OP: - return sizeof(cydriver.CUDA_MEMCPY3D_BATCH_OP){{endif}} - {{if 'CUDA_MEM_ALLOC_NODE_PARAMS_v1_st' in found_struct}} + return sizeof(cydriver.CUDA_MEMCPY3D_BATCH_OP) + if objType == CUDA_MEM_ALLOC_NODE_PARAMS_v1_st: - return sizeof(cydriver.CUDA_MEM_ALLOC_NODE_PARAMS_v1_st){{endif}} - {{if 'CUDA_MEM_ALLOC_NODE_PARAMS_v1' in found_types}} + return sizeof(cydriver.CUDA_MEM_ALLOC_NODE_PARAMS_v1_st) + if objType == CUDA_MEM_ALLOC_NODE_PARAMS_v1: - return sizeof(cydriver.CUDA_MEM_ALLOC_NODE_PARAMS_v1){{endif}} - {{if 'CUDA_MEM_ALLOC_NODE_PARAMS' in found_types}} + return sizeof(cydriver.CUDA_MEM_ALLOC_NODE_PARAMS_v1) + if objType == CUDA_MEM_ALLOC_NODE_PARAMS: - return sizeof(cydriver.CUDA_MEM_ALLOC_NODE_PARAMS){{endif}} - {{if 'CUDA_MEM_ALLOC_NODE_PARAMS_v2_st' in found_struct}} + return sizeof(cydriver.CUDA_MEM_ALLOC_NODE_PARAMS) + if objType == CUDA_MEM_ALLOC_NODE_PARAMS_v2_st: - return sizeof(cydriver.CUDA_MEM_ALLOC_NODE_PARAMS_v2_st){{endif}} - {{if 'CUDA_MEM_ALLOC_NODE_PARAMS_v2' in found_types}} + return sizeof(cydriver.CUDA_MEM_ALLOC_NODE_PARAMS_v2_st) + if objType == CUDA_MEM_ALLOC_NODE_PARAMS_v2: - return sizeof(cydriver.CUDA_MEM_ALLOC_NODE_PARAMS_v2){{endif}} - {{if 'CUDA_MEM_FREE_NODE_PARAMS_st' in found_struct}} + return sizeof(cydriver.CUDA_MEM_ALLOC_NODE_PARAMS_v2) + if objType == CUDA_MEM_FREE_NODE_PARAMS_st: - return sizeof(cydriver.CUDA_MEM_FREE_NODE_PARAMS_st){{endif}} - {{if 'CUDA_MEM_FREE_NODE_PARAMS' in found_types}} + return sizeof(cydriver.CUDA_MEM_FREE_NODE_PARAMS_st) + if objType == CUDA_MEM_FREE_NODE_PARAMS: - return sizeof(cydriver.CUDA_MEM_FREE_NODE_PARAMS){{endif}} - {{if 'CUDA_CHILD_GRAPH_NODE_PARAMS_st' in found_struct}} + return sizeof(cydriver.CUDA_MEM_FREE_NODE_PARAMS) + if objType == CUDA_CHILD_GRAPH_NODE_PARAMS_st: - return sizeof(cydriver.CUDA_CHILD_GRAPH_NODE_PARAMS_st){{endif}} - {{if 'CUDA_CHILD_GRAPH_NODE_PARAMS' in found_types}} + return sizeof(cydriver.CUDA_CHILD_GRAPH_NODE_PARAMS_st) + if objType == CUDA_CHILD_GRAPH_NODE_PARAMS: - return sizeof(cydriver.CUDA_CHILD_GRAPH_NODE_PARAMS){{endif}} - {{if 'CUDA_EVENT_RECORD_NODE_PARAMS_st' in found_struct}} + return sizeof(cydriver.CUDA_CHILD_GRAPH_NODE_PARAMS) + if objType == CUDA_EVENT_RECORD_NODE_PARAMS_st: - return sizeof(cydriver.CUDA_EVENT_RECORD_NODE_PARAMS_st){{endif}} - {{if 'CUDA_EVENT_RECORD_NODE_PARAMS' in found_types}} + return sizeof(cydriver.CUDA_EVENT_RECORD_NODE_PARAMS_st) + if objType == CUDA_EVENT_RECORD_NODE_PARAMS: - return sizeof(cydriver.CUDA_EVENT_RECORD_NODE_PARAMS){{endif}} - {{if 'CUDA_EVENT_WAIT_NODE_PARAMS_st' in found_struct}} + return sizeof(cydriver.CUDA_EVENT_RECORD_NODE_PARAMS) + if objType == CUDA_EVENT_WAIT_NODE_PARAMS_st: - return sizeof(cydriver.CUDA_EVENT_WAIT_NODE_PARAMS_st){{endif}} - {{if 'CUDA_EVENT_WAIT_NODE_PARAMS' in found_types}} + return sizeof(cydriver.CUDA_EVENT_WAIT_NODE_PARAMS_st) + if objType == CUDA_EVENT_WAIT_NODE_PARAMS: - return sizeof(cydriver.CUDA_EVENT_WAIT_NODE_PARAMS){{endif}} - {{if 'CUgraphNodeParams_st' in found_struct}} + return sizeof(cydriver.CUDA_EVENT_WAIT_NODE_PARAMS) + if objType == CUgraphNodeParams_st: - return sizeof(cydriver.CUgraphNodeParams_st){{endif}} - {{if 'CUgraphNodeParams' in found_types}} + return sizeof(cydriver.CUgraphNodeParams_st) + if objType == CUgraphNodeParams: - return sizeof(cydriver.CUgraphNodeParams){{endif}} - {{if 'CUcheckpointLockArgs_st' in found_struct}} + return sizeof(cydriver.CUgraphNodeParams) + if objType == CUcheckpointLockArgs_st: - return sizeof(cydriver.CUcheckpointLockArgs_st){{endif}} - {{if 'CUcheckpointLockArgs' in found_types}} + return sizeof(cydriver.CUcheckpointLockArgs_st) + if objType == CUcheckpointLockArgs: - return sizeof(cydriver.CUcheckpointLockArgs){{endif}} - {{if 'CUcheckpointCheckpointArgs_st' in found_struct}} + return sizeof(cydriver.CUcheckpointLockArgs) + if objType == CUcheckpointCheckpointArgs_st: - return sizeof(cydriver.CUcheckpointCheckpointArgs_st){{endif}} - {{if 'CUcheckpointCheckpointArgs' in found_types}} + return sizeof(cydriver.CUcheckpointCheckpointArgs_st) + if objType == CUcheckpointCheckpointArgs: - return sizeof(cydriver.CUcheckpointCheckpointArgs){{endif}} - {{if 'CUcheckpointGpuPair_st' in found_struct}} + return sizeof(cydriver.CUcheckpointCheckpointArgs) + if objType == CUcheckpointGpuPair_st: - return sizeof(cydriver.CUcheckpointGpuPair_st){{endif}} - {{if 'CUcheckpointGpuPair' in found_types}} + return sizeof(cydriver.CUcheckpointGpuPair_st) + if objType == CUcheckpointGpuPair: - return sizeof(cydriver.CUcheckpointGpuPair){{endif}} - {{if 'CUcheckpointRestoreArgs_st' in found_struct}} + return sizeof(cydriver.CUcheckpointGpuPair) + if objType == CUcheckpointRestoreArgs_st: - return sizeof(cydriver.CUcheckpointRestoreArgs_st){{endif}} - {{if 'CUcheckpointRestoreArgs' in found_types}} + return sizeof(cydriver.CUcheckpointRestoreArgs_st) + if objType == CUcheckpointRestoreArgs: - return sizeof(cydriver.CUcheckpointRestoreArgs){{endif}} - {{if 'CUcheckpointUnlockArgs_st' in found_struct}} + return sizeof(cydriver.CUcheckpointRestoreArgs) + if objType == CUcheckpointUnlockArgs_st: - return sizeof(cydriver.CUcheckpointUnlockArgs_st){{endif}} - {{if 'CUcheckpointUnlockArgs' in found_types}} + return sizeof(cydriver.CUcheckpointUnlockArgs_st) + if objType == CUcheckpointUnlockArgs: - return sizeof(cydriver.CUcheckpointUnlockArgs){{endif}} - {{if 'CUmemDecompressParams_st' in found_struct}} + return sizeof(cydriver.CUcheckpointUnlockArgs) + if objType == CUmemDecompressParams_st: - return sizeof(cydriver.CUmemDecompressParams_st){{endif}} - {{if 'CUmemDecompressParams' in found_types}} + return sizeof(cydriver.CUmemDecompressParams_st) + if objType == CUmemDecompressParams: - return sizeof(cydriver.CUmemDecompressParams){{endif}} - {{if 'CUcoredumpCallbackHandle' in found_types}} + return sizeof(cydriver.CUmemDecompressParams) + if objType == CUcoredumpCallbackHandle: - return sizeof(cydriver.CUcoredumpCallbackHandle){{endif}} - {{if 'CUcoredumpStatusCallback' in found_types}} + return sizeof(cydriver.CUcoredumpCallbackHandle) + if objType == CUcoredumpStatusCallback: - return sizeof(cydriver.CUcoredumpStatusCallback){{endif}} - {{if 'CUdevResourceDesc' in found_types}} + return sizeof(cydriver.CUcoredumpStatusCallback) + if objType == CUdevResourceDesc: - return sizeof(cydriver.CUdevResourceDesc){{endif}} - {{if 'CUdevSmResource_st' in found_struct}} + return sizeof(cydriver.CUdevResourceDesc) + if objType == CUdevSmResource_st: - return sizeof(cydriver.CUdevSmResource_st){{endif}} - {{if 'CUdevSmResource' in found_types}} + return sizeof(cydriver.CUdevSmResource_st) + if objType == CUdevSmResource: - return sizeof(cydriver.CUdevSmResource){{endif}} - {{if 'CUdevWorkqueueConfigResource_st' in found_struct}} + return sizeof(cydriver.CUdevSmResource) + if objType == CUdevWorkqueueConfigResource_st: - return sizeof(cydriver.CUdevWorkqueueConfigResource_st){{endif}} - {{if 'CUdevWorkqueueConfigResource' in found_types}} + return sizeof(cydriver.CUdevWorkqueueConfigResource_st) + if objType == CUdevWorkqueueConfigResource: - return sizeof(cydriver.CUdevWorkqueueConfigResource){{endif}} - {{if 'CUdevWorkqueueResource_st' in found_struct}} + return sizeof(cydriver.CUdevWorkqueueConfigResource) + if objType == CUdevWorkqueueResource_st: - return sizeof(cydriver.CUdevWorkqueueResource_st){{endif}} - {{if 'CUdevWorkqueueResource' in found_types}} + return sizeof(cydriver.CUdevWorkqueueResource_st) + if objType == CUdevWorkqueueResource: - return sizeof(cydriver.CUdevWorkqueueResource){{endif}} - {{if 'CU_DEV_SM_RESOURCE_GROUP_PARAMS_st' in found_struct}} + return sizeof(cydriver.CUdevWorkqueueResource) + if objType == CU_DEV_SM_RESOURCE_GROUP_PARAMS_st: - return sizeof(cydriver.CU_DEV_SM_RESOURCE_GROUP_PARAMS_st){{endif}} - {{if 'CU_DEV_SM_RESOURCE_GROUP_PARAMS' in found_types}} + return sizeof(cydriver.CU_DEV_SM_RESOURCE_GROUP_PARAMS_st) + if objType == CU_DEV_SM_RESOURCE_GROUP_PARAMS: - return sizeof(cydriver.CU_DEV_SM_RESOURCE_GROUP_PARAMS){{endif}} - {{if 'CUdevResource_st' in found_struct}} + return sizeof(cydriver.CU_DEV_SM_RESOURCE_GROUP_PARAMS) + if objType == CUdevResource_st: - return sizeof(cydriver.CUdevResource_st){{endif}} - {{if 'struct CUdevResource_st' in found_types}} + return sizeof(cydriver.CUdevResource_st) + if objType == CUdevResource_v1: - return sizeof(cydriver.CUdevResource_v1){{endif}} - {{if 'struct CUdevResource_st' in found_types}} + return sizeof(cydriver.CUdevResource_v1) + if objType == CUdevResource: - return sizeof(cydriver.CUdevResource){{endif}} - {{if 'CUlogsCallbackHandle' in found_types}} + return sizeof(cydriver.CUdevResource) + if objType == CUlogsCallbackHandle: - return sizeof(cydriver.CUlogsCallbackHandle){{endif}} - {{if 'CUlogsCallback' in found_types}} + return sizeof(cydriver.CUlogsCallbackHandle) + if objType == CUlogsCallback: - return sizeof(cydriver.CUlogsCallback){{endif}} - {{if 'CUlogIterator' in found_types}} + return sizeof(cydriver.CUlogsCallback) + if objType == CUlogIterator: - return sizeof(cydriver.CUlogIterator){{endif}} - {{if True}} + return sizeof(cydriver.CUlogIterator) + if objType == CUeglFrame_st: - return sizeof(cydriver.CUeglFrame_st){{endif}} - {{if True}} + return sizeof(cydriver.CUeglFrame_st) + if objType == CUeglFrame_v1: - return sizeof(cydriver.CUeglFrame_v1){{endif}} - {{if True}} + return sizeof(cydriver.CUeglFrame_v1) + if objType == CUeglFrame: - return sizeof(cydriver.CUeglFrame){{endif}} - {{if True}} + return sizeof(cydriver.CUeglFrame) + if objType == CUeglStreamConnection: - return sizeof(cydriver.CUeglStreamConnection){{endif}} - {{if True}} + return sizeof(cydriver.CUeglStreamConnection) + if objType == GLenum: - return sizeof(cydriver.GLenum){{endif}} - {{if True}} + return sizeof(cydriver.GLenum) + if objType == GLuint: - return sizeof(cydriver.GLuint){{endif}} - {{if True}} + return sizeof(cydriver.GLuint) + if objType == EGLImageKHR: - return sizeof(cydriver.EGLImageKHR){{endif}} - {{if True}} + return sizeof(cydriver.EGLImageKHR) + if objType == EGLStreamKHR: - return sizeof(cydriver.EGLStreamKHR){{endif}} - {{if True}} + return sizeof(cydriver.EGLStreamKHR) + if objType == EGLint: - return sizeof(cydriver.EGLint){{endif}} - {{if True}} + return sizeof(cydriver.EGLint) + if objType == EGLSyncKHR: - return sizeof(cydriver.EGLSyncKHR){{endif}} - {{if True}} + return sizeof(cydriver.EGLSyncKHR) + if objType == VdpDevice: - return sizeof(cydriver.VdpDevice){{endif}} - {{if True}} + return sizeof(cydriver.VdpDevice) + if objType == VdpGetProcAddress: - return sizeof(cydriver.VdpGetProcAddress){{endif}} - {{if True}} + return sizeof(cydriver.VdpGetProcAddress) + if objType == VdpVideoSurface: - return sizeof(cydriver.VdpVideoSurface){{endif}} - {{if True}} + return sizeof(cydriver.VdpVideoSurface) + if objType == VdpOutputSurface: - return sizeof(cydriver.VdpOutputSurface){{endif}} + return sizeof(cydriver.VdpOutputSurface) 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 'CUcontext' in found_types}} + def CUcontext_getter(CUcontext x): return (x._pvt_ptr[0]) _add_cuda_native_handle_getter(CUcontext, CUcontext_getter) - {{endif}} - {{if 'CUmodule' in found_types}} + + def CUmodule_getter(CUmodule x): return (x._pvt_ptr[0]) _add_cuda_native_handle_getter(CUmodule, CUmodule_getter) - {{endif}} - {{if 'CUfunction' in found_types}} + + def CUfunction_getter(CUfunction x): return (x._pvt_ptr[0]) _add_cuda_native_handle_getter(CUfunction, CUfunction_getter) - {{endif}} - {{if 'CUlibrary' in found_types}} + + def CUlibrary_getter(CUlibrary x): return (x._pvt_ptr[0]) _add_cuda_native_handle_getter(CUlibrary, CUlibrary_getter) - {{endif}} - {{if 'CUkernel' in found_types}} + + def CUkernel_getter(CUkernel x): return (x._pvt_ptr[0]) _add_cuda_native_handle_getter(CUkernel, CUkernel_getter) - {{endif}} - {{if 'CUarray' in found_types}} + + def CUarray_getter(CUarray x): return (x._pvt_ptr[0]) _add_cuda_native_handle_getter(CUarray, CUarray_getter) - {{endif}} - {{if 'CUmipmappedArray' in found_types}} + + def CUmipmappedArray_getter(CUmipmappedArray x): return (x._pvt_ptr[0]) _add_cuda_native_handle_getter(CUmipmappedArray, CUmipmappedArray_getter) - {{endif}} - {{if 'CUtexref' in found_types}} + + def CUtexref_getter(CUtexref x): return (x._pvt_ptr[0]) _add_cuda_native_handle_getter(CUtexref, CUtexref_getter) - {{endif}} - {{if 'CUsurfref' in found_types}} + + def CUsurfref_getter(CUsurfref x): return (x._pvt_ptr[0]) _add_cuda_native_handle_getter(CUsurfref, CUsurfref_getter) - {{endif}} - {{if 'CUevent' in found_types}} + + def CUevent_getter(CUevent x): return (x._pvt_ptr[0]) _add_cuda_native_handle_getter(CUevent, CUevent_getter) - {{endif}} - {{if 'CUstream' in found_types}} + + def CUstream_getter(CUstream x): return (x._pvt_ptr[0]) _add_cuda_native_handle_getter(CUstream, CUstream_getter) - {{endif}} - {{if 'CUgraphicsResource' in found_types}} + + def CUgraphicsResource_getter(CUgraphicsResource x): return (x._pvt_ptr[0]) _add_cuda_native_handle_getter(CUgraphicsResource, CUgraphicsResource_getter) - {{endif}} - {{if 'CUexternalMemory' in found_types}} + + def CUexternalMemory_getter(CUexternalMemory x): return (x._pvt_ptr[0]) _add_cuda_native_handle_getter(CUexternalMemory, CUexternalMemory_getter) - {{endif}} - {{if 'CUexternalSemaphore' in found_types}} + + def CUexternalSemaphore_getter(CUexternalSemaphore x): return (x._pvt_ptr[0]) _add_cuda_native_handle_getter(CUexternalSemaphore, CUexternalSemaphore_getter) - {{endif}} - {{if 'CUgraph' in found_types}} + + def CUgraph_getter(CUgraph x): return (x._pvt_ptr[0]) _add_cuda_native_handle_getter(CUgraph, CUgraph_getter) - {{endif}} - {{if 'CUgraphNode' in found_types}} + + def CUgraphNode_getter(CUgraphNode x): return (x._pvt_ptr[0]) _add_cuda_native_handle_getter(CUgraphNode, CUgraphNode_getter) - {{endif}} - {{if 'CUgraphExec' in found_types}} + + def CUgraphExec_getter(CUgraphExec x): return (x._pvt_ptr[0]) _add_cuda_native_handle_getter(CUgraphExec, CUgraphExec_getter) - {{endif}} - {{if 'CUmemoryPool' in found_types}} + + def CUmemoryPool_getter(CUmemoryPool x): return (x._pvt_ptr[0]) _add_cuda_native_handle_getter(CUmemoryPool, CUmemoryPool_getter) - {{endif}} - {{if 'CUuserObject' in found_types}} + + def CUuserObject_getter(CUuserObject x): return (x._pvt_ptr[0]) _add_cuda_native_handle_getter(CUuserObject, CUuserObject_getter) - {{endif}} - {{if 'CUgraphDeviceNode' in found_types}} + + def CUgraphDeviceNode_getter(CUgraphDeviceNode x): return (x._pvt_ptr[0]) _add_cuda_native_handle_getter(CUgraphDeviceNode, CUgraphDeviceNode_getter) - {{endif}} - {{if 'CUasyncCallbackHandle' in found_types}} + + def CUasyncCallbackHandle_getter(CUasyncCallbackHandle x): return (x._pvt_ptr[0]) _add_cuda_native_handle_getter(CUasyncCallbackHandle, CUasyncCallbackHandle_getter) - {{endif}} - {{if 'CUgreenCtx' in found_types}} + + def CUgreenCtx_getter(CUgreenCtx x): return (x._pvt_ptr[0]) _add_cuda_native_handle_getter(CUgreenCtx, CUgreenCtx_getter) - {{endif}} - {{if 'CUlinkState' in found_types}} + + def CUlinkState_getter(CUlinkState x): return (x._pvt_ptr[0]) _add_cuda_native_handle_getter(CUlinkState, CUlinkState_getter) - {{endif}} - {{if 'CUcoredumpCallbackHandle' in found_types}} + + def CUcoredumpCallbackHandle_getter(CUcoredumpCallbackHandle x): return (x._pvt_ptr[0]) _add_cuda_native_handle_getter(CUcoredumpCallbackHandle, CUcoredumpCallbackHandle_getter) - {{endif}} - {{if 'CUdevResourceDesc' in found_types}} + + def CUdevResourceDesc_getter(CUdevResourceDesc x): return (x._pvt_ptr[0]) _add_cuda_native_handle_getter(CUdevResourceDesc, CUdevResourceDesc_getter) - {{endif}} - {{if 'CUlogsCallbackHandle' in found_types}} + + def CUlogsCallbackHandle_getter(CUlogsCallbackHandle x): return (x._pvt_ptr[0]) _add_cuda_native_handle_getter(CUlogsCallbackHandle, CUlogsCallbackHandle_getter) - {{endif}} - {{if True}} + + def CUeglStreamConnection_getter(CUeglStreamConnection x): return (x._pvt_ptr[0]) _add_cuda_native_handle_getter(CUeglStreamConnection, CUeglStreamConnection_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}} + return 0 _add_native_handle_getters() - diff --git a/cuda_bindings/cuda/bindings/nvrtc.pxd b/cuda_bindings/cuda/bindings/nvrtc.pxd index 5cb372430f9..1a38f2225ee 100644 --- a/cuda_bindings/cuda/bindings/nvrtc.pxd +++ b/cuda_bindings/cuda/bindings/nvrtc.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.2.0, generator version 0.3.1.dev1364+ged01d643e. Do not modify it directly. +# This code was automatically generated with version 13.2.0, generator version 0.3.1.dev1630+gadce055ea.d20260422. Do not modify it directly. cimport cuda.bindings.cynvrtc as cynvrtc include "_lib/utils.pxd" diff --git a/cuda_bindings/cuda/bindings/nvrtc.pyx b/cuda_bindings/cuda/bindings/nvrtc.pyx index aca1ead365f..268a220fc56 100644 --- a/cuda_bindings/cuda/bindings/nvrtc.pyx +++ b/cuda_bindings/cuda/bindings/nvrtc.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.2.0, generator version 0.3.1.dev1364+ged01d643e. Do not modify it directly. +# This code was automatically generated with version 13.2.0, generator version 0.3.1.dev1630+gadce055ea.d20260422. Do not modify it directly. from typing import Any, Optional import cython import ctypes diff --git a/cuda_bindings/tests/test_cuda.py b/cuda_bindings/tests/test_cuda.py index e3eefb1fdd7..9e07bf50267 100644 --- a/cuda_bindings/tests/test_cuda.py +++ b/cuda_bindings/tests/test_cuda.py @@ -875,7 +875,7 @@ def test_cuCheckpointProcessGetState_failure(): def test_private_function_pointer_inspector(): - from cuda.bindings._bindings.cydriver import _inspect_function_pointer + from cuda.bindings._internal.driver import _inspect_function_pointer assert _inspect_function_pointer("__cuGetErrorString") != 0 From 992998a462ebdd3079b36d5c250e100433fe7297 Mon Sep 17 00:00:00 2001 From: Michael Droettboom Date: Fri, 24 Apr 2026 10:59:29 -0400 Subject: [PATCH 2/6] Fix Cython interop tests --- cuda_bindings/cuda/bindings/cydriver.pxd | 104 +++++++++++++++++------ 1 file changed, 78 insertions(+), 26 deletions(-) diff --git a/cuda_bindings/cuda/bindings/cydriver.pxd b/cuda_bindings/cuda/bindings/cydriver.pxd index f814063aeb3..33f47f996f1 100644 --- a/cuda_bindings/cuda/bindings/cydriver.pxd +++ b/cuda_bindings/cuda/bindings/cydriver.pxd @@ -1741,107 +1741,159 @@ cdef extern from '': cdef extern from '': - ctypedef void* CUcontext 'CUcontext' + ctypedef struct CUctx_st: + pass + ctypedef CUctx_st* CUcontext 'CUcontext' cdef extern from '': - ctypedef void* CUmodule 'CUmodule' + ctypedef struct CUmod_st: + pass + ctypedef CUmod_st* CUmodule 'CUmodule' cdef extern from '': - ctypedef void* CUfunction 'CUfunction' + ctypedef struct CUfunc_st: + pass + ctypedef CUfunc_st* CUfunction 'CUfunction' cdef extern from '': - ctypedef void* CUlibrary 'CUlibrary' + ctypedef struct CUlib_st: + pass + ctypedef CUlib_st* CUlibrary 'CUlibrary' cdef extern from '': - ctypedef void* CUkernel 'CUkernel' + ctypedef struct CUkern_st: + pass + ctypedef CUkern_st* CUkernel 'CUkernel' cdef extern from '': - ctypedef void* CUarray 'CUarray' + ctypedef struct CUarray_st: + pass + ctypedef CUarray_st* CUarray 'CUarray' cdef extern from '': - ctypedef void* CUmipmappedArray 'CUmipmappedArray' + ctypedef struct CUmipmappedArray_st: + pass + ctypedef CUmipmappedArray_st* CUmipmappedArray 'CUmipmappedArray' cdef extern from '': - ctypedef void* CUtexref 'CUtexref' + ctypedef struct CUtexref_st: + pass + ctypedef CUtexref_st* CUtexref 'CUtexref' cdef extern from '': - ctypedef void* CUsurfref 'CUsurfref' + ctypedef struct CUsurfref_st: + pass + ctypedef CUsurfref_st* CUsurfref 'CUsurfref' cdef extern from '': - ctypedef void* CUevent 'CUevent' + ctypedef struct CUevent_st: + pass + ctypedef CUevent_st* CUevent 'CUevent' cdef extern from '': - ctypedef void* CUstream 'CUstream' + ctypedef struct CUstream_st: + pass + ctypedef CUstream_st* CUstream 'CUstream' cdef extern from '': - ctypedef void* CUgraphicsResource 'CUgraphicsResource' + ctypedef struct CUgraphicsResource_st: + pass + ctypedef CUgraphicsResource_st* CUgraphicsResource 'CUgraphicsResource' cdef extern from '': - ctypedef void* CUexternalMemory 'CUexternalMemory' + ctypedef struct CUextMemory_st: + pass + ctypedef CUextMemory_st* CUexternalMemory 'CUexternalMemory' cdef extern from '': - ctypedef void* CUexternalSemaphore 'CUexternalSemaphore' + ctypedef struct CUextSemaphore_st: + pass + ctypedef CUextSemaphore_st* CUexternalSemaphore 'CUexternalSemaphore' cdef extern from '': - ctypedef void* CUgraph 'CUgraph' + ctypedef struct CUgraph_st: + pass + ctypedef CUgraph_st* CUgraph 'CUgraph' cdef extern from '': - ctypedef void* CUgraphNode 'CUgraphNode' + ctypedef struct CUgraphNode_st: + pass + ctypedef CUgraphNode_st* CUgraphNode 'CUgraphNode' cdef extern from '': - ctypedef void* CUgraphExec 'CUgraphExec' + ctypedef struct CUgraphExec_st: + pass + ctypedef CUgraphExec_st* CUgraphExec 'CUgraphExec' cdef extern from '': - ctypedef void* CUmemoryPool 'CUmemoryPool' + ctypedef struct CUmemPoolHandle_st: + pass + ctypedef CUmemPoolHandle_st* CUmemoryPool 'CUmemoryPool' cdef extern from '': - ctypedef void* CUuserObject 'CUuserObject' + ctypedef struct CUuserObject_st: + pass + ctypedef CUuserObject_st* CUuserObject 'CUuserObject' cdef extern from '': - ctypedef void* CUgraphDeviceNode 'CUgraphDeviceNode' + ctypedef struct CUgraphDeviceUpdatableNode_st: + pass + ctypedef CUgraphDeviceUpdatableNode_st* CUgraphDeviceNode 'CUgraphDeviceNode' cdef extern from '': - ctypedef void* CUasyncCallbackHandle 'CUasyncCallbackHandle' + ctypedef struct CUasyncCallbackEntry_st: + pass + ctypedef CUasyncCallbackEntry_st* CUasyncCallbackHandle 'CUasyncCallbackHandle' cdef extern from '': - ctypedef void* CUgreenCtx 'CUgreenCtx' + ctypedef struct CUgreenCtx_st: + pass + ctypedef CUgreenCtx_st* CUgreenCtx 'CUgreenCtx' cdef extern from '': - ctypedef void* CUlinkState 'CUlinkState' + ctypedef struct CUlinkState_st: + pass + ctypedef CUlinkState_st* CUlinkState 'CUlinkState' cdef extern from '': - ctypedef void* CUdevResourceDesc 'CUdevResourceDesc' + ctypedef struct CUdevResourceDesc_st: + pass + ctypedef CUdevResourceDesc_st* CUdevResourceDesc 'CUdevResourceDesc' cdef extern from '': - ctypedef void* CUlogsCallbackHandle 'CUlogsCallbackHandle' + ctypedef struct CUlogsCallbackEntry_st: + pass + ctypedef CUlogsCallbackEntry_st* CUlogsCallbackHandle 'CUlogsCallbackHandle' cdef extern from '': - ctypedef void* CUcoredumpCallbackHandle 'CUcoredumpCallbackHandle' + ctypedef struct CUcoredumpCallbackEntry_st: + pass + ctypedef CUcoredumpCallbackEntry_st* CUcoredumpCallbackHandle 'CUcoredumpCallbackHandle' cdef extern from '': From 6b1d2d317fdbafd322e8533ed514ed8523a1ae4d Mon Sep 17 00:00:00 2001 From: Michael Droettboom Date: Fri, 24 Apr 2026 13:36:55 -0400 Subject: [PATCH 3/6] Handle headers differently --- .../cuda/bindings/_internal/_fast_enum.py | 2 +- cuda_bindings/cuda/bindings/cydriver.pxd | 622 +++++++++--------- 2 files changed, 312 insertions(+), 312 deletions(-) diff --git a/cuda_bindings/cuda/bindings/_internal/_fast_enum.py b/cuda_bindings/cuda/bindings/_internal/_fast_enum.py index 556cd33459e..a145000c6ec 100644 --- a/cuda_bindings/cuda/bindings/_internal/_fast_enum.py +++ b/cuda_bindings/cuda/bindings/_internal/_fast_enum.py @@ -2,7 +2,7 @@ # SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE -# This code was automatically generated across versions from 12.9.1 to 13.2.0, generator version 0.3.1.dev1422+gf4812259e.d20260318. Do not modify it directly. +# This code was automatically generated across versions from 12.9.0 to 13.2.0, generator version 0.3.1.dev1630+gadce055ea.d20260422. Do not modify it directly. """ diff --git a/cuda_bindings/cuda/bindings/cydriver.pxd b/cuda_bindings/cuda/bindings/cydriver.pxd index 33f47f996f1..884909736e3 100644 --- a/cuda_bindings/cuda/bindings/cydriver.pxd +++ b/cuda_bindings/cuda/bindings/cydriver.pxd @@ -27,19 +27,19 @@ ctypedef uint32_t VdpOutputSurface # ENUMS -cdef extern from '': +cdef extern from 'cuda.h': ctypedef enum CUipcMem_flags_enum: CU_IPC_MEM_LAZY_ENABLE_PEER_ACCESS ctypedef CUipcMem_flags_enum CUipcMem_flags -cdef extern from '': +cdef extern from 'cuda.h': ctypedef 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 '': +cdef extern from 'cuda.h': ctypedef enum CUctx_flags_enum: CU_CTX_SCHED_AUTO CU_CTX_SCHED_SPIN @@ -55,7 +55,7 @@ cdef extern from '': CU_CTX_FLAGS_MASK ctypedef CUctx_flags_enum CUctx_flags -cdef extern from '': +cdef extern from 'cuda.h': ctypedef enum CUevent_sched_flags_enum: CU_EVENT_SCHED_AUTO CU_EVENT_SCHED_SPIN @@ -63,7 +63,7 @@ cdef extern from '': CU_EVENT_SCHED_BLOCKING_SYNC ctypedef CUevent_sched_flags_enum CUevent_sched_flags -cdef extern from '': +cdef extern from 'cuda.h': ctypedef enum cl_event_flags_enum: NVCL_EVENT_SCHED_AUTO NVCL_EVENT_SCHED_SPIN @@ -71,7 +71,7 @@ cdef extern from '': NVCL_EVENT_SCHED_BLOCKING_SYNC ctypedef cl_event_flags_enum cl_event_flags -cdef extern from '': +cdef extern from 'cuda.h': ctypedef enum cl_context_flags_enum: NVCL_CTX_SCHED_AUTO NVCL_CTX_SCHED_SPIN @@ -79,13 +79,13 @@ cdef extern from '': NVCL_CTX_SCHED_BLOCKING_SYNC ctypedef cl_context_flags_enum cl_context_flags -cdef extern from '': +cdef extern from 'cuda.h': ctypedef enum CUstream_flags_enum: CU_STREAM_DEFAULT CU_STREAM_NON_BLOCKING ctypedef CUstream_flags_enum CUstream_flags -cdef extern from '': +cdef extern from 'cuda.h': ctypedef enum CUevent_flags_enum: CU_EVENT_DEFAULT CU_EVENT_BLOCKING_SYNC @@ -93,19 +93,19 @@ cdef extern from '': CU_EVENT_INTERPROCESS ctypedef CUevent_flags_enum CUevent_flags -cdef extern from '': +cdef extern from 'cuda.h': ctypedef enum CUevent_record_flags_enum: CU_EVENT_RECORD_DEFAULT CU_EVENT_RECORD_EXTERNAL ctypedef CUevent_record_flags_enum CUevent_record_flags -cdef extern from '': +cdef extern from 'cuda.h': ctypedef enum CUevent_wait_flags_enum: CU_EVENT_WAIT_DEFAULT CU_EVENT_WAIT_EXTERNAL ctypedef CUevent_wait_flags_enum CUevent_wait_flags -cdef extern from '': +cdef extern from 'cuda.h': ctypedef enum CUstreamWaitValue_flags_enum: CU_STREAM_WAIT_VALUE_GEQ CU_STREAM_WAIT_VALUE_EQ @@ -114,13 +114,13 @@ cdef extern from '': CU_STREAM_WAIT_VALUE_FLUSH ctypedef CUstreamWaitValue_flags_enum CUstreamWaitValue_flags -cdef extern from '': +cdef extern from 'cuda.h': ctypedef 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 '': +cdef extern from 'cuda.h': ctypedef enum CUstreamBatchMemOpType_enum: CU_STREAM_MEM_OP_WAIT_VALUE_32 CU_STREAM_MEM_OP_WRITE_VALUE_32 @@ -131,30 +131,30 @@ cdef extern from '': CU_STREAM_MEM_OP_FLUSH_REMOTE_WRITES ctypedef CUstreamBatchMemOpType_enum CUstreamBatchMemOpType -cdef extern from '': +cdef extern from 'cuda.h': ctypedef 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 '': +cdef extern from 'cuda.h': ctypedef enum CUoccupancy_flags_enum: CU_OCCUPANCY_DEFAULT CU_OCCUPANCY_DISABLE_CACHING_OVERRIDE ctypedef CUoccupancy_flags_enum CUoccupancy_flags -cdef extern from '': +cdef extern from 'cuda.h': ctypedef enum CUstreamUpdateCaptureDependencies_flags_enum: CU_STREAM_ADD_CAPTURE_DEPENDENCIES CU_STREAM_SET_CAPTURE_DEPENDENCIES ctypedef CUstreamUpdateCaptureDependencies_flags_enum CUstreamUpdateCaptureDependencies_flags -cdef extern from '': +cdef extern from 'cuda.h': ctypedef enum CUasyncNotificationType_enum: CU_ASYNC_NOTIFICATION_TYPE_OVER_BUDGET ctypedef CUasyncNotificationType_enum CUasyncNotificationType -cdef extern from '': +cdef extern from 'cuda.h': ctypedef enum CUarray_format_enum: CU_AD_FORMAT_UNSIGNED_INT8 CU_AD_FORMAT_UNSIGNED_INT16 @@ -224,7 +224,7 @@ cdef extern from '': CU_AD_FORMAT_MAX ctypedef CUarray_format_enum CUarray_format -cdef extern from '': +cdef extern from 'cuda.h': ctypedef enum CUaddress_mode_enum: CU_TR_ADDRESS_MODE_WRAP CU_TR_ADDRESS_MODE_CLAMP @@ -232,13 +232,13 @@ cdef extern from '': CU_TR_ADDRESS_MODE_BORDER ctypedef CUaddress_mode_enum CUaddress_mode -cdef extern from '': +cdef extern from 'cuda.h': ctypedef enum CUfilter_mode_enum: CU_TR_FILTER_MODE_POINT CU_TR_FILTER_MODE_LINEAR ctypedef CUfilter_mode_enum CUfilter_mode -cdef extern from '': +cdef extern from 'cuda.h': ctypedef enum CUdevice_attribute_enum: CU_DEVICE_ATTRIBUTE_MAX_THREADS_PER_BLOCK CU_DEVICE_ATTRIBUTE_MAX_BLOCK_DIM_X @@ -397,7 +397,7 @@ cdef extern from '': CU_DEVICE_ATTRIBUTE_MAX ctypedef CUdevice_attribute_enum CUdevice_attribute -cdef extern from '': +cdef extern from 'cuda.h': ctypedef enum CUpointer_attribute_enum: CU_POINTER_ATTRIBUTE_CONTEXT CU_POINTER_ATTRIBUTE_MEMORY_TYPE @@ -422,7 +422,7 @@ cdef extern from '': CU_POINTER_ATTRIBUTE_IS_HW_DECOMPRESS_CAPABLE ctypedef CUpointer_attribute_enum CUpointer_attribute -cdef extern from '': +cdef extern from 'cuda.h': ctypedef enum CUfunction_attribute_enum: CU_FUNC_ATTRIBUTE_MAX_THREADS_PER_BLOCK CU_FUNC_ATTRIBUTE_SHARED_SIZE_BYTES @@ -443,7 +443,7 @@ cdef extern from '': CU_FUNC_ATTRIBUTE_MAX ctypedef CUfunction_attribute_enum CUfunction_attribute -cdef extern from '': +cdef extern from 'cuda.h': ctypedef enum CUfunc_cache_enum: CU_FUNC_CACHE_PREFER_NONE CU_FUNC_CACHE_PREFER_SHARED @@ -451,21 +451,21 @@ cdef extern from '': CU_FUNC_CACHE_PREFER_EQUAL ctypedef CUfunc_cache_enum CUfunc_cache -cdef extern from '': +cdef extern from 'cuda.h': ctypedef 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 '': +cdef extern from 'cuda.h': ctypedef 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 '': +cdef extern from 'cuda.h': ctypedef enum CUmemorytype_enum: CU_MEMORYTYPE_HOST CU_MEMORYTYPE_DEVICE @@ -473,14 +473,14 @@ cdef extern from '': CU_MEMORYTYPE_UNIFIED ctypedef CUmemorytype_enum CUmemorytype -cdef extern from '': +cdef extern from 'cuda.h': ctypedef enum CUcomputemode_enum: CU_COMPUTEMODE_DEFAULT CU_COMPUTEMODE_PROHIBITED CU_COMPUTEMODE_EXCLUSIVE_PROCESS ctypedef CUcomputemode_enum CUcomputemode -cdef extern from '': +cdef extern from 'cuda.h': ctypedef enum CUmem_advise_enum: CU_MEM_ADVISE_SET_READ_MOSTLY CU_MEM_ADVISE_UNSET_READ_MOSTLY @@ -490,7 +490,7 @@ cdef extern from '': CU_MEM_ADVISE_UNSET_ACCESSED_BY ctypedef CUmem_advise_enum CUmem_advise -cdef extern from '': +cdef extern from 'cuda.h': ctypedef enum CUmem_range_attribute_enum: CU_MEM_RANGE_ATTRIBUTE_READ_MOSTLY CU_MEM_RANGE_ATTRIBUTE_PREFERRED_LOCATION @@ -502,7 +502,7 @@ cdef extern from '': CU_MEM_RANGE_ATTRIBUTE_LAST_PREFETCH_LOCATION_ID ctypedef CUmem_range_attribute_enum CUmem_range_attribute -cdef extern from '': +cdef extern from 'cuda.h': ctypedef enum CUjit_option_enum: CU_JIT_MAX_REGISTERS CU_JIT_THREADS_PER_BLOCK @@ -543,7 +543,7 @@ cdef extern from '': CU_JIT_NUM_OPTIONS ctypedef CUjit_option_enum CUjit_option -cdef extern from '': +cdef extern from 'cuda.h': ctypedef enum CUjit_target_enum: CU_TARGET_COMPUTE_30 CU_TARGET_COMPUTE_32 @@ -584,20 +584,20 @@ cdef extern from '': CU_TARGET_COMPUTE_101F ctypedef CUjit_target_enum CUjit_target -cdef extern from '': +cdef extern from 'cuda.h': ctypedef enum CUjit_fallback_enum: CU_PREFER_PTX CU_PREFER_BINARY ctypedef CUjit_fallback_enum CUjit_fallback -cdef extern from '': +cdef extern from 'cuda.h': ctypedef 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 '': +cdef extern from 'cuda.h': ctypedef enum CUjitInputType_enum: CU_JIT_INPUT_CUBIN CU_JIT_INPUT_PTX @@ -608,7 +608,7 @@ cdef extern from '': CU_JIT_NUM_INPUT_TYPES ctypedef CUjitInputType_enum CUjitInputType -cdef extern from '': +cdef extern from 'cuda.h': ctypedef enum CUgraphicsRegisterFlags_enum: CU_GRAPHICS_REGISTER_FLAGS_NONE CU_GRAPHICS_REGISTER_FLAGS_READ_ONLY @@ -617,14 +617,14 @@ cdef extern from '': CU_GRAPHICS_REGISTER_FLAGS_TEXTURE_GATHER ctypedef CUgraphicsRegisterFlags_enum CUgraphicsRegisterFlags -cdef extern from '': +cdef extern from 'cuda.h': ctypedef 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 '': +cdef extern from 'cuda.h': ctypedef enum CUarray_cubemap_face_enum: CU_CUBEMAP_FACE_POSITIVE_X CU_CUBEMAP_FACE_NEGATIVE_X @@ -634,7 +634,7 @@ cdef extern from '': CU_CUBEMAP_FACE_NEGATIVE_Z ctypedef CUarray_cubemap_face_enum CUarray_cubemap_face -cdef extern from '': +cdef extern from 'cuda.h': ctypedef enum CUlimit_enum: CU_LIMIT_STACK_SIZE CU_LIMIT_PRINTF_FIFO_SIZE @@ -649,7 +649,7 @@ cdef extern from '': CU_LIMIT_MAX ctypedef CUlimit_enum CUlimit -cdef extern from '': +cdef extern from 'cuda.h': ctypedef enum CUresourcetype_enum: CU_RESOURCE_TYPE_ARRAY CU_RESOURCE_TYPE_MIPMAPPED_ARRAY @@ -657,21 +657,21 @@ cdef extern from '': CU_RESOURCE_TYPE_PITCH2D ctypedef CUresourcetype_enum CUresourcetype -cdef extern from '': +cdef extern from 'cuda.h': ctypedef enum CUaccessProperty_enum: CU_ACCESS_PROPERTY_NORMAL CU_ACCESS_PROPERTY_STREAMING CU_ACCESS_PROPERTY_PERSISTING ctypedef CUaccessProperty_enum CUaccessProperty -cdef extern from '': +cdef extern from 'cuda.h': ctypedef 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 '': +cdef extern from 'cuda.h': ctypedef enum CUgraphNodeType_enum: CU_GRAPH_NODE_TYPE_KERNEL CU_GRAPH_NODE_TYPE_MEMCPY @@ -689,13 +689,13 @@ cdef extern from '': CU_GRAPH_NODE_TYPE_CONDITIONAL ctypedef CUgraphNodeType_enum CUgraphNodeType -cdef extern from '': +cdef extern from 'cuda.h': ctypedef enum CUgraphDependencyType_enum: CU_GRAPH_DEPENDENCY_TYPE_DEFAULT CU_GRAPH_DEPENDENCY_TYPE_PROGRAMMATIC ctypedef CUgraphDependencyType_enum CUgraphDependencyType -cdef extern from '': +cdef extern from 'cuda.h': ctypedef enum CUgraphInstantiateResult_enum: CUDA_GRAPH_INSTANTIATE_SUCCESS CUDA_GRAPH_INSTANTIATE_ERROR @@ -705,7 +705,7 @@ cdef extern from '': CUDA_GRAPH_INSTANTIATE_CONDITIONAL_HANDLE_UNUSED ctypedef CUgraphInstantiateResult_enum CUgraphInstantiateResult -cdef extern from '': +cdef extern from 'cuda.h': ctypedef enum CUsynchronizationPolicy_enum: CU_SYNC_POLICY_AUTO CU_SYNC_POLICY_SPIN @@ -713,20 +713,20 @@ cdef extern from '': CU_SYNC_POLICY_BLOCKING_SYNC ctypedef CUsynchronizationPolicy_enum CUsynchronizationPolicy -cdef extern from '': +cdef extern from 'cuda.h': ctypedef 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 '': +cdef extern from 'cuda.h': ctypedef enum CUlaunchMemSyncDomain_enum: CU_LAUNCH_MEM_SYNC_DOMAIN_DEFAULT CU_LAUNCH_MEM_SYNC_DOMAIN_REMOTE ctypedef CUlaunchMemSyncDomain_enum CUlaunchMemSyncDomain -cdef extern from '': +cdef extern from 'cuda.h': ctypedef enum CUlaunchAttributeID_enum: CU_LAUNCH_ATTRIBUTE_IGNORE CU_LAUNCH_ATTRIBUTE_ACCESS_POLICY_WINDOW @@ -748,54 +748,54 @@ cdef extern from '': CU_LAUNCH_ATTRIBUTE_SHARED_MEMORY_MODE ctypedef CUlaunchAttributeID_enum CUlaunchAttributeID -cdef extern from '': +cdef extern from 'cuda.h': ctypedef 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 '': +cdef extern from 'cuda.h': ctypedef 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 '': +cdef extern from 'cuda.h': ctypedef 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 '': +cdef extern from 'cuda.h': ctypedef 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 '': +cdef extern from 'cuda.h': ctypedef enum CUexecAffinityType_enum: CU_EXEC_AFFINITY_TYPE_SM_COUNT CU_EXEC_AFFINITY_TYPE_MAX ctypedef CUexecAffinityType_enum CUexecAffinityType -cdef extern from '': +cdef extern from 'cuda.h': ctypedef enum CUcigDataType_enum: CIG_DATA_TYPE_D3D12_COMMAND_QUEUE CIG_DATA_TYPE_NV_BLOB ctypedef CUcigDataType_enum CUcigDataType -cdef extern from '': +cdef extern from 'cuda.h': ctypedef 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 '': +cdef extern from 'cuda.h': ctypedef enum cudaError_enum: CUDA_SUCCESS CUDA_ERROR_INVALID_VALUE @@ -901,7 +901,7 @@ cdef extern from '': CUDA_ERROR_UNKNOWN ctypedef cudaError_enum CUresult -cdef extern from '': +cdef extern from 'cuda.h': ctypedef enum CUdevice_P2PAttribute_enum: CU_DEVICE_P2P_ATTRIBUTE_PERFORMANCE_RANK CU_DEVICE_P2P_ATTRIBUTE_ACCESS_SUPPORTED @@ -911,7 +911,7 @@ cdef extern from '': CU_DEVICE_P2P_ATTRIBUTE_ONLY_PARTIAL_NATIVE_ATOMIC_SUPPORTED ctypedef CUdevice_P2PAttribute_enum CUdevice_P2PAttribute -cdef extern from '': +cdef extern from 'cuda.h': ctypedef enum CUresourceViewFormat_enum: CU_RES_VIEW_FORMAT_NONE CU_RES_VIEW_FORMAT_UINT_1X8 @@ -950,7 +950,7 @@ cdef extern from '': CU_RES_VIEW_FORMAT_UNSIGNED_BC7 ctypedef CUresourceViewFormat_enum CUresourceViewFormat -cdef extern from '': +cdef extern from 'cuda.h': ctypedef enum CUtensorMapDataType_enum: CU_TENSOR_MAP_DATA_TYPE_UINT8 CU_TENSOR_MAP_DATA_TYPE_UINT16 @@ -970,14 +970,14 @@ cdef extern from '': CU_TENSOR_MAP_DATA_TYPE_16U6_ALIGN16B ctypedef CUtensorMapDataType_enum CUtensorMapDataType -cdef extern from '': +cdef extern from 'cuda.h': ctypedef 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 '': +cdef extern from 'cuda.h': ctypedef enum CUtensorMapSwizzle_enum: CU_TENSOR_MAP_SWIZZLE_NONE CU_TENSOR_MAP_SWIZZLE_32B @@ -988,7 +988,7 @@ cdef extern from '': CU_TENSOR_MAP_SWIZZLE_128B_ATOM_64B ctypedef CUtensorMapSwizzle_enum CUtensorMapSwizzle -cdef extern from '': +cdef extern from 'cuda.h': ctypedef enum CUtensorMapL2promotion_enum: CU_TENSOR_MAP_L2_PROMOTION_NONE CU_TENSOR_MAP_L2_PROMOTION_L2_64B @@ -996,26 +996,26 @@ cdef extern from '': CU_TENSOR_MAP_L2_PROMOTION_L2_256B ctypedef CUtensorMapL2promotion_enum CUtensorMapL2promotion -cdef extern from '': +cdef extern from 'cuda.h': ctypedef 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 '': +cdef extern from 'cuda.h': ctypedef enum CUtensorMapIm2ColWideMode_enum: CU_TENSOR_MAP_IM2COL_WIDE_MODE_W CU_TENSOR_MAP_IM2COL_WIDE_MODE_W128 ctypedef CUtensorMapIm2ColWideMode_enum CUtensorMapIm2ColWideMode -cdef extern from '': +cdef extern from 'cuda.h': ctypedef 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 '': +cdef extern from 'cuda.h': ctypedef enum CUexternalMemoryHandleType_enum: CU_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_FD CU_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_WIN32 @@ -1028,7 +1028,7 @@ cdef extern from '': CU_EXTERNAL_MEMORY_HANDLE_TYPE_DMABUF_FD ctypedef CUexternalMemoryHandleType_enum CUexternalMemoryHandleType -cdef extern from '': +cdef extern from 'cuda.h': ctypedef enum CUexternalSemaphoreHandleType_enum: CU_EXTERNAL_SEMAPHORE_HANDLE_TYPE_OPAQUE_FD CU_EXTERNAL_SEMAPHORE_HANDLE_TYPE_OPAQUE_WIN32 @@ -1042,7 +1042,7 @@ cdef extern from '': CU_EXTERNAL_SEMAPHORE_HANDLE_TYPE_TIMELINE_SEMAPHORE_WIN32 ctypedef CUexternalSemaphoreHandleType_enum CUexternalSemaphoreHandleType -cdef extern from '': +cdef extern from 'cuda.h': ctypedef enum CUmemAllocationHandleType_enum: CU_MEM_HANDLE_TYPE_NONE CU_MEM_HANDLE_TYPE_POSIX_FILE_DESCRIPTOR @@ -1052,7 +1052,7 @@ cdef extern from '': CU_MEM_HANDLE_TYPE_MAX ctypedef CUmemAllocationHandleType_enum CUmemAllocationHandleType -cdef extern from '': +cdef extern from 'cuda.h': ctypedef enum CUmemAccess_flags_enum: CU_MEM_ACCESS_FLAGS_PROT_NONE CU_MEM_ACCESS_FLAGS_PROT_READ @@ -1060,7 +1060,7 @@ cdef extern from '': CU_MEM_ACCESS_FLAGS_PROT_MAX ctypedef CUmemAccess_flags_enum CUmemAccess_flags -cdef extern from '': +cdef extern from 'cuda.h': ctypedef enum CUmemLocationType_enum: CU_MEM_LOCATION_TYPE_INVALID CU_MEM_LOCATION_TYPE_NONE @@ -1072,7 +1072,7 @@ cdef extern from '': CU_MEM_LOCATION_TYPE_MAX ctypedef CUmemLocationType_enum CUmemLocationType -cdef extern from '': +cdef extern from 'cuda.h': ctypedef enum CUmemAllocationType_enum: CU_MEM_ALLOCATION_TYPE_INVALID CU_MEM_ALLOCATION_TYPE_PINNED @@ -1080,53 +1080,53 @@ cdef extern from '': CU_MEM_ALLOCATION_TYPE_MAX ctypedef CUmemAllocationType_enum CUmemAllocationType -cdef extern from '': +cdef extern from 'cuda.h': ctypedef enum CUmemAllocationGranularity_flags_enum: CU_MEM_ALLOC_GRANULARITY_MINIMUM CU_MEM_ALLOC_GRANULARITY_RECOMMENDED ctypedef CUmemAllocationGranularity_flags_enum CUmemAllocationGranularity_flags -cdef extern from '': +cdef extern from 'cuda.h': ctypedef enum CUmemRangeHandleType_enum: CU_MEM_RANGE_HANDLE_TYPE_DMA_BUF_FD CU_MEM_RANGE_HANDLE_TYPE_MAX ctypedef CUmemRangeHandleType_enum CUmemRangeHandleType -cdef extern from '': +cdef extern from 'cuda.h': ctypedef enum CUmemRangeFlags_enum: CU_MEM_RANGE_FLAG_DMA_BUF_MAPPING_TYPE_PCIE ctypedef CUmemRangeFlags_enum CUmemRangeFlags -cdef extern from '': +cdef extern from 'cuda.h': ctypedef enum CUarraySparseSubresourceType_enum: CU_ARRAY_SPARSE_SUBRESOURCE_TYPE_SPARSE_LEVEL CU_ARRAY_SPARSE_SUBRESOURCE_TYPE_MIPTAIL ctypedef CUarraySparseSubresourceType_enum CUarraySparseSubresourceType -cdef extern from '': +cdef extern from 'cuda.h': ctypedef enum CUmemOperationType_enum: CU_MEM_OPERATION_TYPE_MAP CU_MEM_OPERATION_TYPE_UNMAP ctypedef CUmemOperationType_enum CUmemOperationType -cdef extern from '': +cdef extern from 'cuda.h': ctypedef enum CUmemHandleType_enum: CU_MEM_HANDLE_TYPE_GENERIC ctypedef CUmemHandleType_enum CUmemHandleType -cdef extern from '': +cdef extern from 'cuda.h': ctypedef enum CUmemAllocationCompType_enum: CU_MEM_ALLOCATION_COMP_NONE CU_MEM_ALLOCATION_COMP_GENERIC ctypedef CUmemAllocationCompType_enum CUmemAllocationCompType -cdef extern from '': +cdef extern from 'cuda.h': ctypedef enum CUmulticastGranularity_flags_enum: CU_MULTICAST_GRANULARITY_MINIMUM CU_MULTICAST_GRANULARITY_RECOMMENDED ctypedef CUmulticastGranularity_flags_enum CUmulticastGranularity_flags -cdef extern from '': +cdef extern from 'cuda.h': ctypedef enum CUgraphExecUpdateResult_enum: CU_GRAPH_EXEC_UPDATE_SUCCESS CU_GRAPH_EXEC_UPDATE_ERROR @@ -1139,7 +1139,7 @@ cdef extern from '': CU_GRAPH_EXEC_UPDATE_ERROR_ATTRIBUTES_CHANGED ctypedef CUgraphExecUpdateResult_enum CUgraphExecUpdateResult -cdef extern from '': +cdef extern from 'cuda.h': ctypedef enum CUmemPool_attribute_enum: CU_MEMPOOL_ATTR_REUSE_FOLLOW_EVENT_DEPENDENCIES CU_MEMPOOL_ATTR_REUSE_ALLOW_OPPORTUNISTIC @@ -1157,13 +1157,13 @@ cdef extern from '': CU_MEMPOOL_ATTR_HW_DECOMPRESS_ENABLED ctypedef CUmemPool_attribute_enum CUmemPool_attribute -cdef extern from '': +cdef extern from 'cuda.h': ctypedef enum CUmemcpyFlags_enum: CU_MEMCPY_FLAG_DEFAULT CU_MEMCPY_FLAG_PREFER_OVERLAP_WITH_COMPUTE ctypedef CUmemcpyFlags_enum CUmemcpyFlags -cdef extern from '': +cdef extern from 'cuda.h': ctypedef enum CUmemcpySrcAccessOrder_enum: CU_MEMCPY_SRC_ACCESS_ORDER_INVALID CU_MEMCPY_SRC_ACCESS_ORDER_STREAM @@ -1172,14 +1172,14 @@ cdef extern from '': CU_MEMCPY_SRC_ACCESS_ORDER_MAX ctypedef CUmemcpySrcAccessOrder_enum CUmemcpySrcAccessOrder -cdef extern from '': +cdef extern from 'cuda.h': ctypedef 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 '': +cdef extern from 'cuda.h': ctypedef enum CUgraphMem_attribute_enum: CU_GRAPH_MEM_ATTR_USED_MEM_CURRENT CU_GRAPH_MEM_ATTR_USED_MEM_HIGH @@ -1187,38 +1187,38 @@ cdef extern from '': CU_GRAPH_MEM_ATTR_RESERVED_MEM_HIGH ctypedef CUgraphMem_attribute_enum CUgraphMem_attribute -cdef extern from '': +cdef extern from 'cuda.h': ctypedef 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 '': +cdef extern from 'cuda.h': ctypedef 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 '': +cdef extern from 'cuda.h': ctypedef 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 '': +cdef extern from 'cuda.h': ctypedef 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 '': +cdef extern from 'cuda.h': ctypedef enum CUflushGPUDirectRDMAWritesTarget_enum: CU_FLUSH_GPU_DIRECT_RDMA_WRITES_TARGET_CURRENT_CTX ctypedef CUflushGPUDirectRDMAWritesTarget_enum CUflushGPUDirectRDMAWritesTarget -cdef extern from '': +cdef extern from 'cuda.h': ctypedef enum CUgraphDebugDot_flags_enum: CU_GRAPH_DEBUG_DOT_FLAGS_VERBOSE CU_GRAPH_DEBUG_DOT_FLAGS_RUNTIME_TYPES @@ -1238,17 +1238,17 @@ cdef extern from '': CU_GRAPH_DEBUG_DOT_FLAGS_CONDITIONAL_NODE_PARAMS ctypedef CUgraphDebugDot_flags_enum CUgraphDebugDot_flags -cdef extern from '': +cdef extern from 'cuda.h': ctypedef enum CUuserObject_flags_enum: CU_USER_OBJECT_NO_DESTRUCTOR_SYNC ctypedef CUuserObject_flags_enum CUuserObject_flags -cdef extern from '': +cdef extern from 'cuda.h': ctypedef enum CUuserObjectRetain_flags_enum: CU_GRAPH_USER_OBJECT_MOVE ctypedef CUuserObjectRetain_flags_enum CUuserObjectRetain_flags -cdef extern from '': +cdef extern from 'cuda.h': ctypedef enum CUgraphInstantiate_flags_enum: CUDA_GRAPH_INSTANTIATE_FLAG_AUTO_FREE_ON_LAUNCH CUDA_GRAPH_INSTANTIATE_FLAG_UPLOAD @@ -1256,13 +1256,13 @@ cdef extern from '': CUDA_GRAPH_INSTANTIATE_FLAG_USE_NODE_PRIORITY ctypedef CUgraphInstantiate_flags_enum CUgraphInstantiate_flags -cdef extern from '': +cdef extern from 'cuda.h': ctypedef enum CUdeviceNumaConfig_enum: CU_DEVICE_NUMA_CONFIG_NONE CU_DEVICE_NUMA_CONFIG_NUMA_NODE ctypedef CUdeviceNumaConfig_enum CUdeviceNumaConfig -cdef extern from '': +cdef extern from 'cuda.h': ctypedef enum CUprocessState_enum: CU_PROCESS_STATE_RUNNING CU_PROCESS_STATE_LOCKED @@ -1270,13 +1270,13 @@ cdef extern from '': CU_PROCESS_STATE_FAILED ctypedef CUprocessState_enum CUprocessState -cdef extern from '': +cdef extern from 'cuda.h': ctypedef enum CUmoduleLoadingMode_enum: CU_MODULE_EAGER_LOADING CU_MODULE_LAZY_LOADING ctypedef CUmoduleLoadingMode_enum CUmoduleLoadingMode -cdef extern from '': +cdef extern from 'cuda.h': ctypedef enum CUmemDecompressAlgorithm_enum: CU_MEM_DECOMPRESS_UNSUPPORTED CU_MEM_DECOMPRESS_ALGORITHM_DEFLATE @@ -1284,14 +1284,14 @@ cdef extern from '': CU_MEM_DECOMPRESS_ALGORITHM_LZ4 ctypedef CUmemDecompressAlgorithm_enum CUmemDecompressAlgorithm -cdef extern from '': +cdef extern from 'cuda.h': ctypedef 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 '': +cdef extern from 'cuda.h': ctypedef enum CUcoredumpSettings_enum: CU_COREDUMP_ENABLE_ON_EXCEPTION CU_COREDUMP_TRIGGER_HOST @@ -1303,7 +1303,7 @@ cdef extern from '': CU_COREDUMP_MAX ctypedef CUcoredumpSettings_enum CUcoredumpSettings -cdef extern from '': +cdef extern from 'cuda.h': ctypedef enum CUCoredumpGenerationFlags: CU_COREDUMP_DEFAULT_FLAGS CU_COREDUMP_SKIP_NONRELOCATED_ELF_IMAGES @@ -1315,36 +1315,36 @@ cdef extern from '': CU_COREDUMP_GZIP_COMPRESS CU_COREDUMP_LIGHTWEIGHT_FLAGS -cdef extern from '': +cdef extern from 'cuda.h': ctypedef enum CUgreenCtxCreate_flags: CU_GREEN_CTX_DEFAULT_STREAM -cdef extern from '': +cdef extern from 'cuda.h': ctypedef enum 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 '': +cdef extern from 'cuda.h': ctypedef enum CUlogLevel_enum: CU_LOG_LEVEL_ERROR CU_LOG_LEVEL_WARNING ctypedef CUlogLevel_enum CUlogLevel -cdef extern from '': +cdef extern from '': ctypedef enum CUeglFrameType_enum: CU_EGL_FRAME_TYPE_ARRAY CU_EGL_FRAME_TYPE_PITCH ctypedef CUeglFrameType_enum CUeglFrameType -cdef extern from '': +cdef extern from '': ctypedef enum CUeglResourceLocationFlags_enum: CU_EGL_RESOURCE_LOCATION_SYSMEM CU_EGL_RESOURCE_LOCATION_VIDMEM ctypedef CUeglResourceLocationFlags_enum CUeglResourceLocationFlags -cdef extern from '': +cdef extern from '': ctypedef enum CUeglColorFormat_enum: CU_EGL_COLOR_FORMAT_YUV420_PLANAR CU_EGL_COLOR_FORMAT_YUV420_SEMIPLANAR @@ -1466,20 +1466,20 @@ cdef extern from '': CU_EGL_COLOR_FORMAT_MAX ctypedef CUeglColorFormat_enum CUeglColorFormat -cdef extern from '': +cdef extern from '': ctypedef enum CUGLmap_flags_enum: CU_GL_MAP_RESOURCE_FLAGS_NONE CU_GL_MAP_RESOURCE_FLAGS_READ_ONLY CU_GL_MAP_RESOURCE_FLAGS_WRITE_DISCARD ctypedef CUGLmap_flags_enum CUGLmap_flags -cdef extern from '': +cdef extern from '': ctypedef enum CUoutput_mode_enum: CU_OUT_KEY_VALUE_PAIR CU_OUT_CSV ctypedef CUoutput_mode_enum CUoutput_mode -cdef extern from '': +cdef extern from 'cuda.h': ctypedef enum CUatomicOperation_enum: CU_ATOMIC_OPERATION_INTEGER_ADD CU_ATOMIC_OPERATION_INTEGER_MIN @@ -1497,7 +1497,7 @@ cdef extern from '': CU_ATOMIC_OPERATION_MAX ctypedef CUatomicOperation_enum CUatomicOperation -cdef extern from '': +cdef extern from 'cuda.h': ctypedef enum CUatomicOperationCapability_enum: CU_ATOMIC_CAPABILITY_SIGNED CU_ATOMIC_CAPABILITY_UNSIGNED @@ -1508,55 +1508,55 @@ cdef extern from '': CU_ATOMIC_CAPABILITY_VECTOR_32x4 ctypedef CUatomicOperationCapability_enum CUatomicOperationCapability -cdef extern from '': +cdef extern from 'cuda.h': ctypedef 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 '': +cdef extern from 'cuda.h': ctypedef enum CUstreamAtomicReductionDataType_enum: CU_STREAM_ATOMIC_REDUCTION_UNSIGNED_32 CU_STREAM_ATOMIC_REDUCTION_UNSIGNED_64 ctypedef CUstreamAtomicReductionDataType_enum CUstreamAtomicReductionDataType -cdef extern from '': +cdef extern from 'cuda.h': ctypedef enum CUdevSmResourceGroup_flags: CU_DEV_SM_RESOURCE_GROUP_DEFAULT CU_DEV_SM_RESOURCE_GROUP_BACKFILL -cdef extern from '': +cdef extern from 'cuda.h': ctypedef enum CUdevSmResourceSplitByCount_flags: CU_DEV_SM_RESOURCE_SPLIT_IGNORE_SM_COSCHEDULING CU_DEV_SM_RESOURCE_SPLIT_MAX_POTENTIAL_CLUSTER_SIZE -cdef extern from '': +cdef extern from 'cuda.h': ctypedef enum CUdevWorkqueueConfigScope: CU_WORKQUEUE_SCOPE_DEVICE_CTX CU_WORKQUEUE_SCOPE_GREEN_CTX_BALANCED -cdef extern from '': +cdef extern from 'cuda.h': ctypedef enum CUhostTaskSyncMode_enum: CU_HOST_TASK_BLOCKING CU_HOST_TASK_SPINWAIT ctypedef CUhostTaskSyncMode_enum CUhostTaskSyncMode -cdef extern from '': +cdef extern from 'cuda.h': ctypedef 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 '': +cdef extern from 'cuda.h': ctypedef 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 '': +cdef extern from 'cuda.h': ctypedef enum CUstreamCigDataType_enum: STREAM_CIG_DATA_TYPE_D3D12_COMMAND_LIST ctypedef CUstreamCigDataType_enum CUstreamCigDataType @@ -1564,46 +1564,46 @@ cdef enum: _CURESULT_INTERNAL_LOADING_ERROR = -42 # TYPES -cdef extern from '': +cdef extern from 'cuda.h': ctypedef uint32_t cuuint32_t 'cuuint32_t' -cdef extern from '': +cdef extern from 'cuda.h': ctypedef uint64_t cuuint64_t 'cuuint64_t' -cdef extern from '': +cdef extern from 'cuda.h': ctypedef unsigned long long CUdeviceptr_v2 'CUdeviceptr_v2' -cdef extern from '': +cdef extern from 'cuda.h': ctypedef int CUdevice_v1 'CUdevice_v1' -cdef extern from '': +cdef extern from 'cuda.h': ctypedef unsigned long long CUtexObject_v1 'CUtexObject_v1' -cdef extern from '': +cdef extern from 'cuda.h': ctypedef unsigned long long CUsurfObject_v1 'CUsurfObject_v1' -cdef extern from '': +cdef extern from 'cuda.h': cdef struct CUmemFabricHandle_st: unsigned char data[64] ctypedef CUmemFabricHandle_st CUmemFabricHandle_v1 -cdef extern from '': +cdef extern from 'cuda.h': cdef struct CUipcEventHandle_st: char reserved[64] ctypedef CUipcEventHandle_st CUipcEventHandle_v1 -cdef extern from '': +cdef extern from 'cuda.h': cdef struct CUipcMemHandle_st: char reserved[64] ctypedef CUipcMemHandle_st CUipcMemHandle_v1 -cdef extern from '': +cdef extern from 'cuda.h': cdef struct CUdevprop_st: int maxThreadsPerBlock int maxThreadsDim[3] @@ -1617,7 +1617,7 @@ cdef extern from '': int textureAlign ctypedef CUdevprop_st CUdevprop_v1 -cdef extern from '': +cdef extern from 'cuda.h': cdef struct CUaccessPolicyWindow_st: void* base_ptr size_t num_bytes @@ -1626,20 +1626,20 @@ cdef extern from '': CUaccessProperty missProp ctypedef CUaccessPolicyWindow_st CUaccessPolicyWindow_v1 -cdef extern from '': +cdef extern from 'cuda.h': ctypedef CUlaunchAttributeID CUkernelNodeAttrID 'CUkernelNodeAttrID' -cdef extern from '': +cdef extern from 'cuda.h': ctypedef CUlaunchAttributeID CUstreamAttrID 'CUstreamAttrID' -cdef extern from '': +cdef extern from 'cuda.h': cdef struct CUexecAffinitySmCount_st: unsigned int val ctypedef CUexecAffinitySmCount_st CUexecAffinitySmCount_v1 -cdef extern from '': +cdef extern from 'cuda.h': cdef struct CUDA_ARRAY_DESCRIPTOR_st: size_t Width size_t Height @@ -1647,7 +1647,7 @@ cdef extern from '': unsigned int NumChannels ctypedef CUDA_ARRAY_DESCRIPTOR_st CUDA_ARRAY_DESCRIPTOR_v2 -cdef extern from '': +cdef extern from 'cuda.h': cdef struct CUDA_ARRAY3D_DESCRIPTOR_st: size_t Width size_t Height @@ -1657,14 +1657,14 @@ cdef extern from '': unsigned int Flags ctypedef CUDA_ARRAY3D_DESCRIPTOR_st CUDA_ARRAY3D_DESCRIPTOR_v2 -cdef extern from '': +cdef extern from 'cuda.h': cdef struct CUDA_ARRAY_MEMORY_REQUIREMENTS_st: size_t size size_t alignment unsigned int reserved[4] ctypedef CUDA_ARRAY_MEMORY_REQUIREMENTS_st CUDA_ARRAY_MEMORY_REQUIREMENTS_v1 -cdef extern from '': +cdef extern from 'cuda.h': cdef struct CUDA_TEXTURE_DESC_st: CUaddress_mode addressMode[3] CUfilter_mode filterMode @@ -1678,7 +1678,7 @@ cdef extern from '': int reserved[12] ctypedef CUDA_TEXTURE_DESC_st CUDA_TEXTURE_DESC_v1 -cdef extern from '': +cdef extern from 'cuda.h': cdef struct CUDA_RESOURCE_VIEW_DESC_st: CUresourceViewFormat format size_t width @@ -1691,13 +1691,13 @@ cdef extern from '': unsigned int reserved[16] ctypedef CUDA_RESOURCE_VIEW_DESC_st CUDA_RESOURCE_VIEW_DESC_v1 -cdef extern from '': +cdef extern from 'cuda.h': cdef struct CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_st: unsigned long long p2pToken unsigned int vaSpaceToken ctypedef CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_st CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_v1 -cdef extern from '': +cdef extern from 'cuda.h': cdef struct CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st: unsigned long long offset unsigned long long size @@ -1705,11 +1705,11 @@ cdef extern from '': unsigned int reserved[16] ctypedef CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st CUDA_EXTERNAL_MEMORY_BUFFER_DESC_v1 -cdef extern from '': +cdef extern from 'cuda.h': ctypedef unsigned long long CUmemGenericAllocationHandle_v1 'CUmemGenericAllocationHandle_v1' -cdef extern from '': +cdef extern from 'cuda.h': cdef struct CUmulticastObjectProp_st: unsigned int numDevices size_t size @@ -1717,196 +1717,196 @@ cdef extern from '': unsigned long long flags ctypedef CUmulticastObjectProp_st CUmulticastObjectProp_v1 -cdef extern from '': +cdef extern from 'cuda.h': cdef struct CUmemPoolPtrExportData_st: unsigned char reserved[64] ctypedef CUmemPoolPtrExportData_st CUmemPoolPtrExportData_v1 -cdef extern from '': +cdef extern from 'cuda.h': cdef struct CUoffset3D_st: size_t x size_t y size_t z ctypedef CUoffset3D_st CUoffset3D_v1 -cdef extern from '': +cdef extern from 'cuda.h': cdef struct CUextent3D_st: size_t width size_t height size_t depth ctypedef CUextent3D_st CUextent3D_v1 -cdef extern from '': +cdef extern from 'cuda.h': ctypedef unsigned int CUlogIterator 'CUlogIterator' -cdef extern from '': +cdef extern from 'cuda.h': ctypedef struct CUctx_st: pass ctypedef CUctx_st* CUcontext 'CUcontext' -cdef extern from '': +cdef extern from 'cuda.h': ctypedef struct CUmod_st: pass ctypedef CUmod_st* CUmodule 'CUmodule' -cdef extern from '': +cdef extern from 'cuda.h': ctypedef struct CUfunc_st: pass ctypedef CUfunc_st* CUfunction 'CUfunction' -cdef extern from '': +cdef extern from 'cuda.h': ctypedef struct CUlib_st: pass ctypedef CUlib_st* CUlibrary 'CUlibrary' -cdef extern from '': +cdef extern from 'cuda.h': ctypedef struct CUkern_st: pass ctypedef CUkern_st* CUkernel 'CUkernel' -cdef extern from '': +cdef extern from 'cuda.h': ctypedef struct CUarray_st: pass ctypedef CUarray_st* CUarray 'CUarray' -cdef extern from '': +cdef extern from 'cuda.h': ctypedef struct CUmipmappedArray_st: pass ctypedef CUmipmappedArray_st* CUmipmappedArray 'CUmipmappedArray' -cdef extern from '': +cdef extern from 'cuda.h': ctypedef struct CUtexref_st: pass ctypedef CUtexref_st* CUtexref 'CUtexref' -cdef extern from '': +cdef extern from 'cuda.h': ctypedef struct CUsurfref_st: pass ctypedef CUsurfref_st* CUsurfref 'CUsurfref' -cdef extern from '': +cdef extern from 'cuda.h': ctypedef struct CUevent_st: pass ctypedef CUevent_st* CUevent 'CUevent' -cdef extern from '': +cdef extern from 'cuda.h': ctypedef struct CUstream_st: pass ctypedef CUstream_st* CUstream 'CUstream' -cdef extern from '': +cdef extern from 'cuda.h': ctypedef struct CUgraphicsResource_st: pass ctypedef CUgraphicsResource_st* CUgraphicsResource 'CUgraphicsResource' -cdef extern from '': +cdef extern from 'cuda.h': ctypedef struct CUextMemory_st: pass ctypedef CUextMemory_st* CUexternalMemory 'CUexternalMemory' -cdef extern from '': +cdef extern from 'cuda.h': ctypedef struct CUextSemaphore_st: pass ctypedef CUextSemaphore_st* CUexternalSemaphore 'CUexternalSemaphore' -cdef extern from '': +cdef extern from 'cuda.h': ctypedef struct CUgraph_st: pass ctypedef CUgraph_st* CUgraph 'CUgraph' -cdef extern from '': +cdef extern from 'cuda.h': ctypedef struct CUgraphNode_st: pass ctypedef CUgraphNode_st* CUgraphNode 'CUgraphNode' -cdef extern from '': +cdef extern from 'cuda.h': ctypedef struct CUgraphExec_st: pass ctypedef CUgraphExec_st* CUgraphExec 'CUgraphExec' -cdef extern from '': +cdef extern from 'cuda.h': ctypedef struct CUmemPoolHandle_st: pass ctypedef CUmemPoolHandle_st* CUmemoryPool 'CUmemoryPool' -cdef extern from '': +cdef extern from 'cuda.h': ctypedef struct CUuserObject_st: pass ctypedef CUuserObject_st* CUuserObject 'CUuserObject' -cdef extern from '': +cdef extern from 'cuda.h': ctypedef struct CUgraphDeviceUpdatableNode_st: pass ctypedef CUgraphDeviceUpdatableNode_st* CUgraphDeviceNode 'CUgraphDeviceNode' -cdef extern from '': +cdef extern from 'cuda.h': ctypedef struct CUasyncCallbackEntry_st: pass ctypedef CUasyncCallbackEntry_st* CUasyncCallbackHandle 'CUasyncCallbackHandle' -cdef extern from '': +cdef extern from 'cuda.h': ctypedef struct CUgreenCtx_st: pass ctypedef CUgreenCtx_st* CUgreenCtx 'CUgreenCtx' -cdef extern from '': +cdef extern from 'cuda.h': ctypedef struct CUlinkState_st: pass ctypedef CUlinkState_st* CUlinkState 'CUlinkState' -cdef extern from '': +cdef extern from 'cuda.h': ctypedef struct CUdevResourceDesc_st: pass ctypedef CUdevResourceDesc_st* CUdevResourceDesc 'CUdevResourceDesc' -cdef extern from '': +cdef extern from 'cuda.h': ctypedef struct CUlogsCallbackEntry_st: pass ctypedef CUlogsCallbackEntry_st* CUlogsCallbackHandle 'CUlogsCallbackHandle' -cdef extern from '': +cdef extern from 'cuda.h': ctypedef struct CUcoredumpCallbackEntry_st: pass ctypedef CUcoredumpCallbackEntry_st* CUcoredumpCallbackHandle 'CUcoredumpCallbackHandle' -cdef extern from '': +cdef extern from 'cuda.h': cdef struct CUuuid_st: char bytes[16] ctypedef CUuuid_st CUuuid -cdef extern from '': +cdef extern from 'cuda.h': ctypedef struct CUstreamMemOpFlushRemoteWritesParams_st 'CUstreamMemOpFlushRemoteWritesParams_st': CUstreamBatchMemOpType operation unsigned int flags -cdef extern from '': +cdef extern from 'cuda.h': ctypedef struct CUstreamMemOpMemoryBarrierParams_st 'CUstreamMemOpMemoryBarrierParams_st': CUstreamBatchMemOpType operation unsigned int flags @@ -1914,13 +1914,13 @@ cdef extern from '': cdef struct cuda_bindings_driver__anon_pod3: unsigned long long bytesOverBudget -cdef extern from '': +cdef extern from 'cuda.h': ctypedef void (*CUhostFn 'CUhostFn')( void* userData ) -cdef extern from '': +cdef extern from 'cuda.h': cdef struct CUgraphEdgeData_st: unsigned char from_port unsigned char to_port @@ -1928,7 +1928,7 @@ cdef extern from '': unsigned char reserved[5] ctypedef CUgraphEdgeData_st CUgraphEdgeData -cdef extern from '': +cdef extern from 'cuda.h': cdef struct CUlaunchMemSyncDomainMap_st: unsigned char default_ unsigned char remote @@ -1944,13 +1944,13 @@ cdef struct cuda_bindings_driver__anon_pod7: unsigned int y unsigned int z -cdef extern from '': +cdef extern from 'cuda.h': cdef struct CUctxCigParam_st: CUcigDataType sharedDataType void* sharedData ctypedef CUctxCigParam_st CUctxCigParam -cdef extern from '': +cdef extern from 'cuda.h': cdef struct CUlibraryHostUniversalFunctionAndDataTable_st: void* functionTable size_t functionWindowSize @@ -2016,7 +2016,7 @@ cdef struct cuda_bindings_driver__anon_pod35: unsigned short usage unsigned char reserved[4] -cdef extern from '': +cdef extern from 'cuda.h': cdef struct CUdevSmResource_st: unsigned int smCount unsigned int minSmPartitionSize @@ -2024,12 +2024,12 @@ cdef extern from '': unsigned int flags ctypedef CUdevSmResource_st CUdevSmResource -cdef extern from '': +cdef extern from 'cuda.h': cdef struct CUdevWorkqueueResource_st: unsigned char reserved[40] ctypedef CUdevWorkqueueResource_st CUdevWorkqueueResource -cdef extern from '': +cdef extern from 'cuda.h': cdef struct CU_DEV_SM_RESOURCE_GROUP_PARAMS_st: unsigned int smCount unsigned int coscheduledSmCount @@ -2038,19 +2038,19 @@ cdef extern from '': unsigned int reserved[12] ctypedef CU_DEV_SM_RESOURCE_GROUP_PARAMS_st CU_DEV_SM_RESOURCE_GROUP_PARAMS -cdef extern from '': +cdef extern from 'cuda.h': cdef struct CUstreamCigParam_st: CUstreamCigDataType streamSharedDataType void* streamSharedData ctypedef CUstreamCigParam_st CUstreamCigParam -cdef extern from '': +cdef extern from 'cuda.h': ctypedef size_t (*CUoccupancyB2DSize 'CUoccupancyB2DSize')( int blockSize ) -cdef extern from '': +cdef extern from 'cuda.h': ctypedef void (*CUlogsCallback 'CUlogsCallback')( void* data, CUlogLevel logLevel, @@ -2059,7 +2059,7 @@ cdef extern from '': ) -cdef extern from '': +cdef extern from 'cuda.h': cdef struct CUmemDecompressParams_st: size_t srcNumBytes size_t dstNumBytes @@ -2070,121 +2070,121 @@ cdef extern from '': unsigned char padding[20] ctypedef CUmemDecompressParams_st CUmemDecompressParams -cdef extern from '': +cdef extern from 'cuda.h': ctypedef cuuint64_t CUgraphConditionalHandle 'CUgraphConditionalHandle' -cdef extern from '': +cdef extern from 'cuda.h': cdef struct CUtensorMap_st: cuuint64_t opaque[16] ctypedef CUtensorMap_st CUtensorMap -cdef extern from '': +cdef extern from 'cuda.h': cdef struct CUcheckpointLockArgs_st: unsigned int timeoutMs unsigned int reserved0 cuuint64_t reserved1[7] ctypedef CUcheckpointLockArgs_st CUcheckpointLockArgs -cdef extern from '': +cdef extern from 'cuda.h': cdef struct CUcheckpointCheckpointArgs_st: cuuint64_t reserved[8] ctypedef CUcheckpointCheckpointArgs_st CUcheckpointCheckpointArgs -cdef extern from '': +cdef extern from 'cuda.h': cdef struct CUcheckpointUnlockArgs_st: cuuint64_t reserved[8] ctypedef CUcheckpointUnlockArgs_st CUcheckpointUnlockArgs -cdef extern from '': +cdef extern from 'cuda.h': ctypedef CUdeviceptr_v2 CUdeviceptr 'CUdeviceptr' -cdef extern from '': +cdef extern from 'cuda.h': ctypedef CUdevice_v1 CUdevice 'CUdevice' -cdef extern from '': +cdef extern from 'cuda.h': ctypedef CUtexObject_v1 CUtexObject 'CUtexObject' -cdef extern from '': +cdef extern from 'cuda.h': ctypedef CUsurfObject_v1 CUsurfObject 'CUsurfObject' -cdef extern from '': +cdef extern from 'cuda.h': ctypedef CUmemFabricHandle_v1 CUmemFabricHandle 'CUmemFabricHandle' -cdef extern from '': +cdef extern from 'cuda.h': ctypedef CUipcEventHandle_v1 CUipcEventHandle 'CUipcEventHandle' -cdef extern from '': +cdef extern from 'cuda.h': ctypedef CUipcMemHandle_v1 CUipcMemHandle 'CUipcMemHandle' -cdef extern from '': +cdef extern from 'cuda.h': ctypedef CUdevprop_v1 CUdevprop 'CUdevprop' -cdef extern from '': +cdef extern from 'cuda.h': ctypedef CUaccessPolicyWindow_v1 CUaccessPolicyWindow 'CUaccessPolicyWindow' -cdef extern from '': +cdef extern from 'cuda.h': ctypedef CUexecAffinitySmCount_v1 CUexecAffinitySmCount 'CUexecAffinitySmCount' -cdef extern from '': +cdef extern from 'cuda.h': ctypedef CUDA_ARRAY_DESCRIPTOR_v2 CUDA_ARRAY_DESCRIPTOR 'CUDA_ARRAY_DESCRIPTOR' -cdef extern from '': +cdef extern from 'cuda.h': ctypedef CUDA_ARRAY3D_DESCRIPTOR_v2 CUDA_ARRAY3D_DESCRIPTOR 'CUDA_ARRAY3D_DESCRIPTOR' -cdef extern from '': +cdef extern from 'cuda.h': ctypedef CUDA_ARRAY_MEMORY_REQUIREMENTS_v1 CUDA_ARRAY_MEMORY_REQUIREMENTS 'CUDA_ARRAY_MEMORY_REQUIREMENTS' -cdef extern from '': +cdef extern from 'cuda.h': ctypedef CUDA_TEXTURE_DESC_v1 CUDA_TEXTURE_DESC 'CUDA_TEXTURE_DESC' -cdef extern from '': +cdef extern from 'cuda.h': ctypedef CUDA_RESOURCE_VIEW_DESC_v1 CUDA_RESOURCE_VIEW_DESC 'CUDA_RESOURCE_VIEW_DESC' -cdef extern from '': +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 '': +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 '': +cdef extern from 'cuda.h': ctypedef CUmemGenericAllocationHandle_v1 CUmemGenericAllocationHandle 'CUmemGenericAllocationHandle' -cdef extern from '': +cdef extern from 'cuda.h': ctypedef CUmulticastObjectProp_v1 CUmulticastObjectProp 'CUmulticastObjectProp' -cdef extern from '': +cdef extern from 'cuda.h': ctypedef CUmemPoolPtrExportData_v1 CUmemPoolPtrExportData 'CUmemPoolPtrExportData' -cdef extern from '': +cdef extern from 'cuda.h': ctypedef CUoffset3D_v1 CUoffset3D 'CUoffset3D' -cdef extern from '': +cdef extern from 'cuda.h': ctypedef CUextent3D_v1 CUextent3D 'CUextent3D' -cdef extern from '': +cdef extern from 'cuda.h': cdef struct CUDA_KERNEL_NODE_PARAMS_st: CUfunction func unsigned int gridDimX @@ -2198,7 +2198,7 @@ cdef extern from '': void** extra ctypedef CUDA_KERNEL_NODE_PARAMS_st CUDA_KERNEL_NODE_PARAMS_v1 -cdef extern from '': +cdef extern from 'cuda.h': cdef struct CUDA_KERNEL_NODE_PARAMS_v2_st: CUfunction func unsigned int gridDimX @@ -2214,7 +2214,7 @@ cdef extern from '': CUcontext ctx ctypedef CUDA_KERNEL_NODE_PARAMS_v2_st CUDA_KERNEL_NODE_PARAMS_v2 -cdef extern from '': +cdef extern from 'cuda.h': cdef struct CUDA_KERNEL_NODE_PARAMS_v3_st: CUfunction func unsigned int gridDimX @@ -2249,17 +2249,17 @@ cdef struct cuda_bindings_driver__anon_pod6: CUevent event int flags -cdef extern from '': +cdef extern from 'cuda.h': cdef struct CUDA_EVENT_RECORD_NODE_PARAMS_st: CUevent event ctypedef CUDA_EVENT_RECORD_NODE_PARAMS_st CUDA_EVENT_RECORD_NODE_PARAMS -cdef extern from '': +cdef extern from 'cuda.h': cdef struct CUDA_EVENT_WAIT_NODE_PARAMS_st: CUevent event ctypedef CUDA_EVENT_WAIT_NODE_PARAMS_st CUDA_EVENT_WAIT_NODE_PARAMS -cdef extern from '': +cdef extern from 'cuda.h': cdef struct CUDA_LAUNCH_PARAMS_st: CUfunction function unsigned int gridDimX @@ -2273,7 +2273,7 @@ cdef extern from '': void** kernelParams ctypedef CUDA_LAUNCH_PARAMS_st CUDA_LAUNCH_PARAMS_v1 -cdef extern from '': +cdef extern from 'cuda.h': ctypedef void (*CUstreamCallback 'CUstreamCallback')( CUstream hStream, CUresult status, @@ -2281,13 +2281,13 @@ cdef extern from '': ) -cdef extern from '': +cdef extern from 'cuda.h': cdef struct CUDA_CHILD_GRAPH_NODE_PARAMS_st: CUgraph graph CUgraphChildGraphNodeOwnership ownership ctypedef CUDA_CHILD_GRAPH_NODE_PARAMS_st CUDA_CHILD_GRAPH_NODE_PARAMS -cdef extern from '': +cdef extern from 'cuda.h': cdef struct CUDA_GRAPH_INSTANTIATE_PARAMS_st: cuuint64_t flags CUstream hUploadStream @@ -2295,7 +2295,7 @@ cdef extern from '': CUgraphInstantiateResult result_out ctypedef CUDA_GRAPH_INSTANTIATE_PARAMS_st CUDA_GRAPH_INSTANTIATE_PARAMS -cdef extern from '': +cdef extern from 'cuda.h': cdef struct CUgraphExecUpdateResultInfo_st: CUgraphExecUpdateResult result CUgraphNode errorNode @@ -2306,7 +2306,7 @@ cdef struct cuda_bindings_driver__anon_pod8: int deviceUpdatable CUgraphDeviceNode devNode -cdef extern from '': +cdef extern from 'cuda.h': cdef struct CUcheckpointGpuPair_st: CUuuid oldUuid CUuuid newUuid @@ -2315,20 +2315,20 @@ cdef extern from '': cdef union cuda_bindings_driver__anon_pod2: cuda_bindings_driver__anon_pod3 overBudget -cdef extern from '': +cdef extern from 'cuda.h': cdef struct CUDA_HOST_NODE_PARAMS_st: CUhostFn fn void* userData ctypedef CUDA_HOST_NODE_PARAMS_st CUDA_HOST_NODE_PARAMS_v1 -cdef extern from '': +cdef extern from 'cuda.h': cdef struct CUDA_HOST_NODE_PARAMS_v2_st: CUhostFn fn void* userData unsigned int syncMode ctypedef CUDA_HOST_NODE_PARAMS_v2_st CUDA_HOST_NODE_PARAMS_v2 -cdef extern from '': +cdef extern from 'cuda.h': cdef struct CUDA_ARRAY_SPARSE_PROPERTIES_st: cuda_bindings_driver__anon_pod10 tileExtent unsigned int miptailFirstLevel @@ -2363,18 +2363,18 @@ cdef union cuda_bindings_driver__anon_pod30: cuda_bindings_driver__anon_pod31 sparseLevel cuda_bindings_driver__anon_pod32 miptail -cdef extern from '': +cdef extern from 'cuda.h': cdef struct CUmemLocation_st: CUmemLocationType type int id ctypedef CUmemLocation_st CUmemLocation_v1 -cdef extern from '': +cdef extern from 'cuda.h': cdef struct CUstreamCigCaptureParams_st: CUstreamCigParam* streamCigParams ctypedef CUstreamCigCaptureParams_st CUstreamCigCaptureParams -cdef extern from '': +cdef extern from 'cuda.h': ctypedef struct CUDA_CONDITIONAL_NODE_PARAMS 'CUDA_CONDITIONAL_NODE_PARAMS': CUgraphConditionalHandle handle CUgraphConditionalNodeType type @@ -2382,7 +2382,7 @@ cdef extern from '': CUgraph* phGraph_out CUcontext ctx -cdef extern from '': +cdef extern from 'cuda.h': ctypedef struct CUstreamMemOpWaitValueParams_st 'CUstreamMemOpWaitValueParams_st': CUstreamBatchMemOpType operation CUdeviceptr address @@ -2391,7 +2391,7 @@ cdef extern from '': unsigned int flags CUdeviceptr alias -cdef extern from '': +cdef extern from 'cuda.h': ctypedef struct CUstreamMemOpWriteValueParams_st 'CUstreamMemOpWriteValueParams_st': CUstreamBatchMemOpType operation CUdeviceptr address @@ -2400,7 +2400,7 @@ cdef extern from '': unsigned int flags CUdeviceptr alias -cdef extern from '': +cdef extern from 'cuda.h': ctypedef struct CUstreamMemOpAtomicReductionParams_st 'CUstreamMemOpAtomicReductionParams_st': CUstreamBatchMemOpType operation unsigned int flags @@ -2410,7 +2410,7 @@ cdef extern from '': cuuint64_t value CUdeviceptr alias -cdef extern from '': +cdef extern from 'cuda.h': cdef struct CUDA_MEMSET_NODE_PARAMS_st: CUdeviceptr dst size_t pitch @@ -2420,7 +2420,7 @@ cdef extern from '': size_t height ctypedef CUDA_MEMSET_NODE_PARAMS_st CUDA_MEMSET_NODE_PARAMS_v1 -cdef extern from '': +cdef extern from 'cuda.h': cdef struct CUDA_MEMSET_NODE_PARAMS_v2_st: CUdeviceptr dst size_t pitch @@ -2431,7 +2431,7 @@ cdef extern from '': CUcontext ctx ctypedef CUDA_MEMSET_NODE_PARAMS_v2_st CUDA_MEMSET_NODE_PARAMS_v2 -cdef extern from '': +cdef extern from 'cuda.h': cdef struct CUDA_MEMCPY2D_st: size_t srcXInBytes size_t srcY @@ -2451,7 +2451,7 @@ cdef extern from '': size_t Height ctypedef CUDA_MEMCPY2D_st CUDA_MEMCPY2D_v2 -cdef extern from '': +cdef extern from 'cuda.h': cdef struct CUDA_MEMCPY3D_st: size_t srcXInBytes size_t srcY @@ -2480,7 +2480,7 @@ cdef extern from '': size_t Depth ctypedef CUDA_MEMCPY3D_st CUDA_MEMCPY3D_v2 -cdef extern from '': +cdef extern from 'cuda.h': cdef struct CUDA_MEMCPY3D_PEER_st: size_t srcXInBytes size_t srcY @@ -2523,19 +2523,19 @@ cdef struct cuda_bindings_driver__anon_pod15: size_t height size_t pitchInBytes -cdef extern from '': +cdef extern from 'cuda.h': cdef struct CUDA_MEM_FREE_NODE_PARAMS_st: CUdeviceptr dptr ctypedef CUDA_MEM_FREE_NODE_PARAMS_st CUDA_MEM_FREE_NODE_PARAMS -cdef extern from '': +cdef extern from 'cuda.h': cdef struct CUdevWorkqueueConfigResource_st: CUdevice device unsigned int wqConcurrencyLimit CUdevWorkqueueConfigScope sharingScope ctypedef CUdevWorkqueueConfigResource_st CUdevWorkqueueConfigResource -cdef extern from '': +cdef extern from 'cuda.h': ctypedef void (*CUcoredumpStatusCallback 'CUcoredumpStatusCallback')( void* userData, int pid, @@ -2546,7 +2546,7 @@ cdef extern from '': cdef union cuda_bindings_driver__anon_pod9: CUexecAffinitySmCount smCount -cdef extern from '': +cdef extern from 'cuda.h': cdef struct CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_st: unsigned long long offset CUDA_ARRAY3D_DESCRIPTOR arrayDesc @@ -2561,19 +2561,19 @@ cdef struct cuda_bindings_driver__anon_pod38: CUarray array CUoffset3D offset -cdef extern from '': +cdef extern from 'cuda.h': ctypedef CUDA_KERNEL_NODE_PARAMS_v2 CUDA_KERNEL_NODE_PARAMS 'CUDA_KERNEL_NODE_PARAMS' -cdef extern from '': +cdef extern from 'cuda.h': ctypedef CUDA_LAUNCH_PARAMS_v1 CUDA_LAUNCH_PARAMS 'CUDA_LAUNCH_PARAMS' -cdef extern from '': +cdef extern from 'cuda.h': ctypedef CUgraphExecUpdateResultInfo_v1 CUgraphExecUpdateResultInfo 'CUgraphExecUpdateResultInfo' -cdef extern from '': +cdef extern from 'cuda.h': cdef union CUlaunchAttributeValue_union: char pad[64] CUaccessPolicyWindow accessPolicyWindow @@ -2595,7 +2595,7 @@ cdef extern from '': CUsharedMemoryMode sharedMemoryMode ctypedef CUlaunchAttributeValue_union CUlaunchAttributeValue -cdef extern from '': +cdef extern from 'cuda.h': cdef struct CUcheckpointRestoreArgs_st: CUcheckpointGpuPair* gpuPairs unsigned int gpuPairsCount @@ -2603,21 +2603,21 @@ cdef extern from '': cuuint64_t reserved1 ctypedef CUcheckpointRestoreArgs_st CUcheckpointRestoreArgs -cdef extern from '': +cdef extern from 'cuda.h': cdef struct CUasyncNotificationInfo_st: CUasyncNotificationType type cuda_bindings_driver__anon_pod2 info ctypedef CUasyncNotificationInfo_st CUasyncNotificationInfo -cdef extern from '': +cdef extern from 'cuda.h': ctypedef CUDA_HOST_NODE_PARAMS_v1 CUDA_HOST_NODE_PARAMS 'CUDA_HOST_NODE_PARAMS' -cdef extern from '': +cdef extern from 'cuda.h': ctypedef CUDA_ARRAY_SPARSE_PROPERTIES_v1 CUDA_ARRAY_SPARSE_PROPERTIES 'CUDA_ARRAY_SPARSE_PROPERTIES' -cdef extern from '': +cdef extern from 'cuda.h': cdef struct CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st: CUexternalMemoryHandleType type cuda_bindings_driver__anon_pod17 handle @@ -2626,7 +2626,7 @@ cdef extern from '': unsigned int reserved[16] ctypedef CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st CUDA_EXTERNAL_MEMORY_HANDLE_DESC_v1 -cdef extern from '': +cdef extern from 'cuda.h': cdef struct CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st: CUexternalSemaphoreHandleType type cuda_bindings_driver__anon_pod19 handle @@ -2634,25 +2634,25 @@ cdef extern from '': unsigned int reserved[16] ctypedef CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_v1 -cdef extern from '': +cdef extern from 'cuda.h': cdef struct CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st: cuda_bindings_driver__anon_pod21 params unsigned int flags unsigned int reserved[16] ctypedef CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_v1 -cdef extern from '': +cdef extern from 'cuda.h': cdef struct CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st: cuda_bindings_driver__anon_pod25 params unsigned int flags unsigned int reserved[16] ctypedef CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_v1 -cdef extern from '': +cdef extern from 'cuda.h': ctypedef CUmemLocation_v1 CUmemLocation 'CUmemLocation' -cdef extern from '': +cdef extern from 'cuda.h': cdef union CUstreamBatchMemOpParams_union: CUstreamBatchMemOpType operation CUstreamMemOpWaitValueParams_st waitValue @@ -2663,19 +2663,19 @@ cdef extern from '': cuuint64_t pad[6] ctypedef CUstreamBatchMemOpParams_union CUstreamBatchMemOpParams_v1 -cdef extern from '': +cdef extern from 'cuda.h': ctypedef CUDA_MEMSET_NODE_PARAMS_v1 CUDA_MEMSET_NODE_PARAMS 'CUDA_MEMSET_NODE_PARAMS' -cdef extern from '': +cdef extern from 'cuda.h': ctypedef CUDA_MEMCPY2D_v2 CUDA_MEMCPY2D 'CUDA_MEMCPY2D' -cdef extern from '': +cdef extern from 'cuda.h': ctypedef CUDA_MEMCPY3D_v2 CUDA_MEMCPY3D 'CUDA_MEMCPY3D' -cdef extern from '': +cdef extern from 'cuda.h': ctypedef CUDA_MEMCPY3D_PEER_v1 CUDA_MEMCPY3D_PEER 'CUDA_MEMCPY3D_PEER' @@ -2686,17 +2686,17 @@ cdef union cuda_bindings_driver__anon_pod11: cuda_bindings_driver__anon_pod15 pitch2D cuda_bindings_driver__anon_pod16 reserved -cdef extern from '': +cdef extern from 'cuda.h': cdef struct CUexecAffinityParam_st: CUexecAffinityType type cuda_bindings_driver__anon_pod9 param ctypedef CUexecAffinityParam_st CUexecAffinityParam_v1 -cdef extern from '': +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 '': +cdef extern from 'cuda.h': cdef struct CUarrayMapInfo_st: CUresourcetype resourceType cuda_bindings_driver__anon_pod29 resource @@ -2711,21 +2711,21 @@ cdef extern from '': unsigned int reserved[2] ctypedef CUarrayMapInfo_st CUarrayMapInfo_v1 -cdef extern from '': +cdef extern from 'cuda.h': ctypedef CUlaunchAttributeValue CUkernelNodeAttrValue_v1 'CUkernelNodeAttrValue_v1' -cdef extern from '': +cdef extern from 'cuda.h': ctypedef CUlaunchAttributeValue CUstreamAttrValue_v1 'CUstreamAttrValue_v1' -cdef extern from '': +cdef extern from 'cuda.h': cdef struct CUlaunchAttribute_st: CUlaunchAttributeID id CUlaunchAttributeValue value ctypedef CUlaunchAttribute_st CUlaunchAttribute -cdef extern from '': +cdef extern from 'cuda.h': ctypedef void (*CUasyncCallback 'CUasyncCallback')( CUasyncNotificationInfo* info, void* userData, @@ -2733,23 +2733,23 @@ cdef extern from '': ) -cdef extern from '': +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 '': +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 '': +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 '': +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 '': +cdef extern from 'cuda.h': cdef struct CUmemAllocationProp_st: CUmemAllocationType type CUmemAllocationHandleType requestedHandleTypes @@ -2758,13 +2758,13 @@ cdef extern from '': cuda_bindings_driver__anon_pod35 allocFlags ctypedef CUmemAllocationProp_st CUmemAllocationProp_v1 -cdef extern from '': +cdef extern from 'cuda.h': cdef struct CUmemAccessDesc_st: CUmemLocation location CUmemAccess_flags flags ctypedef CUmemAccessDesc_st CUmemAccessDesc_v1 -cdef extern from '': +cdef extern from 'cuda.h': cdef struct CUmemPoolProps_st: CUmemAllocationType allocType CUmemAllocationHandleType handleTypes @@ -2775,7 +2775,7 @@ cdef extern from '': unsigned char reserved[54] ctypedef CUmemPoolProps_st CUmemPoolProps_v1 -cdef extern from '': +cdef extern from 'cuda.h': cdef struct CUmemcpyAttributes_st: CUmemcpySrcAccessOrder srcAccessOrder CUmemLocation srcLocHint @@ -2789,11 +2789,11 @@ cdef struct cuda_bindings_driver__anon_pod37: size_t layerHeight CUmemLocation locHint -cdef extern from '': +cdef extern from 'cuda.h': ctypedef CUstreamBatchMemOpParams_v1 CUstreamBatchMemOpParams 'CUstreamBatchMemOpParams' -cdef extern from '': +cdef extern from 'cuda.h': cdef struct CUDA_MEMCPY_NODE_PARAMS_st: int flags int reserved @@ -2801,14 +2801,14 @@ cdef extern from '': CUDA_MEMCPY3D copyParams ctypedef CUDA_MEMCPY_NODE_PARAMS_st CUDA_MEMCPY_NODE_PARAMS -cdef extern from '': +cdef extern from 'cuda.h': cdef struct CUDA_RESOURCE_DESC_st: CUresourcetype resType cuda_bindings_driver__anon_pod11 res unsigned int flags ctypedef CUDA_RESOURCE_DESC_st CUDA_RESOURCE_DESC_v1 -cdef extern from '': +cdef extern from 'cuda.h': cdef struct CUdevResource_st: CUdevResourceType type unsigned char _internal_padding[92] @@ -2819,23 +2819,23 @@ cdef extern from '': CUdevResource_st* nextResource ctypedef CUdevResource_st CUdevResource_v1 -cdef extern from '': +cdef extern from 'cuda.h': ctypedef CUexecAffinityParam_v1 CUexecAffinityParam 'CUexecAffinityParam' -cdef extern from '': +cdef extern from 'cuda.h': ctypedef CUarrayMapInfo_v1 CUarrayMapInfo 'CUarrayMapInfo' -cdef extern from '': +cdef extern from 'cuda.h': ctypedef CUkernelNodeAttrValue_v1 CUkernelNodeAttrValue 'CUkernelNodeAttrValue' -cdef extern from '': +cdef extern from 'cuda.h': ctypedef CUstreamAttrValue_v1 CUstreamAttrValue 'CUstreamAttrValue' -cdef extern from '': +cdef extern from 'cuda.h': cdef struct CUlaunchConfig_st: unsigned int gridDimX unsigned int gridDimY @@ -2849,47 +2849,47 @@ cdef extern from '': unsigned int numAttrs ctypedef CUlaunchConfig_st CUlaunchConfig -cdef extern from '': +cdef extern from 'cuda.h': cdef struct CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_st: CUexternalSemaphore* extSemArray CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS* paramsArray unsigned int numExtSems ctypedef CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_st CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v1 -cdef extern from '': +cdef extern from 'cuda.h': cdef struct CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2_st: CUexternalSemaphore* extSemArray CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS* paramsArray unsigned int numExtSems ctypedef CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2_st CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2 -cdef extern from '': +cdef extern from 'cuda.h': cdef struct CUDA_EXT_SEM_WAIT_NODE_PARAMS_st: CUexternalSemaphore* extSemArray CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS* paramsArray unsigned int numExtSems ctypedef CUDA_EXT_SEM_WAIT_NODE_PARAMS_st CUDA_EXT_SEM_WAIT_NODE_PARAMS_v1 -cdef extern from '': +cdef extern from 'cuda.h': cdef struct CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2_st: CUexternalSemaphore* extSemArray CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS* paramsArray unsigned int numExtSems ctypedef CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2_st CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2 -cdef extern from '': +cdef extern from 'cuda.h': ctypedef CUmemAllocationProp_v1 CUmemAllocationProp 'CUmemAllocationProp' -cdef extern from '': +cdef extern from 'cuda.h': ctypedef CUmemAccessDesc_v1 CUmemAccessDesc 'CUmemAccessDesc' -cdef extern from '': +cdef extern from 'cuda.h': ctypedef CUmemPoolProps_v1 CUmemPoolProps 'CUmemPoolProps' -cdef extern from '': +cdef extern from 'cuda.h': ctypedef CUmemcpyAttributes_v1 CUmemcpyAttributes 'CUmemcpyAttributes' @@ -2897,7 +2897,7 @@ cdef union cuda_bindings_driver__anon_pod36: cuda_bindings_driver__anon_pod37 ptr cuda_bindings_driver__anon_pod38 array -cdef extern from '': +cdef extern from 'cuda.h': cdef struct CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st: CUcontext ctx unsigned int count @@ -2905,7 +2905,7 @@ cdef extern from '': unsigned int flags ctypedef CUDA_BATCH_MEM_OP_NODE_PARAMS_v1_st CUDA_BATCH_MEM_OP_NODE_PARAMS_v1 -cdef extern from '': +cdef extern from 'cuda.h': cdef struct CUDA_BATCH_MEM_OP_NODE_PARAMS_v2_st: CUcontext ctx unsigned int count @@ -2913,30 +2913,30 @@ cdef extern from '': unsigned int flags ctypedef CUDA_BATCH_MEM_OP_NODE_PARAMS_v2_st CUDA_BATCH_MEM_OP_NODE_PARAMS_v2 -cdef extern from '': +cdef extern from 'cuda.h': ctypedef CUDA_RESOURCE_DESC_v1 CUDA_RESOURCE_DESC 'CUDA_RESOURCE_DESC' -cdef extern from '': +cdef extern from 'cuda.h': ctypedef CUdevResource_v1 CUdevResource 'CUdevResource' -cdef extern from '': +cdef extern from 'cuda.h': cdef struct CUctxCreateParams_st: CUexecAffinityParam* execAffinityParams int numExecAffinityParams CUctxCigParam* cigParams ctypedef CUctxCreateParams_st CUctxCreateParams -cdef extern from '': +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 '': +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 '': +cdef extern from 'cuda.h': cdef struct CUDA_MEM_ALLOC_NODE_PARAMS_v1_st: CUmemPoolProps poolProps CUmemAccessDesc* accessDescs @@ -2945,7 +2945,7 @@ cdef extern from '': CUdeviceptr dptr ctypedef CUDA_MEM_ALLOC_NODE_PARAMS_v1_st CUDA_MEM_ALLOC_NODE_PARAMS_v1 -cdef extern from '': +cdef extern from 'cuda.h': cdef struct CUDA_MEM_ALLOC_NODE_PARAMS_v2_st: CUmemPoolProps poolProps CUmemAccessDesc* accessDescs @@ -2954,25 +2954,25 @@ cdef extern from '': CUdeviceptr dptr ctypedef CUDA_MEM_ALLOC_NODE_PARAMS_v2_st CUDA_MEM_ALLOC_NODE_PARAMS_v2 -cdef extern from '': +cdef extern from 'cuda.h': cdef struct CUmemcpy3DOperand_st: CUmemcpy3DOperandType type cuda_bindings_driver__anon_pod36 op ctypedef CUmemcpy3DOperand_st CUmemcpy3DOperand_v1 -cdef extern from '': +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 '': +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 '': +cdef extern from 'cuda.h': ctypedef CUmemcpy3DOperand_v1 CUmemcpy3DOperand 'CUmemcpy3DOperand' -cdef extern from '': +cdef extern from 'cuda.h': cdef struct CUgraphNodeParams_st: CUgraphNodeType type int reserved0[3] @@ -2993,7 +2993,7 @@ cdef extern from '': long long reserved2 ctypedef CUgraphNodeParams_st CUgraphNodeParams -cdef extern from '': +cdef extern from 'cuda.h': cdef struct CUDA_MEMCPY3D_BATCH_OP_st: CUmemcpy3DOperand src CUmemcpy3DOperand dst @@ -3002,7 +3002,7 @@ cdef extern from '': unsigned int flags ctypedef CUDA_MEMCPY3D_BATCH_OP_st CUDA_MEMCPY3D_BATCH_OP_v1 -cdef extern from '': +cdef extern from 'cuda.h': ctypedef CUDA_MEMCPY3D_BATCH_OP_v1 CUDA_MEMCPY3D_BATCH_OP 'CUDA_MEMCPY3D_BATCH_OP' From be5d9726f7903b07c954a3004811cc96786bc918 Mon Sep 17 00:00:00 2001 From: Michael Droettboom Date: Fri, 24 Apr 2026 13:51:30 -0400 Subject: [PATCH 4/6] Fix compilation --- cuda_bindings/cuda/bindings/cydriver.pxd | 287 +++++++++++------------ 1 file changed, 141 insertions(+), 146 deletions(-) diff --git a/cuda_bindings/cuda/bindings/cydriver.pxd b/cuda_bindings/cuda/bindings/cydriver.pxd index 884909736e3..38c79997bb1 100644 --- a/cuda_bindings/cuda/bindings/cydriver.pxd +++ b/cuda_bindings/cuda/bindings/cydriver.pxd @@ -1332,152 +1332,147 @@ cdef extern from 'cuda.h': CU_LOG_LEVEL_WARNING ctypedef CUlogLevel_enum CUlogLevel -cdef extern from '': - ctypedef enum CUeglFrameType_enum: - CU_EGL_FRAME_TYPE_ARRAY - CU_EGL_FRAME_TYPE_PITCH - ctypedef CUeglFrameType_enum CUeglFrameType - -cdef extern from '': - ctypedef enum CUeglResourceLocationFlags_enum: - CU_EGL_RESOURCE_LOCATION_SYSMEM - CU_EGL_RESOURCE_LOCATION_VIDMEM - ctypedef CUeglResourceLocationFlags_enum CUeglResourceLocationFlags - -cdef extern from '': - ctypedef enum CUeglColorFormat_enum: - CU_EGL_COLOR_FORMAT_YUV420_PLANAR - CU_EGL_COLOR_FORMAT_YUV420_SEMIPLANAR - CU_EGL_COLOR_FORMAT_YUV422_PLANAR - CU_EGL_COLOR_FORMAT_YUV422_SEMIPLANAR - CU_EGL_COLOR_FORMAT_RGB - CU_EGL_COLOR_FORMAT_BGR - CU_EGL_COLOR_FORMAT_ARGB - CU_EGL_COLOR_FORMAT_RGBA - CU_EGL_COLOR_FORMAT_L - CU_EGL_COLOR_FORMAT_R - CU_EGL_COLOR_FORMAT_YUV444_PLANAR - CU_EGL_COLOR_FORMAT_YUV444_SEMIPLANAR - CU_EGL_COLOR_FORMAT_YUYV_422 - CU_EGL_COLOR_FORMAT_UYVY_422 - CU_EGL_COLOR_FORMAT_ABGR - CU_EGL_COLOR_FORMAT_BGRA - CU_EGL_COLOR_FORMAT_A - CU_EGL_COLOR_FORMAT_RG - CU_EGL_COLOR_FORMAT_AYUV - CU_EGL_COLOR_FORMAT_YVU444_SEMIPLANAR - CU_EGL_COLOR_FORMAT_YVU422_SEMIPLANAR - CU_EGL_COLOR_FORMAT_YVU420_SEMIPLANAR - CU_EGL_COLOR_FORMAT_Y10V10U10_444_SEMIPLANAR - CU_EGL_COLOR_FORMAT_Y10V10U10_420_SEMIPLANAR - CU_EGL_COLOR_FORMAT_Y12V12U12_444_SEMIPLANAR - CU_EGL_COLOR_FORMAT_Y12V12U12_420_SEMIPLANAR - CU_EGL_COLOR_FORMAT_VYUY_ER - CU_EGL_COLOR_FORMAT_UYVY_ER - CU_EGL_COLOR_FORMAT_YUYV_ER - CU_EGL_COLOR_FORMAT_YVYU_ER - CU_EGL_COLOR_FORMAT_YUV_ER - CU_EGL_COLOR_FORMAT_YUVA_ER - CU_EGL_COLOR_FORMAT_AYUV_ER - CU_EGL_COLOR_FORMAT_YUV444_PLANAR_ER - CU_EGL_COLOR_FORMAT_YUV422_PLANAR_ER - CU_EGL_COLOR_FORMAT_YUV420_PLANAR_ER - CU_EGL_COLOR_FORMAT_YUV444_SEMIPLANAR_ER - CU_EGL_COLOR_FORMAT_YUV422_SEMIPLANAR_ER - CU_EGL_COLOR_FORMAT_YUV420_SEMIPLANAR_ER - CU_EGL_COLOR_FORMAT_YVU444_PLANAR_ER - CU_EGL_COLOR_FORMAT_YVU422_PLANAR_ER - CU_EGL_COLOR_FORMAT_YVU420_PLANAR_ER - CU_EGL_COLOR_FORMAT_YVU444_SEMIPLANAR_ER - CU_EGL_COLOR_FORMAT_YVU422_SEMIPLANAR_ER - CU_EGL_COLOR_FORMAT_YVU420_SEMIPLANAR_ER - CU_EGL_COLOR_FORMAT_BAYER_RGGB - CU_EGL_COLOR_FORMAT_BAYER_BGGR - CU_EGL_COLOR_FORMAT_BAYER_GRBG - CU_EGL_COLOR_FORMAT_BAYER_GBRG - CU_EGL_COLOR_FORMAT_BAYER10_RGGB - CU_EGL_COLOR_FORMAT_BAYER10_BGGR - CU_EGL_COLOR_FORMAT_BAYER10_GRBG - CU_EGL_COLOR_FORMAT_BAYER10_GBRG - CU_EGL_COLOR_FORMAT_BAYER12_RGGB - CU_EGL_COLOR_FORMAT_BAYER12_BGGR - CU_EGL_COLOR_FORMAT_BAYER12_GRBG - CU_EGL_COLOR_FORMAT_BAYER12_GBRG - CU_EGL_COLOR_FORMAT_BAYER14_RGGB - CU_EGL_COLOR_FORMAT_BAYER14_BGGR - CU_EGL_COLOR_FORMAT_BAYER14_GRBG - CU_EGL_COLOR_FORMAT_BAYER14_GBRG - CU_EGL_COLOR_FORMAT_BAYER20_RGGB - CU_EGL_COLOR_FORMAT_BAYER20_BGGR - CU_EGL_COLOR_FORMAT_BAYER20_GRBG - CU_EGL_COLOR_FORMAT_BAYER20_GBRG - CU_EGL_COLOR_FORMAT_YVU444_PLANAR - CU_EGL_COLOR_FORMAT_YVU422_PLANAR - CU_EGL_COLOR_FORMAT_YVU420_PLANAR - CU_EGL_COLOR_FORMAT_BAYER_ISP_RGGB - CU_EGL_COLOR_FORMAT_BAYER_ISP_BGGR - CU_EGL_COLOR_FORMAT_BAYER_ISP_GRBG - CU_EGL_COLOR_FORMAT_BAYER_ISP_GBRG - CU_EGL_COLOR_FORMAT_BAYER_BCCR - CU_EGL_COLOR_FORMAT_BAYER_RCCB - CU_EGL_COLOR_FORMAT_BAYER_CRBC - CU_EGL_COLOR_FORMAT_BAYER_CBRC - CU_EGL_COLOR_FORMAT_BAYER10_CCCC - CU_EGL_COLOR_FORMAT_BAYER12_BCCR - CU_EGL_COLOR_FORMAT_BAYER12_RCCB - CU_EGL_COLOR_FORMAT_BAYER12_CRBC - CU_EGL_COLOR_FORMAT_BAYER12_CBRC - CU_EGL_COLOR_FORMAT_BAYER12_CCCC - CU_EGL_COLOR_FORMAT_Y - CU_EGL_COLOR_FORMAT_YUV420_SEMIPLANAR_2020 - CU_EGL_COLOR_FORMAT_YVU420_SEMIPLANAR_2020 - CU_EGL_COLOR_FORMAT_YUV420_PLANAR_2020 - CU_EGL_COLOR_FORMAT_YVU420_PLANAR_2020 - CU_EGL_COLOR_FORMAT_YUV420_SEMIPLANAR_709 - CU_EGL_COLOR_FORMAT_YVU420_SEMIPLANAR_709 - CU_EGL_COLOR_FORMAT_YUV420_PLANAR_709 - CU_EGL_COLOR_FORMAT_YVU420_PLANAR_709 - CU_EGL_COLOR_FORMAT_Y10V10U10_420_SEMIPLANAR_709 - CU_EGL_COLOR_FORMAT_Y10V10U10_420_SEMIPLANAR_2020 - CU_EGL_COLOR_FORMAT_Y10V10U10_422_SEMIPLANAR_2020 - CU_EGL_COLOR_FORMAT_Y10V10U10_422_SEMIPLANAR - CU_EGL_COLOR_FORMAT_Y10V10U10_422_SEMIPLANAR_709 - CU_EGL_COLOR_FORMAT_Y_ER - CU_EGL_COLOR_FORMAT_Y_709_ER - CU_EGL_COLOR_FORMAT_Y10_ER - CU_EGL_COLOR_FORMAT_Y10_709_ER - CU_EGL_COLOR_FORMAT_Y12_ER - CU_EGL_COLOR_FORMAT_Y12_709_ER - CU_EGL_COLOR_FORMAT_YUVA - CU_EGL_COLOR_FORMAT_YUV - CU_EGL_COLOR_FORMAT_YVYU - CU_EGL_COLOR_FORMAT_VYUY - CU_EGL_COLOR_FORMAT_Y10V10U10_420_SEMIPLANAR_ER - CU_EGL_COLOR_FORMAT_Y10V10U10_420_SEMIPLANAR_709_ER - CU_EGL_COLOR_FORMAT_Y10V10U10_444_SEMIPLANAR_ER - CU_EGL_COLOR_FORMAT_Y10V10U10_444_SEMIPLANAR_709_ER - CU_EGL_COLOR_FORMAT_Y12V12U12_420_SEMIPLANAR_ER - CU_EGL_COLOR_FORMAT_Y12V12U12_420_SEMIPLANAR_709_ER - CU_EGL_COLOR_FORMAT_Y12V12U12_444_SEMIPLANAR_ER - CU_EGL_COLOR_FORMAT_Y12V12U12_444_SEMIPLANAR_709_ER - CU_EGL_COLOR_FORMAT_UYVY_709 - CU_EGL_COLOR_FORMAT_UYVY_709_ER - CU_EGL_COLOR_FORMAT_UYVY_2020 - CU_EGL_COLOR_FORMAT_MAX - ctypedef CUeglColorFormat_enum CUeglColorFormat - -cdef extern from '': - ctypedef enum CUGLmap_flags_enum: - CU_GL_MAP_RESOURCE_FLAGS_NONE - CU_GL_MAP_RESOURCE_FLAGS_READ_ONLY - CU_GL_MAP_RESOURCE_FLAGS_WRITE_DISCARD - ctypedef CUGLmap_flags_enum CUGLmap_flags - -cdef extern from '': - ctypedef enum CUoutput_mode_enum: - CU_OUT_KEY_VALUE_PAIR - CU_OUT_CSV - ctypedef CUoutput_mode_enum CUoutput_mode +ctypedef enum CUeglFrameType_enum "CUeglFrameType_enum": + CU_EGL_FRAME_TYPE_ARRAY "CU_EGL_FRAME_TYPE_ARRAY" = 0 + CU_EGL_FRAME_TYPE_PITCH "CU_EGL_FRAME_TYPE_PITCH" = 1 +ctypedef CUeglFrameType_enum CUeglFrameType "CUeglFrameType" + +ctypedef enum CUeglResourceLocationFlags_enum "CUeglResourceLocationFlags_enum": + CU_EGL_RESOURCE_LOCATION_SYSMEM "CU_EGL_RESOURCE_LOCATION_SYSMEM" = 0x00 + CU_EGL_RESOURCE_LOCATION_VIDMEM "CU_EGL_RESOURCE_LOCATION_VIDMEM" = 0x01 +ctypedef CUeglResourceLocationFlags_enum CUeglResourceLocationFlags "CUeglResourceLocationFlags" + +ctypedef enum CUeglColorFormat_enum "CUeglColorFormat_enum": + CU_EGL_COLOR_FORMAT_YUV420_PLANAR "CU_EGL_COLOR_FORMAT_YUV420_PLANAR" = 0x00 + CU_EGL_COLOR_FORMAT_YUV420_SEMIPLANAR "CU_EGL_COLOR_FORMAT_YUV420_SEMIPLANAR" = 0x01 + CU_EGL_COLOR_FORMAT_YUV422_PLANAR "CU_EGL_COLOR_FORMAT_YUV422_PLANAR" = 0x02 + CU_EGL_COLOR_FORMAT_YUV422_SEMIPLANAR "CU_EGL_COLOR_FORMAT_YUV422_SEMIPLANAR" = 0x03 + CU_EGL_COLOR_FORMAT_RGB "CU_EGL_COLOR_FORMAT_RGB" = 0x04 + CU_EGL_COLOR_FORMAT_BGR "CU_EGL_COLOR_FORMAT_BGR" = 0x05 + CU_EGL_COLOR_FORMAT_ARGB "CU_EGL_COLOR_FORMAT_ARGB" = 0x06 + CU_EGL_COLOR_FORMAT_RGBA "CU_EGL_COLOR_FORMAT_RGBA" = 0x07 + CU_EGL_COLOR_FORMAT_L "CU_EGL_COLOR_FORMAT_L" = 0x08 + CU_EGL_COLOR_FORMAT_R "CU_EGL_COLOR_FORMAT_R" = 0x09 + CU_EGL_COLOR_FORMAT_YUV444_PLANAR "CU_EGL_COLOR_FORMAT_YUV444_PLANAR" = 0x0A + CU_EGL_COLOR_FORMAT_YUV444_SEMIPLANAR "CU_EGL_COLOR_FORMAT_YUV444_SEMIPLANAR" = 0x0B + CU_EGL_COLOR_FORMAT_YUYV_422 "CU_EGL_COLOR_FORMAT_YUYV_422" = 0x0C + CU_EGL_COLOR_FORMAT_UYVY_422 "CU_EGL_COLOR_FORMAT_UYVY_422" = 0x0D + CU_EGL_COLOR_FORMAT_ABGR "CU_EGL_COLOR_FORMAT_ABGR" = 0x0E + CU_EGL_COLOR_FORMAT_BGRA "CU_EGL_COLOR_FORMAT_BGRA" = 0x0F + CU_EGL_COLOR_FORMAT_A "CU_EGL_COLOR_FORMAT_A" = 0x10 + CU_EGL_COLOR_FORMAT_RG "CU_EGL_COLOR_FORMAT_RG" = 0x11 + CU_EGL_COLOR_FORMAT_AYUV "CU_EGL_COLOR_FORMAT_AYUV" = 0x12 + CU_EGL_COLOR_FORMAT_YVU444_SEMIPLANAR "CU_EGL_COLOR_FORMAT_YVU444_SEMIPLANAR" = 0x13 + CU_EGL_COLOR_FORMAT_YVU422_SEMIPLANAR "CU_EGL_COLOR_FORMAT_YVU422_SEMIPLANAR" = 0x14 + CU_EGL_COLOR_FORMAT_YVU420_SEMIPLANAR "CU_EGL_COLOR_FORMAT_YVU420_SEMIPLANAR" = 0x15 + CU_EGL_COLOR_FORMAT_Y10V10U10_444_SEMIPLANAR "CU_EGL_COLOR_FORMAT_Y10V10U10_444_SEMIPLANAR" = 0x16 + CU_EGL_COLOR_FORMAT_Y10V10U10_420_SEMIPLANAR "CU_EGL_COLOR_FORMAT_Y10V10U10_420_SEMIPLANAR" = 0x17 + CU_EGL_COLOR_FORMAT_Y12V12U12_444_SEMIPLANAR "CU_EGL_COLOR_FORMAT_Y12V12U12_444_SEMIPLANAR" = 0x18 + CU_EGL_COLOR_FORMAT_Y12V12U12_420_SEMIPLANAR "CU_EGL_COLOR_FORMAT_Y12V12U12_420_SEMIPLANAR" = 0x19 + CU_EGL_COLOR_FORMAT_VYUY_ER "CU_EGL_COLOR_FORMAT_VYUY_ER" = 0x1A + CU_EGL_COLOR_FORMAT_UYVY_ER "CU_EGL_COLOR_FORMAT_UYVY_ER" = 0x1B + CU_EGL_COLOR_FORMAT_YUYV_ER "CU_EGL_COLOR_FORMAT_YUYV_ER" = 0x1C + CU_EGL_COLOR_FORMAT_YVYU_ER "CU_EGL_COLOR_FORMAT_YVYU_ER" = 0x1D + CU_EGL_COLOR_FORMAT_YUV_ER "CU_EGL_COLOR_FORMAT_YUV_ER" = 0x1E + CU_EGL_COLOR_FORMAT_YUVA_ER "CU_EGL_COLOR_FORMAT_YUVA_ER" = 0x1F + CU_EGL_COLOR_FORMAT_AYUV_ER "CU_EGL_COLOR_FORMAT_AYUV_ER" = 0x20 + CU_EGL_COLOR_FORMAT_YUV444_PLANAR_ER "CU_EGL_COLOR_FORMAT_YUV444_PLANAR_ER" = 0x21 + CU_EGL_COLOR_FORMAT_YUV422_PLANAR_ER "CU_EGL_COLOR_FORMAT_YUV422_PLANAR_ER" = 0x22 + CU_EGL_COLOR_FORMAT_YUV420_PLANAR_ER "CU_EGL_COLOR_FORMAT_YUV420_PLANAR_ER" = 0x23 + CU_EGL_COLOR_FORMAT_YUV444_SEMIPLANAR_ER "CU_EGL_COLOR_FORMAT_YUV444_SEMIPLANAR_ER" = 0x24 + CU_EGL_COLOR_FORMAT_YUV422_SEMIPLANAR_ER "CU_EGL_COLOR_FORMAT_YUV422_SEMIPLANAR_ER" = 0x25 + CU_EGL_COLOR_FORMAT_YUV420_SEMIPLANAR_ER "CU_EGL_COLOR_FORMAT_YUV420_SEMIPLANAR_ER" = 0x26 + CU_EGL_COLOR_FORMAT_YVU444_PLANAR_ER "CU_EGL_COLOR_FORMAT_YVU444_PLANAR_ER" = 0x27 + CU_EGL_COLOR_FORMAT_YVU422_PLANAR_ER "CU_EGL_COLOR_FORMAT_YVU422_PLANAR_ER" = 0x28 + CU_EGL_COLOR_FORMAT_YVU420_PLANAR_ER "CU_EGL_COLOR_FORMAT_YVU420_PLANAR_ER" = 0x29 + CU_EGL_COLOR_FORMAT_YVU444_SEMIPLANAR_ER "CU_EGL_COLOR_FORMAT_YVU444_SEMIPLANAR_ER" = 0x2A + CU_EGL_COLOR_FORMAT_YVU422_SEMIPLANAR_ER "CU_EGL_COLOR_FORMAT_YVU422_SEMIPLANAR_ER" = 0x2B + CU_EGL_COLOR_FORMAT_YVU420_SEMIPLANAR_ER "CU_EGL_COLOR_FORMAT_YVU420_SEMIPLANAR_ER" = 0x2C + CU_EGL_COLOR_FORMAT_BAYER_RGGB "CU_EGL_COLOR_FORMAT_BAYER_RGGB" = 0x2D + CU_EGL_COLOR_FORMAT_BAYER_BGGR "CU_EGL_COLOR_FORMAT_BAYER_BGGR" = 0x2E + CU_EGL_COLOR_FORMAT_BAYER_GRBG "CU_EGL_COLOR_FORMAT_BAYER_GRBG" = 0x2F + CU_EGL_COLOR_FORMAT_BAYER_GBRG "CU_EGL_COLOR_FORMAT_BAYER_GBRG" = 0x30 + CU_EGL_COLOR_FORMAT_BAYER10_RGGB "CU_EGL_COLOR_FORMAT_BAYER10_RGGB" = 0x31 + CU_EGL_COLOR_FORMAT_BAYER10_BGGR "CU_EGL_COLOR_FORMAT_BAYER10_BGGR" = 0x32 + CU_EGL_COLOR_FORMAT_BAYER10_GRBG "CU_EGL_COLOR_FORMAT_BAYER10_GRBG" = 0x33 + CU_EGL_COLOR_FORMAT_BAYER10_GBRG "CU_EGL_COLOR_FORMAT_BAYER10_GBRG" = 0x34 + CU_EGL_COLOR_FORMAT_BAYER12_RGGB "CU_EGL_COLOR_FORMAT_BAYER12_RGGB" = 0x35 + CU_EGL_COLOR_FORMAT_BAYER12_BGGR "CU_EGL_COLOR_FORMAT_BAYER12_BGGR" = 0x36 + CU_EGL_COLOR_FORMAT_BAYER12_GRBG "CU_EGL_COLOR_FORMAT_BAYER12_GRBG" = 0x37 + CU_EGL_COLOR_FORMAT_BAYER12_GBRG "CU_EGL_COLOR_FORMAT_BAYER12_GBRG" = 0x38 + CU_EGL_COLOR_FORMAT_BAYER14_RGGB "CU_EGL_COLOR_FORMAT_BAYER14_RGGB" = 0x39 + CU_EGL_COLOR_FORMAT_BAYER14_BGGR "CU_EGL_COLOR_FORMAT_BAYER14_BGGR" = 0x3A + CU_EGL_COLOR_FORMAT_BAYER14_GRBG "CU_EGL_COLOR_FORMAT_BAYER14_GRBG" = 0x3B + CU_EGL_COLOR_FORMAT_BAYER14_GBRG "CU_EGL_COLOR_FORMAT_BAYER14_GBRG" = 0x3C + CU_EGL_COLOR_FORMAT_BAYER20_RGGB "CU_EGL_COLOR_FORMAT_BAYER20_RGGB" = 0x3D + CU_EGL_COLOR_FORMAT_BAYER20_BGGR "CU_EGL_COLOR_FORMAT_BAYER20_BGGR" = 0x3E + CU_EGL_COLOR_FORMAT_BAYER20_GRBG "CU_EGL_COLOR_FORMAT_BAYER20_GRBG" = 0x3F + CU_EGL_COLOR_FORMAT_BAYER20_GBRG "CU_EGL_COLOR_FORMAT_BAYER20_GBRG" = 0x40 + CU_EGL_COLOR_FORMAT_YVU444_PLANAR "CU_EGL_COLOR_FORMAT_YVU444_PLANAR" = 0x41 + CU_EGL_COLOR_FORMAT_YVU422_PLANAR "CU_EGL_COLOR_FORMAT_YVU422_PLANAR" = 0x42 + CU_EGL_COLOR_FORMAT_YVU420_PLANAR "CU_EGL_COLOR_FORMAT_YVU420_PLANAR" = 0x43 + CU_EGL_COLOR_FORMAT_BAYER_ISP_RGGB "CU_EGL_COLOR_FORMAT_BAYER_ISP_RGGB" = 0x44 + CU_EGL_COLOR_FORMAT_BAYER_ISP_BGGR "CU_EGL_COLOR_FORMAT_BAYER_ISP_BGGR" = 0x45 + CU_EGL_COLOR_FORMAT_BAYER_ISP_GRBG "CU_EGL_COLOR_FORMAT_BAYER_ISP_GRBG" = 0x46 + CU_EGL_COLOR_FORMAT_BAYER_ISP_GBRG "CU_EGL_COLOR_FORMAT_BAYER_ISP_GBRG" = 0x47 + CU_EGL_COLOR_FORMAT_BAYER_BCCR "CU_EGL_COLOR_FORMAT_BAYER_BCCR" = 0x48 + CU_EGL_COLOR_FORMAT_BAYER_RCCB "CU_EGL_COLOR_FORMAT_BAYER_RCCB" = 0x49 + CU_EGL_COLOR_FORMAT_BAYER_CRBC "CU_EGL_COLOR_FORMAT_BAYER_CRBC" = 0x4A + CU_EGL_COLOR_FORMAT_BAYER_CBRC "CU_EGL_COLOR_FORMAT_BAYER_CBRC" = 0x4B + CU_EGL_COLOR_FORMAT_BAYER10_CCCC "CU_EGL_COLOR_FORMAT_BAYER10_CCCC" = 0x4C + CU_EGL_COLOR_FORMAT_BAYER12_BCCR "CU_EGL_COLOR_FORMAT_BAYER12_BCCR" = 0x4D + CU_EGL_COLOR_FORMAT_BAYER12_RCCB "CU_EGL_COLOR_FORMAT_BAYER12_RCCB" = 0x4E + CU_EGL_COLOR_FORMAT_BAYER12_CRBC "CU_EGL_COLOR_FORMAT_BAYER12_CRBC" = 0x4F + CU_EGL_COLOR_FORMAT_BAYER12_CBRC "CU_EGL_COLOR_FORMAT_BAYER12_CBRC" = 0x50 + CU_EGL_COLOR_FORMAT_BAYER12_CCCC "CU_EGL_COLOR_FORMAT_BAYER12_CCCC" = 0x51 + CU_EGL_COLOR_FORMAT_Y "CU_EGL_COLOR_FORMAT_Y" = 0x52 + CU_EGL_COLOR_FORMAT_YUV420_SEMIPLANAR_2020 "CU_EGL_COLOR_FORMAT_YUV420_SEMIPLANAR_2020" = 0x53 + CU_EGL_COLOR_FORMAT_YVU420_SEMIPLANAR_2020 "CU_EGL_COLOR_FORMAT_YVU420_SEMIPLANAR_2020" = 0x54 + CU_EGL_COLOR_FORMAT_YUV420_PLANAR_2020 "CU_EGL_COLOR_FORMAT_YUV420_PLANAR_2020" = 0x55 + CU_EGL_COLOR_FORMAT_YVU420_PLANAR_2020 "CU_EGL_COLOR_FORMAT_YVU420_PLANAR_2020" = 0x56 + CU_EGL_COLOR_FORMAT_YUV420_SEMIPLANAR_709 "CU_EGL_COLOR_FORMAT_YUV420_SEMIPLANAR_709" = 0x57 + CU_EGL_COLOR_FORMAT_YVU420_SEMIPLANAR_709 "CU_EGL_COLOR_FORMAT_YVU420_SEMIPLANAR_709" = 0x58 + CU_EGL_COLOR_FORMAT_YUV420_PLANAR_709 "CU_EGL_COLOR_FORMAT_YUV420_PLANAR_709" = 0x59 + CU_EGL_COLOR_FORMAT_YVU420_PLANAR_709 "CU_EGL_COLOR_FORMAT_YVU420_PLANAR_709" = 0x5A + CU_EGL_COLOR_FORMAT_Y10V10U10_420_SEMIPLANAR_709 "CU_EGL_COLOR_FORMAT_Y10V10U10_420_SEMIPLANAR_709" = 0x5B + CU_EGL_COLOR_FORMAT_Y10V10U10_420_SEMIPLANAR_2020 "CU_EGL_COLOR_FORMAT_Y10V10U10_420_SEMIPLANAR_2020" = 0x5C + CU_EGL_COLOR_FORMAT_Y10V10U10_422_SEMIPLANAR_2020 "CU_EGL_COLOR_FORMAT_Y10V10U10_422_SEMIPLANAR_2020" = 0x5D + CU_EGL_COLOR_FORMAT_Y10V10U10_422_SEMIPLANAR "CU_EGL_COLOR_FORMAT_Y10V10U10_422_SEMIPLANAR" = 0x5E + CU_EGL_COLOR_FORMAT_Y10V10U10_422_SEMIPLANAR_709 "CU_EGL_COLOR_FORMAT_Y10V10U10_422_SEMIPLANAR_709" = 0x5F + CU_EGL_COLOR_FORMAT_Y_ER "CU_EGL_COLOR_FORMAT_Y_ER" = 0x60 + CU_EGL_COLOR_FORMAT_Y_709_ER "CU_EGL_COLOR_FORMAT_Y_709_ER" = 0x61 + CU_EGL_COLOR_FORMAT_Y10_ER "CU_EGL_COLOR_FORMAT_Y10_ER" = 0x62 + CU_EGL_COLOR_FORMAT_Y10_709_ER "CU_EGL_COLOR_FORMAT_Y10_709_ER" = 0x63 + CU_EGL_COLOR_FORMAT_Y12_ER "CU_EGL_COLOR_FORMAT_Y12_ER" = 0x64 + CU_EGL_COLOR_FORMAT_Y12_709_ER "CU_EGL_COLOR_FORMAT_Y12_709_ER" = 0x65 + CU_EGL_COLOR_FORMAT_YUVA "CU_EGL_COLOR_FORMAT_YUVA" = 0x66 + CU_EGL_COLOR_FORMAT_YUV "CU_EGL_COLOR_FORMAT_YUV" = 0x67 + CU_EGL_COLOR_FORMAT_YVYU "CU_EGL_COLOR_FORMAT_YVYU" = 0x68 + CU_EGL_COLOR_FORMAT_VYUY "CU_EGL_COLOR_FORMAT_VYUY" = 0x69 + CU_EGL_COLOR_FORMAT_Y10V10U10_420_SEMIPLANAR_ER "CU_EGL_COLOR_FORMAT_Y10V10U10_420_SEMIPLANAR_ER" = 0x6A + CU_EGL_COLOR_FORMAT_Y10V10U10_420_SEMIPLANAR_709_ER "CU_EGL_COLOR_FORMAT_Y10V10U10_420_SEMIPLANAR_709_ER" = 0x6B + CU_EGL_COLOR_FORMAT_Y10V10U10_444_SEMIPLANAR_ER "CU_EGL_COLOR_FORMAT_Y10V10U10_444_SEMIPLANAR_ER" = 0x6C + CU_EGL_COLOR_FORMAT_Y10V10U10_444_SEMIPLANAR_709_ER "CU_EGL_COLOR_FORMAT_Y10V10U10_444_SEMIPLANAR_709_ER" = 0x6D + CU_EGL_COLOR_FORMAT_Y12V12U12_420_SEMIPLANAR_ER "CU_EGL_COLOR_FORMAT_Y12V12U12_420_SEMIPLANAR_ER" = 0x6E + CU_EGL_COLOR_FORMAT_Y12V12U12_420_SEMIPLANAR_709_ER "CU_EGL_COLOR_FORMAT_Y12V12U12_420_SEMIPLANAR_709_ER" = 0x6F + CU_EGL_COLOR_FORMAT_Y12V12U12_444_SEMIPLANAR_ER "CU_EGL_COLOR_FORMAT_Y12V12U12_444_SEMIPLANAR_ER" = 0x70 + CU_EGL_COLOR_FORMAT_Y12V12U12_444_SEMIPLANAR_709_ER "CU_EGL_COLOR_FORMAT_Y12V12U12_444_SEMIPLANAR_709_ER" = 0x71 + CU_EGL_COLOR_FORMAT_UYVY_709 "CU_EGL_COLOR_FORMAT_UYVY_709" = 0x72 + CU_EGL_COLOR_FORMAT_UYVY_709_ER "CU_EGL_COLOR_FORMAT_UYVY_709_ER" = 0x73 + CU_EGL_COLOR_FORMAT_UYVY_2020 "CU_EGL_COLOR_FORMAT_UYVY_2020" = 0x74 + CU_EGL_COLOR_FORMAT_MAX "CU_EGL_COLOR_FORMAT_MAX" +ctypedef CUeglColorFormat_enum CUeglColorFormat "CUeglColorFormat" + +ctypedef enum CUGLmap_flags_enum "CUGLmap_flags_enum": + CU_GL_MAP_RESOURCE_FLAGS_NONE "CU_GL_MAP_RESOURCE_FLAGS_NONE" = 0x00 + CU_GL_MAP_RESOURCE_FLAGS_READ_ONLY "CU_GL_MAP_RESOURCE_FLAGS_READ_ONLY" = 0x01 + CU_GL_MAP_RESOURCE_FLAGS_WRITE_DISCARD "CU_GL_MAP_RESOURCE_FLAGS_WRITE_DISCARD" = 0x02 +ctypedef CUGLmap_flags_enum CUGLmap_flags "CUGLmap_flags" + +ctypedef enum CUoutput_mode_enum "CUoutput_mode_enum": + CU_OUT_KEY_VALUE_PAIR "CU_OUT_KEY_VALUE_PAIR" = 0x00 + CU_OUT_CSV "CU_OUT_CSV" = 0x01 +ctypedef CUoutput_mode_enum CUoutput_mode "CUoutput_mode" cdef extern from 'cuda.h': ctypedef enum CUatomicOperation_enum: From 2d7c8dd64bea70953e4c8995008117088dfaabb6 Mon Sep 17 00:00:00 2001 From: Michael Droettboom Date: Fri, 24 Apr 2026 16:47:45 -0400 Subject: [PATCH 5/6] Make const match --- .../cuda/bindings/_internal/nvrtc.pxd | 10 ++-- .../cuda/bindings/_internal/nvrtc_linux.pyx | 20 +++---- .../cuda/bindings/_internal/nvrtc_windows.pyx | 20 +++---- cuda_bindings/cuda/bindings/cynvrtc.pxd | 55 ++++++++++--------- cuda_bindings/cuda/bindings/cynvrtc.pyx | 10 ++-- 5 files changed, 58 insertions(+), 57 deletions(-) diff --git a/cuda_bindings/cuda/bindings/_internal/nvrtc.pxd b/cuda_bindings/cuda/bindings/_internal/nvrtc.pxd index e837c0ab091..f5dad85e8d0 100644 --- a/cuda_bindings/cuda/bindings/_internal/nvrtc.pxd +++ b/cuda_bindings/cuda/bindings/_internal/nvrtc.pxd @@ -15,9 +15,9 @@ cdef const char* _nvrtcGetErrorString(nvrtcResult result) except?NULL nogil cdef nvrtcResult _nvrtcVersion(int* major, int* minor) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil cdef nvrtcResult _nvrtcGetNumSupportedArchs(int* numArchs) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil cdef nvrtcResult _nvrtcGetSupportedArchs(int* supportedArchs) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil -cdef nvrtcResult _nvrtcCreateProgram(nvrtcProgram* prog, const char* src, const char* name, int numHeaders, const char* const* headers, const char* const* includeNames) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil +cdef nvrtcResult _nvrtcCreateProgram(nvrtcProgram* prog, const char* src, const char* name, int numHeaders, const char** headers, const char** includeNames) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil cdef nvrtcResult _nvrtcDestroyProgram(nvrtcProgram* prog) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil -cdef nvrtcResult _nvrtcCompileProgram(nvrtcProgram prog, int numOptions, const char* const* options) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil +cdef nvrtcResult _nvrtcCompileProgram(nvrtcProgram prog, int numOptions, const char** options) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil cdef nvrtcResult _nvrtcGetPTXSize(nvrtcProgram prog, size_t* ptxSizeRet) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil cdef nvrtcResult _nvrtcGetPTX(nvrtcProgram prog, char* ptx) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil cdef nvrtcResult _nvrtcGetCUBINSize(nvrtcProgram prog, size_t* cubinSizeRet) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil @@ -28,12 +28,12 @@ cdef nvrtcResult _nvrtcGetOptiXIRSize(nvrtcProgram prog, size_t* optixirSizeRet) cdef nvrtcResult _nvrtcGetOptiXIR(nvrtcProgram prog, char* optixir) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil cdef nvrtcResult _nvrtcGetProgramLogSize(nvrtcProgram prog, size_t* logSizeRet) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil cdef nvrtcResult _nvrtcGetProgramLog(nvrtcProgram prog, char* log) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil -cdef nvrtcResult _nvrtcAddNameExpression(nvrtcProgram prog, const char* const name_expression) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil -cdef nvrtcResult _nvrtcGetLoweredName(nvrtcProgram prog, const char* const name_expression, const char** lowered_name) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil +cdef nvrtcResult _nvrtcAddNameExpression(nvrtcProgram prog, const char* name_expression) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil +cdef nvrtcResult _nvrtcGetLoweredName(nvrtcProgram prog, const char* name_expression, const char** lowered_name) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil cdef nvrtcResult _nvrtcGetPCHHeapSize(size_t* ret) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil cdef nvrtcResult _nvrtcSetPCHHeapSize(size_t size) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil cdef nvrtcResult _nvrtcGetPCHCreateStatus(nvrtcProgram prog) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil cdef nvrtcResult _nvrtcGetPCHHeapSizeRequired(nvrtcProgram prog, size_t* size) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil -cdef nvrtcResult _nvrtcSetFlowCallback(nvrtcProgram prog, void * callback, void* payload) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil +cdef nvrtcResult _nvrtcSetFlowCallback(nvrtcProgram prog, void * callback[], void* payload) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil cdef nvrtcResult _nvrtcGetTileIRSize(nvrtcProgram prog, size_t* TileIRSizeRet) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil cdef nvrtcResult _nvrtcGetTileIR(nvrtcProgram prog, char* TileIR) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil diff --git a/cuda_bindings/cuda/bindings/_internal/nvrtc_linux.pyx b/cuda_bindings/cuda/bindings/_internal/nvrtc_linux.pyx index 16fa3b38707..531d0ba1f64 100644 --- a/cuda_bindings/cuda/bindings/_internal/nvrtc_linux.pyx +++ b/cuda_bindings/cuda/bindings/_internal/nvrtc_linux.pyx @@ -439,13 +439,13 @@ cdef nvrtcResult _nvrtcGetSupportedArchs(int* supportedArchs) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: +cdef nvrtcResult _nvrtcCreateProgram(nvrtcProgram* prog, const char* src, const char* name, int numHeaders, const char** headers, const char** includeNames) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: global __nvrtcCreateProgram _check_or_init_nvrtc() if __nvrtcCreateProgram == NULL: with gil: raise FunctionNotFoundError("function nvrtcCreateProgram is not found") - return (__nvrtcCreateProgram)( + return (__nvrtcCreateProgram)( prog, src, name, numHeaders, headers, includeNames) @@ -459,13 +459,13 @@ cdef nvrtcResult _nvrtcDestroyProgram(nvrtcProgram* prog) except?_N prog) -cdef nvrtcResult _nvrtcCompileProgram(nvrtcProgram prog, int numOptions, const char* const* options) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: +cdef nvrtcResult _nvrtcCompileProgram(nvrtcProgram prog, int numOptions, const char** options) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: global __nvrtcCompileProgram _check_or_init_nvrtc() if __nvrtcCompileProgram == NULL: with gil: raise FunctionNotFoundError("function nvrtcCompileProgram is not found") - return (__nvrtcCompileProgram)( + return (__nvrtcCompileProgram)( prog, numOptions, options) @@ -569,23 +569,23 @@ cdef nvrtcResult _nvrtcGetProgramLog(nvrtcProgram prog, char* log) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: +cdef nvrtcResult _nvrtcAddNameExpression(nvrtcProgram prog, const char* name_expression) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: global __nvrtcAddNameExpression _check_or_init_nvrtc() if __nvrtcAddNameExpression == NULL: with gil: raise FunctionNotFoundError("function nvrtcAddNameExpression is not found") - return (__nvrtcAddNameExpression)( + return (__nvrtcAddNameExpression)( prog, name_expression) -cdef nvrtcResult _nvrtcGetLoweredName(nvrtcProgram prog, const char* const name_expression, const char** lowered_name) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: +cdef nvrtcResult _nvrtcGetLoweredName(nvrtcProgram prog, const char* name_expression, const char** lowered_name) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: global __nvrtcGetLoweredName _check_or_init_nvrtc() if __nvrtcGetLoweredName == NULL: with gil: raise FunctionNotFoundError("function nvrtcGetLoweredName is not found") - return (__nvrtcGetLoweredName)( + return (__nvrtcGetLoweredName)( prog, name_expression, lowered_name) @@ -629,13 +629,13 @@ cdef nvrtcResult _nvrtcGetPCHHeapSizeRequired(nvrtcProgram prog, size_t* size) e prog, size) -cdef nvrtcResult _nvrtcSetFlowCallback(nvrtcProgram prog, void * callback, void* payload) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: +cdef nvrtcResult _nvrtcSetFlowCallback(nvrtcProgram prog, void * callback[], void* payload) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: global __nvrtcSetFlowCallback _check_or_init_nvrtc() if __nvrtcSetFlowCallback == NULL: with gil: raise FunctionNotFoundError("function nvrtcSetFlowCallback is not found") - return (__nvrtcSetFlowCallback)( + return (__nvrtcSetFlowCallback)( prog, callback, payload) diff --git a/cuda_bindings/cuda/bindings/_internal/nvrtc_windows.pyx b/cuda_bindings/cuda/bindings/_internal/nvrtc_windows.pyx index ce05a3fc30a..3450c4aa527 100644 --- a/cuda_bindings/cuda/bindings/_internal/nvrtc_windows.pyx +++ b/cuda_bindings/cuda/bindings/_internal/nvrtc_windows.pyx @@ -349,13 +349,13 @@ cdef nvrtcResult _nvrtcGetSupportedArchs(int* supportedArchs) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: +cdef nvrtcResult _nvrtcCreateProgram(nvrtcProgram* prog, const char* src, const char* name, int numHeaders, const char** headers, const char** includeNames) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: global __nvrtcCreateProgram _check_or_init_nvrtc() if __nvrtcCreateProgram == NULL: with gil: raise FunctionNotFoundError("function nvrtcCreateProgram is not found") - return (__nvrtcCreateProgram)( + return (__nvrtcCreateProgram)( prog, src, name, numHeaders, headers, includeNames) @@ -369,13 +369,13 @@ cdef nvrtcResult _nvrtcDestroyProgram(nvrtcProgram* prog) except?_N prog) -cdef nvrtcResult _nvrtcCompileProgram(nvrtcProgram prog, int numOptions, const char* const* options) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: +cdef nvrtcResult _nvrtcCompileProgram(nvrtcProgram prog, int numOptions, const char** options) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: global __nvrtcCompileProgram _check_or_init_nvrtc() if __nvrtcCompileProgram == NULL: with gil: raise FunctionNotFoundError("function nvrtcCompileProgram is not found") - return (__nvrtcCompileProgram)( + return (__nvrtcCompileProgram)( prog, numOptions, options) @@ -479,23 +479,23 @@ cdef nvrtcResult _nvrtcGetProgramLog(nvrtcProgram prog, char* log) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: +cdef nvrtcResult _nvrtcAddNameExpression(nvrtcProgram prog, const char* name_expression) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: global __nvrtcAddNameExpression _check_or_init_nvrtc() if __nvrtcAddNameExpression == NULL: with gil: raise FunctionNotFoundError("function nvrtcAddNameExpression is not found") - return (__nvrtcAddNameExpression)( + return (__nvrtcAddNameExpression)( prog, name_expression) -cdef nvrtcResult _nvrtcGetLoweredName(nvrtcProgram prog, const char* const name_expression, const char** lowered_name) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: +cdef nvrtcResult _nvrtcGetLoweredName(nvrtcProgram prog, const char* name_expression, const char** lowered_name) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: global __nvrtcGetLoweredName _check_or_init_nvrtc() if __nvrtcGetLoweredName == NULL: with gil: raise FunctionNotFoundError("function nvrtcGetLoweredName is not found") - return (__nvrtcGetLoweredName)( + return (__nvrtcGetLoweredName)( prog, name_expression, lowered_name) @@ -539,13 +539,13 @@ cdef nvrtcResult _nvrtcGetPCHHeapSizeRequired(nvrtcProgram prog, size_t* size) e prog, size) -cdef nvrtcResult _nvrtcSetFlowCallback(nvrtcProgram prog, void * callback, void* payload) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: +cdef nvrtcResult _nvrtcSetFlowCallback(nvrtcProgram prog, void * callback[], void* payload) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: global __nvrtcSetFlowCallback _check_or_init_nvrtc() if __nvrtcSetFlowCallback == NULL: with gil: raise FunctionNotFoundError("function nvrtcSetFlowCallback is not found") - return (__nvrtcSetFlowCallback)( + return (__nvrtcSetFlowCallback)( prog, callback, payload) diff --git a/cuda_bindings/cuda/bindings/cynvrtc.pxd b/cuda_bindings/cuda/bindings/cynvrtc.pxd index f19b1c135a7..2a3759a2f5c 100644 --- a/cuda_bindings/cuda/bindings/cynvrtc.pxd +++ b/cuda_bindings/cuda/bindings/cynvrtc.pxd @@ -8,32 +8,33 @@ from libc.stdint cimport uint32_t, uint64_t # ENUMS -cdef extern from '': - ctypedef enum nvrtcResult: - NVRTC_SUCCESS - NVRTC_ERROR_OUT_OF_MEMORY - NVRTC_ERROR_PROGRAM_CREATION_FAILURE - NVRTC_ERROR_INVALID_INPUT - NVRTC_ERROR_INVALID_PROGRAM - NVRTC_ERROR_INVALID_OPTION - NVRTC_ERROR_COMPILATION - NVRTC_ERROR_BUILTIN_OPERATION_FAILURE - NVRTC_ERROR_NO_NAME_EXPRESSIONS_AFTER_COMPILATION - NVRTC_ERROR_NO_LOWERED_NAMES_BEFORE_COMPILATION - NVRTC_ERROR_NAME_EXPRESSION_NOT_VALID - NVRTC_ERROR_INTERNAL_ERROR - NVRTC_ERROR_TIME_FILE_WRITE_FAILED - NVRTC_ERROR_NO_PCH_CREATE_ATTEMPTED - NVRTC_ERROR_PCH_CREATE_HEAP_EXHAUSTED - NVRTC_ERROR_PCH_CREATE - NVRTC_ERROR_CANCELLED - NVRTC_ERROR_TIME_TRACE_FILE_WRITE_FAILED +ctypedef enum nvrtcResult "nvrtcResult": + NVRTC_SUCCESS "NVRTC_SUCCESS" = 0 + NVRTC_ERROR_OUT_OF_MEMORY "NVRTC_ERROR_OUT_OF_MEMORY" = 1 + NVRTC_ERROR_PROGRAM_CREATION_FAILURE "NVRTC_ERROR_PROGRAM_CREATION_FAILURE" = 2 + NVRTC_ERROR_INVALID_INPUT "NVRTC_ERROR_INVALID_INPUT" = 3 + NVRTC_ERROR_INVALID_PROGRAM "NVRTC_ERROR_INVALID_PROGRAM" = 4 + NVRTC_ERROR_INVALID_OPTION "NVRTC_ERROR_INVALID_OPTION" = 5 + NVRTC_ERROR_COMPILATION "NVRTC_ERROR_COMPILATION" = 6 + NVRTC_ERROR_BUILTIN_OPERATION_FAILURE "NVRTC_ERROR_BUILTIN_OPERATION_FAILURE" = 7 + NVRTC_ERROR_NO_NAME_EXPRESSIONS_AFTER_COMPILATION "NVRTC_ERROR_NO_NAME_EXPRESSIONS_AFTER_COMPILATION" = 8 + NVRTC_ERROR_NO_LOWERED_NAMES_BEFORE_COMPILATION "NVRTC_ERROR_NO_LOWERED_NAMES_BEFORE_COMPILATION" = 9 + NVRTC_ERROR_NAME_EXPRESSION_NOT_VALID "NVRTC_ERROR_NAME_EXPRESSION_NOT_VALID" = 10 + NVRTC_ERROR_INTERNAL_ERROR "NVRTC_ERROR_INTERNAL_ERROR" = 11 + NVRTC_ERROR_TIME_FILE_WRITE_FAILED "NVRTC_ERROR_TIME_FILE_WRITE_FAILED" = 12 + NVRTC_ERROR_NO_PCH_CREATE_ATTEMPTED "NVRTC_ERROR_NO_PCH_CREATE_ATTEMPTED" = 13 + NVRTC_ERROR_PCH_CREATE_HEAP_EXHAUSTED "NVRTC_ERROR_PCH_CREATE_HEAP_EXHAUSTED" = 14 + NVRTC_ERROR_PCH_CREATE "NVRTC_ERROR_PCH_CREATE" = 15 + NVRTC_ERROR_CANCELLED "NVRTC_ERROR_CANCELLED" = 16 + NVRTC_ERROR_TIME_TRACE_FILE_WRITE_FAILED "NVRTC_ERROR_TIME_TRACE_FILE_WRITE_FAILED" = 17 cdef enum: _NVRTCRESULT_INTERNAL_LOADING_ERROR = -42 # TYPES -cdef extern from '': - ctypedef void* nvrtcProgram 'nvrtcProgram' +cdef extern from 'nvrtc.h': + ctypedef struct _nvrtcProgram: + pass + ctypedef _nvrtcProgram* nvrtcProgram 'nvrtcProgram' @@ -42,9 +43,9 @@ cdef const char* nvrtcGetErrorString(nvrtcResult result) except?NULL nogil cdef nvrtcResult nvrtcVersion(int* major, int* minor) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil cdef nvrtcResult nvrtcGetNumSupportedArchs(int* numArchs) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil cdef nvrtcResult nvrtcGetSupportedArchs(int* supportedArchs) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil -cdef nvrtcResult nvrtcCreateProgram(nvrtcProgram* prog, const char* src, const char* name, int numHeaders, const char* const* headers, const char* const* includeNames) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil +cdef nvrtcResult nvrtcCreateProgram(nvrtcProgram* prog, const char* src, const char* name, int numHeaders, const char** headers, const char** includeNames) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil cdef nvrtcResult nvrtcDestroyProgram(nvrtcProgram* prog) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil -cdef nvrtcResult nvrtcCompileProgram(nvrtcProgram prog, int numOptions, const char* const* options) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil +cdef nvrtcResult nvrtcCompileProgram(nvrtcProgram prog, int numOptions, const char** options) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil cdef nvrtcResult nvrtcGetPTXSize(nvrtcProgram prog, size_t* ptxSizeRet) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil cdef nvrtcResult nvrtcGetPTX(nvrtcProgram prog, char* ptx) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil cdef nvrtcResult nvrtcGetCUBINSize(nvrtcProgram prog, size_t* cubinSizeRet) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil @@ -55,12 +56,12 @@ cdef nvrtcResult nvrtcGetOptiXIRSize(nvrtcProgram prog, size_t* optixirSizeRet) cdef nvrtcResult nvrtcGetOptiXIR(nvrtcProgram prog, char* optixir) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil cdef nvrtcResult nvrtcGetProgramLogSize(nvrtcProgram prog, size_t* logSizeRet) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil cdef nvrtcResult nvrtcGetProgramLog(nvrtcProgram prog, char* log) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil -cdef nvrtcResult nvrtcAddNameExpression(nvrtcProgram prog, const char* const name_expression) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil -cdef nvrtcResult nvrtcGetLoweredName(nvrtcProgram prog, const char* const name_expression, const char** lowered_name) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil +cdef nvrtcResult nvrtcAddNameExpression(nvrtcProgram prog, const char* name_expression) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil +cdef nvrtcResult nvrtcGetLoweredName(nvrtcProgram prog, const char* name_expression, const char** lowered_name) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil cdef nvrtcResult nvrtcGetPCHHeapSize(size_t* ret) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil cdef nvrtcResult nvrtcSetPCHHeapSize(size_t size) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil cdef nvrtcResult nvrtcGetPCHCreateStatus(nvrtcProgram prog) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil cdef nvrtcResult nvrtcGetPCHHeapSizeRequired(nvrtcProgram prog, size_t* size) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil -cdef nvrtcResult nvrtcSetFlowCallback(nvrtcProgram prog, void * callback, void* payload) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil +cdef nvrtcResult nvrtcSetFlowCallback(nvrtcProgram prog, void * callback[], void* payload) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil cdef nvrtcResult nvrtcGetTileIRSize(nvrtcProgram prog, size_t* TileIRSizeRet) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil cdef nvrtcResult nvrtcGetTileIR(nvrtcProgram prog, char* TileIR) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil diff --git a/cuda_bindings/cuda/bindings/cynvrtc.pyx b/cuda_bindings/cuda/bindings/cynvrtc.pyx index 85a93f3d3e3..977ec15c638 100644 --- a/cuda_bindings/cuda/bindings/cynvrtc.pyx +++ b/cuda_bindings/cuda/bindings/cynvrtc.pyx @@ -22,7 +22,7 @@ cdef nvrtcResult nvrtcGetSupportedArchs(int* supportedArchs) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: +cdef nvrtcResult nvrtcCreateProgram(nvrtcProgram* prog, const char* src, const char* name, int numHeaders, const char** headers, const char** includeNames) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: return _nvrtc._nvrtcCreateProgram(prog, src, name, numHeaders, headers, includeNames) @@ -30,7 +30,7 @@ cdef nvrtcResult nvrtcDestroyProgram(nvrtcProgram* prog) except?_NV return _nvrtc._nvrtcDestroyProgram(prog) -cdef nvrtcResult nvrtcCompileProgram(nvrtcProgram prog, int numOptions, const char* const* options) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: +cdef nvrtcResult nvrtcCompileProgram(nvrtcProgram prog, int numOptions, const char** options) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: return _nvrtc._nvrtcCompileProgram(prog, numOptions, options) @@ -74,11 +74,11 @@ cdef nvrtcResult nvrtcGetProgramLog(nvrtcProgram prog, char* log) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: +cdef nvrtcResult nvrtcAddNameExpression(nvrtcProgram prog, const char* name_expression) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: return _nvrtc._nvrtcAddNameExpression(prog, name_expression) -cdef nvrtcResult nvrtcGetLoweredName(nvrtcProgram prog, const char* const name_expression, const char** lowered_name) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: +cdef nvrtcResult nvrtcGetLoweredName(nvrtcProgram prog, const char* name_expression, const char** lowered_name) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: return _nvrtc._nvrtcGetLoweredName(prog, name_expression, lowered_name) @@ -98,7 +98,7 @@ cdef nvrtcResult nvrtcGetPCHHeapSizeRequired(nvrtcProgram prog, size_t* size) ex return _nvrtc._nvrtcGetPCHHeapSizeRequired(prog, size) -cdef nvrtcResult nvrtcSetFlowCallback(nvrtcProgram prog, void * callback, void* payload) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: +cdef nvrtcResult nvrtcSetFlowCallback(nvrtcProgram prog, void * callback[], void* payload) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: return _nvrtc._nvrtcSetFlowCallback(prog, callback, payload) From f664c86e4e30a681f3a09295caeca596c10232df Mon Sep 17 00:00:00 2001 From: Michael Droettboom Date: Fri, 24 Apr 2026 16:55:57 -0400 Subject: [PATCH 6/6] Fix compilation again --- .../cuda/bindings/_internal/nvrtc.pxd | 2 +- .../cuda/bindings/_internal/nvrtc_linux.pyx | 4 +- .../cuda/bindings/_internal/nvrtc_windows.pyx | 4 +- cuda_bindings/cuda/bindings/cynvrtc.pxd | 41 ++++++++++--------- cuda_bindings/cuda/bindings/cynvrtc.pyx | 2 +- 5 files changed, 27 insertions(+), 26 deletions(-) diff --git a/cuda_bindings/cuda/bindings/_internal/nvrtc.pxd b/cuda_bindings/cuda/bindings/_internal/nvrtc.pxd index f5dad85e8d0..c668cd21cfa 100644 --- a/cuda_bindings/cuda/bindings/_internal/nvrtc.pxd +++ b/cuda_bindings/cuda/bindings/_internal/nvrtc.pxd @@ -34,6 +34,6 @@ cdef nvrtcResult _nvrtcGetPCHHeapSize(size_t* ret) except?_NVRTCRES cdef nvrtcResult _nvrtcSetPCHHeapSize(size_t size) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil cdef nvrtcResult _nvrtcGetPCHCreateStatus(nvrtcProgram prog) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil cdef nvrtcResult _nvrtcGetPCHHeapSizeRequired(nvrtcProgram prog, size_t* size) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil -cdef nvrtcResult _nvrtcSetFlowCallback(nvrtcProgram prog, void * callback[], void* payload) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil +cdef nvrtcResult _nvrtcSetFlowCallback(nvrtcProgram prog, void * callback, void* payload) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil cdef nvrtcResult _nvrtcGetTileIRSize(nvrtcProgram prog, size_t* TileIRSizeRet) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil cdef nvrtcResult _nvrtcGetTileIR(nvrtcProgram prog, char* TileIR) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil diff --git a/cuda_bindings/cuda/bindings/_internal/nvrtc_linux.pyx b/cuda_bindings/cuda/bindings/_internal/nvrtc_linux.pyx index 531d0ba1f64..922bfe234a1 100644 --- a/cuda_bindings/cuda/bindings/_internal/nvrtc_linux.pyx +++ b/cuda_bindings/cuda/bindings/_internal/nvrtc_linux.pyx @@ -629,13 +629,13 @@ cdef nvrtcResult _nvrtcGetPCHHeapSizeRequired(nvrtcProgram prog, size_t* size) e prog, size) -cdef nvrtcResult _nvrtcSetFlowCallback(nvrtcProgram prog, void * callback[], void* payload) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: +cdef nvrtcResult _nvrtcSetFlowCallback(nvrtcProgram prog, void * callback, void* payload) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: global __nvrtcSetFlowCallback _check_or_init_nvrtc() if __nvrtcSetFlowCallback == NULL: with gil: raise FunctionNotFoundError("function nvrtcSetFlowCallback is not found") - return (__nvrtcSetFlowCallback)( + return (__nvrtcSetFlowCallback)( prog, callback, payload) diff --git a/cuda_bindings/cuda/bindings/_internal/nvrtc_windows.pyx b/cuda_bindings/cuda/bindings/_internal/nvrtc_windows.pyx index 3450c4aa527..e63209b7063 100644 --- a/cuda_bindings/cuda/bindings/_internal/nvrtc_windows.pyx +++ b/cuda_bindings/cuda/bindings/_internal/nvrtc_windows.pyx @@ -539,13 +539,13 @@ cdef nvrtcResult _nvrtcGetPCHHeapSizeRequired(nvrtcProgram prog, size_t* size) e prog, size) -cdef nvrtcResult _nvrtcSetFlowCallback(nvrtcProgram prog, void * callback[], void* payload) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: +cdef nvrtcResult _nvrtcSetFlowCallback(nvrtcProgram prog, void * callback, void* payload) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: global __nvrtcSetFlowCallback _check_or_init_nvrtc() if __nvrtcSetFlowCallback == NULL: with gil: raise FunctionNotFoundError("function nvrtcSetFlowCallback is not found") - return (__nvrtcSetFlowCallback)( + return (__nvrtcSetFlowCallback)( prog, callback, payload) diff --git a/cuda_bindings/cuda/bindings/cynvrtc.pxd b/cuda_bindings/cuda/bindings/cynvrtc.pxd index 2a3759a2f5c..bc3392593e8 100644 --- a/cuda_bindings/cuda/bindings/cynvrtc.pxd +++ b/cuda_bindings/cuda/bindings/cynvrtc.pxd @@ -8,25 +8,26 @@ from libc.stdint cimport uint32_t, uint64_t # ENUMS -ctypedef enum nvrtcResult "nvrtcResult": - NVRTC_SUCCESS "NVRTC_SUCCESS" = 0 - NVRTC_ERROR_OUT_OF_MEMORY "NVRTC_ERROR_OUT_OF_MEMORY" = 1 - NVRTC_ERROR_PROGRAM_CREATION_FAILURE "NVRTC_ERROR_PROGRAM_CREATION_FAILURE" = 2 - NVRTC_ERROR_INVALID_INPUT "NVRTC_ERROR_INVALID_INPUT" = 3 - NVRTC_ERROR_INVALID_PROGRAM "NVRTC_ERROR_INVALID_PROGRAM" = 4 - NVRTC_ERROR_INVALID_OPTION "NVRTC_ERROR_INVALID_OPTION" = 5 - NVRTC_ERROR_COMPILATION "NVRTC_ERROR_COMPILATION" = 6 - NVRTC_ERROR_BUILTIN_OPERATION_FAILURE "NVRTC_ERROR_BUILTIN_OPERATION_FAILURE" = 7 - NVRTC_ERROR_NO_NAME_EXPRESSIONS_AFTER_COMPILATION "NVRTC_ERROR_NO_NAME_EXPRESSIONS_AFTER_COMPILATION" = 8 - NVRTC_ERROR_NO_LOWERED_NAMES_BEFORE_COMPILATION "NVRTC_ERROR_NO_LOWERED_NAMES_BEFORE_COMPILATION" = 9 - NVRTC_ERROR_NAME_EXPRESSION_NOT_VALID "NVRTC_ERROR_NAME_EXPRESSION_NOT_VALID" = 10 - NVRTC_ERROR_INTERNAL_ERROR "NVRTC_ERROR_INTERNAL_ERROR" = 11 - NVRTC_ERROR_TIME_FILE_WRITE_FAILED "NVRTC_ERROR_TIME_FILE_WRITE_FAILED" = 12 - NVRTC_ERROR_NO_PCH_CREATE_ATTEMPTED "NVRTC_ERROR_NO_PCH_CREATE_ATTEMPTED" = 13 - NVRTC_ERROR_PCH_CREATE_HEAP_EXHAUSTED "NVRTC_ERROR_PCH_CREATE_HEAP_EXHAUSTED" = 14 - NVRTC_ERROR_PCH_CREATE "NVRTC_ERROR_PCH_CREATE" = 15 - NVRTC_ERROR_CANCELLED "NVRTC_ERROR_CANCELLED" = 16 - NVRTC_ERROR_TIME_TRACE_FILE_WRITE_FAILED "NVRTC_ERROR_TIME_TRACE_FILE_WRITE_FAILED" = 17 +cdef extern from 'nvrtc.h': + ctypedef enum nvrtcResult: + NVRTC_SUCCESS + NVRTC_ERROR_OUT_OF_MEMORY + NVRTC_ERROR_PROGRAM_CREATION_FAILURE + NVRTC_ERROR_INVALID_INPUT + NVRTC_ERROR_INVALID_PROGRAM + NVRTC_ERROR_INVALID_OPTION + NVRTC_ERROR_COMPILATION + NVRTC_ERROR_BUILTIN_OPERATION_FAILURE + NVRTC_ERROR_NO_NAME_EXPRESSIONS_AFTER_COMPILATION + NVRTC_ERROR_NO_LOWERED_NAMES_BEFORE_COMPILATION + NVRTC_ERROR_NAME_EXPRESSION_NOT_VALID + NVRTC_ERROR_INTERNAL_ERROR + NVRTC_ERROR_TIME_FILE_WRITE_FAILED + NVRTC_ERROR_NO_PCH_CREATE_ATTEMPTED + NVRTC_ERROR_PCH_CREATE_HEAP_EXHAUSTED + NVRTC_ERROR_PCH_CREATE + NVRTC_ERROR_CANCELLED + NVRTC_ERROR_TIME_TRACE_FILE_WRITE_FAILED cdef enum: _NVRTCRESULT_INTERNAL_LOADING_ERROR = -42 @@ -62,6 +63,6 @@ cdef nvrtcResult nvrtcGetPCHHeapSize(size_t* ret) except?_NVRTCRESU cdef nvrtcResult nvrtcSetPCHHeapSize(size_t size) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil cdef nvrtcResult nvrtcGetPCHCreateStatus(nvrtcProgram prog) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil cdef nvrtcResult nvrtcGetPCHHeapSizeRequired(nvrtcProgram prog, size_t* size) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil -cdef nvrtcResult nvrtcSetFlowCallback(nvrtcProgram prog, void * callback[], void* payload) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil +cdef nvrtcResult nvrtcSetFlowCallback(nvrtcProgram prog, void * callback, void* payload) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil cdef nvrtcResult nvrtcGetTileIRSize(nvrtcProgram prog, size_t* TileIRSizeRet) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil cdef nvrtcResult nvrtcGetTileIR(nvrtcProgram prog, char* TileIR) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil diff --git a/cuda_bindings/cuda/bindings/cynvrtc.pyx b/cuda_bindings/cuda/bindings/cynvrtc.pyx index 977ec15c638..55664c29b76 100644 --- a/cuda_bindings/cuda/bindings/cynvrtc.pyx +++ b/cuda_bindings/cuda/bindings/cynvrtc.pyx @@ -98,7 +98,7 @@ cdef nvrtcResult nvrtcGetPCHHeapSizeRequired(nvrtcProgram prog, size_t* size) ex return _nvrtc._nvrtcGetPCHHeapSizeRequired(prog, size) -cdef nvrtcResult nvrtcSetFlowCallback(nvrtcProgram prog, void * callback[], void* payload) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: +cdef nvrtcResult nvrtcSetFlowCallback(nvrtcProgram prog, void * callback, void* payload) except?_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil: return _nvrtc._nvrtcSetFlowCallback(prog, callback, payload)